Skip to content

Commit 3392c19

Browse files
1 parent 8ab3fbd commit 3392c19

7 files changed

Lines changed: 280 additions & 11 deletions

src/ServiceUsage/Control.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class Control extends \Google\Collection
2222
protected $collection_key = 'methodPolicies';
2323
/**
2424
* The service controller environment to use. If empty, no control plane
25-
* feature (like quota and billing) will be enabled. The recommended value for
26-
* most services is servicecontrol.googleapis.com
25+
* features (like quota and billing) will be enabled. The recommended value
26+
* for most services is servicecontrol.googleapis.com.
2727
*
2828
* @var string
2929
*/
@@ -33,8 +33,8 @@ class Control extends \Google\Collection
3333

3434
/**
3535
* The service controller environment to use. If empty, no control plane
36-
* feature (like quota and billing) will be enabled. The recommended value for
37-
* most services is servicecontrol.googleapis.com
36+
* features (like quota and billing) will be enabled. The recommended value
37+
* for most services is servicecontrol.googleapis.com.
3838
*
3939
* @param string $environment
4040
*/
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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\ServiceUsage;
19+
20+
class GoogleApiServiceusageV2betaMcpEnableRule extends \Google\Collection
21+
{
22+
protected $collection_key = 'mcpServices';
23+
protected $mcpServicesType = GoogleApiServiceusageV2betaMcpService::class;
24+
protected $mcpServicesDataType = 'array';
25+
26+
/**
27+
* List of enabled MCP services.
28+
*
29+
* @param GoogleApiServiceusageV2betaMcpService[] $mcpServices
30+
*/
31+
public function setMcpServices($mcpServices)
32+
{
33+
$this->mcpServices = $mcpServices;
34+
}
35+
/**
36+
* @return GoogleApiServiceusageV2betaMcpService[]
37+
*/
38+
public function getMcpServices()
39+
{
40+
return $this->mcpServices;
41+
}
42+
}
43+
44+
// Adding a class alias for backwards compatibility with the previous class name.
45+
class_alias(GoogleApiServiceusageV2betaMcpEnableRule::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaMcpEnableRule');
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
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\ServiceUsage;
19+
20+
class GoogleApiServiceusageV2betaMcpPolicy extends \Google\Collection
21+
{
22+
protected $collection_key = 'mcpEnableRules';
23+
/**
24+
* Output only. The time the policy was created. For singleton policies (such
25+
* as the `default` policy), this is the first touch of the policy.
26+
*
27+
* @var string
28+
*/
29+
public $createTime;
30+
/**
31+
* An opaque tag indicating the current version of the policy, used for
32+
* concurrency control.
33+
*
34+
* @var string
35+
*/
36+
public $etag;
37+
protected $mcpEnableRulesType = GoogleApiServiceusageV2betaMcpEnableRule::class;
38+
protected $mcpEnableRulesDataType = 'array';
39+
/**
40+
* Output only. The resource name of the policy. Only the `default` policy is
41+
* supported. We allow the following formats:
42+
* `projects/{PROJECT_NUMBER}/mcpPolicies/default`,
43+
* `projects/{PROJECT_ID}/mcpPolicies/default`,
44+
* `folders/{FOLDER_ID}/mcpPolicies/default`,
45+
* `organizations/{ORG_ID}/mcpPolicies/default`.
46+
*
47+
* @var string
48+
*/
49+
public $name;
50+
/**
51+
* Output only. The time the policy was last updated.
52+
*
53+
* @var string
54+
*/
55+
public $updateTime;
56+
57+
/**
58+
* Output only. The time the policy was created. For singleton policies (such
59+
* as the `default` policy), this is the first touch of the policy.
60+
*
61+
* @param string $createTime
62+
*/
63+
public function setCreateTime($createTime)
64+
{
65+
$this->createTime = $createTime;
66+
}
67+
/**
68+
* @return string
69+
*/
70+
public function getCreateTime()
71+
{
72+
return $this->createTime;
73+
}
74+
/**
75+
* An opaque tag indicating the current version of the policy, used for
76+
* concurrency control.
77+
*
78+
* @param string $etag
79+
*/
80+
public function setEtag($etag)
81+
{
82+
$this->etag = $etag;
83+
}
84+
/**
85+
* @return string
86+
*/
87+
public function getEtag()
88+
{
89+
return $this->etag;
90+
}
91+
/**
92+
* McpEnableRules contains MCP enablement related rules.
93+
*
94+
* @param GoogleApiServiceusageV2betaMcpEnableRule[] $mcpEnableRules
95+
*/
96+
public function setMcpEnableRules($mcpEnableRules)
97+
{
98+
$this->mcpEnableRules = $mcpEnableRules;
99+
}
100+
/**
101+
* @return GoogleApiServiceusageV2betaMcpEnableRule[]
102+
*/
103+
public function getMcpEnableRules()
104+
{
105+
return $this->mcpEnableRules;
106+
}
107+
/**
108+
* Output only. The resource name of the policy. Only the `default` policy is
109+
* supported. We allow the following formats:
110+
* `projects/{PROJECT_NUMBER}/mcpPolicies/default`,
111+
* `projects/{PROJECT_ID}/mcpPolicies/default`,
112+
* `folders/{FOLDER_ID}/mcpPolicies/default`,
113+
* `organizations/{ORG_ID}/mcpPolicies/default`.
114+
*
115+
* @param string $name
116+
*/
117+
public function setName($name)
118+
{
119+
$this->name = $name;
120+
}
121+
/**
122+
* @return string
123+
*/
124+
public function getName()
125+
{
126+
return $this->name;
127+
}
128+
/**
129+
* Output only. The time the policy was last updated.
130+
*
131+
* @param string $updateTime
132+
*/
133+
public function setUpdateTime($updateTime)
134+
{
135+
$this->updateTime = $updateTime;
136+
}
137+
/**
138+
* @return string
139+
*/
140+
public function getUpdateTime()
141+
{
142+
return $this->updateTime;
143+
}
144+
}
145+
146+
// Adding a class alias for backwards compatibility with the previous class name.
147+
class_alias(GoogleApiServiceusageV2betaMcpPolicy::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaMcpPolicy');
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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\ServiceUsage;
19+
20+
class GoogleApiServiceusageV2betaMcpService extends \Google\Model
21+
{
22+
/**
23+
* The names of the services that are enabled for MCP. Example:
24+
* `services/library-example.googleapis.com`
25+
*
26+
* @var string
27+
*/
28+
public $service;
29+
30+
/**
31+
* The names of the services that are enabled for MCP. Example:
32+
* `services/library-example.googleapis.com`
33+
*
34+
* @param string $service
35+
*/
36+
public function setService($service)
37+
{
38+
$this->service = $service;
39+
}
40+
/**
41+
* @return string
42+
*/
43+
public function getService()
44+
{
45+
return $this->service;
46+
}
47+
}
48+
49+
// Adding a class alias for backwards compatibility with the previous class name.
50+
class_alias(GoogleApiServiceusageV2betaMcpService::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaMcpService');
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\ServiceUsage;
19+
20+
class GoogleApiServiceusageV2betaUpdateMcpPolicyMetadata extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(GoogleApiServiceusageV2betaUpdateMcpPolicyMetadata::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaUpdateMcpPolicyMetadata');

src/ServiceUsage/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/ServiceUsage/Resource/Operations.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)