google-apis-cloudsupport_v2 0.23.0 → 0.25.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: b9a595320a7ba2849b7b9ca8e37d498f62fbd7423ad780358934a6cbd62bdf80
4
- data.tar.gz: 5e8167a8943cec026f088e894bf0fb5ea1b9b068a89b18dcf77e0f2d962fbb96
3
+ metadata.gz: 93a0aa0ef9864773c3e7900b58b5da68a9ae555c5dd7699ae19265c8b575a429
4
+ data.tar.gz: 75a8f3681d420d578cd7bc40a5234dc9177ac9304a5791d8602d2b5b39a414c0
5
5
  SHA512:
6
- metadata.gz: 6aff49d27ba1d9f76e3b125dcdb46f524ff1f4e8f8fbe52d09f732b1fcd1a8c9d2d536085d07a453de716bc1d888501c8e7f4fe2d01cc1c672131b3584968e82
7
- data.tar.gz: 22dc4da3018f5a5a17edbe07cb8c65d6f3f56ff9cde86a56d858e9cd779e6d52c79877eb1f7d5ada1b562d576c9211600582794acf5ee444b63284aaa0ce5b17
6
+ metadata.gz: 987f2d7a5646ade3b6b3ce524b6879015cc13970e6853c3b2f8abe27d672386e0601c7d1b773bd7a3c4f793f8732d8f5bc75f1407466c63180d18b9f12d2dcfc
7
+ data.tar.gz: 1478304979a96fd2c228c10d9a869fc214e10d6ce65b1cc314a1b8c89dfbcbd05225c5eec6299c907f577421605e4703aec5fd9f975d88536c488daafdf89fe9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudsupport_v2
2
2
 
3
+ ### v0.25.0 (2026-07-12)
4
+
5
+ * Regenerated from discovery document revision 20260707
6
+
7
+ ### v0.24.0 (2026-07-05)
8
+
9
+ * Regenerated from discovery document revision 20260623
10
+
3
11
  ### v0.23.0 (2026-06-14)
4
12
 
5
13
  * Regenerated using generator version 0.19.0
@@ -744,6 +744,22 @@ module Google
744
744
  end
745
745
  end
746
746
 
747
+ # A generic empty message that you can re-use to avoid defining duplicated empty
748
+ # messages in your APIs. A typical example is to use it as the request or the
749
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
750
+ # protobuf.Empty) returns (google.protobuf.Empty); `
751
+ class Empty
752
+ include Google::Apis::Core::Hashable
753
+
754
+ def initialize(**args)
755
+ update!(**args)
756
+ end
757
+
758
+ # Update properties of this object
759
+ def update!(**args)
760
+ end
761
+ end
762
+
747
763
  # The request message for the EscalateCase endpoint.
748
764
  class EscalateCaseRequest
749
765
  include Google::Apis::Core::Hashable
@@ -789,6 +805,19 @@ module Google
789
805
  end
790
806
  end
791
807
 
808
+ # Request message for ExpungeSupportEventSubscription.
809
+ class ExpungeSupportEventSubscriptionRequest
810
+ include Google::Apis::Core::Hashable
811
+
812
+ def initialize(**args)
813
+ update!(**args)
814
+ end
815
+
816
+ # Update properties of this object
817
+ def update!(**args)
818
+ end
819
+ end
820
+
792
821
  # The response message for the ListAttachments endpoint.
793
822
  class ListAttachmentsResponse
794
823
  include Google::Apis::Core::Hashable
@@ -871,6 +900,32 @@ module Google
871
900
  end
872
901
  end
873
902
 
903
+ # Response message for ListSupportEventSubscriptions.
904
+ class ListSupportEventSubscriptionsResponse
905
+ include Google::Apis::Core::Hashable
906
+
907
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
908
+ # field is omitted, there are no subsequent pages.
909
+ # Corresponds to the JSON property `nextPageToken`
910
+ # @return [String]
911
+ attr_accessor :next_page_token
912
+
913
+ # The support event subscriptions.
914
+ # Corresponds to the JSON property `supportEventSubscriptions`
915
+ # @return [Array<Google::Apis::CloudsupportV2::SupportEventSubscription>]
916
+ attr_accessor :support_event_subscriptions
917
+
918
+ def initialize(**args)
919
+ update!(**args)
920
+ end
921
+
922
+ # Update properties of this object
923
+ def update!(**args)
924
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
925
+ @support_event_subscriptions = args[:support_event_subscriptions] if args.key?(:support_event_subscriptions)
926
+ end
927
+ end
928
+
874
929
  # # gdata.* are outside protos with mising documentation
875
930
  class Media
876
931
  include Google::Apis::Core::Hashable
@@ -1166,6 +1221,82 @@ module Google
1166
1221
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1167
1222
  end
1168
1223
  end
1224
+
1225
+ # A support event subscription.
1226
+ class SupportEventSubscription
1227
+ include Google::Apis::Core::Hashable
1228
+
1229
+ # Output only. The time at which the subscription was created.
1230
+ # Corresponds to the JSON property `createTime`
1231
+ # @return [String]
1232
+ attr_accessor :create_time
1233
+
1234
+ # Output only. The time at which the subscription was deleted.
1235
+ # Corresponds to the JSON property `deleteTime`
1236
+ # @return [String]
1237
+ attr_accessor :delete_time
1238
+
1239
+ # Output only. Reason why subscription is failing. State of subscription must be
1240
+ # FAILING in order for this to have a value.
1241
+ # Corresponds to the JSON property `failureReason`
1242
+ # @return [String]
1243
+ attr_accessor :failure_reason
1244
+
1245
+ # Identifier. The resource name of the support event subscription.
1246
+ # Corresponds to the JSON property `name`
1247
+ # @return [String]
1248
+ attr_accessor :name
1249
+
1250
+ # Required. The name of the Pub/Sub topic to publish notifications to. Format:
1251
+ # projects/`project`/topics/`topic`
1252
+ # Corresponds to the JSON property `pubSubTopic`
1253
+ # @return [String]
1254
+ attr_accessor :pub_sub_topic
1255
+
1256
+ # Output only. The time at which the subscription will be purged.
1257
+ # Corresponds to the JSON property `purgeTime`
1258
+ # @return [String]
1259
+ attr_accessor :purge_time
1260
+
1261
+ # Output only. The state of the subscription.
1262
+ # Corresponds to the JSON property `state`
1263
+ # @return [String]
1264
+ attr_accessor :state
1265
+
1266
+ # Output only. The time at which the subscription was last updated.
1267
+ # Corresponds to the JSON property `updateTime`
1268
+ # @return [String]
1269
+ attr_accessor :update_time
1270
+
1271
+ def initialize(**args)
1272
+ update!(**args)
1273
+ end
1274
+
1275
+ # Update properties of this object
1276
+ def update!(**args)
1277
+ @create_time = args[:create_time] if args.key?(:create_time)
1278
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
1279
+ @failure_reason = args[:failure_reason] if args.key?(:failure_reason)
1280
+ @name = args[:name] if args.key?(:name)
1281
+ @pub_sub_topic = args[:pub_sub_topic] if args.key?(:pub_sub_topic)
1282
+ @purge_time = args[:purge_time] if args.key?(:purge_time)
1283
+ @state = args[:state] if args.key?(:state)
1284
+ @update_time = args[:update_time] if args.key?(:update_time)
1285
+ end
1286
+ end
1287
+
1288
+ # Request message for UndeleteSupportEventSubscription.
1289
+ class UndeleteSupportEventSubscriptionRequest
1290
+ include Google::Apis::Core::Hashable
1291
+
1292
+ def initialize(**args)
1293
+ update!(**args)
1294
+ end
1295
+
1296
+ # Update properties of this object
1297
+ def update!(**args)
1298
+ end
1299
+ end
1169
1300
  end
1170
1301
  end
1171
1302
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudsupportV2
18
18
  # Version of the google-apis-cloudsupport_v2 gem
19
- GEM_VERSION = "0.23.0"
19
+ GEM_VERSION = "0.25.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 = "20260707"
26
26
  end
27
27
  end
28
28
  end
@@ -118,6 +118,12 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class Empty
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
121
127
  class EscalateCaseRequest
122
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
129
 
@@ -130,6 +136,12 @@ module Google
130
136
  include Google::Apis::Core::JsonObjectSupport
131
137
  end
132
138
 
139
+ class ExpungeSupportEventSubscriptionRequest
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
133
145
  class ListAttachmentsResponse
134
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
147
 
@@ -148,6 +160,12 @@ module Google
148
160
  include Google::Apis::Core::JsonObjectSupport
149
161
  end
150
162
 
163
+ class ListSupportEventSubscriptionsResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
151
169
  class Media
152
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
171
 
@@ -172,6 +190,18 @@ module Google
172
190
  include Google::Apis::Core::JsonObjectSupport
173
191
  end
174
192
 
193
+ class SupportEventSubscription
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class UndeleteSupportEventSubscriptionRequest
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
175
205
  class Actor
176
206
  # @private
177
207
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -354,6 +384,12 @@ module Google
354
384
  end
355
385
  end
356
386
 
387
+ class Empty
388
+ # @private
389
+ class Representation < Google::Apis::Core::JsonRepresentation
390
+ end
391
+ end
392
+
357
393
  class EscalateCaseRequest
358
394
  # @private
359
395
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -370,6 +406,12 @@ module Google
370
406
  end
371
407
  end
372
408
 
409
+ class ExpungeSupportEventSubscriptionRequest
410
+ # @private
411
+ class Representation < Google::Apis::Core::JsonRepresentation
412
+ end
413
+ end
414
+
373
415
  class ListAttachmentsResponse
374
416
  # @private
375
417
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -397,6 +439,15 @@ module Google
397
439
  end
398
440
  end
399
441
 
442
+ class ListSupportEventSubscriptionsResponse
443
+ # @private
444
+ class Representation < Google::Apis::Core::JsonRepresentation
445
+ property :next_page_token, as: 'nextPageToken'
446
+ collection :support_event_subscriptions, as: 'supportEventSubscriptions', class: Google::Apis::CloudsupportV2::SupportEventSubscription, decorator: Google::Apis::CloudsupportV2::SupportEventSubscription::Representation
447
+
448
+ end
449
+ end
450
+
400
451
  class Media
401
452
  # @private
402
453
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -470,6 +521,26 @@ module Google
470
521
  property :next_page_token, as: 'nextPageToken'
471
522
  end
472
523
  end
524
+
525
+ class SupportEventSubscription
526
+ # @private
527
+ class Representation < Google::Apis::Core::JsonRepresentation
528
+ property :create_time, as: 'createTime'
529
+ property :delete_time, as: 'deleteTime'
530
+ property :failure_reason, as: 'failureReason'
531
+ property :name, as: 'name'
532
+ property :pub_sub_topic, as: 'pubSubTopic'
533
+ property :purge_time, as: 'purgeTime'
534
+ property :state, as: 'state'
535
+ property :update_time, as: 'updateTime'
536
+ end
537
+ end
538
+
539
+ class UndeleteSupportEventSubscriptionRequest
540
+ # @private
541
+ class Representation < Google::Apis::Core::JsonRepresentation
542
+ end
543
+ end
473
544
  end
474
545
  end
475
546
  end
@@ -789,6 +789,319 @@ module Google
789
789
  command.query['quotaUser'] = quota_user unless quota_user.nil?
790
790
  execute_or_queue_command(command, &block)
791
791
  end
792
+
793
+ # Creates a support event subscription for an organization. EXAMPLES: cURL: ```
794
+ # shell parent="organizations/123456789" curl \ --request POST \ --header "
795
+ # Authorization: Bearer $(gcloud auth print-access-token)" \ --header 'Content-
796
+ # Type: application/json' \ --data '` "pub_sub_topic": "projects/my-project/
797
+ # topics/my-topic" `' \ "https://cloudsupport.googleapis.com/v2/$parent/
798
+ # supportEventSubscriptions" ``` Python: ```python import googleapiclient.
799
+ # discovery api_version = "v2" supportApiService = googleapiclient.discovery.
800
+ # build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
801
+ # https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
802
+ # request = supportApiService.supportEventSubscriptions().create( parent="
803
+ # organizations/123456789", body=` "pub_sub_topic": "projects/my-project/topics/
804
+ # my-topic" `, ) print(request.execute()) ```
805
+ # @param [String] parent
806
+ # Required. The parent resource name where the support event subscription will
807
+ # be created. Format: organizations/`organization_id`
808
+ # @param [Google::Apis::CloudsupportV2::SupportEventSubscription] support_event_subscription_object
809
+ # @param [String] fields
810
+ # Selector specifying which fields to include in a partial response.
811
+ # @param [String] quota_user
812
+ # Available to use for quota purposes for server-side applications. Can be any
813
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
814
+ # @param [Google::Apis::RequestOptions] options
815
+ # Request-specific options
816
+ #
817
+ # @yield [result, err] Result & error if block supplied
818
+ # @yieldparam result [Google::Apis::CloudsupportV2::SupportEventSubscription] parsed result object
819
+ # @yieldparam err [StandardError] error object if request failed
820
+ #
821
+ # @return [Google::Apis::CloudsupportV2::SupportEventSubscription]
822
+ #
823
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
824
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
825
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
826
+ def create_support_event_subscription(parent, support_event_subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block)
827
+ command = make_simple_command(:post, 'v2/{+parent}/supportEventSubscriptions', options)
828
+ command.request_representation = Google::Apis::CloudsupportV2::SupportEventSubscription::Representation
829
+ command.request_object = support_event_subscription_object
830
+ command.response_representation = Google::Apis::CloudsupportV2::SupportEventSubscription::Representation
831
+ command.response_class = Google::Apis::CloudsupportV2::SupportEventSubscription
832
+ command.params['parent'] = parent unless parent.nil?
833
+ command.query['fields'] = fields unless fields.nil?
834
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
835
+ execute_or_queue_command(command, &block)
836
+ end
837
+
838
+ # Soft deletes a support event subscription. EXAMPLES: cURL: ```shell
839
+ # support_event_subscription="organizations/123456789/supportEventSubscriptions/
840
+ # abcdef123456" curl \ --request DELETE \ --header "Authorization: Bearer $(
841
+ # gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
842
+ # support_event_subscription" ``` Python: ```python import googleapiclient.
843
+ # discovery api_version = "v2" supportApiService = googleapiclient.discovery.
844
+ # build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
845
+ # https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
846
+ # request = supportApiService).supportEventSubscriptions().delete( name="
847
+ # organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(
848
+ # request.execute()) ```
849
+ # @param [String] name
850
+ # Required. The name of the support event subscription to delete. Format:
851
+ # organizations/`organization_id`/supportEventSubscriptions/`subscription_id`
852
+ # @param [String] fields
853
+ # Selector specifying which fields to include in a partial response.
854
+ # @param [String] quota_user
855
+ # Available to use for quota purposes for server-side applications. Can be any
856
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
857
+ # @param [Google::Apis::RequestOptions] options
858
+ # Request-specific options
859
+ #
860
+ # @yield [result, err] Result & error if block supplied
861
+ # @yieldparam result [Google::Apis::CloudsupportV2::SupportEventSubscription] parsed result object
862
+ # @yieldparam err [StandardError] error object if request failed
863
+ #
864
+ # @return [Google::Apis::CloudsupportV2::SupportEventSubscription]
865
+ #
866
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
867
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
868
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
869
+ def delete_support_event_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
870
+ command = make_simple_command(:delete, 'v2/{+name}', options)
871
+ command.response_representation = Google::Apis::CloudsupportV2::SupportEventSubscription::Representation
872
+ command.response_class = Google::Apis::CloudsupportV2::SupportEventSubscription
873
+ command.params['name'] = name unless name.nil?
874
+ command.query['fields'] = fields unless fields.nil?
875
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
876
+ execute_or_queue_command(command, &block)
877
+ end
878
+
879
+ # Expunges a support event subscription.
880
+ # @param [String] name
881
+ # Required. The name of the support event subscription to expunge. Format:
882
+ # organizations/`organization_id`/supportEventSubscriptions/`subscription_id`
883
+ # @param [Google::Apis::CloudsupportV2::ExpungeSupportEventSubscriptionRequest] expunge_support_event_subscription_request_object
884
+ # @param [String] fields
885
+ # Selector specifying which fields to include in a partial response.
886
+ # @param [String] quota_user
887
+ # Available to use for quota purposes for server-side applications. Can be any
888
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
889
+ # @param [Google::Apis::RequestOptions] options
890
+ # Request-specific options
891
+ #
892
+ # @yield [result, err] Result & error if block supplied
893
+ # @yieldparam result [Google::Apis::CloudsupportV2::Empty] parsed result object
894
+ # @yieldparam err [StandardError] error object if request failed
895
+ #
896
+ # @return [Google::Apis::CloudsupportV2::Empty]
897
+ #
898
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
899
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
900
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
901
+ def expunge_support_event_subscription(name, expunge_support_event_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
902
+ command = make_simple_command(:post, 'v2/{+name}:expunge', options)
903
+ command.request_representation = Google::Apis::CloudsupportV2::ExpungeSupportEventSubscriptionRequest::Representation
904
+ command.request_object = expunge_support_event_subscription_request_object
905
+ command.response_representation = Google::Apis::CloudsupportV2::Empty::Representation
906
+ command.response_class = Google::Apis::CloudsupportV2::Empty
907
+ command.params['name'] = name unless name.nil?
908
+ command.query['fields'] = fields unless fields.nil?
909
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
910
+ execute_or_queue_command(command, &block)
911
+ end
912
+
913
+ # Gets a support event subscription. EXAMPLES: cURL: ```shell
914
+ # support_event_subscription="organizations/123456789/supportEventSubscriptions/
915
+ # abcdef123456" curl \ --header "Authorization: Bearer $(gcloud auth print-
916
+ # access-token)" \ "https://cloudsupport.googleapis.com/v2/$
917
+ # support_event_subscription" ``` Python: ```python import googleapiclient.
918
+ # discovery api_version = "v2" supportApiService = googleapiclient.discovery.
919
+ # build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
920
+ # https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
921
+ # request = supportApiService.supportEventSubscriptions().get( name="
922
+ # organizations/123456789/supportEventSubscriptions/abcdef123456" ) print(
923
+ # request.execute()) ```
924
+ # @param [String] name
925
+ # Required. The name of the support event subscription to retrieve. Format:
926
+ # organizations/`organization_id`/supportEventSubscriptions/`subscription_id`
927
+ # @param [String] fields
928
+ # Selector specifying which fields to include in a partial response.
929
+ # @param [String] quota_user
930
+ # Available to use for quota purposes for server-side applications. Can be any
931
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
932
+ # @param [Google::Apis::RequestOptions] options
933
+ # Request-specific options
934
+ #
935
+ # @yield [result, err] Result & error if block supplied
936
+ # @yieldparam result [Google::Apis::CloudsupportV2::SupportEventSubscription] parsed result object
937
+ # @yieldparam err [StandardError] error object if request failed
938
+ #
939
+ # @return [Google::Apis::CloudsupportV2::SupportEventSubscription]
940
+ #
941
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
942
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
943
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
944
+ def get_support_event_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
945
+ command = make_simple_command(:get, 'v2/{+name}', options)
946
+ command.response_representation = Google::Apis::CloudsupportV2::SupportEventSubscription::Representation
947
+ command.response_class = Google::Apis::CloudsupportV2::SupportEventSubscription
948
+ command.params['name'] = name unless name.nil?
949
+ command.query['fields'] = fields unless fields.nil?
950
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
951
+ execute_or_queue_command(command, &block)
952
+ end
953
+
954
+ # Lists support event subscriptions. EXAMPLES: cURL: ```shell parent="
955
+ # organizations/123456789" curl \ --header "Authorization: Bearer $(gcloud auth
956
+ # print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$parent/
957
+ # supportEventSubscriptions" ``` Python: ```python import googleapiclient.
958
+ # discovery api_version = "v2" supportApiService = googleapiclient.discovery.
959
+ # build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
960
+ # https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
961
+ # request = supportApiService.supportEventSubscriptions().list( parent="
962
+ # organizations/123456789" ) print(request.execute()) ```
963
+ # @param [String] parent
964
+ # Required. The fully qualified name of the Cloud resource to list support event
965
+ # subscriptions under. Format: organizations/`organization_id`
966
+ # @param [String] filter
967
+ # Optional. Filter expression based on AIP-160. Supported fields: -
968
+ # pub_sub_topic - state Examples: - `pub_sub_topic="projects/example-project/
969
+ # topics/example-topic"` - `state=WORKING` - `pub_sub_topic="projects/example-
970
+ # project/topics/example-topic" AND state=WORKING`
971
+ # @param [Fixnum] page_size
972
+ # Optional. The maximum number of support event subscriptions to return.
973
+ # @param [String] page_token
974
+ # Optional. A token identifying the page of results to return. If unspecified,
975
+ # the first page is retrieved. When paginating, all other parameters provided to
976
+ # `ListSupportEventSubscriptions` must match the call that provided the page
977
+ # token.
978
+ # @param [Boolean] show_deleted
979
+ # Optional. Whether to show deleted subscriptions. By default, deleted
980
+ # subscriptions are not returned.
981
+ # @param [String] fields
982
+ # Selector specifying which fields to include in a partial response.
983
+ # @param [String] quota_user
984
+ # Available to use for quota purposes for server-side applications. Can be any
985
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
986
+ # @param [Google::Apis::RequestOptions] options
987
+ # Request-specific options
988
+ #
989
+ # @yield [result, err] Result & error if block supplied
990
+ # @yieldparam result [Google::Apis::CloudsupportV2::ListSupportEventSubscriptionsResponse] parsed result object
991
+ # @yieldparam err [StandardError] error object if request failed
992
+ #
993
+ # @return [Google::Apis::CloudsupportV2::ListSupportEventSubscriptionsResponse]
994
+ #
995
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
996
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
997
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
998
+ def list_support_event_subscriptions(parent, filter: nil, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
999
+ command = make_simple_command(:get, 'v2/{+parent}/supportEventSubscriptions', options)
1000
+ command.response_representation = Google::Apis::CloudsupportV2::ListSupportEventSubscriptionsResponse::Representation
1001
+ command.response_class = Google::Apis::CloudsupportV2::ListSupportEventSubscriptionsResponse
1002
+ command.params['parent'] = parent unless parent.nil?
1003
+ command.query['filter'] = filter unless filter.nil?
1004
+ command.query['pageSize'] = page_size unless page_size.nil?
1005
+ command.query['pageToken'] = page_token unless page_token.nil?
1006
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
1007
+ command.query['fields'] = fields unless fields.nil?
1008
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1009
+ execute_or_queue_command(command, &block)
1010
+ end
1011
+
1012
+ # Updates a support event subscription. EXAMPLES: cURL: ```shell
1013
+ # support_event_subscription="organizations/123456789/supportEventSubscriptions/
1014
+ # abcdef123456" curl \ --request PATCH \ --header "Authorization: Bearer $(
1015
+ # gcloud auth print-access-token)" \ --header "Content-Type: application/json" \
1016
+ # --data '` "pub_sub_topic": "projects/my-project/topics/new-topic" `' \ "https:/
1017
+ # /cloudsupport.googleapis.com/v2/$support_event_subscription?updateMask=
1018
+ # pub_sub_topic" ``` Python: ```python import googleapiclient.discovery
1019
+ # api_version = "v2" supportApiService = googleapiclient.discovery.build(
1020
+ # serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://
1021
+ # cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", ) request =
1022
+ # supportApiService.supportEventSubscriptions().patch( name="organizations/
1023
+ # 123456789/supportEventSubscriptions/abcdef123456", body=` "pub_sub_topic": "
1024
+ # projects/my-project/topics/new-topic" `, ) print(request.execute()) ```
1025
+ # @param [String] name
1026
+ # Identifier. The resource name of the support event subscription.
1027
+ # @param [Google::Apis::CloudsupportV2::SupportEventSubscription] support_event_subscription_object
1028
+ # @param [String] update_mask
1029
+ # Optional. The list of fields to update. The only supported value is
1030
+ # pub_sub_topic.
1031
+ # @param [String] fields
1032
+ # Selector specifying which fields to include in a partial response.
1033
+ # @param [String] quota_user
1034
+ # Available to use for quota purposes for server-side applications. Can be any
1035
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1036
+ # @param [Google::Apis::RequestOptions] options
1037
+ # Request-specific options
1038
+ #
1039
+ # @yield [result, err] Result & error if block supplied
1040
+ # @yieldparam result [Google::Apis::CloudsupportV2::SupportEventSubscription] parsed result object
1041
+ # @yieldparam err [StandardError] error object if request failed
1042
+ #
1043
+ # @return [Google::Apis::CloudsupportV2::SupportEventSubscription]
1044
+ #
1045
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1046
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1047
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1048
+ def patch_support_event_subscription(name, support_event_subscription_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1049
+ command = make_simple_command(:patch, 'v2/{+name}', options)
1050
+ command.request_representation = Google::Apis::CloudsupportV2::SupportEventSubscription::Representation
1051
+ command.request_object = support_event_subscription_object
1052
+ command.response_representation = Google::Apis::CloudsupportV2::SupportEventSubscription::Representation
1053
+ command.response_class = Google::Apis::CloudsupportV2::SupportEventSubscription
1054
+ command.params['name'] = name unless name.nil?
1055
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1056
+ command.query['fields'] = fields unless fields.nil?
1057
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1058
+ execute_or_queue_command(command, &block)
1059
+ end
1060
+
1061
+ # Undeletes a support event subscription. EXAMPLES: cURL: ```shell
1062
+ # support_event_subscription="organizations/123456789/supportEventSubscriptions/
1063
+ # abcdef123456" curl \ --request POST \ --header "Authorization: Bearer $(gcloud
1064
+ # auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
1065
+ # support_event_subscription:undelete" ``` Python: ```python import
1066
+ # googleapiclient.discovery api_version = "v2" supportApiService =
1067
+ # googleapiclient.discovery.build( serviceName="cloudsupport", version=
1068
+ # api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$
1069
+ # discovery/rest?version=`api_version`", ) request = supportApiService.
1070
+ # supportEventSubscriptions().undelete( name="organizations/123456789/
1071
+ # supportEventSubscriptions/abcdef123456" ) print(request.execute()) ```
1072
+ # Undeletes a support event subscription.
1073
+ # @param [String] name
1074
+ # Required. The name of the support event subscription to undelete. Format:
1075
+ # organizations/`organization_id`/supportEventSubscriptions/`subscription_id`
1076
+ # @param [Google::Apis::CloudsupportV2::UndeleteSupportEventSubscriptionRequest] undelete_support_event_subscription_request_object
1077
+ # @param [String] fields
1078
+ # Selector specifying which fields to include in a partial response.
1079
+ # @param [String] quota_user
1080
+ # Available to use for quota purposes for server-side applications. Can be any
1081
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1082
+ # @param [Google::Apis::RequestOptions] options
1083
+ # Request-specific options
1084
+ #
1085
+ # @yield [result, err] Result & error if block supplied
1086
+ # @yieldparam result [Google::Apis::CloudsupportV2::SupportEventSubscription] parsed result object
1087
+ # @yieldparam err [StandardError] error object if request failed
1088
+ #
1089
+ # @return [Google::Apis::CloudsupportV2::SupportEventSubscription]
1090
+ #
1091
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1092
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1093
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1094
+ def undelete_support_event_subscription(name, undelete_support_event_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1095
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
1096
+ command.request_representation = Google::Apis::CloudsupportV2::UndeleteSupportEventSubscriptionRequest::Representation
1097
+ command.request_object = undelete_support_event_subscription_request_object
1098
+ command.response_representation = Google::Apis::CloudsupportV2::SupportEventSubscription::Representation
1099
+ command.response_class = Google::Apis::CloudsupportV2::SupportEventSubscription
1100
+ command.params['name'] = name unless name.nil?
1101
+ command.query['fields'] = fields unless fields.nil?
1102
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1103
+ execute_or_queue_command(command, &block)
1104
+ end
792
1105
 
793
1106
  protected
794
1107
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudsupport_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.25.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_v2/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2/v0.23.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2/v0.25.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2
62
62
  rdoc_options: []
63
63
  require_paths: