Skip to content

Commit

Permalink
Regenerate workflowexecutions client (#5490)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Aug 24, 2024
1 parent e050fb4 commit 7c0d3ba
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 4 deletions.
18 changes: 18 additions & 0 deletions src/WorkflowExecutions.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'required' => true,
],
],
],'deleteExecutionHistory' => [
'path' => 'v1/{+name}:deleteExecutionHistory',
'httpMethod' => 'POST',
'parameters' => [
'name' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'exportData' => [
'path' => 'v1/{+name}:exportData',
'httpMethod' => 'GET',
Expand Down Expand Up @@ -208,6 +218,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'type' => 'string',
'required' => true,
],
'view' => [
'location' => 'query',
'type' => 'string',
],
],
],'list' => [
'path' => 'v1/{+parent}/stepEntries',
Expand Down Expand Up @@ -238,6 +252,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'location' => 'query',
'type' => 'integer',
],
'view' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
Expand Down
25 changes: 25 additions & 0 deletions src/WorkflowExecutions/DeleteExecutionHistoryRequest.php
Original file line number Diff line number Diff line change
@@ -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\WorkflowExecutions;

class DeleteExecutionHistoryRequest extends \Google\Model
{
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteExecutionHistoryRequest::class, 'Google_Service_WorkflowExecutions_DeleteExecutionHistoryRequest');
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
namespace Google\Service\WorkflowExecutions\Resource;

use Google\Service\WorkflowExecutions\CancelExecutionRequest;
use Google\Service\WorkflowExecutions\DeleteExecutionHistoryRequest;
use Google\Service\WorkflowExecutions\Execution;
use Google\Service\WorkflowExecutions\ExportDataResponse;
use Google\Service\WorkflowExecutions\ListExecutionsResponse;
use Google\Service\WorkflowExecutions\WorkflowexecutionsEmpty;

/**
* The "executions" collection of methods.
Expand Down Expand Up @@ -68,6 +70,24 @@ public function create($parent, Execution $postBody, $optParams = [])
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Execution::class);
}
/**
* Deletes all step entries for an execution.
* (executions.deleteExecutionHistory)
*
* @param string $name Required. Name of the execution for which step entries
* should be deleted. Format: projects/{project}/locations/{location}/workflows/
* {workflow}/executions/{execution}
* @param DeleteExecutionHistoryRequest $postBody
* @param array $optParams Optional parameters.
* @return WorkflowexecutionsEmpty
* @throws \Google\Service\Exception
*/
public function deleteExecutionHistory($name, DeleteExecutionHistoryRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('deleteExecutionHistory', [$params], WorkflowexecutionsEmpty::class);
}
/**
* Returns all metadata stored about an execution, excluding most data that is
* already accessible using other API methods. (executions.exportData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class ProjectsLocationsWorkflowsExecutionsStepEntries extends \Google\Service\Re
* projects/{project}/locations/{location}/workflows/{workflow}/executions/{exec
* ution}/stepEntries/{step_entry}
* @param array $optParams Optional parameters.
*
* @opt_param string view Deprecated field.
* @return StepEntry
* @throws \Google\Service\Exception
*/
Expand All @@ -53,15 +55,15 @@ public function get($name, $optParams = [])
*
* @param string $parent Required. Name of the workflow execution to list
* entries for. Format: projects/{project}/locations/{location}/workflows/{workf
* low}/executions/{execution}/stepEntries/
* low}/executions/{execution}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filters applied to the
* `[StepEntries.ListStepEntries]` results. The following fields are supported
* for filtering: `entryId`, `createTime`, `updateTime`, `routine`, `step`,
* `stepType`, `state`. For details, see AIP-160. For example, if you are using
* the Google APIs Explorer: `state="SUCCEEDED"` or `createTime>"2023-08-01" AND
* state="FAILED"`
* `stepType`, `parent`, `state`. For details, see AIP-160. For example, if you
* are using the Google APIs Explorer: `state="SUCCEEDED"` or
* `createTime>"2023-08-01" AND state="FAILED"`
* @opt_param string orderBy Optional. Comma-separated list of fields that
* specify the ordering applied to the `[StepEntries.ListStepEntries]` results.
* By default the ordering is based on ascending `entryId`. The following fields
Expand All @@ -76,6 +78,7 @@ public function get($name, $optParams = [])
* @opt_param int skip Optional. The number of step entries to skip. It can be
* used with or without a pageToken. If used with a pageToken, then it indicates
* the number of step entries to skip starting from the requested page.
* @opt_param string view Deprecated field.
* @return ListStepEntriesResponse
* @throws \Google\Service\Exception
*/
Expand Down
16 changes: 16 additions & 0 deletions src/WorkflowExecutions/StepEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class StepEntry extends \Google\Model
* @var string
*/
public $updateTime;
protected $variableDataType = VariableData::class;
protected $variableDataDataType = '';

/**
* @param string
Expand Down Expand Up @@ -212,6 +214,20 @@ public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param VariableData
*/
public function setVariableData(VariableData $variableData)
{
$this->variableData = $variableData;
}
/**
* @return VariableData
*/
public function getVariableData()
{
return $this->variableData;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
Expand Down
44 changes: 44 additions & 0 deletions src/WorkflowExecutions/VariableData.php
Original file line number Diff line number Diff line change
@@ -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\WorkflowExecutions;

class VariableData extends \Google\Model
{
/**
* @var array[]
*/
public $variables;

/**
* @param array[]
*/
public function setVariables($variables)
{
$this->variables = $variables;
}
/**
* @return array[]
*/
public function getVariables()
{
return $this->variables;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VariableData::class, 'Google_Service_WorkflowExecutions_VariableData');
25 changes: 25 additions & 0 deletions src/WorkflowExecutions/WorkflowexecutionsEmpty.php
Original file line number Diff line number Diff line change
@@ -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\WorkflowExecutions;

class WorkflowexecutionsEmpty extends \Google\Model
{
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WorkflowexecutionsEmpty::class, 'Google_Service_WorkflowExecutions_WorkflowexecutionsEmpty');

0 comments on commit 7c0d3ba

Please sign in to comment.