google-cloud-support-v2beta 0.6.0 → 0.7.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.
@@ -20,6 +20,7 @@ require "google/cloud/support/v2beta/case_attachment_service"
20
20
  require "google/cloud/support/v2beta/case_service"
21
21
  require "google/cloud/support/v2beta/comment_service"
22
22
  require "google/cloud/support/v2beta/feed_service"
23
+ require "google/cloud/support/v2beta/support_event_subscription_service"
23
24
  require "google/cloud/support/v2beta/version"
24
25
 
25
26
  module Google
@@ -109,17 +109,12 @@ module Google
109
109
  # Expressions use the following fields separated by `AND` and specified with
110
110
  # `=`:
111
111
  #
112
- # - `organization`: An organization name in the form
113
- # `organizations/<organization_id>`.
114
- # - `project`: A project name in the form `projects/<project_id>`.
115
112
  # - `state`: Can be `OPEN` or `CLOSED`.
116
113
  # - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You
117
114
  # can specify multiple values for priority using the `OR` operator. For
118
115
  # example, `priority=P1 OR priority=P2`.
119
116
  # - `creator.email`: The email address of the case creator.
120
117
  #
121
- # You must specify either `organization` or `project`.
122
- #
123
118
  # To search across `displayName`, `description`, and comments, use a global
124
119
  # restriction with no keyword or operator. For example, `"my search"`.
125
120
  #
@@ -128,8 +123,29 @@ module Google
128
123
  # format. For example, `update_time>"2020-01-01T00:00:00-05:00"`.
129
124
  # `update_time` only supports the greater than operator (`>`).
130
125
  #
126
+ # If you are using the `v2` version of the API, you must specify the case
127
+ # parent in the `parent` field. If you provide an empty `query`, all cases
128
+ # under the parent resource will be returned.
129
+ #
130
+ # If you are using the `v2beta` version of the API, you must specify the case
131
+ # parent in the `query` field using one of the two fields below, which are
132
+ # only available for `v2beta`. The `parent` field will be ignored.
133
+ #
134
+ # - `organization`: An organization name in the form
135
+ # `organizations/<organization_id>`.
136
+ # - `project`: A project name in the form `projects/<project_id>`.
137
+ #
131
138
  # Examples:
132
139
  #
140
+ # For `v2`:
141
+ #
142
+ # - `state=CLOSED`
143
+ # - `state=OPEN AND creator.email="tester@example.com"`
144
+ # - `state=OPEN AND (priority=P0 OR priority=P1)`
145
+ # - `update_time>"2020-01-01T00:00:00-05:00"`
146
+ #
147
+ # For `v2beta`:
148
+ #
133
149
  # - `organization="organizations/123456789"`
134
150
  # - `project="projects/my-project-id"`
135
151
  # - `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 V2beta
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::V2beta::SupportEventSubscription::State]
34
+ # Output only. The state of the subscription.
35
+ # @!attribute [r] failure_reason
36
+ # @return [::Google::Cloud::Support::V2beta::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 V2beta
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::V2beta::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::V2beta::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::V2beta::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-v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -97,6 +97,16 @@ files:
97
97
  - lib/google/cloud/support/v2beta/feed_service_pb.rb
98
98
  - lib/google/cloud/support/v2beta/feed_service_services_pb.rb
99
99
  - lib/google/cloud/support/v2beta/rest.rb
100
+ - lib/google/cloud/support/v2beta/support_event_subscription_pb.rb
101
+ - lib/google/cloud/support/v2beta/support_event_subscription_service.rb
102
+ - lib/google/cloud/support/v2beta/support_event_subscription_service/client.rb
103
+ - lib/google/cloud/support/v2beta/support_event_subscription_service/credentials.rb
104
+ - lib/google/cloud/support/v2beta/support_event_subscription_service/paths.rb
105
+ - lib/google/cloud/support/v2beta/support_event_subscription_service/rest.rb
106
+ - lib/google/cloud/support/v2beta/support_event_subscription_service/rest/client.rb
107
+ - lib/google/cloud/support/v2beta/support_event_subscription_service/rest/service_stub.rb
108
+ - lib/google/cloud/support/v2beta/support_event_subscription_service_pb.rb
109
+ - lib/google/cloud/support/v2beta/support_event_subscription_service_services_pb.rb
100
110
  - lib/google/cloud/support/v2beta/version.rb
101
111
  - proto_docs/README.md
102
112
  - proto_docs/google/api/client.rb
@@ -115,6 +125,8 @@ files:
115
125
  - proto_docs/google/cloud/support/v2beta/escalation.rb
116
126
  - proto_docs/google/cloud/support/v2beta/feed_item.rb
117
127
  - proto_docs/google/cloud/support/v2beta/feed_service.rb
128
+ - proto_docs/google/cloud/support/v2beta/support_event_subscription.rb
129
+ - proto_docs/google/cloud/support/v2beta/support_event_subscription_service.rb
118
130
  - proto_docs/google/protobuf/duration.rb
119
131
  - proto_docs/google/protobuf/field_mask.rb
120
132
  - proto_docs/google/protobuf/timestamp.rb