Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
<?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\BigQueryConnectionService;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_BigQueryConnectionService_AuditConfig');

View File

@@ -0,0 +1,91 @@
<?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\BigQueryConnectionService;
class AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_BigQueryConnectionService_AuditLogConfig');

View File

@@ -0,0 +1,74 @@
<?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\BigQueryConnectionService;
class AwsAccessRole extends \Google\Model
{
/**
* The users AWS IAM Role that trusts the Google-owned AWS IAM user
* Connection.
*
* @var string
*/
public $iamRoleId;
/**
* A unique Google-owned and Google-generated identity for the Connection.
* This identity will be used to access the user's AWS IAM Role.
*
* @var string
*/
public $identity;
/**
* The users AWS IAM Role that trusts the Google-owned AWS IAM user
* Connection.
*
* @param string $iamRoleId
*/
public function setIamRoleId($iamRoleId)
{
$this->iamRoleId = $iamRoleId;
}
/**
* @return string
*/
public function getIamRoleId()
{
return $this->iamRoleId;
}
/**
* A unique Google-owned and Google-generated identity for the Connection.
* This identity will be used to access the user's AWS IAM Role.
*
* @param string $identity
*/
public function setIdentity($identity)
{
$this->identity = $identity;
}
/**
* @return string
*/
public function getIdentity()
{
return $this->identity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AwsAccessRole::class, 'Google_Service_BigQueryConnectionService_AwsAccessRole');

View File

@@ -0,0 +1,45 @@
<?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\BigQueryConnectionService;
class AwsProperties extends \Google\Model
{
protected $accessRoleType = AwsAccessRole::class;
protected $accessRoleDataType = '';
/**
* Authentication using Google owned service account to assume into customer's
* AWS IAM Role.
*
* @param AwsAccessRole $accessRole
*/
public function setAccessRole(AwsAccessRole $accessRole)
{
$this->accessRole = $accessRole;
}
/**
* @return AwsAccessRole
*/
public function getAccessRole()
{
return $this->accessRole;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AwsProperties::class, 'Google_Service_BigQueryConnectionService_AwsProperties');

View File

@@ -0,0 +1,188 @@
<?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\BigQueryConnectionService;
class AzureProperties extends \Google\Model
{
/**
* Output only. The name of the Azure Active Directory Application.
*
* @var string
*/
public $application;
/**
* Output only. The client id of the Azure Active Directory Application.
*
* @var string
*/
public $clientId;
/**
* The id of customer's directory that host the data.
*
* @var string
*/
public $customerTenantId;
/**
* The client ID of the user's Azure Active Directory Application used for a
* federated connection.
*
* @var string
*/
public $federatedApplicationClientId;
/**
* Output only. A unique Google-owned and Google-generated identity for the
* Connection. This identity will be used to access the user's Azure Active
* Directory Application.
*
* @var string
*/
public $identity;
/**
* Output only. The object id of the Azure Active Directory Application.
*
* @var string
*/
public $objectId;
/**
* The URL user will be redirected to after granting consent during connection
* setup.
*
* @var string
*/
public $redirectUri;
/**
* Output only. The name of the Azure Active Directory Application.
*
* @param string $application
*/
public function setApplication($application)
{
$this->application = $application;
}
/**
* @return string
*/
public function getApplication()
{
return $this->application;
}
/**
* Output only. The client id of the Azure Active Directory Application.
*
* @param string $clientId
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
/**
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* The id of customer's directory that host the data.
*
* @param string $customerTenantId
*/
public function setCustomerTenantId($customerTenantId)
{
$this->customerTenantId = $customerTenantId;
}
/**
* @return string
*/
public function getCustomerTenantId()
{
return $this->customerTenantId;
}
/**
* The client ID of the user's Azure Active Directory Application used for a
* federated connection.
*
* @param string $federatedApplicationClientId
*/
public function setFederatedApplicationClientId($federatedApplicationClientId)
{
$this->federatedApplicationClientId = $federatedApplicationClientId;
}
/**
* @return string
*/
public function getFederatedApplicationClientId()
{
return $this->federatedApplicationClientId;
}
/**
* Output only. A unique Google-owned and Google-generated identity for the
* Connection. This identity will be used to access the user's Azure Active
* Directory Application.
*
* @param string $identity
*/
public function setIdentity($identity)
{
$this->identity = $identity;
}
/**
* @return string
*/
public function getIdentity()
{
return $this->identity;
}
/**
* Output only. The object id of the Azure Active Directory Application.
*
* @param string $objectId
*/
public function setObjectId($objectId)
{
$this->objectId = $objectId;
}
/**
* @return string
*/
public function getObjectId()
{
return $this->objectId;
}
/**
* The URL user will be redirected to after granting consent during connection
* setup.
*
* @param string $redirectUri
*/
public function setRedirectUri($redirectUri)
{
$this->redirectUri = $redirectUri;
}
/**
* @return string
*/
public function getRedirectUri()
{
return $this->redirectUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AzureProperties::class, 'Google_Service_BigQueryConnectionService_AzureProperties');

View File

@@ -0,0 +1,25 @@
<?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\BigQueryConnectionService;
class BigqueryconnectionEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigqueryconnectionEmpty::class, 'Google_Service_BigQueryConnectionService_BigqueryconnectionEmpty');

View File

@@ -0,0 +1,216 @@
<?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\BigQueryConnectionService;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_BigQueryConnectionService_Binding');

View File

@@ -0,0 +1,60 @@
<?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\BigQueryConnectionService;
class CloudResourceProperties extends \Google\Model
{
/**
* Output only. The account ID of the service created for the purpose of this
* connection. The service account does not have any permissions associated
* with it when it is created. After creation, customers delegate permissions
* to the service account. When the connection is used in the context of an
* operation in BigQuery, the service account will be used to connect to the
* desired resources in GCP. The account ID is in the form of: @gcp-sa-
* bigquery-cloudresource.iam.gserviceaccount.com
*
* @var string
*/
public $serviceAccountId;
/**
* Output only. The account ID of the service created for the purpose of this
* connection. The service account does not have any permissions associated
* with it when it is created. After creation, customers delegate permissions
* to the service account. When the connection is used in the context of an
* operation in BigQuery, the service account will be used to connect to the
* desired resources in GCP. The account ID is in the form of: @gcp-sa-
* bigquery-cloudresource.iam.gserviceaccount.com
*
* @param string $serviceAccountId
*/
public function setServiceAccountId($serviceAccountId)
{
$this->serviceAccountId = $serviceAccountId;
}
/**
* @return string
*/
public function getServiceAccountId()
{
return $this->serviceAccountId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudResourceProperties::class, 'Google_Service_BigQueryConnectionService_CloudResourceProperties');

View File

@@ -0,0 +1,189 @@
<?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\BigQueryConnectionService;
class CloudSpannerProperties extends \Google\Model
{
/**
* Cloud Spanner database in the form `project/instance/database'
*
* @var string
*/
public $database;
/**
* Optional. Cloud Spanner database role for fine-grained access control. The
* Cloud Spanner admin should have provisioned the database role with
* appropriate permissions, such as `SELECT` and `INSERT`. Other users should
* only use roles provided by their Cloud Spanner admins. For more details,
* see [About fine-grained access control]
* (https://cloud.google.com/spanner/docs/fgac-about). REQUIRES: The database
* role name must start with a letter, and can only contain letters, numbers,
* and underscores.
*
* @var string
*/
public $databaseRole;
/**
* Allows setting max parallelism per query when executing on Spanner
* independent compute resources. If unspecified, default values of
* parallelism are chosen that are dependent on the Cloud Spanner instance
* configuration. REQUIRES: `use_parallelism` must be set. REQUIRES:
* `use_data_boost` must be set.
*
* @var int
*/
public $maxParallelism;
/**
* If set, the request will be executed via Spanner independent compute
* resources. REQUIRES: `use_parallelism` must be set.
*
* @var bool
*/
public $useDataBoost;
/**
* If parallelism should be used when reading from Cloud Spanner
*
* @var bool
*/
public $useParallelism;
/**
* Deprecated: prefer use_data_boost instead. If the serverless analytics
* service should be used to read data from Cloud Spanner. Note:
* `use_parallelism` must be set when using serverless analytics.
*
* @deprecated
* @var bool
*/
public $useServerlessAnalytics;
/**
* Cloud Spanner database in the form `project/instance/database'
*
* @param string $database
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
/**
* Optional. Cloud Spanner database role for fine-grained access control. The
* Cloud Spanner admin should have provisioned the database role with
* appropriate permissions, such as `SELECT` and `INSERT`. Other users should
* only use roles provided by their Cloud Spanner admins. For more details,
* see [About fine-grained access control]
* (https://cloud.google.com/spanner/docs/fgac-about). REQUIRES: The database
* role name must start with a letter, and can only contain letters, numbers,
* and underscores.
*
* @param string $databaseRole
*/
public function setDatabaseRole($databaseRole)
{
$this->databaseRole = $databaseRole;
}
/**
* @return string
*/
public function getDatabaseRole()
{
return $this->databaseRole;
}
/**
* Allows setting max parallelism per query when executing on Spanner
* independent compute resources. If unspecified, default values of
* parallelism are chosen that are dependent on the Cloud Spanner instance
* configuration. REQUIRES: `use_parallelism` must be set. REQUIRES:
* `use_data_boost` must be set.
*
* @param int $maxParallelism
*/
public function setMaxParallelism($maxParallelism)
{
$this->maxParallelism = $maxParallelism;
}
/**
* @return int
*/
public function getMaxParallelism()
{
return $this->maxParallelism;
}
/**
* If set, the request will be executed via Spanner independent compute
* resources. REQUIRES: `use_parallelism` must be set.
*
* @param bool $useDataBoost
*/
public function setUseDataBoost($useDataBoost)
{
$this->useDataBoost = $useDataBoost;
}
/**
* @return bool
*/
public function getUseDataBoost()
{
return $this->useDataBoost;
}
/**
* If parallelism should be used when reading from Cloud Spanner
*
* @param bool $useParallelism
*/
public function setUseParallelism($useParallelism)
{
$this->useParallelism = $useParallelism;
}
/**
* @return bool
*/
public function getUseParallelism()
{
return $this->useParallelism;
}
/**
* Deprecated: prefer use_data_boost instead. If the serverless analytics
* service should be used to read data from Cloud Spanner. Note:
* `use_parallelism` must be set when using serverless analytics.
*
* @deprecated
* @param bool $useServerlessAnalytics
*/
public function setUseServerlessAnalytics($useServerlessAnalytics)
{
$this->useServerlessAnalytics = $useServerlessAnalytics;
}
/**
* @deprecated
* @return bool
*/
public function getUseServerlessAnalytics()
{
return $this->useServerlessAnalytics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudSpannerProperties::class, 'Google_Service_BigQueryConnectionService_CloudSpannerProperties');

View File

@@ -0,0 +1,70 @@
<?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\BigQueryConnectionService;
class CloudSqlCredential extends \Google\Model
{
/**
* The password for the credential.
*
* @var string
*/
public $password;
/**
* The username for the credential.
*
* @var string
*/
public $username;
/**
* The password for the credential.
*
* @param string $password
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* The username for the credential.
*
* @param string $username
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudSqlCredential::class, 'Google_Service_BigQueryConnectionService_CloudSqlCredential');

View File

@@ -0,0 +1,152 @@
<?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\BigQueryConnectionService;
class CloudSqlProperties extends \Google\Model
{
/**
* Unspecified database type.
*/
public const TYPE_DATABASE_TYPE_UNSPECIFIED = 'DATABASE_TYPE_UNSPECIFIED';
/**
* Cloud SQL for PostgreSQL.
*/
public const TYPE_POSTGRES = 'POSTGRES';
/**
* Cloud SQL for MySQL.
*/
public const TYPE_MYSQL = 'MYSQL';
protected $credentialType = CloudSqlCredential::class;
protected $credentialDataType = '';
/**
* Database name.
*
* @var string
*/
public $database;
/**
* Cloud SQL instance ID in the form `project:location:instance`.
*
* @var string
*/
public $instanceId;
/**
* Output only. The account ID of the service used for the purpose of this
* connection. When the connection is used in the context of an operation in
* BigQuery, this service account will serve as the identity being used for
* connecting to the CloudSQL instance specified in this connection.
*
* @var string
*/
public $serviceAccountId;
/**
* Type of the Cloud SQL database.
*
* @var string
*/
public $type;
/**
* Input only. Cloud SQL credential.
*
* @param CloudSqlCredential $credential
*/
public function setCredential(CloudSqlCredential $credential)
{
$this->credential = $credential;
}
/**
* @return CloudSqlCredential
*/
public function getCredential()
{
return $this->credential;
}
/**
* Database name.
*
* @param string $database
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
/**
* Cloud SQL instance ID in the form `project:location:instance`.
*
* @param string $instanceId
*/
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
}
/**
* @return string
*/
public function getInstanceId()
{
return $this->instanceId;
}
/**
* Output only. The account ID of the service used for the purpose of this
* connection. When the connection is used in the context of an operation in
* BigQuery, this service account will serve as the identity being used for
* connecting to the CloudSQL instance specified in this connection.
*
* @param string $serviceAccountId
*/
public function setServiceAccountId($serviceAccountId)
{
$this->serviceAccountId = $serviceAccountId;
}
/**
* @return string
*/
public function getServiceAccountId()
{
return $this->serviceAccountId;
}
/**
* Type of the Cloud SQL database.
*
* Accepted values: DATABASE_TYPE_UNSPECIFIED, POSTGRES, MYSQL
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudSqlProperties::class, 'Google_Service_BigQueryConnectionService_CloudSqlProperties');

View File

@@ -0,0 +1,334 @@
<?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\BigQueryConnectionService;
class Connection extends \Google\Model
{
protected $awsType = AwsProperties::class;
protected $awsDataType = '';
protected $azureType = AzureProperties::class;
protected $azureDataType = '';
protected $cloudResourceType = CloudResourceProperties::class;
protected $cloudResourceDataType = '';
protected $cloudSpannerType = CloudSpannerProperties::class;
protected $cloudSpannerDataType = '';
protected $cloudSqlType = CloudSqlProperties::class;
protected $cloudSqlDataType = '';
protected $configurationType = ConnectorConfiguration::class;
protected $configurationDataType = '';
/**
* Output only. The creation timestamp of the connection.
*
* @var string
*/
public $creationTime;
/**
* User provided description.
*
* @var string
*/
public $description;
/**
* User provided display name for the connection.
*
* @var string
*/
public $friendlyName;
/**
* Output only. True, if credential is configured for this connection.
*
* @var bool
*/
public $hasCredential;
/**
* Optional. The Cloud KMS key that is used for credentials encryption. If
* omitted, internal Google owned encryption keys are used. Example: `projects
* /[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
* `
*
* @var string
*/
public $kmsKeyName;
/**
* Output only. The last update timestamp of the connection.
*
* @var string
*/
public $lastModifiedTime;
/**
* Output only. The resource name of the connection in the form of:
* `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
*
* @var string
*/
public $name;
protected $salesforceDataCloudType = SalesforceDataCloudProperties::class;
protected $salesforceDataCloudDataType = '';
protected $sparkType = SparkProperties::class;
protected $sparkDataType = '';
/**
* Amazon Web Services (AWS) properties.
*
* @param AwsProperties $aws
*/
public function setAws(AwsProperties $aws)
{
$this->aws = $aws;
}
/**
* @return AwsProperties
*/
public function getAws()
{
return $this->aws;
}
/**
* Azure properties.
*
* @param AzureProperties $azure
*/
public function setAzure(AzureProperties $azure)
{
$this->azure = $azure;
}
/**
* @return AzureProperties
*/
public function getAzure()
{
return $this->azure;
}
/**
* Cloud Resource properties.
*
* @param CloudResourceProperties $cloudResource
*/
public function setCloudResource(CloudResourceProperties $cloudResource)
{
$this->cloudResource = $cloudResource;
}
/**
* @return CloudResourceProperties
*/
public function getCloudResource()
{
return $this->cloudResource;
}
/**
* Cloud Spanner properties.
*
* @param CloudSpannerProperties $cloudSpanner
*/
public function setCloudSpanner(CloudSpannerProperties $cloudSpanner)
{
$this->cloudSpanner = $cloudSpanner;
}
/**
* @return CloudSpannerProperties
*/
public function getCloudSpanner()
{
return $this->cloudSpanner;
}
/**
* Cloud SQL properties.
*
* @param CloudSqlProperties $cloudSql
*/
public function setCloudSql(CloudSqlProperties $cloudSql)
{
$this->cloudSql = $cloudSql;
}
/**
* @return CloudSqlProperties
*/
public function getCloudSql()
{
return $this->cloudSql;
}
/**
* Optional. Connector configuration.
*
* @param ConnectorConfiguration $configuration
*/
public function setConfiguration(ConnectorConfiguration $configuration)
{
$this->configuration = $configuration;
}
/**
* @return ConnectorConfiguration
*/
public function getConfiguration()
{
return $this->configuration;
}
/**
* Output only. The creation timestamp of the connection.
*
* @param string $creationTime
*/
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
/**
* @return string
*/
public function getCreationTime()
{
return $this->creationTime;
}
/**
* User provided description.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* User provided display name for the connection.
*
* @param string $friendlyName
*/
public function setFriendlyName($friendlyName)
{
$this->friendlyName = $friendlyName;
}
/**
* @return string
*/
public function getFriendlyName()
{
return $this->friendlyName;
}
/**
* Output only. True, if credential is configured for this connection.
*
* @param bool $hasCredential
*/
public function setHasCredential($hasCredential)
{
$this->hasCredential = $hasCredential;
}
/**
* @return bool
*/
public function getHasCredential()
{
return $this->hasCredential;
}
/**
* Optional. The Cloud KMS key that is used for credentials encryption. If
* omitted, internal Google owned encryption keys are used. Example: `projects
* /[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
* `
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* Output only. The last update timestamp of the connection.
*
* @param string $lastModifiedTime
*/
public function setLastModifiedTime($lastModifiedTime)
{
$this->lastModifiedTime = $lastModifiedTime;
}
/**
* @return string
*/
public function getLastModifiedTime()
{
return $this->lastModifiedTime;
}
/**
* Output only. The resource name of the connection in the form of:
* `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Salesforce DataCloud properties. This field is intended for use
* only by Salesforce partner projects. This field contains properties for
* your Salesforce DataCloud connection.
*
* @param SalesforceDataCloudProperties $salesforceDataCloud
*/
public function setSalesforceDataCloud(SalesforceDataCloudProperties $salesforceDataCloud)
{
$this->salesforceDataCloud = $salesforceDataCloud;
}
/**
* @return SalesforceDataCloudProperties
*/
public function getSalesforceDataCloud()
{
return $this->salesforceDataCloud;
}
/**
* Spark properties.
*
* @param SparkProperties $spark
*/
public function setSpark(SparkProperties $spark)
{
$this->spark = $spark;
}
/**
* @return SparkProperties
*/
public function getSpark()
{
return $this->spark;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Connection::class, 'Google_Service_BigQueryConnectionService_Connection');

View File

@@ -0,0 +1,46 @@
<?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\BigQueryConnectionService;
class ConnectionCredential extends \Google\Model
{
/**
* @var CloudSqlCredential
*/
public $cloudSql;
protected $cloudSqlType = CloudSqlCredential::class;
protected $cloudSqlDataType = '';
/**
* @param CloudSqlCredential
*/
public function setCloudSql(CloudSqlCredential $cloudSql)
{
$this->cloudSql = $cloudSql;
}
/**
* @return CloudSqlCredential
*/
public function getCloudSql()
{
return $this->cloudSql;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectionCredential::class, 'Google_Service_BigQueryConnectionService_ConnectionCredential');

View File

@@ -0,0 +1,122 @@
<?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\BigQueryConnectionService;
class ConnectorConfiguration extends \Google\Model
{
protected $assetType = ConnectorConfigurationAsset::class;
protected $assetDataType = '';
protected $authenticationType = ConnectorConfigurationAuthentication::class;
protected $authenticationDataType = '';
/**
* Required. Immutable. The ID of the Connector these parameters are
* configured for.
*
* @var string
*/
public $connectorId;
protected $endpointType = ConnectorConfigurationEndpoint::class;
protected $endpointDataType = '';
protected $networkType = ConnectorConfigurationNetwork::class;
protected $networkDataType = '';
/**
* Data asset.
*
* @param ConnectorConfigurationAsset $asset
*/
public function setAsset(ConnectorConfigurationAsset $asset)
{
$this->asset = $asset;
}
/**
* @return ConnectorConfigurationAsset
*/
public function getAsset()
{
return $this->asset;
}
/**
* Client authentication.
*
* @param ConnectorConfigurationAuthentication $authentication
*/
public function setAuthentication(ConnectorConfigurationAuthentication $authentication)
{
$this->authentication = $authentication;
}
/**
* @return ConnectorConfigurationAuthentication
*/
public function getAuthentication()
{
return $this->authentication;
}
/**
* Required. Immutable. The ID of the Connector these parameters are
* configured for.
*
* @param string $connectorId
*/
public function setConnectorId($connectorId)
{
$this->connectorId = $connectorId;
}
/**
* @return string
*/
public function getConnectorId()
{
return $this->connectorId;
}
/**
* Specifies how to reach the remote system this connection is pointing to.
*
* @param ConnectorConfigurationEndpoint $endpoint
*/
public function setEndpoint(ConnectorConfigurationEndpoint $endpoint)
{
$this->endpoint = $endpoint;
}
/**
* @return ConnectorConfigurationEndpoint
*/
public function getEndpoint()
{
return $this->endpoint;
}
/**
* Networking configuration.
*
* @param ConnectorConfigurationNetwork $network
*/
public function setNetwork(ConnectorConfigurationNetwork $network)
{
$this->network = $network;
}
/**
* @return ConnectorConfigurationNetwork
*/
public function getNetwork()
{
return $this->network;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectorConfiguration::class, 'Google_Service_BigQueryConnectionService_ConnectorConfiguration');

View File

@@ -0,0 +1,74 @@
<?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\BigQueryConnectionService;
class ConnectorConfigurationAsset extends \Google\Model
{
/**
* Name of the database.
*
* @var string
*/
public $database;
/**
* Full Google Cloud resource name -
* https://cloud.google.com/apis/design/resource_names#full_resource_name.
* Example: `//library.googleapis.com/shelves/shelf1/books/book2`
*
* @var string
*/
public $googleCloudResource;
/**
* Name of the database.
*
* @param string $database
*/
public function setDatabase($database)
{
$this->database = $database;
}
/**
* @return string
*/
public function getDatabase()
{
return $this->database;
}
/**
* Full Google Cloud resource name -
* https://cloud.google.com/apis/design/resource_names#full_resource_name.
* Example: `//library.googleapis.com/shelves/shelf1/books/book2`
*
* @param string $googleCloudResource
*/
public function setGoogleCloudResource($googleCloudResource)
{
$this->googleCloudResource = $googleCloudResource;
}
/**
* @return string
*/
public function getGoogleCloudResource()
{
return $this->googleCloudResource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectorConfigurationAsset::class, 'Google_Service_BigQueryConnectionService_ConnectorConfigurationAsset');

View File

@@ -0,0 +1,74 @@
<?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\BigQueryConnectionService;
class ConnectorConfigurationAuthentication extends \Google\Model
{
/**
* Output only. Google-managed service account associated with this
* connection, e.g., `service-{project_number}@gcp-sa-
* bigqueryconnection.iam.gserviceaccount.com`. BigQuery jobs using this
* connection will act as `service_account` identity while connecting to the
* datasource.
*
* @var string
*/
public $serviceAccount;
protected $usernamePasswordType = ConnectorConfigurationUsernamePassword::class;
protected $usernamePasswordDataType = '';
/**
* Output only. Google-managed service account associated with this
* connection, e.g., `service-{project_number}@gcp-sa-
* bigqueryconnection.iam.gserviceaccount.com`. BigQuery jobs using this
* connection will act as `service_account` identity while connecting to the
* datasource.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Username/password authentication.
*
* @param ConnectorConfigurationUsernamePassword $usernamePassword
*/
public function setUsernamePassword(ConnectorConfigurationUsernamePassword $usernamePassword)
{
$this->usernamePassword = $usernamePassword;
}
/**
* @return ConnectorConfigurationUsernamePassword
*/
public function getUsernamePassword()
{
return $this->usernamePassword;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectorConfigurationAuthentication::class, 'Google_Service_BigQueryConnectionService_ConnectorConfigurationAuthentication');

View File

@@ -0,0 +1,52 @@
<?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\BigQueryConnectionService;
class ConnectorConfigurationEndpoint extends \Google\Model
{
/**
* Host and port in a format of `hostname:port` as defined in
* https://www.ietf.org/rfc/rfc3986.html#section-3.2.2 and
* https://www.ietf.org/rfc/rfc3986.html#section-3.2.3.
*
* @var string
*/
public $hostPort;
/**
* Host and port in a format of `hostname:port` as defined in
* https://www.ietf.org/rfc/rfc3986.html#section-3.2.2 and
* https://www.ietf.org/rfc/rfc3986.html#section-3.2.3.
*
* @param string $hostPort
*/
public function setHostPort($hostPort)
{
$this->hostPort = $hostPort;
}
/**
* @return string
*/
public function getHostPort()
{
return $this->hostPort;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectorConfigurationEndpoint::class, 'Google_Service_BigQueryConnectionService_ConnectorConfigurationEndpoint');

View File

@@ -0,0 +1,44 @@
<?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\BigQueryConnectionService;
class ConnectorConfigurationNetwork extends \Google\Model
{
protected $privateServiceConnectType = ConnectorConfigurationPrivateServiceConnect::class;
protected $privateServiceConnectDataType = '';
/**
* Private Service Connect networking configuration.
*
* @param ConnectorConfigurationPrivateServiceConnect $privateServiceConnect
*/
public function setPrivateServiceConnect(ConnectorConfigurationPrivateServiceConnect $privateServiceConnect)
{
$this->privateServiceConnect = $privateServiceConnect;
}
/**
* @return ConnectorConfigurationPrivateServiceConnect
*/
public function getPrivateServiceConnect()
{
return $this->privateServiceConnect;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectorConfigurationNetwork::class, 'Google_Service_BigQueryConnectionService_ConnectorConfigurationNetwork');

View File

@@ -0,0 +1,50 @@
<?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\BigQueryConnectionService;
class ConnectorConfigurationPrivateServiceConnect extends \Google\Model
{
/**
* Required. Network Attachment name in the format of `projects/{project}/regi
* ons/{region}/networkAttachments/{networkattachment}`.
*
* @var string
*/
public $networkAttachment;
/**
* Required. Network Attachment name in the format of `projects/{project}/regi
* ons/{region}/networkAttachments/{networkattachment}`.
*
* @param string $networkAttachment
*/
public function setNetworkAttachment($networkAttachment)
{
$this->networkAttachment = $networkAttachment;
}
/**
* @return string
*/
public function getNetworkAttachment()
{
return $this->networkAttachment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectorConfigurationPrivateServiceConnect::class, 'Google_Service_BigQueryConnectionService_ConnectorConfigurationPrivateServiceConnect');

View File

@@ -0,0 +1,76 @@
<?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\BigQueryConnectionService;
class ConnectorConfigurationSecret extends \Google\Model
{
public const SECRET_TYPE_SECRET_TYPE_UNSPECIFIED = 'SECRET_TYPE_UNSPECIFIED';
public const SECRET_TYPE_PLAINTEXT = 'PLAINTEXT';
/**
* Input only. Secret as plaintext.
*
* @var string
*/
public $plaintext;
/**
* Output only. Indicates type of secret. Can be used to check type of stored
* secret value even if it's `INPUT_ONLY`.
*
* @var string
*/
public $secretType;
/**
* Input only. Secret as plaintext.
*
* @param string $plaintext
*/
public function setPlaintext($plaintext)
{
$this->plaintext = $plaintext;
}
/**
* @return string
*/
public function getPlaintext()
{
return $this->plaintext;
}
/**
* Output only. Indicates type of secret. Can be used to check type of stored
* secret value even if it's `INPUT_ONLY`.
*
* Accepted values: SECRET_TYPE_UNSPECIFIED, PLAINTEXT
*
* @param self::SECRET_TYPE_* $secretType
*/
public function setSecretType($secretType)
{
$this->secretType = $secretType;
}
/**
* @return self::SECRET_TYPE_*
*/
public function getSecretType()
{
return $this->secretType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectorConfigurationSecret::class, 'Google_Service_BigQueryConnectionService_ConnectorConfigurationSecret');

View File

@@ -0,0 +1,66 @@
<?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\BigQueryConnectionService;
class ConnectorConfigurationUsernamePassword extends \Google\Model
{
protected $passwordType = ConnectorConfigurationSecret::class;
protected $passwordDataType = '';
/**
* Required. Username.
*
* @var string
*/
public $username;
/**
* Required. Password.
*
* @param ConnectorConfigurationSecret $password
*/
public function setPassword(ConnectorConfigurationSecret $password)
{
$this->password = $password;
}
/**
* @return ConnectorConfigurationSecret
*/
public function getPassword()
{
return $this->password;
}
/**
* Required. Username.
*
* @param string $username
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectorConfigurationUsernamePassword::class, 'Google_Service_BigQueryConnectionService_ConnectorConfigurationUsernamePassword');

View File

@@ -0,0 +1,122 @@
<?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\BigQueryConnectionService;
class Expr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_BigQueryConnectionService_Expr');

View File

@@ -0,0 +1,45 @@
<?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\BigQueryConnectionService;
class GetIamPolicyRequest extends \Google\Model
{
protected $optionsType = GetPolicyOptions::class;
protected $optionsDataType = '';
/**
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
* `GetIamPolicy`.
*
* @param GetPolicyOptions $options
*/
public function setOptions(GetPolicyOptions $options)
{
$this->options = $options;
}
/**
* @return GetPolicyOptions
*/
public function getOptions()
{
return $this->options;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetIamPolicyRequest::class, 'Google_Service_BigQueryConnectionService_GetIamPolicyRequest');

View File

@@ -0,0 +1,68 @@
<?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\BigQueryConnectionService;
class GetPolicyOptions extends \Google\Model
{
/**
* Optional. The maximum policy version that will be used to format the
* policy. Valid values are 0, 1, and 3. Requests specifying an invalid value
* will be rejected. Requests for policies with any conditional role bindings
* must specify version 3. Policies with no conditional role bindings may
* specify any valid value or leave the field unset. The policy in the
* response might use the policy version that you specified, or it might use a
* lower policy version. For example, if you specify version 3, but the policy
* has no conditional role bindings, the response uses version 1. To learn
* which resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $requestedPolicyVersion;
/**
* Optional. The maximum policy version that will be used to format the
* policy. Valid values are 0, 1, and 3. Requests specifying an invalid value
* will be rejected. Requests for policies with any conditional role bindings
* must specify version 3. Policies with no conditional role bindings may
* specify any valid value or leave the field unset. The policy in the
* response might use the policy version that you specified, or it might use a
* lower policy version. For example, if you specify version 3, but the policy
* has no conditional role bindings, the response uses version 1. To learn
* which resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $requestedPolicyVersion
*/
public function setRequestedPolicyVersion($requestedPolicyVersion)
{
$this->requestedPolicyVersion = $requestedPolicyVersion;
}
/**
* @return int
*/
public function getRequestedPolicyVersion()
{
return $this->requestedPolicyVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetPolicyOptions::class, 'Google_Service_BigQueryConnectionService_GetPolicyOptions');

View File

@@ -0,0 +1,67 @@
<?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\BigQueryConnectionService;
class ListConnectionsResponse extends \Google\Collection
{
protected $collection_key = 'connections';
protected $connectionsType = Connection::class;
protected $connectionsDataType = 'array';
/**
* Next page token.
*
* @var string
*/
public $nextPageToken;
/**
* List of connections.
*
* @param Connection[] $connections
*/
public function setConnections($connections)
{
$this->connections = $connections;
}
/**
* @return Connection[]
*/
public function getConnections()
{
return $this->connections;
}
/**
* Next page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListConnectionsResponse::class, 'Google_Service_BigQueryConnectionService_ListConnectionsResponse');

View File

@@ -0,0 +1,50 @@
<?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\BigQueryConnectionService;
class MetastoreServiceConfig extends \Google\Model
{
/**
* Optional. Resource name of an existing Dataproc Metastore service. Example:
* * `projects/[project_id]/locations/[region]/services/[service_id]`
*
* @var string
*/
public $metastoreService;
/**
* Optional. Resource name of an existing Dataproc Metastore service. Example:
* * `projects/[project_id]/locations/[region]/services/[service_id]`
*
* @param string $metastoreService
*/
public function setMetastoreService($metastoreService)
{
$this->metastoreService = $metastoreService;
}
/**
* @return string
*/
public function getMetastoreService()
{
return $this->metastoreService;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetastoreServiceConfig::class, 'Google_Service_BigQueryConnectionService_MetastoreServiceConfig');

View File

@@ -0,0 +1,165 @@
<?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\BigQueryConnectionService;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @var string
*/
public $etag;
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $version;
/**
* Specifies cloud audit logging configuration for this policy.
*
* @param AuditConfig[] $auditConfigs
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal. The
* `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of
* these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
* different roles to `user:alice@example.com`, and not to any other
* principal, then you can add another 1,450 principals to the `bindings` in
* the `Policy`.
*
* @param Binding[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_BigQueryConnectionService_Policy');

View File

@@ -0,0 +1,33 @@
<?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\BigQueryConnectionService\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $bigqueryconnectionService = new Google\Service\BigQueryConnectionService(...);
* $projects = $bigqueryconnectionService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_BigQueryConnectionService_Resource_Projects');

View File

@@ -0,0 +1,33 @@
<?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\BigQueryConnectionService\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $bigqueryconnectionService = new Google\Service\BigQueryConnectionService(...);
* $locations = $bigqueryconnectionService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_BigQueryConnectionService_Resource_ProjectsLocations');

View File

@@ -0,0 +1,193 @@
<?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\BigQueryConnectionService\Resource;
use Google\Service\BigQueryConnectionService\BigqueryconnectionEmpty;
use Google\Service\BigQueryConnectionService\Connection;
use Google\Service\BigQueryConnectionService\GetIamPolicyRequest;
use Google\Service\BigQueryConnectionService\ListConnectionsResponse;
use Google\Service\BigQueryConnectionService\Policy;
use Google\Service\BigQueryConnectionService\SetIamPolicyRequest;
use Google\Service\BigQueryConnectionService\TestIamPermissionsRequest;
use Google\Service\BigQueryConnectionService\TestIamPermissionsResponse;
/**
* The "connections" collection of methods.
* Typical usage is:
* <code>
* $bigqueryconnectionService = new Google\Service\BigQueryConnectionService(...);
* $connections = $bigqueryconnectionService->projects_locations_connections;
* </code>
*/
class ProjectsLocationsConnections extends \Google\Service\Resource
{
/**
* Creates a new connection. (connections.create)
*
* @param string $parent Required. Parent resource name. Must be in the format
* `projects/{project_id}/locations/{location_id}`
* @param Connection $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string connectionId Optional. Connection id that should be
* assigned to the created connection.
* @return Connection
* @throws \Google\Service\Exception
*/
public function create($parent, Connection $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Connection::class);
}
/**
* Deletes connection and associated credential. (connections.delete)
*
* @param string $name Required. Name of the deleted connection, for example:
* `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
* @param array $optParams Optional parameters.
* @return BigqueryconnectionEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigqueryconnectionEmpty::class);
}
/**
* Returns specified connection. (connections.get)
*
* @param string $name Required. Name of the requested connection, for example:
* `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
* @param array $optParams Optional parameters.
* @return Connection
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Connection::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (connections.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Returns a list of connections in the given project.
* (connections.listProjectsLocationsConnections)
*
* @param string $parent Required. Parent resource name. Must be in the form:
* `projects/{project_id}/locations/{location_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Required. Page size.
* @opt_param string pageToken Page token.
* @return ListConnectionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsConnections($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListConnectionsResponse::class);
}
/**
* Updates the specified connection. For security reasons, also resets
* credential if connection properties are in the update field mask.
* (connections.patch)
*
* @param string $name Required. Name of the connection to update, for example:
* `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
* @param Connection $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Update mask for the connection fields
* to be updated.
* @return Connection
* @throws \Google\Service\Exception
*/
public function patch($name, Connection $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Connection::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (connections.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (connections.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnections::class, 'Google_Service_BigQueryConnectionService_Resource_ProjectsLocationsConnections');

View File

@@ -0,0 +1,94 @@
<?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\BigQueryConnectionService;
class SalesforceDataCloudProperties extends \Google\Model
{
/**
* Output only. A unique Google-owned and Google-generated service account
* identity for the connection.
*
* @var string
*/
public $identity;
/**
* The URL to the user's Salesforce DataCloud instance.
*
* @var string
*/
public $instanceUri;
/**
* The ID of the user's Salesforce tenant.
*
* @var string
*/
public $tenantId;
/**
* Output only. A unique Google-owned and Google-generated service account
* identity for the connection.
*
* @param string $identity
*/
public function setIdentity($identity)
{
$this->identity = $identity;
}
/**
* @return string
*/
public function getIdentity()
{
return $this->identity;
}
/**
* The URL to the user's Salesforce DataCloud instance.
*
* @param string $instanceUri
*/
public function setInstanceUri($instanceUri)
{
$this->instanceUri = $instanceUri;
}
/**
* @return string
*/
public function getInstanceUri()
{
return $this->instanceUri;
}
/**
* The ID of the user's Salesforce tenant.
*
* @param string $tenantId
*/
public function setTenantId($tenantId)
{
$this->tenantId = $tenantId;
}
/**
* @return string
*/
public function getTenantId()
{
return $this->tenantId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SalesforceDataCloudProperties::class, 'Google_Service_BigQueryConnectionService_SalesforceDataCloudProperties');

View File

@@ -0,0 +1,72 @@
<?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\BigQueryConnectionService;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @var string
*/
public $updateMask;
/**
* REQUIRED: The complete policy to be applied to the `resource`. The size of
* the policy is limited to a few 10s of KB. An empty policy is a valid policy
* but certain Google Cloud services (such as Projects) might reject them.
*
* @param Policy $policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_BigQueryConnectionService_SetIamPolicyRequest');

View File

@@ -0,0 +1,52 @@
<?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\BigQueryConnectionService;
class SparkHistoryServerConfig extends \Google\Model
{
/**
* Optional. Resource name of an existing Dataproc Cluster to act as a Spark
* History Server for the connection. Example: *
* `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
*
* @var string
*/
public $dataprocCluster;
/**
* Optional. Resource name of an existing Dataproc Cluster to act as a Spark
* History Server for the connection. Example: *
* `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
*
* @param string $dataprocCluster
*/
public function setDataprocCluster($dataprocCluster)
{
$this->dataprocCluster = $dataprocCluster;
}
/**
* @return string
*/
public function getDataprocCluster()
{
return $this->dataprocCluster;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SparkHistoryServerConfig::class, 'Google_Service_BigQueryConnectionService_SparkHistoryServerConfig');

View File

@@ -0,0 +1,96 @@
<?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\BigQueryConnectionService;
class SparkProperties extends \Google\Model
{
protected $metastoreServiceConfigType = MetastoreServiceConfig::class;
protected $metastoreServiceConfigDataType = '';
/**
* Output only. The account ID of the service created for the purpose of this
* connection. The service account does not have any permissions associated
* with it when it is created. After creation, customers delegate permissions
* to the service account. When the connection is used in the context of a
* stored procedure for Apache Spark in BigQuery, the service account is used
* to connect to the desired resources in Google Cloud. The account ID is in
* the form of: bqcx--@gcp-sa-bigquery-consp.iam.gserviceaccount.com
*
* @var string
*/
public $serviceAccountId;
protected $sparkHistoryServerConfigType = SparkHistoryServerConfig::class;
protected $sparkHistoryServerConfigDataType = '';
/**
* Optional. Dataproc Metastore Service configuration for the connection.
*
* @param MetastoreServiceConfig $metastoreServiceConfig
*/
public function setMetastoreServiceConfig(MetastoreServiceConfig $metastoreServiceConfig)
{
$this->metastoreServiceConfig = $metastoreServiceConfig;
}
/**
* @return MetastoreServiceConfig
*/
public function getMetastoreServiceConfig()
{
return $this->metastoreServiceConfig;
}
/**
* Output only. The account ID of the service created for the purpose of this
* connection. The service account does not have any permissions associated
* with it when it is created. After creation, customers delegate permissions
* to the service account. When the connection is used in the context of a
* stored procedure for Apache Spark in BigQuery, the service account is used
* to connect to the desired resources in Google Cloud. The account ID is in
* the form of: bqcx--@gcp-sa-bigquery-consp.iam.gserviceaccount.com
*
* @param string $serviceAccountId
*/
public function setServiceAccountId($serviceAccountId)
{
$this->serviceAccountId = $serviceAccountId;
}
/**
* @return string
*/
public function getServiceAccountId()
{
return $this->serviceAccountId;
}
/**
* Optional. Spark History Server configuration for the connection.
*
* @param SparkHistoryServerConfig $sparkHistoryServerConfig
*/
public function setSparkHistoryServerConfig(SparkHistoryServerConfig $sparkHistoryServerConfig)
{
$this->sparkHistoryServerConfig = $sparkHistoryServerConfig;
}
/**
* @return SparkHistoryServerConfig
*/
public function getSparkHistoryServerConfig()
{
return $this->sparkHistoryServerConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SparkProperties::class, 'Google_Service_BigQueryConnectionService_SparkProperties');

View File

@@ -0,0 +1,55 @@
<?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\BigQueryConnectionService;
class TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as `*` or `storage.*`) are not allowed. For more
* information see [IAM
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
*
* @var string[]
*/
public $permissions;
/**
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as `*` or `storage.*`) are not allowed. For more
* information see [IAM
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsRequest::class, 'Google_Service_BigQueryConnectionService_TestIamPermissionsRequest');

View File

@@ -0,0 +1,51 @@
<?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\BigQueryConnectionService;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @var string[]
*/
public $permissions;
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsResponse::class, 'Google_Service_BigQueryConnectionService_TestIamPermissionsResponse');