google-cloud-support-v2 1.9.0 → 1.10.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.
@@ -0,0 +1,47 @@
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
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Support
24
+ module V2
25
+ module SupportEventSubscriptionService
26
+ # Credentials for the SupportEventSubscriptionService API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/cloud-platform"
30
+ ]
31
+ self.env_vars = [
32
+ "GOOGLE_CLOUD_CREDENTIALS",
33
+ "GOOGLE_CLOUD_KEYFILE",
34
+ "GCLOUD_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
36
+ "GOOGLE_CLOUD_KEYFILE_JSON",
37
+ "GCLOUD_KEYFILE_JSON"
38
+ ]
39
+ self.paths = [
40
+ "~/.config/google_cloud/application_default_credentials.json"
41
+ ]
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,64 @@
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 Cloud
22
+ module Support
23
+ module V2
24
+ module SupportEventSubscriptionService
25
+ # Path helper methods for the SupportEventSubscriptionService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Organization resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `organizations/{organization}`
33
+ #
34
+ # @param organization [String]
35
+ #
36
+ # @return [::String]
37
+ def organization_path organization:
38
+ "organizations/#{organization}"
39
+ end
40
+
41
+ ##
42
+ # Create a fully-qualified SupportEventSubscription resource string.
43
+ #
44
+ # The resource will be in the following format:
45
+ #
46
+ # `organizations/{organization}/supportEventSubscriptions/{support_event_subscription}`
47
+ #
48
+ # @param organization [String]
49
+ # @param support_event_subscription [String]
50
+ #
51
+ # @return [::String]
52
+ def support_event_subscription_path organization:, support_event_subscription:
53
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
54
+
55
+ "organizations/#{organization}/supportEventSubscriptions/#{support_event_subscription}"
56
+ end
57
+
58
+ extend self
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,49 @@
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
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/support/v2/version"
24
+
25
+ require "google/cloud/support/v2/support_event_subscription_service/credentials"
26
+ require "google/cloud/support/v2/support_event_subscription_service/paths"
27
+ require "google/cloud/support/v2/support_event_subscription_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Support
32
+ module V2
33
+ ##
34
+ # Service for managing customer support event subscriptions.
35
+ #
36
+ # @example Load this service and instantiate a gRPC client
37
+ #
38
+ # require "google/cloud/support/v2/support_event_subscription_service"
39
+ # client = ::Google::Cloud::Support::V2::SupportEventSubscriptionService::Client.new
40
+ #
41
+ module SupportEventSubscriptionService
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "support_event_subscription_service", "helpers.rb"
49
+ require "google/cloud/support/v2/support_event_subscription_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/support/v2/support_event_subscription_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/cloud/support/v2/support_event_subscription_pb'
12
+ require 'google/protobuf/field_mask_pb'
13
+
14
+
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
+
17
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
18
+ pool.add_serialized_file(descriptor_data)
19
+
20
+ module Google
21
+ module Cloud
22
+ module Support
23
+ module V2
24
+ CreateSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2.CreateSupportEventSubscriptionRequest").msgclass
25
+ GetSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2.GetSupportEventSubscriptionRequest").msgclass
26
+ ListSupportEventSubscriptionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2.ListSupportEventSubscriptionsRequest").msgclass
27
+ ListSupportEventSubscriptionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2.ListSupportEventSubscriptionsResponse").msgclass
28
+ UpdateSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2.UpdateSupportEventSubscriptionRequest").msgclass
29
+ DeleteSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2.DeleteSupportEventSubscriptionRequest").msgclass
30
+ UndeleteSupportEventSubscriptionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.support.v2.UndeleteSupportEventSubscriptionRequest").msgclass
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,55 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/support/v2/support_event_subscription_service.proto for package 'Google.Cloud.Support.V2'
3
+ # Original file comments:
4
+ # Copyright 2026 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/support/v2/support_event_subscription_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Support
25
+ module V2
26
+ module SupportEventSubscriptionService
27
+ # Service for managing customer support event subscriptions.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.support.v2.SupportEventSubscriptionService'
35
+
36
+ # Creates a support event subscription for an organization.
37
+ rpc :CreateSupportEventSubscription, ::Google::Cloud::Support::V2::CreateSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2::SupportEventSubscription
38
+ # Gets a support event subscription.
39
+ rpc :GetSupportEventSubscription, ::Google::Cloud::Support::V2::GetSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2::SupportEventSubscription
40
+ # Lists support event subscriptions.
41
+ rpc :ListSupportEventSubscriptions, ::Google::Cloud::Support::V2::ListSupportEventSubscriptionsRequest, ::Google::Cloud::Support::V2::ListSupportEventSubscriptionsResponse
42
+ # Updates a support event subscription.
43
+ rpc :UpdateSupportEventSubscription, ::Google::Cloud::Support::V2::UpdateSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2::SupportEventSubscription
44
+ # Soft deletes a support event subscription.
45
+ rpc :DeleteSupportEventSubscription, ::Google::Cloud::Support::V2::DeleteSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2::SupportEventSubscription
46
+ # Undeletes a support event subscription.
47
+ rpc :UndeleteSupportEventSubscription, ::Google::Cloud::Support::V2::UndeleteSupportEventSubscriptionRequest, ::Google::Cloud::Support::V2::SupportEventSubscription
48
+ end
49
+
50
+ Stub = Service.rpc_stub_class
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Support
23
23
  module V2
24
- VERSION = "1.9.0"
24
+ VERSION = "1.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -19,6 +19,7 @@
19
19
  require "google/cloud/support/v2/case_attachment_service"
20
20
  require "google/cloud/support/v2/case_service"
21
21
  require "google/cloud/support/v2/comment_service"
22
+ require "google/cloud/support/v2/support_event_subscription_service"
22
23
  require "google/cloud/support/v2/version"
23
24
 
24
25
  module Google
@@ -105,17 +105,12 @@ module Google
105
105
  # Expressions use the following fields separated by `AND` and specified with
106
106
  # `=`:
107
107
  #
108
- # - `organization`: An organization name in the form
109
- # `organizations/<organization_id>`.
110
- # - `project`: A project name in the form `projects/<project_id>`.
111
108
  # - `state`: Can be `OPEN` or `CLOSED`.
112
109
  # - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You
113
110
  # can specify multiple values for priority using the `OR` operator. For
114
111
  # example, `priority=P1 OR priority=P2`.
115
112
  # - `creator.email`: The email address of the case creator.
116
113
  #
117
- # You must specify either `organization` or `project`.
118
- #
119
114
  # To search across `displayName`, `description`, and comments, use a global
120
115
  # restriction with no keyword or operator. For example, `"my search"`.
121
116
  #
@@ -124,8 +119,29 @@ module Google
124
119
  # format. For example, `update_time>"2020-01-01T00:00:00-05:00"`.
125
120
  # `update_time` only supports the greater than operator (`>`).
126
121
  #
122
+ # If you are using the `v2` version of the API, you must specify the case
123
+ # parent in the `parent` field. If you provide an empty `query`, all cases
124
+ # under the parent resource will be returned.
125
+ #
126
+ # If you are using the `v2beta` version of the API, you must specify the case
127
+ # parent in the `query` field using one of the two fields below, which are
128
+ # only available for `v2beta`. The `parent` field will be ignored.
129
+ #
130
+ # - `organization`: An organization name in the form
131
+ # `organizations/<organization_id>`.
132
+ # - `project`: A project name in the form `projects/<project_id>`.
133
+ #
127
134
  # Examples:
128
135
  #
136
+ # For `v2`:
137
+ #
138
+ # - `state=CLOSED`
139
+ # - `state=OPEN AND creator.email="tester@example.com"`
140
+ # - `state=OPEN AND (priority=P0 OR priority=P1)`
141
+ # - `update_time>"2020-01-01T00:00:00-05:00"`
142
+ #
143
+ # For `v2beta`:
144
+ #
129
145
  # - `organization="organizations/123456789"`
130
146
  # - `project="projects/my-project-id"`
131
147
  # - `project="projects/123456789"`
@@ -0,0 +1,93 @@
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 Cloud
22
+ module Support
23
+ module V2
24
+ # A support event subscription.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Identifier. The resource name of the support event subscription.
28
+ # @!attribute [rw] pub_sub_topic
29
+ # @return [::String]
30
+ # Required. The name of the Pub/Sub topic to publish notifications to.
31
+ # Format: projects/\\{project}/topics/\\{topic}
32
+ # @!attribute [r] state
33
+ # @return [::Google::Cloud::Support::V2::SupportEventSubscription::State]
34
+ # Output only. The state of the subscription.
35
+ # @!attribute [r] failure_reason
36
+ # @return [::Google::Cloud::Support::V2::SupportEventSubscription::FailureReason]
37
+ # Output only. Reason why subscription is failing. State of subscription
38
+ # must be FAILING in order for this to have a value.
39
+ # @!attribute [r] create_time
40
+ # @return [::Google::Protobuf::Timestamp]
41
+ # Output only. The time at which the subscription was created.
42
+ # @!attribute [r] update_time
43
+ # @return [::Google::Protobuf::Timestamp]
44
+ # Output only. The time at which the subscription was last updated.
45
+ # @!attribute [r] delete_time
46
+ # @return [::Google::Protobuf::Timestamp]
47
+ # Output only. The time at which the subscription was deleted.
48
+ # @!attribute [r] purge_time
49
+ # @return [::Google::Protobuf::Timestamp]
50
+ # Output only. The time at which the subscription will be purged.
51
+ class SupportEventSubscription
52
+ include ::Google::Protobuf::MessageExts
53
+ extend ::Google::Protobuf::MessageExts::ClassMethods
54
+
55
+ # The state of the subscription.
56
+ module State
57
+ # Unspecified state.
58
+ STATE_UNSPECIFIED = 0
59
+
60
+ # Subscription is active and working.
61
+ WORKING = 1
62
+
63
+ # Subscription is failing. Notifications cannot be published for some
64
+ # reason.
65
+ FAILING = 2
66
+
67
+ # Subscription has been deleted and is pending purge. Notifications are not
68
+ # sent for deleted subscriptions. Deleted subscriptions are purged after
69
+ # their `purge_time` has passed.
70
+ DELETED = 3
71
+ end
72
+
73
+ # The reason why the subscription is failing.
74
+ module FailureReason
75
+ # Unspecified failure reason.
76
+ FAILURE_REASON_UNSPECIFIED = 0
77
+
78
+ # The service account (i.e.
79
+ # cloud-support-apievents@system.gserviceaccount.com) lacks the permission
80
+ # to publish to the customer's Pub/Sub topic.
81
+ PERMISSION_DENIED = 1
82
+
83
+ # The specified Pub/Sub topic does not exist.
84
+ TOPIC_NOT_FOUND = 2
85
+
86
+ # Message failed to publish due to a system-side error.
87
+ OTHER = 3
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,136 @@
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 Cloud
22
+ module Support
23
+ module V2
24
+ # Request message for CreateSupportEventSubscription.
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. The parent resource name where the support event subscription
28
+ # will be created. Format: organizations/\\{organization_id}
29
+ # @!attribute [rw] support_event_subscription
30
+ # @return [::Google::Cloud::Support::V2::SupportEventSubscription]
31
+ # Required. The Pub/Sub configuration to create.
32
+ class CreateSupportEventSubscriptionRequest
33
+ include ::Google::Protobuf::MessageExts
34
+ extend ::Google::Protobuf::MessageExts::ClassMethods
35
+ end
36
+
37
+ # Request message for GetSupportEventSubscription.
38
+ # @!attribute [rw] name
39
+ # @return [::String]
40
+ # Required. The name of the support event subscription to retrieve.
41
+ # Format:
42
+ # organizations/\\{organization_id}/supportEventSubscriptions/\\{subscription_id}
43
+ class GetSupportEventSubscriptionRequest
44
+ include ::Google::Protobuf::MessageExts
45
+ extend ::Google::Protobuf::MessageExts::ClassMethods
46
+ end
47
+
48
+ # Request message for ListSupportEventSubscriptions.
49
+ # @!attribute [rw] parent
50
+ # @return [::String]
51
+ # Required. The fully qualified name of the Cloud resource to list support
52
+ # event subscriptions under. Format: organizations/\\{organization_id}
53
+ # @!attribute [rw] filter
54
+ # @return [::String]
55
+ # Optional. Filter expression based on AIP-160.
56
+ # Supported fields:
57
+ # - pub_sub_topic
58
+ # - state
59
+ #
60
+ # Examples:
61
+ # - `pub_sub_topic="projects/example-project/topics/example-topic"`
62
+ # - `state=WORKING`
63
+ # - `pub_sub_topic="projects/example-project/topics/example-topic" AND
64
+ # state=WORKING`
65
+ # @!attribute [rw] show_deleted
66
+ # @return [::Boolean]
67
+ # Optional. Whether to show deleted subscriptions. By default, deleted
68
+ # subscriptions are not returned.
69
+ # @!attribute [rw] page_size
70
+ # @return [::Integer]
71
+ # Optional. The maximum number of support event subscriptions to return.
72
+ # @!attribute [rw] page_token
73
+ # @return [::String]
74
+ # Optional. A token identifying the page of results to return. If
75
+ # unspecified, the first page is retrieved.
76
+ #
77
+ # When paginating, all other parameters provided to
78
+ # `ListSupportEventSubscriptions` must match the call that provided the page
79
+ # token.
80
+ class ListSupportEventSubscriptionsRequest
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
+ end
84
+
85
+ # Response message for ListSupportEventSubscriptions.
86
+ # @!attribute [rw] support_event_subscriptions
87
+ # @return [::Array<::Google::Cloud::Support::V2::SupportEventSubscription>]
88
+ # The support event subscriptions.
89
+ # @!attribute [rw] next_page_token
90
+ # @return [::String]
91
+ # A token, which can be sent as `page_token` to retrieve the next page.
92
+ # If this field is omitted, there are no subsequent pages.
93
+ class ListSupportEventSubscriptionsResponse
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
+ end
97
+
98
+ # Request message for UpdateSupportEventSubscription.
99
+ # @!attribute [rw] support_event_subscription
100
+ # @return [::Google::Cloud::Support::V2::SupportEventSubscription]
101
+ # Required. The support event subscription to update.
102
+ # The `name` field is used to identify the configuration to update.
103
+ # @!attribute [rw] update_mask
104
+ # @return [::Google::Protobuf::FieldMask]
105
+ # Optional. The list of fields to update. The only supported value is
106
+ # pub_sub_topic.
107
+ class UpdateSupportEventSubscriptionRequest
108
+ include ::Google::Protobuf::MessageExts
109
+ extend ::Google::Protobuf::MessageExts::ClassMethods
110
+ end
111
+
112
+ # Request message for DeleteSupportEventSubscription.
113
+ # @!attribute [rw] name
114
+ # @return [::String]
115
+ # Required. The name of the support event subscription to delete.
116
+ # Format:
117
+ # organizations/\\{organization_id}/supportEventSubscriptions/\\{subscription_id}
118
+ class DeleteSupportEventSubscriptionRequest
119
+ include ::Google::Protobuf::MessageExts
120
+ extend ::Google::Protobuf::MessageExts::ClassMethods
121
+ end
122
+
123
+ # Request message for UndeleteSupportEventSubscription.
124
+ # @!attribute [rw] name
125
+ # @return [::String]
126
+ # Required. The name of the support event subscription to undelete.
127
+ # Format:
128
+ # organizations/\\{organization_id}/supportEventSubscriptions/\\{subscription_id}
129
+ class UndeleteSupportEventSubscriptionRequest
130
+ include ::Google::Protobuf::MessageExts
131
+ extend ::Google::Protobuf::MessageExts::ClassMethods
132
+ end
133
+ end
134
+ end
135
+ end
136
+ 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.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -75,6 +75,13 @@ files:
75
75
  - lib/google/cloud/support/v2/comment_service_pb.rb
76
76
  - lib/google/cloud/support/v2/comment_service_services_pb.rb
77
77
  - lib/google/cloud/support/v2/escalation_pb.rb
78
+ - lib/google/cloud/support/v2/support_event_subscription_pb.rb
79
+ - lib/google/cloud/support/v2/support_event_subscription_service.rb
80
+ - lib/google/cloud/support/v2/support_event_subscription_service/client.rb
81
+ - lib/google/cloud/support/v2/support_event_subscription_service/credentials.rb
82
+ - lib/google/cloud/support/v2/support_event_subscription_service/paths.rb
83
+ - lib/google/cloud/support/v2/support_event_subscription_service_pb.rb
84
+ - lib/google/cloud/support/v2/support_event_subscription_service_services_pb.rb
78
85
  - lib/google/cloud/support/v2/version.rb
79
86
  - proto_docs/README.md
80
87
  - proto_docs/google/api/client.rb
@@ -89,6 +96,8 @@ files:
89
96
  - proto_docs/google/cloud/support/v2/comment.rb
90
97
  - proto_docs/google/cloud/support/v2/comment_service.rb
91
98
  - proto_docs/google/cloud/support/v2/escalation.rb
99
+ - proto_docs/google/cloud/support/v2/support_event_subscription.rb
100
+ - proto_docs/google/cloud/support/v2/support_event_subscription_service.rb
92
101
  - proto_docs/google/protobuf/duration.rb
93
102
  - proto_docs/google/protobuf/field_mask.rb
94
103
  - proto_docs/google/protobuf/timestamp.rb