📂 File Browser

AgentAI/vendor/google/apiclient-services/src/AnalyticsHub
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AIInference.php
▶ Open 📄 View Source
🐘 AnalyticsHubSubscriptionInfo.php
▶ Open 📄 View Source
🐘 AnalyticshubEmpty.php
▶ Open 📄 View Source
🐘 ApproveQueryTemplateRequest.php
▶ Open 📄 View Source
🐘 AuditConfig.php
▶ Open 📄 View Source
🐘 AuditLogConfig.php
▶ Open 📄 View Source
🐘 AvroConfig.php
▶ Open 📄 View Source
🐘 BigQueryConfig.php
▶ Open 📄 View Source
🐘 BigQueryDatasetSource.php
▶ Open 📄 View Source
🐘 BigtableConfig.php
▶ Open 📄 View Source
🐘 Binding.php
▶ Open 📄 View Source
🐘 CloudStorageConfig.php
▶ Open 📄 View Source
🐘 DataExchange.php
▶ Open 📄 View Source
🐘 DataProvider.php
▶ Open 📄 View Source
🐘 DcrExchangeConfig.php
▶ Open 📄 View Source
🐘 DeadLetterPolicy.php
▶ Open 📄 View Source
🐘 DefaultExchangeConfig.php
▶ Open 📄 View Source
🐘 DestinationDataset.php
▶ Open 📄 View Source
🐘 DestinationDatasetReference.php
▶ Open 📄 View Source
🐘 DestinationPubSubSubscription.php
▶ Open 📄 View Source
🐘 ExpirationPolicy.php
▶ Open 📄 View Source
🐘 Expr.php
▶ Open 📄 View Source
🐘 GetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 GetPolicyOptions.php
▶ Open 📄 View Source
🐘 GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo.php
▶ Open 📄 View Source
🐘 GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo.php
▶ Open 📄 View Source
🐘 GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo.php
▶ Open 📄 View Source
🐘 GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo.php
▶ Open 📄 View Source
🐘 GooglePubsubV1Subscription.php
▶ Open 📄 View Source
🐘 JavaScriptUDF.php
▶ Open 📄 View Source
🐘 LinkedResource.php
▶ Open 📄 View Source
🐘 ListDataExchangesResponse.php
▶ Open 📄 View Source
🐘 ListListingsResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListOrgDataExchangesResponse.php
▶ Open 📄 View Source
🐘 ListQueryTemplatesResponse.php
▶ Open 📄 View Source
🐘 ListSharedResourceSubscriptionsResponse.php
▶ Open 📄 View Source
🐘 ListSubscriptionsResponse.php
▶ Open 📄 View Source
🐘 Listing.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 MessageTransform.php
▶ Open 📄 View Source
🐘 NoWrapper.php
▶ Open 📄 View Source
🐘 OidcToken.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 PubSubTopicSource.php
▶ Open 📄 View Source
🐘 Publisher.php
▶ Open 📄 View Source
🐘 PubsubWrapper.php
▶ Open 📄 View Source
🐘 PushConfig.php
▶ Open 📄 View Source
🐘 QueryTemplate.php
▶ Open 📄 View Source
🐘 RefreshSubscriptionRequest.php
▶ Open 📄 View Source
🐘 RefreshSubscriptionResponse.php
▶ Open 📄 View Source
🐘 Replica.php
▶ Open 📄 View Source
🐘 RestrictedExportConfig.php
▶ Open 📄 View Source
🐘 RestrictedExportPolicy.php
▶ Open 📄 View Source
🐘 RetryPolicy.php
▶ Open 📄 View Source
🐘 RevokeSubscriptionRequest.php
▶ Open 📄 View Source
🐘 RevokeSubscriptionResponse.php
▶ Open 📄 View Source
🐘 Routine.php
▶ Open 📄 View Source
🐘 SelectedResource.php
▶ Open 📄 View Source
🐘 SetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 SharingEnvironmentConfig.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 StoredProcedureConfig.php
▶ Open 📄 View Source
🐘 SubmitQueryTemplateRequest.php
▶ Open 📄 View Source
🐘 SubscribeDataExchangeRequest.php
▶ Open 📄 View Source
🐘 SubscribeDataExchangeResponse.php
▶ Open 📄 View Source
🐘 SubscribeListingRequest.php
▶ Open 📄 View Source
🐘 SubscribeListingResponse.php
▶ Open 📄 View Source
🐘 Subscription.php
▶ Open 📄 View Source
🐘 TestIamPermissionsRequest.php
▶ Open 📄 View Source
🐘 TestIamPermissionsResponse.php
▶ Open 📄 View Source
🐘 TextConfig.php
▶ Open 📄 View Source
🐘 UnstructuredInference.php
▶ Open 📄 View Source

📄 Source: Subscription.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\AnalyticsHub;

class Subscription extends \Google\Collection
{
  /**
   * Not specified.
   */
  public const RESOURCE_TYPE_SHARED_RESOURCE_TYPE_UNSPECIFIED = 'SHARED_RESOURCE_TYPE_UNSPECIFIED';
  /**
   * BigQuery Dataset Asset.
   */
  public const RESOURCE_TYPE_BIGQUERY_DATASET = 'BIGQUERY_DATASET';
  /**
   * Pub/Sub Topic Asset.
   */
  public const RESOURCE_TYPE_PUBSUB_TOPIC = 'PUBSUB_TOPIC';
  /**
   * Default value. This value is unused.
   */
  public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
  /**
   * This subscription is active and the data is accessible.
   */
  public const STATE_STATE_ACTIVE = 'STATE_ACTIVE';
  /**
   * The data referenced by this subscription is out of date and should be
   * refreshed. This can happen when a data provider adds or removes datasets.
   */
  public const STATE_STATE_STALE = 'STATE_STALE';
  /**
   * This subscription has been cancelled or revoked and the data is no longer
   * accessible.
   */
  public const STATE_STATE_INACTIVE = 'STATE_INACTIVE';
  protected $collection_key = 'linkedResources';
  protected $commercialInfoType = GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo::class;
  protected $commercialInfoDataType = '';
  /**
   * Output only. Timestamp when the subscription was created.
   *
   * @var string
   */
  public $creationTime;
  /**
   * Output only. Resource name of the source Data Exchange. e.g.
   * projects/123/locations/us/dataExchanges/456
   *
   * @var string
   */
  public $dataExchange;
  protected $destinationDatasetType = DestinationDataset::class;
  protected $destinationDatasetDataType = '';
  /**
   * Output only. Timestamp when the subscription was last modified.
   *
   * @var string
   */
  public $lastModifyTime;
  protected $linkedDatasetMapType = LinkedResource::class;
  protected $linkedDatasetMapDataType = 'map';
  protected $linkedResourcesType = LinkedResource::class;
  protected $linkedResourcesDataType = 'array';
  /**
   * Output only. Resource name of the source Listing. e.g.
   * projects/123/locations/us/dataExchanges/456/listings/789
   *
   * @var string
   */
  public $listing;
  /**
   * Output only. By default, false. If true, the Subscriber agreed to the email
   * sharing mandate that is enabled for DataExchange/Listing.
   *
   * @var bool
   */
  public $logLinkedDatasetQueryUserEmail;
  /**
   * Output only. The resource name of the subscription. e.g.
   * `projects/myproject/locations/us/subscriptions/123`.
   *
   * @var string
   */
  public $name;
  /**
   * Output only. Display name of the project of this subscription.
   *
   * @var string
   */
  public $organizationDisplayName;
  /**
   * Output only. Organization of the project this subscription belongs to.
   *
   * @var string
   */
  public $organizationId;
  /**
   * Output only. Listing shared asset type.
   *
   * @var string
   */
  public $resourceType;
  /**
   * Output only. Current state of the subscription.
   *
   * @var string
   */
  public $state;
  /**
   * Output only. Email of the subscriber.
   *
   * @var string
   */
  public $subscriberContact;

  /**
   * Output only. This is set if this is a commercial subscription i.e. if this
   * subscription was created from subscribing to a commercial listing.
   *
   * @param GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo $commercialInfo
   */
  public function setCommercialInfo(GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo $commercialInfo)
  {
    $this->commercialInfo = $commercialInfo;
  }
  /**
   * @return GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo
   */
  public function getCommercialInfo()
  {
    return $this->commercialInfo;
  }
  /**
   * Output only. Timestamp when the subscription was created.
   *
   * @param string $creationTime
   */
  public function setCreationTime($creationTime)
  {
    $this->creationTime = $creationTime;
  }
  /**
   * @return string
   */
  public function getCreationTime()
  {
    return $this->creationTime;
  }
  /**
   * Output only. Resource name of the source Data Exchange. e.g.
   * projects/123/locations/us/dataExchanges/456
   *
   * @param string $dataExchange
   */
  public function setDataExchange($dataExchange)
  {
    $this->dataExchange = $dataExchange;
  }
  /**
   * @return string
   */
  public function getDataExchange()
  {
    return $this->dataExchange;
  }
  /**
   * Optional. BigQuery destination dataset to create for the subscriber.
   *
   * @param DestinationDataset $destinationDataset
   */
  public function setDestinationDataset(DestinationDataset $destinationDataset)
  {
    $this->destinationDataset = $destinationDataset;
  }
  /**
   * @return DestinationDataset
   */
  public function getDestinationDataset()
  {
    return $this->destinationDataset;
  }
  /**
   * Output only. Timestamp when the subscription was last modified.
   *
   * @param string $lastModifyTime
   */
  public function setLastModifyTime($lastModifyTime)
  {
    $this->lastModifyTime = $lastModifyTime;
  }
  /**
   * @return string
   */
  public function getLastModifyTime()
  {
    return $this->lastModifyTime;
  }
  /**
   * Output only. Map of listing resource names to associated linked resource,
   * e.g. projects/123/locations/us/dataExchanges/456/listings/789 ->
   * projects/123/datasets/my_dataset For listing-level subscriptions, this is a
   * map of size 1. Only contains values if state == STATE_ACTIVE.
   *
   * @param LinkedResource[] $linkedDatasetMap
   */
  public function setLinkedDatasetMap($linkedDatasetMap)
  {
    $this->linkedDatasetMap = $linkedDatasetMap;
  }
  /**
   * @return LinkedResource[]
   */
  public function getLinkedDatasetMap()
  {
    return $this->linkedDatasetMap;
  }
  /**
   * Output only. Linked resources created in the subscription. Only contains
   * values if state = STATE_ACTIVE.
   *
   * @param LinkedResource[] $linkedResources
   */
  public function setLinkedResources($linkedResources)
  {
    $this->linkedResources = $linkedResources;
  }
  /**
   * @return LinkedResource[]
   */
  public function getLinkedResources()
  {
    return $this->linkedResources;
  }
  /**
   * Output only. Resource name of the source Listing. e.g.
   * projects/123/locations/us/dataExchanges/456/listings/789
   *
   * @param string $listing
   */
  public function setListing($listing)
  {
    $this->listing = $listing;
  }
  /**
   * @return string
   */
  public function getListing()
  {
    return $this->listing;
  }
  /**
   * Output only. By default, false. If true, the Subscriber agreed to the email
   * sharing mandate that is enabled for DataExchange/Listing.
   *
   * @param bool $logLinkedDatasetQueryUserEmail
   */
  public function setLogLinkedDatasetQueryUserEmail($logLinkedDatasetQueryUserEmail)
  {
    $this->logLinkedDatasetQueryUserEmail = $logLinkedDatasetQueryUserEmail;
  }
  /**
   * @return bool
   */
  public function getLogLinkedDatasetQueryUserEmail()
  {
    return $this->logLinkedDatasetQueryUserEmail;
  }
  /**
   * Output only. The resource name of the subscription. e.g.
   * `projects/myproject/locations/us/subscriptions/123`.
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Output only. Display name of the project of this subscription.
   *
   * @param string $organizationDisplayName
   */
  public function setOrganizationDisplayName($organizationDisplayName)
  {
    $this->organizationDisplayName = $organizationDisplayName;
  }
  /**
   * @return string
   */
  public function getOrganizationDisplayName()
  {
    return $this->organizationDisplayName;
  }
  /**
   * Output only. Organization of the project this subscription belongs to.
   *
   * @param string $organizationId
   */
  public function setOrganizationId($organizationId)
  {
    $this->organizationId = $organizationId;
  }
  /**
   * @return string
   */
  public function getOrganizationId()
  {
    return $this->organizationId;
  }
  /**
   * Output only. Listing shared asset type.
   *
   * Accepted values: SHARED_RESOURCE_TYPE_UNSPECIFIED, BIGQUERY_DATASET,
   * PUBSUB_TOPIC
   *
   * @param self::RESOURCE_TYPE_* $resourceType
   */
  public function setResourceType($resourceType)
  {
    $this->resourceType = $resourceType;
  }
  /**
   * @return self::RESOURCE_TYPE_*
   */
  public function getResourceType()
  {
    return $this->resourceType;
  }
  /**
   * Output only. Current state of the subscription.
   *
   * Accepted values: STATE_UNSPECIFIED, STATE_ACTIVE, STATE_STALE,
   * STATE_INACTIVE
   *
   * @param self::STATE_* $state
   */
  public function setState($state)
  {
    $this->state = $state;
  }
  /**
   * @return self::STATE_*
   */
  public function getState()
  {
    return $this->state;
  }
  /**
   * Output only. Email of the subscriber.
   *
   * @param string $subscriberContact
   */
  public function setSubscriberContact($subscriberContact)
  {
    $this->subscriberContact = $subscriberContact;
  }
  /**
   * @return string
   */
  public function getSubscriberContact()
  {
    return $this->subscriberContact;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Subscription::class, 'Google_Service_AnalyticsHub_Subscription');
← Back