Skip to content

Commit 7045dfb

Browse files
1 parent 148dd73 commit 7045dfb

5 files changed

Lines changed: 136 additions & 4 deletions

File tree

src/Appengine.php

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
554554
'location' => 'query',
555555
'type' => 'string',
556556
],
557+
'returnPartialSuccess' => [
558+
'location' => 'query',
559+
'type' => 'boolean',
560+
],
557561
],
558562
],
559563
]
@@ -1120,6 +1124,31 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
11201124
'type' => 'string',
11211125
],
11221126
],
1127+
],'delete' => [
1128+
'path' => 'v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}',
1129+
'httpMethod' => 'DELETE',
1130+
'parameters' => [
1131+
'projectsId' => [
1132+
'location' => 'path',
1133+
'type' => 'string',
1134+
'required' => true,
1135+
],
1136+
'locationsId' => [
1137+
'location' => 'path',
1138+
'type' => 'string',
1139+
'required' => true,
1140+
],
1141+
'applicationsId' => [
1142+
'location' => 'path',
1143+
'type' => 'string',
1144+
'required' => true,
1145+
],
1146+
'domainMappingsId' => [
1147+
'location' => 'path',
1148+
'type' => 'string',
1149+
'required' => true,
1150+
],
1151+
],
11231152
],'get' => [
11241153
'path' => 'v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}',
11251154
'httpMethod' => 'GET',
@@ -1145,6 +1174,35 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
11451174
'required' => true,
11461175
],
11471176
],
1177+
],'patch' => [
1178+
'path' => 'v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings/{domainMappingsId}',
1179+
'httpMethod' => 'PATCH',
1180+
'parameters' => [
1181+
'projectsId' => [
1182+
'location' => 'path',
1183+
'type' => 'string',
1184+
'required' => true,
1185+
],
1186+
'locationsId' => [
1187+
'location' => 'path',
1188+
'type' => 'string',
1189+
'required' => true,
1190+
],
1191+
'applicationsId' => [
1192+
'location' => 'path',
1193+
'type' => 'string',
1194+
'required' => true,
1195+
],
1196+
'domainMappingsId' => [
1197+
'location' => 'path',
1198+
'type' => 'string',
1199+
'required' => true,
1200+
],
1201+
'updateMask' => [
1202+
'location' => 'query',
1203+
'type' => 'string',
1204+
],
1205+
],
11481206
],
11491207
]
11501208
]

src/Appengine/ListOperationsResponse.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@
1919

2020
class ListOperationsResponse extends \Google\Collection
2121
{
22-
protected $collection_key = 'operations';
22+
protected $collection_key = 'unreachable';
2323
/**
2424
* @var string
2525
*/
2626
public $nextPageToken;
2727
protected $operationsType = Operation::class;
2828
protected $operationsDataType = 'array';
29+
/**
30+
* @var string[]
31+
*/
32+
public $unreachable;
2933

3034
/**
3135
* @param string
@@ -55,6 +59,20 @@ public function getOperations()
5559
{
5660
return $this->operations;
5761
}
62+
/**
63+
* @param string[]
64+
*/
65+
public function setUnreachable($unreachable)
66+
{
67+
$this->unreachable = $unreachable;
68+
}
69+
/**
70+
* @return string[]
71+
*/
72+
public function getUnreachable()
73+
{
74+
return $this->unreachable;
75+
}
5876
}
5977

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

src/Appengine/Resource/AppsLocations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public function get($appsId, $locationsId, $optParams = [])
5353
* collection, if applicable.
5454
* @param array $optParams Optional parameters.
5555
*
56-
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
57-
* unsupported and is ignored unless explicitly documented otherwise. This is
58-
* primarily for internal usage.
56+
* @opt_param string extraLocationTypes Optional. Unless explicitly documented
57+
* otherwise, don't use this unsupported field which is primarily intended for
58+
* internal usage.
5959
* @opt_param string filter A filter to narrow down results to a preferred
6060
* subset. The filtering language accepts strings like "displayName=tokyo", and
6161
* is documented in more detail in AIP-160 (https://google.aip.dev/160).

src/Appengine/Resource/AppsOperations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ public function get($appsId, $operationsId, $optParams = [])
5959
* @opt_param string filter The standard list filter.
6060
* @opt_param int pageSize The standard list page size.
6161
* @opt_param string pageToken The standard list page token.
62+
* @opt_param bool returnPartialSuccess When set to true, operations that are
63+
* reachable are returned as normal, and those that are unreachable are returned
64+
* in the ListOperationsResponse.unreachable field.This can only be true when
65+
* reading across collections e.g. when parent is set to
66+
* "projects/example/locations/-".This field is not by default supported and
67+
* will result in an UNIMPLEMENTED error if set unless explicitly documented
68+
* otherwise in service or product specific documentation.
6269
* @return ListOperationsResponse
6370
* @throws \Google\Service\Exception
6471
*/

src/Appengine/Resource/ProjectsLocationsApplicationsDomainMappings.php

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,28 @@ public function create($projectsId, $locationsId, $applicationsId, DomainMapping
5757
$params = array_merge($params, $optParams);
5858
return $this->call('create', [$params], Operation::class);
5959
}
60+
/**
61+
* Deletes the specified domain mapping. A user must be authorized to administer
62+
* the associated domain in order to delete a DomainMapping resource.
63+
* (domainMappings.delete)
64+
*
65+
* @param string $projectsId Part of `name`. Required. Name of the resource to
66+
* delete. Example: apps/myapp/domainMappings/example.com.
67+
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
68+
* @param string $applicationsId Part of `name`. See documentation of
69+
* `projectsId`.
70+
* @param string $domainMappingsId Part of `name`. See documentation of
71+
* `projectsId`.
72+
* @param array $optParams Optional parameters.
73+
* @return Operation
74+
* @throws \Google\Service\Exception
75+
*/
76+
public function delete($projectsId, $locationsId, $applicationsId, $domainMappingsId, $optParams = [])
77+
{
78+
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'domainMappingsId' => $domainMappingsId];
79+
$params = array_merge($params, $optParams);
80+
return $this->call('delete', [$params], Operation::class);
81+
}
6082
/**
6183
* Gets the specified domain mapping. (domainMappings.get)
6284
*
@@ -77,6 +99,33 @@ public function get($projectsId, $locationsId, $applicationsId, $domainMappingsI
7799
$params = array_merge($params, $optParams);
78100
return $this->call('get', [$params], DomainMapping::class);
79101
}
102+
/**
103+
* Updates the specified domain mapping. To map an SSL certificate to a domain
104+
* mapping, update certificate_id to point to an AuthorizedCertificate resource.
105+
* A user must be authorized to administer the associated domain in order to
106+
* update a DomainMapping resource. (domainMappings.patch)
107+
*
108+
* @param string $projectsId Part of `name`. Required. Name of the resource to
109+
* update. Example: apps/myapp/domainMappings/example.com.
110+
* @param string $locationsId Part of `name`. See documentation of `projectsId`.
111+
* @param string $applicationsId Part of `name`. See documentation of
112+
* `projectsId`.
113+
* @param string $domainMappingsId Part of `name`. See documentation of
114+
* `projectsId`.
115+
* @param DomainMapping $postBody
116+
* @param array $optParams Optional parameters.
117+
*
118+
* @opt_param string updateMask Required. Standard field mask for the set of
119+
* fields to be updated.
120+
* @return Operation
121+
* @throws \Google\Service\Exception
122+
*/
123+
public function patch($projectsId, $locationsId, $applicationsId, $domainMappingsId, DomainMapping $postBody, $optParams = [])
124+
{
125+
$params = ['projectsId' => $projectsId, 'locationsId' => $locationsId, 'applicationsId' => $applicationsId, 'domainMappingsId' => $domainMappingsId, 'postBody' => $postBody];
126+
$params = array_merge($params, $optParams);
127+
return $this->call('patch', [$params], Operation::class);
128+
}
80129
}
81130

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

0 commit comments

Comments
 (0)