Skip to content

Commit

Permalink
Regenerate datafusion client (#5282)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Jun 23, 2024
1 parent dde286a commit f90e9a0
Show file tree
Hide file tree
Showing 7 changed files with 238 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/DataFusion.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'location' => 'query',
'type' => 'string',
],
'includeUnrevealedLocations' => [
'location' => 'query',
'type' => 'boolean',
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
Expand Down
16 changes: 16 additions & 0 deletions src/DataFusion/Instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ class Instance extends \Google\Collection
* @var string[]
*/
public $labels;
protected $maintenancePolicyType = MaintenancePolicy::class;
protected $maintenancePolicyDataType = '';
/**
* @var string
*/
Expand Down Expand Up @@ -385,6 +387,20 @@ public function getLabels()
{
return $this->labels;
}
/**
* @param MaintenancePolicy
*/
public function setMaintenancePolicy(MaintenancePolicy $maintenancePolicy)
{
$this->maintenancePolicy = $maintenancePolicy;
}
/**
* @return MaintenancePolicy
*/
public function getMaintenancePolicy()
{
return $this->maintenancePolicy;
}
/**
* @param string
*/
Expand Down
58 changes: 58 additions & 0 deletions src/DataFusion/MaintenancePolicy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?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\DataFusion;

class MaintenancePolicy extends \Google\Model
{
protected $maintenanceExclusionWindowType = TimeWindow::class;
protected $maintenanceExclusionWindowDataType = '';
protected $maintenanceWindowType = MaintenanceWindow::class;
protected $maintenanceWindowDataType = '';

/**
* @param TimeWindow
*/
public function setMaintenanceExclusionWindow(TimeWindow $maintenanceExclusionWindow)
{
$this->maintenanceExclusionWindow = $maintenanceExclusionWindow;
}
/**
* @return TimeWindow
*/
public function getMaintenanceExclusionWindow()
{
return $this->maintenanceExclusionWindow;
}
/**
* @param MaintenanceWindow
*/
public function setMaintenanceWindow(MaintenanceWindow $maintenanceWindow)
{
$this->maintenanceWindow = $maintenanceWindow;
}
/**
* @return MaintenanceWindow
*/
public function getMaintenanceWindow()
{
return $this->maintenanceWindow;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaintenancePolicy::class, 'Google_Service_DataFusion_MaintenancePolicy');
42 changes: 42 additions & 0 deletions src/DataFusion/MaintenanceWindow.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?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\DataFusion;

class MaintenanceWindow extends \Google\Model
{
protected $recurringTimeWindowType = RecurringTimeWindow::class;
protected $recurringTimeWindowDataType = '';

/**
* @param RecurringTimeWindow
*/
public function setRecurringTimeWindow(RecurringTimeWindow $recurringTimeWindow)
{
$this->recurringTimeWindow = $recurringTimeWindow;
}
/**
* @return RecurringTimeWindow
*/
public function getRecurringTimeWindow()
{
return $this->recurringTimeWindow;
}
}

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

class RecurringTimeWindow extends \Google\Model
{
/**
* @var string
*/
public $recurrence;
protected $windowType = TimeWindow::class;
protected $windowDataType = '';

/**
* @param string
*/
public function setRecurrence($recurrence)
{
$this->recurrence = $recurrence;
}
/**
* @return string
*/
public function getRecurrence()
{
return $this->recurrence;
}
/**
* @param TimeWindow
*/
public function setWindow(TimeWindow $window)
{
$this->window = $window;
}
/**
* @return TimeWindow
*/
public function getWindow()
{
return $this->window;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RecurringTimeWindow::class, 'Google_Service_DataFusion_RecurringTimeWindow');
2 changes: 0 additions & 2 deletions src/DataFusion/Resource/ProjectsLocations.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public function get($name, $optParams = [])
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param bool includeUnrevealedLocations If true, the returned list will
* include locations which are not yet revealed.
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
Expand Down
62 changes: 62 additions & 0 deletions src/DataFusion/TimeWindow.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?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\DataFusion;

class TimeWindow extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;

/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}

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

0 comments on commit f90e9a0

Please sign in to comment.