Skip to content

Regenerate servicenetworking client #6634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions src/ServiceNetworking/BatchingConfigProto.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\ServiceNetworking;

class BatchingConfigProto extends \Google\Model
{
protected $batchDescriptorType = BatchingDescriptorProto::class;
protected $batchDescriptorDataType = '';
protected $thresholdsType = BatchingSettingsProto::class;
protected $thresholdsDataType = '';

/**
* @param BatchingDescriptorProto
*/
public function setBatchDescriptor(BatchingDescriptorProto $batchDescriptor)
{
$this->batchDescriptor = $batchDescriptor;
}
/**
* @return BatchingDescriptorProto
*/
public function getBatchDescriptor()
{
return $this->batchDescriptor;
}
/**
* @param BatchingSettingsProto
*/
public function setThresholds(BatchingSettingsProto $thresholds)
{
$this->thresholds = $thresholds;
}
/**
* @return BatchingSettingsProto
*/
public function getThresholds()
{
return $this->thresholds;
}
}

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

class BatchingDescriptorProto extends \Google\Collection
{
protected $collection_key = 'discriminatorFields';
/**
* @var string
*/
public $batchedField;
/**
* @var string[]
*/
public $discriminatorFields;
/**
* @var string
*/
public $subresponseField;

/**
* @param string
*/
public function setBatchedField($batchedField)
{
$this->batchedField = $batchedField;
}
/**
* @return string
*/
public function getBatchedField()
{
return $this->batchedField;
}
/**
* @param string[]
*/
public function setDiscriminatorFields($discriminatorFields)
{
$this->discriminatorFields = $discriminatorFields;
}
/**
* @return string[]
*/
public function getDiscriminatorFields()
{
return $this->discriminatorFields;
}
/**
* @param string
*/
public function setSubresponseField($subresponseField)
{
$this->subresponseField = $subresponseField;
}
/**
* @return string
*/
public function getSubresponseField()
{
return $this->subresponseField;
}
}

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

class BatchingSettingsProto extends \Google\Model
{
/**
* @var string
*/
public $delayThreshold;
/**
* @var int
*/
public $elementCountLimit;
/**
* @var int
*/
public $elementCountThreshold;
/**
* @var int
*/
public $flowControlByteLimit;
/**
* @var int
*/
public $flowControlElementLimit;
/**
* @var string
*/
public $flowControlLimitExceededBehavior;
/**
* @var int
*/
public $requestByteLimit;
/**
* @var string
*/
public $requestByteThreshold;

/**
* @param string
*/
public function setDelayThreshold($delayThreshold)
{
$this->delayThreshold = $delayThreshold;
}
/**
* @return string
*/
public function getDelayThreshold()
{
return $this->delayThreshold;
}
/**
* @param int
*/
public function setElementCountLimit($elementCountLimit)
{
$this->elementCountLimit = $elementCountLimit;
}
/**
* @return int
*/
public function getElementCountLimit()
{
return $this->elementCountLimit;
}
/**
* @param int
*/
public function setElementCountThreshold($elementCountThreshold)
{
$this->elementCountThreshold = $elementCountThreshold;
}
/**
* @return int
*/
public function getElementCountThreshold()
{
return $this->elementCountThreshold;
}
/**
* @param int
*/
public function setFlowControlByteLimit($flowControlByteLimit)
{
$this->flowControlByteLimit = $flowControlByteLimit;
}
/**
* @return int
*/
public function getFlowControlByteLimit()
{
return $this->flowControlByteLimit;
}
/**
* @param int
*/
public function setFlowControlElementLimit($flowControlElementLimit)
{
$this->flowControlElementLimit = $flowControlElementLimit;
}
/**
* @return int
*/
public function getFlowControlElementLimit()
{
return $this->flowControlElementLimit;
}
/**
* @param string
*/
public function setFlowControlLimitExceededBehavior($flowControlLimitExceededBehavior)
{
$this->flowControlLimitExceededBehavior = $flowControlLimitExceededBehavior;
}
/**
* @return string
*/
public function getFlowControlLimitExceededBehavior()
{
return $this->flowControlLimitExceededBehavior;
}
/**
* @param int
*/
public function setRequestByteLimit($requestByteLimit)
{
$this->requestByteLimit = $requestByteLimit;
}
/**
* @return int
*/
public function getRequestByteLimit()
{
return $this->requestByteLimit;
}
/**
* @param string
*/
public function setRequestByteThreshold($requestByteThreshold)
{
$this->requestByteThreshold = $requestByteThreshold;
}
/**
* @return string
*/
public function getRequestByteThreshold()
{
return $this->requestByteThreshold;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchingSettingsProto::class, 'Google_Service_ServiceNetworking_BatchingSettingsProto');
16 changes: 16 additions & 0 deletions src/ServiceNetworking/MethodSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class MethodSettings extends \Google\Collection
* @var string[]
*/
public $autoPopulatedFields;
protected $batchingType = BatchingConfigProto::class;
protected $batchingDataType = '';
protected $longRunningType = LongRunning::class;
protected $longRunningDataType = '';
/**
Expand All @@ -45,6 +47,20 @@ public function getAutoPopulatedFields()
{
return $this->autoPopulatedFields;
}
/**
* @param BatchingConfigProto
*/
public function setBatching(BatchingConfigProto $batching)
{
$this->batching = $batching;
}
/**
* @return BatchingConfigProto
*/
public function getBatching()
{
return $this->batching;
}
/**
* @param LongRunning
*/
Expand Down
16 changes: 8 additions & 8 deletions src/ServiceNetworking/Resource/ServicesConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ public function deleteConnection($name, DeleteConnectionRequest $postBody, $optP
* List the private connections that are configured in a service consumer's VPC
* network. (connections.listServicesConnections)
*
* @param string $parent The service that is managing peering connectivity for a
* service producer's organization. For Google services that support this
* functionality, this value is `services/servicenetworking.googleapis.com`. If
* you specify `services/-` as the parameter value, all configured peering
* services are listed.
* @param string $parent Required. The service that is managing peering
* connectivity for a service producer's organization. For Google services that
* support this functionality, this value is
* `services/servicenetworking.googleapis.com`. If you specify `services/-` as
* the parameter value, all configured peering services are listed.
* @param array $optParams Optional parameters.
*
* @opt_param string network The name of service consumer's VPC network that's
* connected with service producer network through a private connection. The
* network name must be in the following format:
* @opt_param string network Required. The name of service consumer's VPC
* network that's connected with service producer network through a private
* connection. The network name must be in the following format:
* `projects/{project}/global/networks/{network}`. {project} is a project
* number, such as in `12345` that includes the VPC service consumer's VPC
* network. {network} is the name of the service consumer's VPC network.
Expand Down