@@ -49,6 +49,12 @@ class Subscription extends \Google\Collection
4949 * consent#choose-scopes).
5050 */
5151 public const SUSPENSION_REASON_USER_SCOPE_REVOKED = 'USER_SCOPE_REVOKED ' ;
52+ /**
53+ * The domain administrator has revoked the grant of one or more OAuth scopes
54+ * for the app. [Developer
55+ * Preview](https://developers.google.com/workspace/preview).
56+ */
57+ public const SUSPENSION_REASON_APP_SCOPE_REVOKED = 'APP_SCOPE_REVOKED ' ;
5258 /**
5359 * The target resource for the subscription no longer exists.
5460 */
@@ -58,6 +64,12 @@ class Subscription extends \Google\Collection
5864 * access to the subscription's target resource.
5965 */
6066 public const SUSPENSION_REASON_USER_AUTHORIZATION_FAILURE = 'USER_AUTHORIZATION_FAILURE ' ;
67+ /**
68+ * The app that authorized the creation of the subscription no longer has
69+ * access to the subscription's target resource. [Developer
70+ * Preview](https://developers.google.com/workspace/preview).
71+ */
72+ public const SUSPENSION_REASON_APP_AUTHORIZATION_FAILURE = 'APP_AUTHORIZATION_FAILURE ' ;
6173 /**
6274 * The Google Workspace application doesn't have access to deliver events to
6375 * your subscription's notification endpoint.
@@ -147,6 +159,16 @@ class Subscription extends \Google\Collection
147159 * @var bool
148160 */
149161 public $ reconciling ;
162+ /**
163+ * Output only. The service account that was used to authorize the creation of
164+ * the subscription. This service account must be owned by the same Google
165+ * Cloud project where you create this subscription. Format:
166+ * `projects/{project_id}/serviceAccounts/{service_account_id}` [Developer
167+ * Preview](https://developers.google.com/workspace/preview).
168+ *
169+ * @var string
170+ */
171+ public $ serviceAccountAuthority ;
150172 /**
151173 * Output only. The state of the subscription. Determines whether the
152174 * subscription can receive events and deliver them to the notification
@@ -196,6 +218,17 @@ class Subscription extends \Google\Collection
196218 * @var string
197219 */
198220 public $ updateTime ;
221+ /**
222+ * Output only. The user who authorized the creation of the subscription. The
223+ * user must be able to view the `target_resource`. For Google Workspace
224+ * users, the `{user}` value is the [`user.id`](https://developers.google.com/
225+ * workspace/admin/directory/reference/rest/v1/users#User.FIELDS.id) field
226+ * from the Directory API. Format: `users/{user}` [Developer
227+ * Preview](https://developers.google.com/workspace/preview).
228+ *
229+ * @var string
230+ */
231+ public $ userAuthority ;
199232
200233 /**
201234 * Output only. The user who authorized the creation of the subscription. When
@@ -365,6 +398,26 @@ public function getReconciling()
365398 {
366399 return $ this ->reconciling ;
367400 }
401+ /**
402+ * Output only. The service account that was used to authorize the creation of
403+ * the subscription. This service account must be owned by the same Google
404+ * Cloud project where you create this subscription. Format:
405+ * `projects/{project_id}/serviceAccounts/{service_account_id}` [Developer
406+ * Preview](https://developers.google.com/workspace/preview).
407+ *
408+ * @param string $serviceAccountAuthority
409+ */
410+ public function setServiceAccountAuthority ($ serviceAccountAuthority )
411+ {
412+ $ this ->serviceAccountAuthority = $ serviceAccountAuthority ;
413+ }
414+ /**
415+ * @return string
416+ */
417+ public function getServiceAccountAuthority ()
418+ {
419+ return $ this ->serviceAccountAuthority ;
420+ }
368421 /**
369422 * Output only. The state of the subscription. Determines whether the
370423 * subscription can receive events and deliver them to the notification
@@ -391,8 +444,9 @@ public function getState()
391444 * method.
392445 *
393446 * Accepted values: ERROR_TYPE_UNSPECIFIED, USER_SCOPE_REVOKED,
394- * RESOURCE_DELETED, USER_AUTHORIZATION_FAILURE, ENDPOINT_PERMISSION_DENIED,
395- * ENDPOINT_NOT_FOUND, ENDPOINT_RESOURCE_EXHAUSTED, OTHER
447+ * APP_SCOPE_REVOKED, RESOURCE_DELETED, USER_AUTHORIZATION_FAILURE,
448+ * APP_AUTHORIZATION_FAILURE, ENDPOINT_PERMISSION_DENIED, ENDPOINT_NOT_FOUND,
449+ * ENDPOINT_RESOURCE_EXHAUSTED, OTHER
396450 *
397451 * @param self::SUSPENSION_REASON_* $suspensionReason
398452 */
@@ -480,6 +534,27 @@ public function getUpdateTime()
480534 {
481535 return $ this ->updateTime ;
482536 }
537+ /**
538+ * Output only. The user who authorized the creation of the subscription. The
539+ * user must be able to view the `target_resource`. For Google Workspace
540+ * users, the `{user}` value is the [`user.id`](https://developers.google.com/
541+ * workspace/admin/directory/reference/rest/v1/users#User.FIELDS.id) field
542+ * from the Directory API. Format: `users/{user}` [Developer
543+ * Preview](https://developers.google.com/workspace/preview).
544+ *
545+ * @param string $userAuthority
546+ */
547+ public function setUserAuthority ($ userAuthority )
548+ {
549+ $ this ->userAuthority = $ userAuthority ;
550+ }
551+ /**
552+ * @return string
553+ */
554+ public function getUserAuthority ()
555+ {
556+ return $ this ->userAuthority ;
557+ }
483558}
484559
485560// Adding a class alias for backwards compatibility with the previous class name.
0 commit comments