Skip to content

Commit f57dbb3

Browse files
Regenerate servicenetworking client
1 parent c9fa9d7 commit f57dbb3

File tree

5 files changed

+333
-8
lines changed

5 files changed

+333
-8
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\ServiceNetworking;
19+
20+
class BatchingConfigProto extends \Google\Model
21+
{
22+
protected $batchDescriptorType = BatchingDescriptorProto::class;
23+
protected $batchDescriptorDataType = '';
24+
protected $thresholdsType = BatchingSettingsProto::class;
25+
protected $thresholdsDataType = '';
26+
27+
/**
28+
* @param BatchingDescriptorProto
29+
*/
30+
public function setBatchDescriptor(BatchingDescriptorProto $batchDescriptor)
31+
{
32+
$this->batchDescriptor = $batchDescriptor;
33+
}
34+
/**
35+
* @return BatchingDescriptorProto
36+
*/
37+
public function getBatchDescriptor()
38+
{
39+
return $this->batchDescriptor;
40+
}
41+
/**
42+
* @param BatchingSettingsProto
43+
*/
44+
public function setThresholds(BatchingSettingsProto $thresholds)
45+
{
46+
$this->thresholds = $thresholds;
47+
}
48+
/**
49+
* @return BatchingSettingsProto
50+
*/
51+
public function getThresholds()
52+
{
53+
return $this->thresholds;
54+
}
55+
}
56+
57+
// Adding a class alias for backwards compatibility with the previous class name.
58+
class_alias(BatchingConfigProto::class, 'Google_Service_ServiceNetworking_BatchingConfigProto');
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\ServiceNetworking;
19+
20+
class BatchingDescriptorProto extends \Google\Collection
21+
{
22+
protected $collection_key = 'discriminatorFields';
23+
/**
24+
* @var string
25+
*/
26+
public $batchedField;
27+
/**
28+
* @var string[]
29+
*/
30+
public $discriminatorFields;
31+
/**
32+
* @var string
33+
*/
34+
public $subresponseField;
35+
36+
/**
37+
* @param string
38+
*/
39+
public function setBatchedField($batchedField)
40+
{
41+
$this->batchedField = $batchedField;
42+
}
43+
/**
44+
* @return string
45+
*/
46+
public function getBatchedField()
47+
{
48+
return $this->batchedField;
49+
}
50+
/**
51+
* @param string[]
52+
*/
53+
public function setDiscriminatorFields($discriminatorFields)
54+
{
55+
$this->discriminatorFields = $discriminatorFields;
56+
}
57+
/**
58+
* @return string[]
59+
*/
60+
public function getDiscriminatorFields()
61+
{
62+
return $this->discriminatorFields;
63+
}
64+
/**
65+
* @param string
66+
*/
67+
public function setSubresponseField($subresponseField)
68+
{
69+
$this->subresponseField = $subresponseField;
70+
}
71+
/**
72+
* @return string
73+
*/
74+
public function getSubresponseField()
75+
{
76+
return $this->subresponseField;
77+
}
78+
}
79+
80+
// Adding a class alias for backwards compatibility with the previous class name.
81+
class_alias(BatchingDescriptorProto::class, 'Google_Service_ServiceNetworking_BatchingDescriptorProto');
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\ServiceNetworking;
19+
20+
class BatchingSettingsProto extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $delayThreshold;
26+
/**
27+
* @var int
28+
*/
29+
public $elementCountLimit;
30+
/**
31+
* @var int
32+
*/
33+
public $elementCountThreshold;
34+
/**
35+
* @var int
36+
*/
37+
public $flowControlByteLimit;
38+
/**
39+
* @var int
40+
*/
41+
public $flowControlElementLimit;
42+
/**
43+
* @var string
44+
*/
45+
public $flowControlLimitExceededBehavior;
46+
/**
47+
* @var int
48+
*/
49+
public $requestByteLimit;
50+
/**
51+
* @var string
52+
*/
53+
public $requestByteThreshold;
54+
55+
/**
56+
* @param string
57+
*/
58+
public function setDelayThreshold($delayThreshold)
59+
{
60+
$this->delayThreshold = $delayThreshold;
61+
}
62+
/**
63+
* @return string
64+
*/
65+
public function getDelayThreshold()
66+
{
67+
return $this->delayThreshold;
68+
}
69+
/**
70+
* @param int
71+
*/
72+
public function setElementCountLimit($elementCountLimit)
73+
{
74+
$this->elementCountLimit = $elementCountLimit;
75+
}
76+
/**
77+
* @return int
78+
*/
79+
public function getElementCountLimit()
80+
{
81+
return $this->elementCountLimit;
82+
}
83+
/**
84+
* @param int
85+
*/
86+
public function setElementCountThreshold($elementCountThreshold)
87+
{
88+
$this->elementCountThreshold = $elementCountThreshold;
89+
}
90+
/**
91+
* @return int
92+
*/
93+
public function getElementCountThreshold()
94+
{
95+
return $this->elementCountThreshold;
96+
}
97+
/**
98+
* @param int
99+
*/
100+
public function setFlowControlByteLimit($flowControlByteLimit)
101+
{
102+
$this->flowControlByteLimit = $flowControlByteLimit;
103+
}
104+
/**
105+
* @return int
106+
*/
107+
public function getFlowControlByteLimit()
108+
{
109+
return $this->flowControlByteLimit;
110+
}
111+
/**
112+
* @param int
113+
*/
114+
public function setFlowControlElementLimit($flowControlElementLimit)
115+
{
116+
$this->flowControlElementLimit = $flowControlElementLimit;
117+
}
118+
/**
119+
* @return int
120+
*/
121+
public function getFlowControlElementLimit()
122+
{
123+
return $this->flowControlElementLimit;
124+
}
125+
/**
126+
* @param string
127+
*/
128+
public function setFlowControlLimitExceededBehavior($flowControlLimitExceededBehavior)
129+
{
130+
$this->flowControlLimitExceededBehavior = $flowControlLimitExceededBehavior;
131+
}
132+
/**
133+
* @return string
134+
*/
135+
public function getFlowControlLimitExceededBehavior()
136+
{
137+
return $this->flowControlLimitExceededBehavior;
138+
}
139+
/**
140+
* @param int
141+
*/
142+
public function setRequestByteLimit($requestByteLimit)
143+
{
144+
$this->requestByteLimit = $requestByteLimit;
145+
}
146+
/**
147+
* @return int
148+
*/
149+
public function getRequestByteLimit()
150+
{
151+
return $this->requestByteLimit;
152+
}
153+
/**
154+
* @param string
155+
*/
156+
public function setRequestByteThreshold($requestByteThreshold)
157+
{
158+
$this->requestByteThreshold = $requestByteThreshold;
159+
}
160+
/**
161+
* @return string
162+
*/
163+
public function getRequestByteThreshold()
164+
{
165+
return $this->requestByteThreshold;
166+
}
167+
}
168+
169+
// Adding a class alias for backwards compatibility with the previous class name.
170+
class_alias(BatchingSettingsProto::class, 'Google_Service_ServiceNetworking_BatchingSettingsProto');

src/ServiceNetworking/MethodSettings.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class MethodSettings extends \Google\Collection
2424
* @var string[]
2525
*/
2626
public $autoPopulatedFields;
27+
protected $batchingType = BatchingConfigProto::class;
28+
protected $batchingDataType = '';
2729
protected $longRunningType = LongRunning::class;
2830
protected $longRunningDataType = '';
2931
/**
@@ -45,6 +47,20 @@ public function getAutoPopulatedFields()
4547
{
4648
return $this->autoPopulatedFields;
4749
}
50+
/**
51+
* @param BatchingConfigProto
52+
*/
53+
public function setBatching(BatchingConfigProto $batching)
54+
{
55+
$this->batching = $batching;
56+
}
57+
/**
58+
* @return BatchingConfigProto
59+
*/
60+
public function getBatching()
61+
{
62+
return $this->batching;
63+
}
4864
/**
4965
* @param LongRunning
5066
*/

src/ServiceNetworking/Resource/ServicesConnections.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ public function deleteConnection($name, DeleteConnectionRequest $postBody, $optP
8080
* List the private connections that are configured in a service consumer's VPC
8181
* network. (connections.listServicesConnections)
8282
*
83-
* @param string $parent The service that is managing peering connectivity for a
84-
* service producer's organization. For Google services that support this
85-
* functionality, this value is `services/servicenetworking.googleapis.com`. If
86-
* you specify `services/-` as the parameter value, all configured peering
87-
* services are listed.
83+
* @param string $parent Required. The service that is managing peering
84+
* connectivity for a service producer's organization. For Google services that
85+
* support this functionality, this value is
86+
* `services/servicenetworking.googleapis.com`. If you specify `services/-` as
87+
* the parameter value, all configured peering services are listed.
8888
* @param array $optParams Optional parameters.
8989
*
90-
* @opt_param string network The name of service consumer's VPC network that's
91-
* connected with service producer network through a private connection. The
92-
* network name must be in the following format:
90+
* @opt_param string network Required. The name of service consumer's VPC
91+
* network that's connected with service producer network through a private
92+
* connection. The network name must be in the following format:
9393
* `projects/{project}/global/networks/{network}`. {project} is a project
9494
* number, such as in `12345` that includes the VPC service consumer's VPC
9595
* network. {network} is the name of the service consumer's VPC network.

0 commit comments

Comments
 (0)