Skip to content

Commit 321693c

Browse files
1 parent 89830e4 commit 321693c

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

src/Integrations.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
455455
'required' => true,
456456
],
457457
],
458+
],'toggleHttp' => [
459+
'path' => 'v1/{+parent}/clients:toggleHttp',
460+
'httpMethod' => 'POST',
461+
'parameters' => [
462+
'parent' => [
463+
'location' => 'path',
464+
'type' => 'string',
465+
'required' => true,
466+
],
467+
],
458468
],
459469
]
460470
]
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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\Integrations;
19+
20+
class GoogleCloudIntegrationsV1alphaToggleHttpRequest extends \Google\Model
21+
{
22+
/**
23+
* @var bool
24+
*/
25+
public $enableHttpCall;
26+
27+
/**
28+
* @param bool
29+
*/
30+
public function setEnableHttpCall($enableHttpCall)
31+
{
32+
$this->enableHttpCall = $enableHttpCall;
33+
}
34+
/**
35+
* @return bool
36+
*/
37+
public function getEnableHttpCall()
38+
{
39+
return $this->enableHttpCall;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(GoogleCloudIntegrationsV1alphaToggleHttpRequest::class, 'Google_Service_Integrations_GoogleCloudIntegrationsV1alphaToggleHttpRequest');

src/Integrations/Resource/ProjectsLocationsClients.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaReplaceServiceAccountRequest;
2323
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSwitchEncryptionRequest;
2424
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSwitchVariableMaskingRequest;
25+
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaToggleHttpRequest;
2526
use Google\Service\Integrations\GoogleProtobufEmpty;
2627

2728
/**
@@ -118,6 +119,22 @@ public function switchVariableMasking($parent, GoogleCloudIntegrationsV1alphaSwi
118119
$params = array_merge($params, $optParams);
119120
return $this->call('switchVariableMasking', [$params], GoogleProtobufEmpty::class);
120121
}
122+
/**
123+
* Enable/Disable http call for provisioned client (clients.toggleHttp)
124+
*
125+
* @param string $parent Required. Required: The ID of the GCP Project to be
126+
* provisioned.
127+
* @param GoogleCloudIntegrationsV1alphaToggleHttpRequest $postBody
128+
* @param array $optParams Optional parameters.
129+
* @return GoogleProtobufEmpty
130+
* @throws \Google\Service\Exception
131+
*/
132+
public function toggleHttp($parent, GoogleCloudIntegrationsV1alphaToggleHttpRequest $postBody, $optParams = [])
133+
{
134+
$params = ['parent' => $parent, 'postBody' => $postBody];
135+
$params = array_merge($params, $optParams);
136+
return $this->call('toggleHttp', [$params], GoogleProtobufEmpty::class);
137+
}
121138
}
122139

123140
// Adding a class alias for backwards compatibility with the previous class name.

0 commit comments

Comments
 (0)