Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

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\Datapipelines\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $datapipelinesService = new Google\Service\Datapipelines(...);
* $projects = $datapipelinesService->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_Datapipelines_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\Datapipelines\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $datapipelinesService = new Google\Service\Datapipelines(...);
* $locations = $datapipelinesService->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_Datapipelines_Resource_ProjectsLocations');

View File

@@ -0,0 +1,195 @@
<?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\Datapipelines\Resource;
use Google\Service\Datapipelines\GoogleCloudDatapipelinesV1ListPipelinesResponse;
use Google\Service\Datapipelines\GoogleCloudDatapipelinesV1Pipeline;
use Google\Service\Datapipelines\GoogleCloudDatapipelinesV1RunPipelineRequest;
use Google\Service\Datapipelines\GoogleCloudDatapipelinesV1RunPipelineResponse;
use Google\Service\Datapipelines\GoogleCloudDatapipelinesV1StopPipelineRequest;
use Google\Service\Datapipelines\GoogleProtobufEmpty;
/**
* The "pipelines" collection of methods.
* Typical usage is:
* <code>
* $datapipelinesService = new Google\Service\Datapipelines(...);
* $pipelines = $datapipelinesService->projects_locations_pipelines;
* </code>
*/
class ProjectsLocationsPipelines extends \Google\Service\Resource
{
/**
* Creates a pipeline. For a batch pipeline, you can pass scheduler information.
* Data Pipelines uses the scheduler information to create an internal scheduler
* that runs jobs periodically. If the internal scheduler is not configured, you
* can use RunPipeline to run jobs. (pipelines.create)
*
* @param string $parent Required. The location name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID`.
* @param GoogleCloudDatapipelinesV1Pipeline $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudDatapipelinesV1Pipeline
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudDatapipelinesV1Pipeline $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudDatapipelinesV1Pipeline::class);
}
/**
* Deletes a pipeline. If a scheduler job is attached to the pipeline, it will
* be deleted. (pipelines.delete)
*
* @param string $name Required. The pipeline name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Looks up a single pipeline. Returns a "NOT_FOUND" error if no such pipeline
* exists. Returns a "FORBIDDEN" error if the caller doesn't have permission to
* access it. (pipelines.get)
*
* @param string $name Required. The pipeline name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`.
* @param array $optParams Optional parameters.
* @return GoogleCloudDatapipelinesV1Pipeline
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudDatapipelinesV1Pipeline::class);
}
/**
* Lists pipelines. Returns a "FORBIDDEN" error if the caller doesn't have
* permission to access it. (pipelines.listProjectsLocationsPipelines)
*
* @param string $parent Required. The location name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter An expression for filtering the results of the
* request. If unspecified, all pipelines will be returned. Multiple filters can
* be applied and must be comma separated. Fields eligible for filtering are: +
* `type`: The type of the pipeline (streaming or batch). Allowed values are
* `ALL`, `BATCH`, and `STREAMING`. + `status`: The activity status of the
* pipeline. Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For
* example, to limit results to active batch processing pipelines:
* type:BATCH,status:ACTIVE
* @opt_param int pageSize The maximum number of entities to return. The service
* may return fewer than this value, even if there are additional pages. If
* unspecified, the max limit is yet to be determined by the backend
* implementation.
* @opt_param string pageToken A page token, received from a previous
* `ListPipelines` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListPipelines` must match the
* call that provided the page token.
* @return GoogleCloudDatapipelinesV1ListPipelinesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsPipelines($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudDatapipelinesV1ListPipelinesResponse::class);
}
/**
* Updates a pipeline. If successful, the updated Pipeline is returned. Returns
* `NOT_FOUND` if the pipeline doesn't exist. If UpdatePipeline does not return
* successfully, you can retry the UpdatePipeline request until you receive a
* successful response. (pipelines.patch)
*
* @param string $name The pipeline name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`. *
* `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-),
* colons (:), and periods (.). For more information, see [Identifying
* projects](https://cloud.google.com/resource-manager/docs/creating-managing-
* projects#identifying_projects). * `LOCATION_ID` is the canonical ID for the
* pipeline's location. The list of available locations can be obtained by
* calling `google.cloud.location.Locations.ListLocations`. Note that the Data
* Pipelines service is not available in all regions. It depends on Cloud
* Scheduler, an App Engine application, so it's only available in [App Engine
* regions](https://cloud.google.com/about/locations#region). * `PIPELINE_ID` is
* the ID of the pipeline. Must be unique for the selected project and location.
* @param GoogleCloudDatapipelinesV1Pipeline $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to be updated.
* @return GoogleCloudDatapipelinesV1Pipeline
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudDatapipelinesV1Pipeline $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudDatapipelinesV1Pipeline::class);
}
/**
* Creates a job for the specified pipeline directly. You can use this method
* when the internal scheduler is not configured and you want to trigger the job
* directly or through an external system. Returns a "NOT_FOUND" error if the
* pipeline doesn't exist. Returns a "FORBIDDEN" error if the user doesn't have
* permission to access the pipeline or run jobs for the pipeline.
* (pipelines.run)
*
* @param string $name Required. The pipeline name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`.
* @param GoogleCloudDatapipelinesV1RunPipelineRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudDatapipelinesV1RunPipelineResponse
* @throws \Google\Service\Exception
*/
public function run($name, GoogleCloudDatapipelinesV1RunPipelineRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('run', [$params], GoogleCloudDatapipelinesV1RunPipelineResponse::class);
}
/**
* Freezes pipeline execution permanently. If there's a corresponding scheduler
* entry, it's deleted, and the pipeline state is changed to "ARCHIVED".
* However, pipeline metadata is retained. (pipelines.stop)
*
* @param string $name Required. The pipeline name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`.
* @param GoogleCloudDatapipelinesV1StopPipelineRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudDatapipelinesV1Pipeline
* @throws \Google\Service\Exception
*/
public function stop($name, GoogleCloudDatapipelinesV1StopPipelineRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params], GoogleCloudDatapipelinesV1Pipeline::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsPipelines::class, 'Google_Service_Datapipelines_Resource_ProjectsLocationsPipelines');

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\Datapipelines\Resource;
use Google\Service\Datapipelines\GoogleCloudDatapipelinesV1ListJobsResponse;
/**
* The "jobs" collection of methods.
* Typical usage is:
* <code>
* $datapipelinesService = new Google\Service\Datapipelines(...);
* $jobs = $datapipelinesService->projects_locations_pipelines_jobs;
* </code>
*/
class ProjectsLocationsPipelinesJobs extends \Google\Service\Resource
{
/**
* Lists jobs for a given pipeline. Throws a "FORBIDDEN" error if the caller
* doesn't have permission to access it.
* (jobs.listProjectsLocationsPipelinesJobs)
*
* @param string $parent Required. The pipeline name. For example:
* `projects/PROJECT_ID/locations/LOCATION_ID/pipelines/PIPELINE_ID`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of entities to return. The service
* may return fewer than this value, even if there are additional pages. If
* unspecified, the max limit will be determined by the backend implementation.
* @opt_param string pageToken A page token, received from a previous `ListJobs`
* call. Provide this to retrieve the subsequent page. When paginating, all
* other parameters provided to `ListJobs` must match the call that provided the
* page token.
* @return GoogleCloudDatapipelinesV1ListJobsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsPipelinesJobs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudDatapipelinesV1ListJobsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsPipelinesJobs::class, 'Google_Service_Datapipelines_Resource_ProjectsLocationsPipelinesJobs');

View File

@@ -0,0 +1,73 @@
<?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\Datapipelines\Resource;
use Google\Service\Datapipelines\GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse;
use Google\Service\Datapipelines\GoogleCloudDatapipelinesV1TransformDescription;
/**
* The "transformDescriptions" collection of methods.
* Typical usage is:
* <code>
* $datapipelinesService = new Google\Service\Datapipelines(...);
* $transformDescriptions = $datapipelinesService->transformDescriptions;
* </code>
*/
class ProjectsLocationsTransformDescriptions extends \Google\Service\Resource
{
/**
* Gets transform descriptions in a batch, associated with a list of provided
* uniform resource names. (transformDescriptions.batchGet)
*
* @param string $parent Required. The project and location shared by all
* transform descriptions being retrieved, formatted as
* "projects/{project}/locations/{location}".
* @param array $optParams Optional parameters.
*
* @opt_param string names Optional. The names of the transform descriptions
* being retrieved, formatted as "projects/{project}/locations/{location}/transf
* ormdescriptions/{transform_description}". If no name is provided, all of the
* transform descriptions will be returned.
* @return GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse
*/
public function batchGet($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('batchGet', [$params], GoogleCloudDatapipelinesV1BatchGetTransformDescriptionsResponse::class);
}
/**
* Gets the transform description associated with the provided uniform resource
* name. (transformDescriptions.get)
*
* @param string $name Required. The full name formatted as "projects/{your-
* project}/locations/{google-cloud-region}/transformdescriptions/{uniform-
* resource-name}".
* @param array $optParams Optional parameters.
* @return GoogleCloudDatapipelinesV1TransformDescription
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudDatapipelinesV1TransformDescription::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTransformDescriptions::class, 'Google_Service_Datapipelines_Resource_ProjectsLocationsTransformDescriptions');