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\CloudTasks;
|
---|
19 |
|
---|
20 | class HttpTarget extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'headerOverrides';
|
---|
23 | protected $headerOverridesType = HeaderOverride::class;
|
---|
24 | protected $headerOverridesDataType = 'array';
|
---|
25 | /**
|
---|
26 | * @var string
|
---|
27 | */
|
---|
28 | public $httpMethod;
|
---|
29 | protected $oauthTokenType = OAuthToken::class;
|
---|
30 | protected $oauthTokenDataType = '';
|
---|
31 | protected $oidcTokenType = OidcToken::class;
|
---|
32 | protected $oidcTokenDataType = '';
|
---|
33 | protected $uriOverrideType = UriOverride::class;
|
---|
34 | protected $uriOverrideDataType = '';
|
---|
35 |
|
---|
36 | /**
|
---|
37 | * @param HeaderOverride[]
|
---|
38 | */
|
---|
39 | public function setHeaderOverrides($headerOverrides)
|
---|
40 | {
|
---|
41 | $this->headerOverrides = $headerOverrides;
|
---|
42 | }
|
---|
43 | /**
|
---|
44 | * @return HeaderOverride[]
|
---|
45 | */
|
---|
46 | public function getHeaderOverrides()
|
---|
47 | {
|
---|
48 | return $this->headerOverrides;
|
---|
49 | }
|
---|
50 | /**
|
---|
51 | * @param string
|
---|
52 | */
|
---|
53 | public function setHttpMethod($httpMethod)
|
---|
54 | {
|
---|
55 | $this->httpMethod = $httpMethod;
|
---|
56 | }
|
---|
57 | /**
|
---|
58 | * @return string
|
---|
59 | */
|
---|
60 | public function getHttpMethod()
|
---|
61 | {
|
---|
62 | return $this->httpMethod;
|
---|
63 | }
|
---|
64 | /**
|
---|
65 | * @param OAuthToken
|
---|
66 | */
|
---|
67 | public function setOauthToken(OAuthToken $oauthToken)
|
---|
68 | {
|
---|
69 | $this->oauthToken = $oauthToken;
|
---|
70 | }
|
---|
71 | /**
|
---|
72 | * @return OAuthToken
|
---|
73 | */
|
---|
74 | public function getOauthToken()
|
---|
75 | {
|
---|
76 | return $this->oauthToken;
|
---|
77 | }
|
---|
78 | /**
|
---|
79 | * @param OidcToken
|
---|
80 | */
|
---|
81 | public function setOidcToken(OidcToken $oidcToken)
|
---|
82 | {
|
---|
83 | $this->oidcToken = $oidcToken;
|
---|
84 | }
|
---|
85 | /**
|
---|
86 | * @return OidcToken
|
---|
87 | */
|
---|
88 | public function getOidcToken()
|
---|
89 | {
|
---|
90 | return $this->oidcToken;
|
---|
91 | }
|
---|
92 | /**
|
---|
93 | * @param UriOverride
|
---|
94 | */
|
---|
95 | public function setUriOverride(UriOverride $uriOverride)
|
---|
96 | {
|
---|
97 | $this->uriOverride = $uriOverride;
|
---|
98 | }
|
---|
99 | /**
|
---|
100 | * @return UriOverride
|
---|
101 | */
|
---|
102 | public function getUriOverride()
|
---|
103 | {
|
---|
104 | return $this->uriOverride;
|
---|
105 | }
|
---|
106 | }
|
---|
107 |
|
---|
108 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
109 | class_alias(HttpTarget::class, 'Google_Service_CloudTasks_HttpTarget');
|
---|