Skip to content

Commit 212b51a

Browse files
1 parent 2161147 commit 212b51a

6 files changed

Lines changed: 158 additions & 4 deletions

src/APIhub.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,6 +1372,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
13721372
'type' => 'string',
13731373
],
13741374
],
1375+
],'manageSourceData' => [
1376+
'path' => 'v1/{+name}:manageSourceData',
1377+
'httpMethod' => 'POST',
1378+
'parameters' => [
1379+
'name' => [
1380+
'location' => 'path',
1381+
'type' => 'string',
1382+
'required' => true,
1383+
],
1384+
],
13751385
],'patch' => [
13761386
'path' => 'v1/{+name}',
13771387
'httpMethod' => 'PATCH',
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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\APIhub;
19+
20+
class GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $action;
26+
/**
27+
* @var string
28+
*/
29+
public $data;
30+
/**
31+
* @var string
32+
*/
33+
public $dataType;
34+
/**
35+
* @var string
36+
*/
37+
public $relativePath;
38+
39+
/**
40+
* @param string
41+
*/
42+
public function setAction($action)
43+
{
44+
$this->action = $action;
45+
}
46+
/**
47+
* @return string
48+
*/
49+
public function getAction()
50+
{
51+
return $this->action;
52+
}
53+
/**
54+
* @param string
55+
*/
56+
public function setData($data)
57+
{
58+
$this->data = $data;
59+
}
60+
/**
61+
* @return string
62+
*/
63+
public function getData()
64+
{
65+
return $this->data;
66+
}
67+
/**
68+
* @param string
69+
*/
70+
public function setDataType($dataType)
71+
{
72+
$this->dataType = $dataType;
73+
}
74+
/**
75+
* @return string
76+
*/
77+
public function getDataType()
78+
{
79+
return $this->dataType;
80+
}
81+
/**
82+
* @param string
83+
*/
84+
public function setRelativePath($relativePath)
85+
{
86+
$this->relativePath = $relativePath;
87+
}
88+
/**
89+
* @return string
90+
*/
91+
public function getRelativePath()
92+
{
93+
return $this->relativePath;
94+
}
95+
}
96+
97+
// Adding a class alias for backwards compatibility with the previous class name.
98+
class_alias(GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest::class, 'Google_Service_APIhub_GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest');
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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\APIhub;
19+
20+
class GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse::class, 'Google_Service_APIhub_GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse');

src/APIhub/Resource/ProjectsLocations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public function get($name, $optParams = [])
7474
* applicable.
7575
* @param array $optParams Optional parameters.
7676
*
77-
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
78-
* unsupported and is ignored unless explicitly documented otherwise. This is
79-
* primarily for internal usage.
77+
* @opt_param string extraLocationTypes Optional. Unless explicitly documented
78+
* otherwise, don't use this unsupported field which is primarily intended for
79+
* internal usage.
8080
* @opt_param string filter A filter to narrow down results to a preferred
8181
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
8282
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).

src/APIhub/Resource/ProjectsLocationsApiHubInstances.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ public function create($parent, GoogleCloudApihubV1ApiHubInstance $postBody, $op
5353
return $this->call('create', [$params], GoogleLongrunningOperation::class);
5454
}
5555
/**
56-
* Deletes the API hub instance. (apiHubInstances.delete)
56+
* Deletes the API hub instance. Deleting the API hub instance will also result
57+
* in the removal of all associated runtime project attachments and the host
58+
* project registration. (apiHubInstances.delete)
5759
*
5860
* @param string $name Required. The name of the Api Hub instance to delete.
5961
* Format:

src/APIhub/Resource/ProjectsLocationsPluginsInstances.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
use Google\Service\APIhub\GoogleCloudApihubV1EnablePluginInstanceActionRequest;
2222
use Google\Service\APIhub\GoogleCloudApihubV1ExecutePluginInstanceActionRequest;
2323
use Google\Service\APIhub\GoogleCloudApihubV1ListPluginInstancesResponse;
24+
use Google\Service\APIhub\GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest;
25+
use Google\Service\APIhub\GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse;
2426
use Google\Service\APIhub\GoogleCloudApihubV1PluginInstance;
2527
use Google\Service\APIhub\GoogleLongrunningOperation;
2628

@@ -188,6 +190,23 @@ public function listProjectsLocationsPluginsInstances($parent, $optParams = [])
188190
$params = array_merge($params, $optParams);
189191
return $this->call('list', [$params], GoogleCloudApihubV1ListPluginInstancesResponse::class);
190192
}
193+
/**
194+
* Manages data for a given plugin instance. (instances.manageSourceData)
195+
*
196+
* @param string $name Required. The name of the plugin instance for which data
197+
* needs to be managed. Format: `projects/{project}/locations/{location}/plugins
198+
* /{plugin}/instances/{instance}`
199+
* @param GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest $postBody
200+
* @param array $optParams Optional parameters.
201+
* @return GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse
202+
* @throws \Google\Service\Exception
203+
*/
204+
public function manageSourceData($name, GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest $postBody, $optParams = [])
205+
{
206+
$params = ['name' => $name, 'postBody' => $postBody];
207+
$params = array_merge($params, $optParams);
208+
return $this->call('manageSourceData', [$params], GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse::class);
209+
}
191210
/**
192211
* Updates a plugin instance in the API hub. The following fields in the
193212
* plugin_instance can be updated currently: * display_name *

0 commit comments

Comments
 (0)