Class: Google::Apps::Events::Subscriptions::V1::Subscription

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb

Overview

A subscription to receive events about a Google Workspace resource. To learn more about subscriptions, see the Google Workspace Events API overview.

Defined Under Namespace

Modules: ErrorType, State

Instance Attribute Summary collapse

Instance Attribute Details

#authority::String (readonly)



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#create_time::Google::Protobuf::Timestamp (readonly)



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#etag::String



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#event_types::Array<::String>



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#expire_time::Google::Protobuf::Timestamp



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#name::String



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#notification_endpoint::Google::Apps::Events::Subscriptions::V1::NotificationEndpoint



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#payload_options::Google::Apps::Events::Subscriptions::V1::PayloadOptions



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#reconciling::Boolean (readonly)



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#state::Google::Apps::Events::Subscriptions::V1::Subscription::State (readonly)



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#suspension_reason::Google::Apps::Events::Subscriptions::V1::Subscription::ErrorType (readonly)



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#target_resource::String



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#ttl::Google::Protobuf::Duration



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#uid::String (readonly)



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end

#update_time::Google::Protobuf::Timestamp (readonly)



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'proto_docs/google/apps/events/subscriptions/v1/subscription_resource.rb', line 121

class Subscription
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Possible states for the subscription.
  module State
    # Default value. This value is unused.
    STATE_UNSPECIFIED = 0

    # The subscription is active and can receive and deliver events to its
    # notification endpoint.
    ACTIVE = 1

    # The subscription is unable to receive events due to an error.
    # To identify the error, see the
    # {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
    # field.
    SUSPENDED = 2

    # The subscription is deleted.
    DELETED = 3
  end

  # Possible errors for a subscription.
  module ErrorType
    # Default value. This value is unused.
    ERROR_TYPE_UNSPECIFIED = 0

    # The authorizing user has revoked the grant of one or more OAuth scopes.
    # To learn more about authorization for Google Workspace, see [Configure
    # the OAuth consent
    # screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
    USER_SCOPE_REVOKED = 1

    # The target resource for the subscription no longer exists.
    RESOURCE_DELETED = 2

    # The user that authorized the creation of the subscription no longer has
    # access to the subscription's target resource.
    USER_AUTHORIZATION_FAILURE = 3

    # The Google Workspace application doesn't have access to deliver
    # events to your subscription's notification endpoint.
    ENDPOINT_PERMISSION_DENIED = 4

    # The subscription's notification endpoint doesn't exist, or the endpoint
    # can't be found in the Google Cloud project where you created the
    # subscription.
    ENDPOINT_NOT_FOUND = 6

    # The subscription's notification endpoint failed to receive events due to
    # insufficient quota or reaching rate limiting.
    ENDPOINT_RESOURCE_EXHAUSTED = 7

    # An unidentified error has occurred.
    OTHER = 5
  end
end