Skip to content

Commit 1ce71ed

Browse files
1 parent 46e8758 commit 1ce71ed

5 files changed

Lines changed: 39 additions & 62 deletions

src/ChromeManagement.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,6 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
344344
'type' => 'string',
345345
'required' => true,
346346
],
347-
'etag' => [
348-
'location' => 'query',
349-
'type' => 'string',
350-
],
351347
],
352348
],'get' => [
353349
'path' => 'v1/{+name}',
@@ -377,6 +373,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
377373
'type' => 'string',
378374
],
379375
],
376+
],'patch' => [
377+
'path' => 'v1/{+name}',
378+
'httpMethod' => 'PATCH',
379+
'parameters' => [
380+
'name' => [
381+
'location' => 'path',
382+
'type' => 'string',
383+
'required' => true,
384+
],
385+
'updateMask' => [
386+
'location' => 'query',
387+
'type' => 'string',
388+
],
389+
],
380390
],
381391
]
382392
]

src/ChromeManagement/GoogleChromeManagementVersionsV1ConnectorConfig.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,6 @@ class GoogleChromeManagementVersionsV1ConnectorConfig extends \Google\Model
5555
* @var string
5656
*/
5757
public $displayName;
58-
/**
59-
* Optional. This checksum is computed by the server based on the value of
60-
* other fields, and may be sent on update and delete requests to ensure the
61-
* client has an up-to-date value before proceeding.
62-
*
63-
* @var string
64-
*/
65-
public $etag;
6658
/**
6759
* Identifier. Format:
6860
* customers/{customer}/connectorConfigs/{connector_config}
@@ -111,24 +103,6 @@ public function getDisplayName()
111103
{
112104
return $this->displayName;
113105
}
114-
/**
115-
* Optional. This checksum is computed by the server based on the value of
116-
* other fields, and may be sent on update and delete requests to ensure the
117-
* client has an up-to-date value before proceeding.
118-
*
119-
* @param string $etag
120-
*/
121-
public function setEtag($etag)
122-
{
123-
$this->etag = $etag;
124-
}
125-
/**
126-
* @return string
127-
*/
128-
public function getEtag()
129-
{
130-
return $this->etag;
131-
}
132106
/**
133107
* Identifier. Format:
134108
* customers/{customer}/connectorConfigs/{connector_config}

src/ChromeManagement/GoogleChromeManagementVersionsV1ConnectorConfigStatus.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ class GoogleChromeManagementVersionsV1ConnectorConfigStatus extends \Google\Mode
4949
public $state;
5050
/**
5151
* Output only. Field recording time of most recent modification of the
52-
* status. For ENABLED, this is the time the status was changed to ENABLED.
53-
* For DISABLED_BY_FAILURES, this is the time of the most recent failed
54-
* attempt to send an event to this config.
52+
* status. For `ENABLED`, this is the time the status was changed to
53+
* `ENABLED`. For `DISABLED_BY_FAILURES`, this is the time of the most recent
54+
* failed attempt to send an event to this config.
5555
*
5656
* @var string
5757
*/
@@ -97,9 +97,9 @@ public function getState()
9797
}
9898
/**
9999
* Output only. Field recording time of most recent modification of the
100-
* status. For ENABLED, this is the time the status was changed to ENABLED.
101-
* For DISABLED_BY_FAILURES, this is the time of the most recent failed
102-
* attempt to send an event to this config.
100+
* status. For `ENABLED`, this is the time the status was changed to
101+
* `ENABLED`. For `DISABLED_BY_FAILURES`, this is the time of the most recent
102+
* failed attempt to send an event to this config.
103103
*
104104
* @param string $updateTime
105105
*/

src/ChromeManagement/GoogleChromeManagementVersionsV1ListConnectorConfigsResponse.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ class GoogleChromeManagementVersionsV1ListConnectorConfigsResponse extends \Goog
2929
* @var string
3030
*/
3131
public $nextPageToken;
32-
/**
33-
* The total size of the connector configs list.
34-
*
35-
* @var int
36-
*/
37-
public $totalSize;
3832

3933
/**
4034
* The list of connector configs returned.
@@ -69,22 +63,6 @@ public function getNextPageToken()
6963
{
7064
return $this->nextPageToken;
7165
}
72-
/**
73-
* The total size of the connector configs list.
74-
*
75-
* @param int $totalSize
76-
*/
77-
public function setTotalSize($totalSize)
78-
{
79-
$this->totalSize = $totalSize;
80-
}
81-
/**
82-
* @return int
83-
*/
84-
public function getTotalSize()
85-
{
86-
return $this->totalSize;
87-
}
8866
}
8967

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

src/ChromeManagement/Resource/CustomersConnectorConfigs.php

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ public function create($parent, GoogleChromeManagementVersionsV1ConnectorConfig
5959
* @param string $name Required. Format:
6060
* customers/{customer}/connectorConfigs/{connector_config}
6161
* @param array $optParams Optional parameters.
62-
*
63-
* @opt_param string etag Optional. The etag of the connector config. If an etag
64-
* is provided and does not match the current etag of the connector config,
65-
* deletion will be blocked and an ABORTED error will be returned.
6662
* @return GoogleProtobufEmpty
6763
* @throws \Google\Service\Exception
6864
*/
@@ -111,6 +107,25 @@ public function listCustomersConnectorConfigs($parent, $optParams = [])
111107
$params = array_merge($params, $optParams);
112108
return $this->call('list', [$params], GoogleChromeManagementVersionsV1ListConnectorConfigsResponse::class);
113109
}
110+
/**
111+
* Updates a connector config. (connectorConfigs.patch)
112+
*
113+
* @param string $name Identifier. Format:
114+
* customers/{customer}/connectorConfigs/{connector_config}
115+
* @param GoogleChromeManagementVersionsV1ConnectorConfig $postBody
116+
* @param array $optParams Optional parameters.
117+
*
118+
* @opt_param string updateMask Optional. The update mask that can be used to
119+
* specify which fields to update.
120+
* @return GoogleChromeManagementVersionsV1ConnectorConfig
121+
* @throws \Google\Service\Exception
122+
*/
123+
public function patch($name, GoogleChromeManagementVersionsV1ConnectorConfig $postBody, $optParams = [])
124+
{
125+
$params = ['name' => $name, 'postBody' => $postBody];
126+
$params = array_merge($params, $optParams);
127+
return $this->call('patch', [$params], GoogleChromeManagementVersionsV1ConnectorConfig::class);
128+
}
114129
}
115130

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

0 commit comments

Comments
 (0)