Skip to content

Commit 5bf900e

Browse files
1 parent fae97e8 commit 5bf900e

4 files changed

Lines changed: 97 additions & 7 deletions

File tree

src/FirebaseDataConnect/Datasource.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,27 @@
1919

2020
class Datasource extends \Google\Model
2121
{
22+
protected $httpGraphqlType = HttpGraphql::class;
23+
protected $httpGraphqlDataType = '';
2224
protected $postgresqlType = PostgreSql::class;
2325
protected $postgresqlDataType = '';
2426

27+
/**
28+
* HTTP GraphQL server webhook configurations.
29+
*
30+
* @param HttpGraphql $httpGraphql
31+
*/
32+
public function setHttpGraphql(HttpGraphql $httpGraphql)
33+
{
34+
$this->httpGraphql = $httpGraphql;
35+
}
36+
/**
37+
* @return HttpGraphql
38+
*/
39+
public function getHttpGraphql()
40+
{
41+
return $this->httpGraphql;
42+
}
2543
/**
2644
* PostgreSQL configurations.
2745
*
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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\FirebaseDataConnect;
19+
20+
class HttpGraphql extends \Google\Model
21+
{
22+
/**
23+
* Optional. Timeout duration for the HTTP request.
24+
*
25+
* @var string
26+
*/
27+
public $timeout;
28+
/**
29+
* Required. The endpoint of the HTTP GraphQL server.
30+
*
31+
* @var string
32+
*/
33+
public $uri;
34+
35+
/**
36+
* Optional. Timeout duration for the HTTP request.
37+
*
38+
* @param string $timeout
39+
*/
40+
public function setTimeout($timeout)
41+
{
42+
$this->timeout = $timeout;
43+
}
44+
/**
45+
* @return string
46+
*/
47+
public function getTimeout()
48+
{
49+
return $this->timeout;
50+
}
51+
/**
52+
* Required. The endpoint of the HTTP GraphQL server.
53+
*
54+
* @param string $uri
55+
*/
56+
public function setUri($uri)
57+
{
58+
$this->uri = $uri;
59+
}
60+
/**
61+
* @return string
62+
*/
63+
public function getUri()
64+
{
65+
return $this->uri;
66+
}
67+
}
68+
69+
// Adding a class alias for backwards compatibility with the previous class name.
70+
class_alias(HttpGraphql::class, 'Google_Service_FirebaseDataConnect_HttpGraphql');

src/FirebaseDataConnect/ListOperationsResponse.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ class ListOperationsResponse extends \Google\Collection
3030
protected $operationsDataType = 'array';
3131
/**
3232
* Unordered list. Unreachable resources. Populated when the request sets
33-
* `ListOperationsRequest.return_partial_success` and reads across collections
34-
* e.g. when attempting to list all resources across all supported locations.
33+
* `ListOperationsRequest.return_partial_success` and reads across
34+
* collections. For example, when attempting to list all resources across all
35+
* supported locations.
3536
*
3637
* @var string[]
3738
*/
@@ -71,8 +72,9 @@ public function getOperations()
7172
}
7273
/**
7374
* Unordered list. Unreachable resources. Populated when the request sets
74-
* `ListOperationsRequest.return_partial_success` and reads across collections
75-
* e.g. when attempting to list all resources across all supported locations.
75+
* `ListOperationsRequest.return_partial_success` and reads across
76+
* collections. For example, when attempting to list all resources across all
77+
* supported locations.
7678
*
7779
* @param string[] $unreachable
7880
*/

src/FirebaseDataConnect/Resource/ProjectsLocationsOperations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ public function get($name, $optParams = [])
101101
* @opt_param string pageToken The standard list page token.
102102
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
103103
* reachable are returned as normal, and those that are unreachable are returned
104-
* in the [ListOperationsResponse.unreachable] field. This can only be `true`
105-
* when reading across collections e.g. when `parent` is set to
106-
* `"projects/example/locations/-"`. This field is not by default supported and
104+
* in the ListOperationsResponse.unreachable field. This can only be `true` when
105+
* reading across collections. For example, when `parent` is set to
106+
* `"projects/example/locations/-"`. This field is not supported by default and
107107
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
108108
* otherwise in service or product specific documentation.
109109
* @return ListOperationsResponse

0 commit comments

Comments
 (0)