gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class AddEnableRulesMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddEnableRulesMetadata::class, 'Google_Service_ServiceUsage_AddEnableRulesMetadata');
@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class AddEnableRulesResponse extends \Google\Collection
{
protected $collection_key = 'addedValues';
/**
* The values added to the parent consumer policy.
*
* @var string[]
*/
public $addedValues;
/**
* The parent consumer policy. It can be
* `projects/12345/consumerPolicies/default`, or
* `folders/12345/consumerPolicies/default`, or
* `organizations/12345/consumerPolicies/default`.
*
* @var string
*/
public $parent;
/**
* The values added to the parent consumer policy.
*
* @param string[] $addedValues
*/
public function setAddedValues($addedValues)
{
$this->addedValues = $addedValues;
}
/**
* @return string[]
*/
public function getAddedValues()
{
return $this->addedValues;
}
/**
* The parent consumer policy. It can be
* `projects/12345/consumerPolicies/default`, or
* `folders/12345/consumerPolicies/default`, or
* `organizations/12345/consumerPolicies/default`.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddEnableRulesResponse::class, 'Google_Service_ServiceUsage_AddEnableRulesResponse');
@@ -0,0 +1,190 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class AdminQuotaPolicy extends \Google\Model
{
/**
* The cloud resource container at which the quota policy is created. The
* format is `{container_type}/{container_number}`
*
* @var string
*/
public $container;
/**
* If this map is nonempty, then this policy applies only to specific values
* for dimensions defined in the limit unit. For example, a policy on a limit
* with the unit `1/{project}/{region}` could contain an entry with the key
* `region` and the value `us-east-1`; the policy is only applied to quota
* consumed in that region. This map has the following restrictions: * If
* `region` appears as a key, its value must be a valid Cloud region. * If
* `zone` appears as a key, its value must be a valid Cloud zone. * Keys other
* than `region` or `zone` are not valid.
*
* @var string[]
*/
public $dimensions;
/**
* The name of the metric to which this policy applies. An example name would
* be: `compute.googleapis.com/cpus`
*
* @var string
*/
public $metric;
/**
* The resource name of the policy. This name is generated by the server when
* the policy is created. Example names would be: `organizations/123/services/
* compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/l
* imits/%2Fproject%2Fregion/adminQuotaPolicies/4a3f2c1d`
*
* @var string
*/
public $name;
/**
* The quota policy value. Can be any nonnegative integer, or -1 (unlimited
* quota).
*
* @var string
*/
public $policyValue;
/**
* The limit unit of the limit to which this policy applies. An example unit
* would be: `1/{project}/{region}` Note that `{project}` and `{region}` are
* not placeholders in this example; the literal characters `{` and `}` occur
* in the string.
*
* @var string
*/
public $unit;
/**
* The cloud resource container at which the quota policy is created. The
* format is `{container_type}/{container_number}`
*
* @param string $container
*/
public function setContainer($container)
{
$this->container = $container;
}
/**
* @return string
*/
public function getContainer()
{
return $this->container;
}
/**
* If this map is nonempty, then this policy applies only to specific values
* for dimensions defined in the limit unit. For example, a policy on a limit
* with the unit `1/{project}/{region}` could contain an entry with the key
* `region` and the value `us-east-1`; the policy is only applied to quota
* consumed in that region. This map has the following restrictions: * If
* `region` appears as a key, its value must be a valid Cloud region. * If
* `zone` appears as a key, its value must be a valid Cloud zone. * Keys other
* than `region` or `zone` are not valid.
*
* @param string[] $dimensions
*/
public function setDimensions($dimensions)
{
$this->dimensions = $dimensions;
}
/**
* @return string[]
*/
public function getDimensions()
{
return $this->dimensions;
}
/**
* The name of the metric to which this policy applies. An example name would
* be: `compute.googleapis.com/cpus`
*
* @param string $metric
*/
public function setMetric($metric)
{
$this->metric = $metric;
}
/**
* @return string
*/
public function getMetric()
{
return $this->metric;
}
/**
* The resource name of the policy. This name is generated by the server when
* the policy is created. Example names would be: `organizations/123/services/
* compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/l
* imits/%2Fproject%2Fregion/adminQuotaPolicies/4a3f2c1d`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The quota policy value. Can be any nonnegative integer, or -1 (unlimited
* quota).
*
* @param string $policyValue
*/
public function setPolicyValue($policyValue)
{
$this->policyValue = $policyValue;
}
/**
* @return string
*/
public function getPolicyValue()
{
return $this->policyValue;
}
/**
* The limit unit of the limit to which this policy applies. An example unit
* would be: `1/{project}/{region}` Note that `{project}` and `{region}` are
* not placeholders in this example; the literal characters `{` and `}` occur
* in the string.
*
* @param string $unit
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdminQuotaPolicy::class, 'Google_Service_ServiceUsage_AdminQuotaPolicy');
@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Analysis extends \Google\Model
{
/**
* Unspecified analysis type. Do not use.
*/
public const ANALYSIS_TYPE_ANALYSIS_TYPE_UNSPECIFIED = 'ANALYSIS_TYPE_UNSPECIFIED';
/**
* The analysis of service dependencies.
*/
public const ANALYSIS_TYPE_ANALYSIS_TYPE_DEPENDENCY = 'ANALYSIS_TYPE_DEPENDENCY';
/**
* The analysis of service resource usage.
*/
public const ANALYSIS_TYPE_ANALYSIS_TYPE_RESOURCE_USAGE = 'ANALYSIS_TYPE_RESOURCE_USAGE';
/**
* The analysis of service resource existence.
*/
public const ANALYSIS_TYPE_ANALYSIS_TYPE_RESOURCE_EXISTENCE = 'ANALYSIS_TYPE_RESOURCE_EXISTENCE';
protected $analysisDataType = '';
/**
* Output only. The type of analysis.
*
* @var string
*/
public $analysisType;
/**
* Output only. The user friendly display name of the analysis type. E.g.
* service dependency analysis, service resource usage analysis, etc.
*
* @var string
*/
public $displayName;
/**
* The names of the service that has analysis result of warnings or blockers.
* Example: `services/storage.googleapis.com`.
*
* @var string
*/
public $service;
/**
* Output only. Analysis result of updating a policy.
*
* @param AnalysisResult $analysis
*/
public function setAnalysis(AnalysisResult $analysis)
{
$this->analysis = $analysis;
}
/**
* @return AnalysisResult
*/
public function getAnalysis()
{
return $this->analysis;
}
/**
* Output only. The type of analysis.
*
* Accepted values: ANALYSIS_TYPE_UNSPECIFIED, ANALYSIS_TYPE_DEPENDENCY,
* ANALYSIS_TYPE_RESOURCE_USAGE, ANALYSIS_TYPE_RESOURCE_EXISTENCE
*
* @param self::ANALYSIS_TYPE_* $analysisType
*/
public function setAnalysisType($analysisType)
{
$this->analysisType = $analysisType;
}
/**
* @return self::ANALYSIS_TYPE_*
*/
public function getAnalysisType()
{
return $this->analysisType;
}
/**
* Output only. The user friendly display name of the analysis type. E.g.
* service dependency analysis, service resource usage analysis, etc.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The names of the service that has analysis result of warnings or blockers.
* Example: `services/storage.googleapis.com`.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Analysis::class, 'Google_Service_ServiceUsage_Analysis');
@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class AnalysisResult extends \Google\Collection
{
protected $collection_key = 'warnings';
protected $blockersType = Impact::class;
protected $blockersDataType = 'array';
protected $warningsType = Impact::class;
protected $warningsDataType = 'array';
/**
* Blocking information that would prevent the policy changes at runtime.
*
* @param Impact[] $blockers
*/
public function setBlockers($blockers)
{
$this->blockers = $blockers;
}
/**
* @return Impact[]
*/
public function getBlockers()
{
return $this->blockers;
}
/**
* Warning information indicating that the policy changes might be unsafe, but
* will not block the changes at runtime.
*
* @param Impact[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return Impact[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalysisResult::class, 'Google_Service_ServiceUsage_AnalysisResult');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class AnalyzeConsumerPolicyMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeConsumerPolicyMetadata::class, 'Google_Service_ServiceUsage_AnalyzeConsumerPolicyMetadata');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class AnalyzeConsumerPolicyResponse extends \Google\Collection
{
protected $collection_key = 'analysis';
protected $analysisType = Analysis::class;
protected $analysisDataType = 'array';
/**
* The list of analyses returned from performing the intended policy update
* analysis. The analysis is grouped by service name and different analysis
* types. The empty analysis list means that the consumer policy can be
* updated without any warnings or blockers.
*
* @param Analysis[] $analysis
*/
public function setAnalysis($analysis)
{
$this->analysis = $analysis;
}
/**
* @return Analysis[]
*/
public function getAnalysis()
{
return $this->analysis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeConsumerPolicyResponse::class, 'Google_Service_ServiceUsage_AnalyzeConsumerPolicyResponse');
@@ -0,0 +1,229 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Api extends \Google\Collection
{
/**
* Syntax `proto2`.
*/
public const SYNTAX_SYNTAX_PROTO2 = 'SYNTAX_PROTO2';
/**
* Syntax `proto3`.
*/
public const SYNTAX_SYNTAX_PROTO3 = 'SYNTAX_PROTO3';
/**
* Syntax `editions`.
*/
public const SYNTAX_SYNTAX_EDITIONS = 'SYNTAX_EDITIONS';
protected $collection_key = 'options';
/**
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
*
* @var string
*/
public $edition;
protected $methodsType = Method::class;
protected $methodsDataType = 'array';
protected $mixinsType = Mixin::class;
protected $mixinsDataType = 'array';
/**
* The fully qualified name of this interface, including package name followed
* by the interface's simple name.
*
* @var string
*/
public $name;
protected $optionsType = Option::class;
protected $optionsDataType = 'array';
protected $sourceContextType = SourceContext::class;
protected $sourceContextDataType = '';
/**
* The source syntax of the service.
*
* @var string
*/
public $syntax;
/**
* A version string for this interface. If specified, must have the form
* `major-version.minor-version`, as in `1.10`. If the minor version is
* omitted, it defaults to zero. If the entire version field is empty, the
* major version is derived from the package name, as outlined below. If the
* field is not empty, the version in the package name will be verified to be
* consistent with what is provided here. The versioning schema uses [semantic
* versioning](http://semver.org) where the major version number indicates a
* breaking change and the minor version an additive, non-breaking change.
* Both version numbers are signals to users what to expect from different
* versions, and should be carefully chosen based on the product plan. The
* major version is also reflected in the package name of the interface, which
* must end in `v`, as in `google.feature.v1`. For major versions 0 and 1, the
* suffix can be omitted. Zero major versions must only be used for
* experimental, non-GA interfaces.
*
* @var string
*/
public $version;
/**
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
*
* @param string $edition
*/
public function setEdition($edition)
{
$this->edition = $edition;
}
/**
* @return string
*/
public function getEdition()
{
return $this->edition;
}
/**
* The methods of this interface, in unspecified order.
*
* @param Method[] $methods
*/
public function setMethods($methods)
{
$this->methods = $methods;
}
/**
* @return Method[]
*/
public function getMethods()
{
return $this->methods;
}
/**
* Included interfaces. See Mixin.
*
* @param Mixin[] $mixins
*/
public function setMixins($mixins)
{
$this->mixins = $mixins;
}
/**
* @return Mixin[]
*/
public function getMixins()
{
return $this->mixins;
}
/**
* The fully qualified name of this interface, including package name followed
* by the interface's simple name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Any metadata attached to the interface.
*
* @param Option[] $options
*/
public function setOptions($options)
{
$this->options = $options;
}
/**
* @return Option[]
*/
public function getOptions()
{
return $this->options;
}
/**
* Source context for the protocol buffer service represented by this message.
*
* @param SourceContext $sourceContext
*/
public function setSourceContext(SourceContext $sourceContext)
{
$this->sourceContext = $sourceContext;
}
/**
* @return SourceContext
*/
public function getSourceContext()
{
return $this->sourceContext;
}
/**
* The source syntax of the service.
*
* Accepted values: SYNTAX_PROTO2, SYNTAX_PROTO3, SYNTAX_EDITIONS
*
* @param self::SYNTAX_* $syntax
*/
public function setSyntax($syntax)
{
$this->syntax = $syntax;
}
/**
* @return self::SYNTAX_*
*/
public function getSyntax()
{
return $this->syntax;
}
/**
* A version string for this interface. If specified, must have the form
* `major-version.minor-version`, as in `1.10`. If the minor version is
* omitted, it defaults to zero. If the entire version field is empty, the
* major version is derived from the package name, as outlined below. If the
* field is not empty, the version in the package name will be verified to be
* consistent with what is provided here. The versioning schema uses [semantic
* versioning](http://semver.org) where the major version number indicates a
* breaking change and the minor version an additive, non-breaking change.
* Both version numbers are signals to users what to expect from different
* versions, and should be carefully chosen based on the product plan. The
* major version is also reflected in the package name of the interface, which
* must end in `v`, as in `google.feature.v1`. For major versions 0 and 1, the
* suffix can be omitted. Zero major versions must only be used for
* experimental, non-GA interfaces.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Api::class, 'Google_Service_ServiceUsage_Api');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Aspect extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* The type of this aspect configuration.
*
* @var string
*/
public $kind;
protected $rulesType = AspectRule::class;
protected $rulesDataType = 'array';
/**
* Content of the configuration. The underlying schema should be defined by
* Aspect owners as protobuf message under `google/api/configaspects/proto`.
*
* @var array[]
*/
public $spec;
/**
* The type of this aspect configuration.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Optional. Rules of the Configuration.
*
* @param AspectRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return AspectRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* Content of the configuration. The underlying schema should be defined by
* Aspect owners as protobuf message under `google/api/configaspects/proto`.
*
* @param array[] $spec
*/
public function setSpec($spec)
{
$this->spec = $spec;
}
/**
* @return array[]
*/
public function getSpec()
{
return $this->spec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Aspect::class, 'Google_Service_ServiceUsage_Aspect');
@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class AspectRule extends \Google\Model
{
/**
* Required. Rules of the configuration. The underlying schema should be
* defined by Aspect owners as protobuf message under
* `google/api/configaspects/proto`.
*
* @var array[]
*/
public $config;
/**
* Required. Selects the RPC methods to which this rule applies. Refer to
* selector for syntax details.
*
* @var string
*/
public $selector;
/**
* Required. Rules of the configuration. The underlying schema should be
* defined by Aspect owners as protobuf message under
* `google/api/configaspects/proto`.
*
* @param array[] $config
*/
public function setConfig($config)
{
$this->config = $config;
}
/**
* @return array[]
*/
public function getConfig()
{
return $this->config;
}
/**
* Required. Selects the RPC methods to which this rule applies. Refer to
* selector for syntax details.
*
* @param string $selector
*/
public function setSelector($selector)
{
$this->selector = $selector;
}
/**
* @return string
*/
public function getSelector()
{
return $this->selector;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AspectRule::class, 'Google_Service_ServiceUsage_AspectRule');
@@ -0,0 +1,210 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class AuthProvider extends \Google\Collection
{
protected $collection_key = 'jwtLocations';
/**
* The list of JWT [audiences](https://tools.ietf.org/html/draft-ietf-oauth-
* json-web-token-32#section-4.1.3). that are allowed to access. A JWT
* containing any of these audiences will be accepted. When this setting is
* absent, JWTs with audiences: -
* "https://[service.name]/[google.protobuf.Api.name]" -
* "https://[service.name]/" will be accepted. For example, if no audiences
* are in the setting, LibraryService API will accept JWTs with the following
* audiences: - https://library-
* example.googleapis.com/google.example.library.v1.LibraryService -
* https://library-example.googleapis.com/ Example: audiences:
* bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
* @var string
*/
public $audiences;
/**
* Redirect URL if JWT token is required but not present or is expired.
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
*
* @var string
*/
public $authorizationUrl;
/**
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`. Example: "bookstore_auth".
*
* @var string
*/
public $id;
/**
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-
* token-32#section-4.1.1 Usually a URL or an email address. Example:
* https://securetoken.google.com Example:
* 1234567-compute@developer.gserviceaccount.com
*
* @var string
*/
public $issuer;
/**
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID Discovery](https://openid.net/specs/openid-connect-
* discovery-1_0.html#ProviderMetadata). Optional if the key set document: -
* can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-
* connect-discovery-1_0.html) of the issuer. - can be inferred from the email
* domain of the issuer (e.g. a Google service account). Example:
* https://www.googleapis.com/oauth2/v1/certs
*
* @var string
*/
public $jwksUri;
protected $jwtLocationsType = JwtLocation::class;
protected $jwtLocationsDataType = 'array';
/**
* The list of JWT [audiences](https://tools.ietf.org/html/draft-ietf-oauth-
* json-web-token-32#section-4.1.3). that are allowed to access. A JWT
* containing any of these audiences will be accepted. When this setting is
* absent, JWTs with audiences: -
* "https://[service.name]/[google.protobuf.Api.name]" -
* "https://[service.name]/" will be accepted. For example, if no audiences
* are in the setting, LibraryService API will accept JWTs with the following
* audiences: - https://library-
* example.googleapis.com/google.example.library.v1.LibraryService -
* https://library-example.googleapis.com/ Example: audiences:
* bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
* @param string $audiences
*/
public function setAudiences($audiences)
{
$this->audiences = $audiences;
}
/**
* @return string
*/
public function getAudiences()
{
return $this->audiences;
}
/**
* Redirect URL if JWT token is required but not present or is expired.
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
*
* @param string $authorizationUrl
*/
public function setAuthorizationUrl($authorizationUrl)
{
$this->authorizationUrl = $authorizationUrl;
}
/**
* @return string
*/
public function getAuthorizationUrl()
{
return $this->authorizationUrl;
}
/**
* The unique identifier of the auth provider. It will be referred to by
* `AuthRequirement.provider_id`. Example: "bookstore_auth".
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Identifies the principal that issued the JWT. See
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-
* token-32#section-4.1.1 Usually a URL or an email address. Example:
* https://securetoken.google.com Example:
* 1234567-compute@developer.gserviceaccount.com
*
* @param string $issuer
*/
public function setIssuer($issuer)
{
$this->issuer = $issuer;
}
/**
* @return string
*/
public function getIssuer()
{
return $this->issuer;
}
/**
* URL of the provider's public key set to validate signature of the JWT. See
* [OpenID Discovery](https://openid.net/specs/openid-connect-
* discovery-1_0.html#ProviderMetadata). Optional if the key set document: -
* can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-
* connect-discovery-1_0.html) of the issuer. - can be inferred from the email
* domain of the issuer (e.g. a Google service account). Example:
* https://www.googleapis.com/oauth2/v1/certs
*
* @param string $jwksUri
*/
public function setJwksUri($jwksUri)
{
$this->jwksUri = $jwksUri;
}
/**
* @return string
*/
public function getJwksUri()
{
return $this->jwksUri;
}
/**
* Defines the locations to extract the JWT. For now it is only used by the
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
* (https://cloud.google.com/endpoints/docs/openapi/openapi-
* extensions#x-google-jwt-locations) JWT locations can be one of HTTP
* headers, URL query parameters or cookies. The rule is that the first match
* wins. If not specified, default to use following 3 locations: 1)
* Authorization: Bearer 2) x-goog-iap-jwt-assertion 3) access_token query
* parameter Default locations can be specified as followings: jwt_locations:
* - header: Authorization value_prefix: "Bearer " - header: x-goog-iap-jwt-
* assertion - query: access_token
*
* @param JwtLocation[] $jwtLocations
*/
public function setJwtLocations($jwtLocations)
{
$this->jwtLocations = $jwtLocations;
}
/**
* @return JwtLocation[]
*/
public function getJwtLocations()
{
return $this->jwtLocations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthProvider::class, 'Google_Service_ServiceUsage_AuthProvider');
@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class AuthRequirement extends \Google\Model
{
/**
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components. The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
* token-32#section-4.1.3). that are allowed to access. A JWT containing any
* of these audiences will be accepted. When this setting is absent, only JWTs
* with audience "https://Service_name/API_name" will be accepted. For
* example, if no audiences are in the setting, LibraryService API will only
* accept JWTs with the following audience "https://library-
* example.googleapis.com/google.example.library.v1.LibraryService". Example:
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
* @var string
*/
public $audiences;
/**
* id from authentication provider. Example: provider_id: bookstore_auth
*
* @var string
*/
public $providerId;
/**
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
* implemented and accepted in all the runtime components. The list of JWT
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
* token-32#section-4.1.3). that are allowed to access. A JWT containing any
* of these audiences will be accepted. When this setting is absent, only JWTs
* with audience "https://Service_name/API_name" will be accepted. For
* example, if no audiences are in the setting, LibraryService API will only
* accept JWTs with the following audience "https://library-
* example.googleapis.com/google.example.library.v1.LibraryService". Example:
* audiences: bookstore_android.apps.googleusercontent.com,
* bookstore_web.apps.googleusercontent.com
*
* @param string $audiences
*/
public function setAudiences($audiences)
{
$this->audiences = $audiences;
}
/**
* @return string
*/
public function getAudiences()
{
return $this->audiences;
}
/**
* id from authentication provider. Example: provider_id: bookstore_auth
*
* @param string $providerId
*/
public function setProviderId($providerId)
{
$this->providerId = $providerId;
}
/**
* @return string
*/
public function getProviderId()
{
return $this->providerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthRequirement::class, 'Google_Service_ServiceUsage_AuthRequirement');
@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Authentication extends \Google\Collection
{
protected $collection_key = 'rules';
protected $providersType = AuthProvider::class;
protected $providersDataType = 'array';
protected $rulesType = AuthenticationRule::class;
protected $rulesDataType = 'array';
/**
* Defines a set of authentication providers that a service supports.
*
* @param AuthProvider[] $providers
*/
public function setProviders($providers)
{
$this->providers = $providers;
}
/**
* @return AuthProvider[]
*/
public function getProviders()
{
return $this->providers;
}
/**
* A list of authentication rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
*
* @param AuthenticationRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return AuthenticationRule[]
*/
public function getRules()
{
return $this->rules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Authentication::class, 'Google_Service_ServiceUsage_Authentication');
@@ -0,0 +1,111 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class AuthenticationRule extends \Google\Collection
{
protected $collection_key = 'requirements';
/**
* If true, the service accepts API keys without any other credential. This
* flag only applies to HTTP and gRPC requests.
*
* @var bool
*/
public $allowWithoutCredential;
protected $oauthType = OAuthRequirements::class;
protected $oauthDataType = '';
protected $requirementsType = AuthRequirement::class;
protected $requirementsDataType = 'array';
/**
* Selects the methods to which this rule applies. Refer to selector for
* syntax details.
*
* @var string
*/
public $selector;
/**
* If true, the service accepts API keys without any other credential. This
* flag only applies to HTTP and gRPC requests.
*
* @param bool $allowWithoutCredential
*/
public function setAllowWithoutCredential($allowWithoutCredential)
{
$this->allowWithoutCredential = $allowWithoutCredential;
}
/**
* @return bool
*/
public function getAllowWithoutCredential()
{
return $this->allowWithoutCredential;
}
/**
* The requirements for OAuth credentials.
*
* @param OAuthRequirements $oauth
*/
public function setOauth(OAuthRequirements $oauth)
{
$this->oauth = $oauth;
}
/**
* @return OAuthRequirements
*/
public function getOauth()
{
return $this->oauth;
}
/**
* Requirements for additional authentication providers.
*
* @param AuthRequirement[] $requirements
*/
public function setRequirements($requirements)
{
$this->requirements = $requirements;
}
/**
* @return AuthRequirement[]
*/
public function getRequirements()
{
return $this->requirements;
}
/**
* Selects the methods to which this rule applies. Refer to selector for
* syntax details.
*
* @param string $selector
*/
public function setSelector($selector)
{
$this->selector = $selector;
}
/**
* @return string
*/
public function getSelector()
{
return $this->selector;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthenticationRule::class, 'Google_Service_ServiceUsage_AuthenticationRule');
@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Backend extends \Google\Collection
{
protected $collection_key = 'rules';
protected $rulesType = BackendRule::class;
protected $rulesDataType = 'array';
/**
* A list of API backend rules that apply to individual API methods. **NOTE:**
* All service configuration rules follow "last one wins" order.
*
* @param BackendRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return BackendRule[]
*/
public function getRules()
{
return $this->rules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Backend::class, 'Google_Service_ServiceUsage_Backend');
@@ -0,0 +1,311 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class BackendRule extends \Google\Model
{
public const PATH_TRANSLATION_PATH_TRANSLATION_UNSPECIFIED = 'PATH_TRANSLATION_UNSPECIFIED';
public const PATH_TRANSLATION_CONSTANT_ADDRESS = 'CONSTANT_ADDRESS';
/**
* The request path will be appended to the backend address. # Examples Given
* the following operation config: Method path: /api/company/{cid}/user/{uid}
* Backend address: https://example.appspot.com Requests to the following
* request paths will call the backend at the translated path: Request path:
* /api/company/widgetworks/user/johndoe Translated:
* https://example.appspot.com/api/company/widgetworks/user/johndoe Request
* path: /api/company/widgetworks/user/johndoe?timezone=EST Translated: https:
* //example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
*/
public const PATH_TRANSLATION_APPEND_PATH_TO_ADDRESS = 'APPEND_PATH_TO_ADDRESS';
/**
* The address of the API backend. The scheme is used to determine the backend
* protocol and security. The following schemes are accepted: SCHEME PROTOCOL
* SECURITY http:// HTTP None https:// HTTP TLS grpc:// gRPC None grpcs://
* gRPC TLS It is recommended to explicitly include a scheme. Leaving out the
* scheme may cause constrasting behaviors across platforms. If the port is
* unspecified, the default is: - 80 for schemes without TLS - 443 for schemes
* with TLS For HTTP backends, use protocol to specify the protocol version.
*
* @var string
*/
public $address;
/**
* The number of seconds to wait for a response from a request. The default
* varies based on the request protocol and deployment environment.
*
* @var
*/
public $deadline;
/**
* When disable_auth is true, a JWT ID token won't be generated and the
* original "Authorization" HTTP header will be preserved. If the header is
* used to carry the original token and is expected by the backend, this field
* must be set to true to preserve the header.
*
* @var bool
*/
public $disableAuth;
/**
* The JWT audience is used when generating a JWT ID token for the backend.
* This ID token will be added in the HTTP "authorization" header, and sent to
* the backend.
*
* @var string
*/
public $jwtAudience;
/**
* The load balancing policy used for connection to the application backend.
* Defined as an arbitrary string to accomondate custom load balancing
* policies supported by the underlying channel, but suggest most users use
* one of the standard policies, such as the default, "RoundRobin".
*
* @var string
*/
public $loadBalancingPolicy;
/**
* Deprecated, do not use.
*
* @deprecated
* @var
*/
public $minDeadline;
/**
* The number of seconds to wait for the completion of a long running
* operation. The default is no deadline.
*
* @var
*/
public $operationDeadline;
protected $overridesByRequestProtocolType = BackendRule::class;
protected $overridesByRequestProtocolDataType = 'map';
/**
* Path translation specifies how to combine the backend address with the
* request path in order to produce the appropriate forwarding URL for the
* request. See PathTranslation for more details.
*
* @var string
*/
public $pathTranslation;
/**
* The protocol used for sending a request to the backend. The supported
* values are "http/1.1" and "h2". The default value is inferred from the
* scheme in the address field: SCHEME PROTOCOL http:// http/1.1 https://
* http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that
* support HTTP/2, set this field to "h2" for improved performance.
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends. See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-
* extensiontype-values.xhtml#alpn-protocol-ids for more details on the
* supported values.
*
* @var string
*/
public $protocol;
/**
* Selects the methods to which this rule applies. Refer to selector for
* syntax details.
*
* @var string
*/
public $selector;
/**
* The address of the API backend. The scheme is used to determine the backend
* protocol and security. The following schemes are accepted: SCHEME PROTOCOL
* SECURITY http:// HTTP None https:// HTTP TLS grpc:// gRPC None grpcs://
* gRPC TLS It is recommended to explicitly include a scheme. Leaving out the
* scheme may cause constrasting behaviors across platforms. If the port is
* unspecified, the default is: - 80 for schemes without TLS - 443 for schemes
* with TLS For HTTP backends, use protocol to specify the protocol version.
*
* @param string $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
public function setDeadline($deadline)
{
$this->deadline = $deadline;
}
public function getDeadline()
{
return $this->deadline;
}
/**
* When disable_auth is true, a JWT ID token won't be generated and the
* original "Authorization" HTTP header will be preserved. If the header is
* used to carry the original token and is expected by the backend, this field
* must be set to true to preserve the header.
*
* @param bool $disableAuth
*/
public function setDisableAuth($disableAuth)
{
$this->disableAuth = $disableAuth;
}
/**
* @return bool
*/
public function getDisableAuth()
{
return $this->disableAuth;
}
/**
* The JWT audience is used when generating a JWT ID token for the backend.
* This ID token will be added in the HTTP "authorization" header, and sent to
* the backend.
*
* @param string $jwtAudience
*/
public function setJwtAudience($jwtAudience)
{
$this->jwtAudience = $jwtAudience;
}
/**
* @return string
*/
public function getJwtAudience()
{
return $this->jwtAudience;
}
/**
* The load balancing policy used for connection to the application backend.
* Defined as an arbitrary string to accomondate custom load balancing
* policies supported by the underlying channel, but suggest most users use
* one of the standard policies, such as the default, "RoundRobin".
*
* @param string $loadBalancingPolicy
*/
public function setLoadBalancingPolicy($loadBalancingPolicy)
{
$this->loadBalancingPolicy = $loadBalancingPolicy;
}
/**
* @return string
*/
public function getLoadBalancingPolicy()
{
return $this->loadBalancingPolicy;
}
public function setMinDeadline($minDeadline)
{
$this->minDeadline = $minDeadline;
}
public function getMinDeadline()
{
return $this->minDeadline;
}
public function setOperationDeadline($operationDeadline)
{
$this->operationDeadline = $operationDeadline;
}
public function getOperationDeadline()
{
return $this->operationDeadline;
}
/**
* The map between request protocol and the backend address.
*
* @param BackendRule[] $overridesByRequestProtocol
*/
public function setOverridesByRequestProtocol($overridesByRequestProtocol)
{
$this->overridesByRequestProtocol = $overridesByRequestProtocol;
}
/**
* @return BackendRule[]
*/
public function getOverridesByRequestProtocol()
{
return $this->overridesByRequestProtocol;
}
/**
* Path translation specifies how to combine the backend address with the
* request path in order to produce the appropriate forwarding URL for the
* request. See PathTranslation for more details.
*
* Accepted values: PATH_TRANSLATION_UNSPECIFIED, CONSTANT_ADDRESS,
* APPEND_PATH_TO_ADDRESS
*
* @param self::PATH_TRANSLATION_* $pathTranslation
*/
public function setPathTranslation($pathTranslation)
{
$this->pathTranslation = $pathTranslation;
}
/**
* @return self::PATH_TRANSLATION_*
*/
public function getPathTranslation()
{
return $this->pathTranslation;
}
/**
* The protocol used for sending a request to the backend. The supported
* values are "http/1.1" and "h2". The default value is inferred from the
* scheme in the address field: SCHEME PROTOCOL http:// http/1.1 https://
* http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that
* support HTTP/2, set this field to "h2" for improved performance.
* Configuring this field to non-default values is only supported for secure
* HTTP backends. This field will be ignored for all other backends. See
* https://www.iana.org/assignments/tls-extensiontype-values/tls-
* extensiontype-values.xhtml#alpn-protocol-ids for more details on the
* supported values.
*
* @param string $protocol
*/
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
/**
* @return string
*/
public function getProtocol()
{
return $this->protocol;
}
/**
* Selects the methods to which this rule applies. Refer to selector for
* syntax details.
*
* @param string $selector
*/
public function setSelector($selector)
{
$this->selector = $selector;
}
/**
* @return string
*/
public function getSelector()
{
return $this->selector;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendRule::class, 'Google_Service_ServiceUsage_BackendRule');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class BatchCreateAdminOverridesResponse extends \Google\Collection
{
protected $collection_key = 'overrides';
protected $overridesType = QuotaOverride::class;
protected $overridesDataType = 'array';
/**
* The overrides that were created.
*
* @param QuotaOverride[] $overrides
*/
public function setOverrides($overrides)
{
$this->overrides = $overrides;
}
/**
* @return QuotaOverride[]
*/
public function getOverrides()
{
return $this->overrides;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateAdminOverridesResponse::class, 'Google_Service_ServiceUsage_BatchCreateAdminOverridesResponse');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class BatchCreateConsumerOverridesResponse extends \Google\Collection
{
protected $collection_key = 'overrides';
protected $overridesType = QuotaOverride::class;
protected $overridesDataType = 'array';
/**
* The overrides that were created.
*
* @param QuotaOverride[] $overrides
*/
public function setOverrides($overrides)
{
$this->overrides = $overrides;
}
/**
* @return QuotaOverride[]
*/
public function getOverrides()
{
return $this->overrides;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateConsumerOverridesResponse::class, 'Google_Service_ServiceUsage_BatchCreateConsumerOverridesResponse');
@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class BatchEnableServicesRequest extends \Google\Collection
{
protected $collection_key = 'serviceIds';
/**
* The identifiers of the services to enable on the project. A valid
* identifier would be: serviceusage.googleapis.com Enabling services requires
* that each service is public or is shared with the user enabling the
* service. A single request can enable a maximum of 20 services at a time. If
* more than 20 services are specified, the request will fail, and no state
* changes will occur.
*
* @var string[]
*/
public $serviceIds;
/**
* The identifiers of the services to enable on the project. A valid
* identifier would be: serviceusage.googleapis.com Enabling services requires
* that each service is public or is shared with the user enabling the
* service. A single request can enable a maximum of 20 services at a time. If
* more than 20 services are specified, the request will fail, and no state
* changes will occur.
*
* @param string[] $serviceIds
*/
public function setServiceIds($serviceIds)
{
$this->serviceIds = $serviceIds;
}
/**
* @return string[]
*/
public function getServiceIds()
{
return $this->serviceIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchEnableServicesRequest::class, 'Google_Service_ServiceUsage_BatchEnableServicesRequest');
@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class BatchEnableServicesResponse extends \Google\Collection
{
protected $collection_key = 'services';
protected $failuresType = EnableFailure::class;
protected $failuresDataType = 'array';
protected $servicesType = GoogleApiServiceusageV1Service::class;
protected $servicesDataType = 'array';
/**
* If allow_partial_success is true, and one or more services could not be
* enabled, this field contains the details about each failure.
*
* @param EnableFailure[] $failures
*/
public function setFailures($failures)
{
$this->failures = $failures;
}
/**
* @return EnableFailure[]
*/
public function getFailures()
{
return $this->failures;
}
/**
* The new state of the services after enabling.
*
* @param GoogleApiServiceusageV1Service[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return GoogleApiServiceusageV1Service[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchEnableServicesResponse::class, 'Google_Service_ServiceUsage_BatchEnableServicesResponse');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class BatchGetServicesResponse extends \Google\Collection
{
protected $collection_key = 'services';
protected $servicesType = GoogleApiServiceusageV1Service::class;
protected $servicesDataType = 'array';
/**
* The requested Service states.
*
* @param GoogleApiServiceusageV1Service[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return GoogleApiServiceusageV1Service[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchGetServicesResponse::class, 'Google_Service_ServiceUsage_BatchGetServicesResponse');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class BatchingConfigProto extends \Google\Model
{
protected $batchDescriptorType = BatchingDescriptorProto::class;
protected $batchDescriptorDataType = '';
protected $thresholdsType = BatchingSettingsProto::class;
protected $thresholdsDataType = '';
/**
* The request and response fields used in batching.
*
* @param BatchingDescriptorProto $batchDescriptor
*/
public function setBatchDescriptor(BatchingDescriptorProto $batchDescriptor)
{
$this->batchDescriptor = $batchDescriptor;
}
/**
* @return BatchingDescriptorProto
*/
public function getBatchDescriptor()
{
return $this->batchDescriptor;
}
/**
* The thresholds which trigger a batched request to be sent.
*
* @param BatchingSettingsProto $thresholds
*/
public function setThresholds(BatchingSettingsProto $thresholds)
{
$this->thresholds = $thresholds;
}
/**
* @return BatchingSettingsProto
*/
public function getThresholds()
{
return $this->thresholds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchingConfigProto::class, 'Google_Service_ServiceUsage_BatchingConfigProto');
@@ -0,0 +1,103 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class BatchingDescriptorProto extends \Google\Collection
{
protected $collection_key = 'discriminatorFields';
/**
* The repeated field in the request message to be aggregated by batching.
*
* @var string
*/
public $batchedField;
/**
* A list of the fields in the request message. Two requests will be batched
* together only if the values of every field specified in
* `request_discriminator_fields` is equal between the two requests.
*
* @var string[]
*/
public $discriminatorFields;
/**
* Optional. When present, indicates the field in the response message to be
* used to demultiplex the response into multiple response messages, in
* correspondence with the multiple request messages originally batched
* together.
*
* @var string
*/
public $subresponseField;
/**
* The repeated field in the request message to be aggregated by batching.
*
* @param string $batchedField
*/
public function setBatchedField($batchedField)
{
$this->batchedField = $batchedField;
}
/**
* @return string
*/
public function getBatchedField()
{
return $this->batchedField;
}
/**
* A list of the fields in the request message. Two requests will be batched
* together only if the values of every field specified in
* `request_discriminator_fields` is equal between the two requests.
*
* @param string[] $discriminatorFields
*/
public function setDiscriminatorFields($discriminatorFields)
{
$this->discriminatorFields = $discriminatorFields;
}
/**
* @return string[]
*/
public function getDiscriminatorFields()
{
return $this->discriminatorFields;
}
/**
* Optional. When present, indicates the field in the response message to be
* used to demultiplex the response into multiple response messages, in
* correspondence with the multiple request messages originally batched
* together.
*
* @param string $subresponseField
*/
public function setSubresponseField($subresponseField)
{
$this->subresponseField = $subresponseField;
}
/**
* @return string
*/
public function getSubresponseField()
{
return $this->subresponseField;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchingDescriptorProto::class, 'Google_Service_ServiceUsage_BatchingDescriptorProto');
@@ -0,0 +1,230 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class BatchingSettingsProto extends \Google\Model
{
/**
* Default behavior, system-defined.
*/
public const FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_UNSET_BEHAVIOR = 'UNSET_BEHAVIOR';
/**
* Stop operation, raise error.
*/
public const FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_THROW_EXCEPTION = 'THROW_EXCEPTION';
/**
* Pause operation until limit clears.
*/
public const FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_BLOCK = 'BLOCK';
/**
* Continue operation, disregard limit.
*/
public const FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_IGNORE = 'IGNORE';
/**
* The duration after which a batch should be sent, starting from the addition
* of the first message to that batch.
*
* @var string
*/
public $delayThreshold;
/**
* The maximum number of elements collected in a batch that could be accepted
* by server.
*
* @var int
*/
public $elementCountLimit;
/**
* The number of elements of a field collected into a batch which, if
* exceeded, causes the batch to be sent.
*
* @var int
*/
public $elementCountThreshold;
/**
* The maximum size of data allowed by flow control.
*
* @var int
*/
public $flowControlByteLimit;
/**
* The maximum number of elements allowed by flow control.
*
* @var int
*/
public $flowControlElementLimit;
/**
* The behavior to take when the flow control limit is exceeded.
*
* @var string
*/
public $flowControlLimitExceededBehavior;
/**
* The maximum size of the request that could be accepted by server.
*
* @var int
*/
public $requestByteLimit;
/**
* The aggregated size of the batched field which, if exceeded, causes the
* batch to be sent. This size is computed by aggregating the sizes of the
* request field to be batched, not of the entire request message.
*
* @var string
*/
public $requestByteThreshold;
/**
* The duration after which a batch should be sent, starting from the addition
* of the first message to that batch.
*
* @param string $delayThreshold
*/
public function setDelayThreshold($delayThreshold)
{
$this->delayThreshold = $delayThreshold;
}
/**
* @return string
*/
public function getDelayThreshold()
{
return $this->delayThreshold;
}
/**
* The maximum number of elements collected in a batch that could be accepted
* by server.
*
* @param int $elementCountLimit
*/
public function setElementCountLimit($elementCountLimit)
{
$this->elementCountLimit = $elementCountLimit;
}
/**
* @return int
*/
public function getElementCountLimit()
{
return $this->elementCountLimit;
}
/**
* The number of elements of a field collected into a batch which, if
* exceeded, causes the batch to be sent.
*
* @param int $elementCountThreshold
*/
public function setElementCountThreshold($elementCountThreshold)
{
$this->elementCountThreshold = $elementCountThreshold;
}
/**
* @return int
*/
public function getElementCountThreshold()
{
return $this->elementCountThreshold;
}
/**
* The maximum size of data allowed by flow control.
*
* @param int $flowControlByteLimit
*/
public function setFlowControlByteLimit($flowControlByteLimit)
{
$this->flowControlByteLimit = $flowControlByteLimit;
}
/**
* @return int
*/
public function getFlowControlByteLimit()
{
return $this->flowControlByteLimit;
}
/**
* The maximum number of elements allowed by flow control.
*
* @param int $flowControlElementLimit
*/
public function setFlowControlElementLimit($flowControlElementLimit)
{
$this->flowControlElementLimit = $flowControlElementLimit;
}
/**
* @return int
*/
public function getFlowControlElementLimit()
{
return $this->flowControlElementLimit;
}
/**
* The behavior to take when the flow control limit is exceeded.
*
* Accepted values: UNSET_BEHAVIOR, THROW_EXCEPTION, BLOCK, IGNORE
*
* @param self::FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_* $flowControlLimitExceededBehavior
*/
public function setFlowControlLimitExceededBehavior($flowControlLimitExceededBehavior)
{
$this->flowControlLimitExceededBehavior = $flowControlLimitExceededBehavior;
}
/**
* @return self::FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_*
*/
public function getFlowControlLimitExceededBehavior()
{
return $this->flowControlLimitExceededBehavior;
}
/**
* The maximum size of the request that could be accepted by server.
*
* @param int $requestByteLimit
*/
public function setRequestByteLimit($requestByteLimit)
{
$this->requestByteLimit = $requestByteLimit;
}
/**
* @return int
*/
public function getRequestByteLimit()
{
return $this->requestByteLimit;
}
/**
* The aggregated size of the batched field which, if exceeded, causes the
* batch to be sent. This size is computed by aggregating the sizes of the
* request field to be batched, not of the entire request message.
*
* @param string $requestByteThreshold
*/
public function setRequestByteThreshold($requestByteThreshold)
{
$this->requestByteThreshold = $requestByteThreshold;
}
/**
* @return string
*/
public function getRequestByteThreshold()
{
return $this->requestByteThreshold;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchingSettingsProto::class, 'Google_Service_ServiceUsage_BatchingSettingsProto');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Billing extends \Google\Collection
{
protected $collection_key = 'consumerDestinations';
protected $consumerDestinationsType = BillingDestination::class;
protected $consumerDestinationsDataType = 'array';
/**
* Billing configurations for sending metrics to the consumer project. There
* can be multiple consumer destinations per service, each one must have a
* different monitored resource type. A metric can be used in at most one
* consumer destination.
*
* @param BillingDestination[] $consumerDestinations
*/
public function setConsumerDestinations($consumerDestinations)
{
$this->consumerDestinations = $consumerDestinations;
}
/**
* @return BillingDestination[]
*/
public function getConsumerDestinations()
{
return $this->consumerDestinations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Billing::class, 'Google_Service_ServiceUsage_Billing');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class BillingDestination extends \Google\Collection
{
protected $collection_key = 'metrics';
/**
* Names of the metrics to report to this billing destination. Each name must
* be defined in Service.metrics section.
*
* @var string[]
*/
public $metrics;
/**
* The monitored resource type. The type must be defined in
* Service.monitored_resources section.
*
* @var string
*/
public $monitoredResource;
/**
* Names of the metrics to report to this billing destination. Each name must
* be defined in Service.metrics section.
*
* @param string[] $metrics
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return string[]
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* The monitored resource type. The type must be defined in
* Service.monitored_resources section.
*
* @param string $monitoredResource
*/
public function setMonitoredResource($monitoredResource)
{
$this->monitoredResource = $monitoredResource;
}
/**
* @return string
*/
public function getMonitoredResource()
{
return $this->monitoredResource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingDestination::class, 'Google_Service_ServiceUsage_BillingDestination');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_ServiceUsage_CancelOperationRequest');
@@ -0,0 +1,298 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ClientLibrarySettings extends \Google\Model
{
/**
* Do not use this default value.
*/
public const LAUNCH_STAGE_LAUNCH_STAGE_UNSPECIFIED = 'LAUNCH_STAGE_UNSPECIFIED';
/**
* The feature is not yet implemented. Users can not use it.
*/
public const LAUNCH_STAGE_UNIMPLEMENTED = 'UNIMPLEMENTED';
/**
* Prelaunch features are hidden from users and are only visible internally.
*/
public const LAUNCH_STAGE_PRELAUNCH = 'PRELAUNCH';
/**
* Early Access features are limited to a closed group of testers. To use
* these features, you must sign up in advance and sign a Trusted Tester
* agreement (which includes confidentiality provisions). These features may
* be unstable, changed in backward-incompatible ways, and are not guaranteed
* to be released.
*/
public const LAUNCH_STAGE_EARLY_ACCESS = 'EARLY_ACCESS';
/**
* Alpha is a limited availability test for releases before they are cleared
* for widespread use. By Alpha, all significant design issues are resolved
* and we are in the process of verifying functionality. Alpha customers need
* to apply for access, agree to applicable terms, and have their projects
* allowlisted. Alpha releases don't have to be feature complete, no SLAs are
* provided, and there are no technical support obligations, but they will be
* far enough along that customers can actually use them in test environments
* or for limited-use tests -- just like they would in normal production
* cases.
*/
public const LAUNCH_STAGE_ALPHA = 'ALPHA';
/**
* Beta is the point at which we are ready to open a release for any customer
* to use. There are no SLA or technical support obligations in a Beta
* release. Products will be complete from a feature perspective, but may have
* some open outstanding issues. Beta releases are suitable for limited
* production use cases.
*/
public const LAUNCH_STAGE_BETA = 'BETA';
/**
* GA features are open to all developers and are considered stable and fully
* qualified for production use.
*/
public const LAUNCH_STAGE_GA = 'GA';
/**
* Deprecated features are scheduled to be shut down and removed. For more
* information, see the "Deprecation Policy" section of our [Terms of
* Service](https://cloud.google.com/terms/) and the [Google Cloud Platform
* Subject to the Deprecation
* Policy](https://cloud.google.com/terms/deprecation) documentation.
*/
public const LAUNCH_STAGE_DEPRECATED = 'DEPRECATED';
protected $cppSettingsType = CppSettings::class;
protected $cppSettingsDataType = '';
protected $dotnetSettingsType = DotnetSettings::class;
protected $dotnetSettingsDataType = '';
protected $goSettingsType = GoSettings::class;
protected $goSettingsDataType = '';
protected $javaSettingsType = JavaSettings::class;
protected $javaSettingsDataType = '';
/**
* Launch stage of this version of the API.
*
* @var string
*/
public $launchStage;
protected $nodeSettingsType = NodeSettings::class;
protected $nodeSettingsDataType = '';
protected $phpSettingsType = PhpSettings::class;
protected $phpSettingsDataType = '';
protected $pythonSettingsType = PythonSettings::class;
protected $pythonSettingsDataType = '';
/**
* When using transport=rest, the client request will encode enums as numbers
* rather than strings.
*
* @var bool
*/
public $restNumericEnums;
protected $rubySettingsType = RubySettings::class;
protected $rubySettingsDataType = '';
/**
* Version of the API to apply these settings to. This is the full protobuf
* package for the API, ending in the version element. Examples:
* "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
*
* @var string
*/
public $version;
/**
* Settings for C++ client libraries.
*
* @param CppSettings $cppSettings
*/
public function setCppSettings(CppSettings $cppSettings)
{
$this->cppSettings = $cppSettings;
}
/**
* @return CppSettings
*/
public function getCppSettings()
{
return $this->cppSettings;
}
/**
* Settings for .NET client libraries.
*
* @param DotnetSettings $dotnetSettings
*/
public function setDotnetSettings(DotnetSettings $dotnetSettings)
{
$this->dotnetSettings = $dotnetSettings;
}
/**
* @return DotnetSettings
*/
public function getDotnetSettings()
{
return $this->dotnetSettings;
}
/**
* Settings for Go client libraries.
*
* @param GoSettings $goSettings
*/
public function setGoSettings(GoSettings $goSettings)
{
$this->goSettings = $goSettings;
}
/**
* @return GoSettings
*/
public function getGoSettings()
{
return $this->goSettings;
}
/**
* Settings for legacy Java features, supported in the Service YAML.
*
* @param JavaSettings $javaSettings
*/
public function setJavaSettings(JavaSettings $javaSettings)
{
$this->javaSettings = $javaSettings;
}
/**
* @return JavaSettings
*/
public function getJavaSettings()
{
return $this->javaSettings;
}
/**
* Launch stage of this version of the API.
*
* Accepted values: LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH,
* EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED
*
* @param self::LAUNCH_STAGE_* $launchStage
*/
public function setLaunchStage($launchStage)
{
$this->launchStage = $launchStage;
}
/**
* @return self::LAUNCH_STAGE_*
*/
public function getLaunchStage()
{
return $this->launchStage;
}
/**
* Settings for Node client libraries.
*
* @param NodeSettings $nodeSettings
*/
public function setNodeSettings(NodeSettings $nodeSettings)
{
$this->nodeSettings = $nodeSettings;
}
/**
* @return NodeSettings
*/
public function getNodeSettings()
{
return $this->nodeSettings;
}
/**
* Settings for PHP client libraries.
*
* @param PhpSettings $phpSettings
*/
public function setPhpSettings(PhpSettings $phpSettings)
{
$this->phpSettings = $phpSettings;
}
/**
* @return PhpSettings
*/
public function getPhpSettings()
{
return $this->phpSettings;
}
/**
* Settings for Python client libraries.
*
* @param PythonSettings $pythonSettings
*/
public function setPythonSettings(PythonSettings $pythonSettings)
{
$this->pythonSettings = $pythonSettings;
}
/**
* @return PythonSettings
*/
public function getPythonSettings()
{
return $this->pythonSettings;
}
/**
* When using transport=rest, the client request will encode enums as numbers
* rather than strings.
*
* @param bool $restNumericEnums
*/
public function setRestNumericEnums($restNumericEnums)
{
$this->restNumericEnums = $restNumericEnums;
}
/**
* @return bool
*/
public function getRestNumericEnums()
{
return $this->restNumericEnums;
}
/**
* Settings for Ruby client libraries.
*
* @param RubySettings $rubySettings
*/
public function setRubySettings(RubySettings $rubySettings)
{
$this->rubySettings = $rubySettings;
}
/**
* @return RubySettings
*/
public function getRubySettings()
{
return $this->rubySettings;
}
/**
* Version of the API to apply these settings to. This is the full protobuf
* package for the API, ending in the version element. Examples:
* "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientLibrarySettings::class, 'Google_Service_ServiceUsage_ClientLibrarySettings');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class CommonLanguageSettings extends \Google\Collection
{
protected $collection_key = 'destinations';
/**
* The destination where API teams want this client library to be published.
*
* @var string[]
*/
public $destinations;
/**
* Link to automatically generated reference documentation. Example:
* https://cloud.google.com/nodejs/docs/reference/asset/latest
*
* @deprecated
* @var string
*/
public $referenceDocsUri;
protected $selectiveGapicGenerationType = SelectiveGapicGeneration::class;
protected $selectiveGapicGenerationDataType = '';
/**
* The destination where API teams want this client library to be published.
*
* @param string[] $destinations
*/
public function setDestinations($destinations)
{
$this->destinations = $destinations;
}
/**
* @return string[]
*/
public function getDestinations()
{
return $this->destinations;
}
/**
* Link to automatically generated reference documentation. Example:
* https://cloud.google.com/nodejs/docs/reference/asset/latest
*
* @deprecated
* @param string $referenceDocsUri
*/
public function setReferenceDocsUri($referenceDocsUri)
{
$this->referenceDocsUri = $referenceDocsUri;
}
/**
* @deprecated
* @return string
*/
public function getReferenceDocsUri()
{
return $this->referenceDocsUri;
}
/**
* Configuration for which RPCs should be generated in the GAPIC client. Note:
* This field should not be used in most cases.
*
* @param SelectiveGapicGeneration $selectiveGapicGeneration
*/
public function setSelectiveGapicGeneration(SelectiveGapicGeneration $selectiveGapicGeneration)
{
$this->selectiveGapicGeneration = $selectiveGapicGeneration;
}
/**
* @return SelectiveGapicGeneration
*/
public function getSelectiveGapicGeneration()
{
return $this->selectiveGapicGeneration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommonLanguageSettings::class, 'Google_Service_ServiceUsage_CommonLanguageSettings');
@@ -0,0 +1,147 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ConsumerPolicy extends \Google\Collection
{
protected $collection_key = 'enableRules';
/**
* Optional. Annotations is an unstructured key-value map stored with a policy
* that may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
* [AIP-128](https://google.aip.dev/128#annotations)
*
* @var string[]
*/
public $annotations;
protected $enableRulesType = EnableRule::class;
protected $enableRulesDataType = 'array';
/**
* An opaque tag indicating the current version of the policy, used for
* concurrency control.
*
* @var string
*/
public $etag;
/**
* Output only. The resource name of the policy. We only allow consumer policy
* name as `default` for now: `projects/12345/consumerPolicies/default`,
* `folders/12345/consumerPolicies/default`,
* `organizations/12345/consumerPolicies/default`.
*
* @var string
*/
public $name;
/**
* The last-modified time.
*
* @var string
*/
public $updateTime;
/**
* Optional. Annotations is an unstructured key-value map stored with a policy
* that may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
* [AIP-128](https://google.aip.dev/128#annotations)
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Enable rules define usable services and service groups.
*
* @param EnableRule[] $enableRules
*/
public function setEnableRules($enableRules)
{
$this->enableRules = $enableRules;
}
/**
* @return EnableRule[]
*/
public function getEnableRules()
{
return $this->enableRules;
}
/**
* An opaque tag indicating the current version of the policy, used for
* concurrency control.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. The resource name of the policy. We only allow consumer policy
* name as `default` for now: `projects/12345/consumerPolicies/default`,
* `folders/12345/consumerPolicies/default`,
* `organizations/12345/consumerPolicies/default`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The last-modified time.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConsumerPolicy::class, 'Google_Service_ServiceUsage_ConsumerPolicy');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ContentSecurity extends \Google\Collection
{
protected $collection_key = 'contentSecurityProviders';
protected $contentSecurityProvidersType = ContentSecurityProvider::class;
protected $contentSecurityProvidersDataType = 'array';
/**
* List of content security providers that are enabled for content scanning.
*
* @param ContentSecurityProvider[] $contentSecurityProviders
*/
public function setContentSecurityProviders($contentSecurityProviders)
{
$this->contentSecurityProviders = $contentSecurityProviders;
}
/**
* @return ContentSecurityProvider[]
*/
public function getContentSecurityProviders()
{
return $this->contentSecurityProviders;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContentSecurity::class, 'Google_Service_ServiceUsage_ContentSecurity');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ContentSecurityPolicy extends \Google\Model
{
protected $mcpContentSecurityType = ContentSecurity::class;
protected $mcpContentSecurityDataType = '';
/**
* Output only. The resource name of the policy. Only the `default` policy is
* supported. We allow the following formats:
* `projects/{PROJECT_NUMBER}/contentSecurityPolicies/default`,
* `projects/{PROJECT_ID}/contentSecurityPolicies/default`, We only support
* project level content security policy for now.
*
* @var string
*/
public $name;
/**
* mcp_content_security contains the content security related settings at
* resource level for MCP traffic.
*
* @param ContentSecurity $mcpContentSecurity
*/
public function setMcpContentSecurity(ContentSecurity $mcpContentSecurity)
{
$this->mcpContentSecurity = $mcpContentSecurity;
}
/**
* @return ContentSecurity
*/
public function getMcpContentSecurity()
{
return $this->mcpContentSecurity;
}
/**
* Output only. The resource name of the policy. Only the `default` policy is
* supported. We allow the following formats:
* `projects/{PROJECT_NUMBER}/contentSecurityPolicies/default`,
* `projects/{PROJECT_ID}/contentSecurityPolicies/default`, We only support
* project level content security policy for now.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContentSecurityPolicy::class, 'Google_Service_ServiceUsage_ContentSecurityPolicy');
@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ContentSecurityProvider extends \Google\Model
{
/**
* Name of security service for content scanning, such as Google Cloud Model
* Armor or supported third-party ISV solutions. If it is Google 1P service,
* the name should be prefixed with `services/`. If it is a 3P service, the
* format needs to be documented. The currently supported values are: -
* `services/modelarmor.googleapis.com` for Google Cloud Model Armor.
*
* @var string
*/
public $name;
/**
* Name of security service for content scanning, such as Google Cloud Model
* Armor or supported third-party ISV solutions. If it is Google 1P service,
* the name should be prefixed with `services/`. If it is a 3P service, the
* format needs to be documented. The currently supported values are: -
* `services/modelarmor.googleapis.com` for Google Cloud Model Armor.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContentSecurityProvider::class, 'Google_Service_ServiceUsage_ContentSecurityProvider');
@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Context extends \Google\Collection
{
protected $collection_key = 'rules';
protected $rulesType = ContextRule::class;
protected $rulesDataType = 'array';
/**
* A list of RPC context rules that apply to individual API methods. **NOTE:**
* All service configuration rules follow "last one wins" order.
*
* @param ContextRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return ContextRule[]
*/
public function getRules()
{
return $this->rules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Context::class, 'Google_Service_ServiceUsage_Context');
@@ -0,0 +1,147 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ContextRule extends \Google\Collection
{
protected $collection_key = 'requested';
/**
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from client to backend.
*
* @var string[]
*/
public $allowedRequestExtensions;
/**
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from backend to client.
*
* @var string[]
*/
public $allowedResponseExtensions;
/**
* A list of full type names of provided contexts. It is used to support
* propagating HTTP headers and ETags from the response extension.
*
* @var string[]
*/
public $provided;
/**
* A list of full type names of requested contexts, only the requested context
* will be made available to the backend.
*
* @var string[]
*/
public $requested;
/**
* Selects the methods to which this rule applies. Refer to selector for
* syntax details.
*
* @var string
*/
public $selector;
/**
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from client to backend.
*
* @param string[] $allowedRequestExtensions
*/
public function setAllowedRequestExtensions($allowedRequestExtensions)
{
$this->allowedRequestExtensions = $allowedRequestExtensions;
}
/**
* @return string[]
*/
public function getAllowedRequestExtensions()
{
return $this->allowedRequestExtensions;
}
/**
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from backend to client.
*
* @param string[] $allowedResponseExtensions
*/
public function setAllowedResponseExtensions($allowedResponseExtensions)
{
$this->allowedResponseExtensions = $allowedResponseExtensions;
}
/**
* @return string[]
*/
public function getAllowedResponseExtensions()
{
return $this->allowedResponseExtensions;
}
/**
* A list of full type names of provided contexts. It is used to support
* propagating HTTP headers and ETags from the response extension.
*
* @param string[] $provided
*/
public function setProvided($provided)
{
$this->provided = $provided;
}
/**
* @return string[]
*/
public function getProvided()
{
return $this->provided;
}
/**
* A list of full type names of requested contexts, only the requested context
* will be made available to the backend.
*
* @param string[] $requested
*/
public function setRequested($requested)
{
$this->requested = $requested;
}
/**
* @return string[]
*/
public function getRequested()
{
return $this->requested;
}
/**
* Selects the methods to which this rule applies. Refer to selector for
* syntax details.
*
* @param string $selector
*/
public function setSelector($selector)
{
$this->selector = $selector;
}
/**
* @return string
*/
public function getSelector()
{
return $this->selector;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContextRule::class, 'Google_Service_ServiceUsage_ContextRule');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Control extends \Google\Collection
{
protected $collection_key = 'methodPolicies';
/**
* The service controller environment to use. If empty, no control plane
* features (like quota and billing) will be enabled. The recommended value
* for most services is servicecontrol.googleapis.com.
*
* @var string
*/
public $environment;
protected $methodPoliciesType = MethodPolicy::class;
protected $methodPoliciesDataType = 'array';
/**
* The service controller environment to use. If empty, no control plane
* features (like quota and billing) will be enabled. The recommended value
* for most services is servicecontrol.googleapis.com.
*
* @param string $environment
*/
public function setEnvironment($environment)
{
$this->environment = $environment;
}
/**
* @return string
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* Defines policies applying to the API methods of the service.
*
* @param MethodPolicy[] $methodPolicies
*/
public function setMethodPolicies($methodPolicies)
{
$this->methodPolicies = $methodPolicies;
}
/**
* @return MethodPolicy[]
*/
public function getMethodPolicies()
{
return $this->methodPolicies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Control::class, 'Google_Service_ServiceUsage_Control');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class CppSettings extends \Google\Model
{
protected $commonType = CommonLanguageSettings::class;
protected $commonDataType = '';
/**
* Some settings.
*
* @param CommonLanguageSettings $common
*/
public function setCommon(CommonLanguageSettings $common)
{
$this->common = $common;
}
/**
* @return CommonLanguageSettings
*/
public function getCommon()
{
return $this->common;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CppSettings::class, 'Google_Service_ServiceUsage_CppSettings');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class CreateAdminQuotaPolicyMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateAdminQuotaPolicyMetadata::class, 'Google_Service_ServiceUsage_CreateAdminQuotaPolicyMetadata');
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class CustomError extends \Google\Collection
{
protected $collection_key = 'types';
protected $rulesType = CustomErrorRule::class;
protected $rulesDataType = 'array';
/**
* The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.
*
* @var string[]
*/
public $types;
/**
* The list of custom error rules that apply to individual API messages.
* **NOTE:** All service configuration rules follow "last one wins" order.
*
* @param CustomErrorRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return CustomErrorRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.
*
* @param string[] $types
*/
public function setTypes($types)
{
$this->types = $types;
}
/**
* @return string[]
*/
public function getTypes()
{
return $this->types;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomError::class, 'Google_Service_ServiceUsage_CustomError');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class CustomErrorRule extends \Google\Model
{
/**
* Mark this message as possible payload in error response. Otherwise, objects
* of this type will be filtered when they appear in error payload.
*
* @var bool
*/
public $isErrorType;
/**
* Selects messages to which this rule applies. Refer to selector for syntax
* details.
*
* @var string
*/
public $selector;
/**
* Mark this message as possible payload in error response. Otherwise, objects
* of this type will be filtered when they appear in error payload.
*
* @param bool $isErrorType
*/
public function setIsErrorType($isErrorType)
{
$this->isErrorType = $isErrorType;
}
/**
* @return bool
*/
public function getIsErrorType()
{
return $this->isErrorType;
}
/**
* Selects messages to which this rule applies. Refer to selector for syntax
* details.
*
* @param string $selector
*/
public function setSelector($selector)
{
$this->selector = $selector;
}
/**
* @return string
*/
public function getSelector()
{
return $this->selector;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomErrorRule::class, 'Google_Service_ServiceUsage_CustomErrorRule');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class CustomHttpPattern extends \Google\Model
{
/**
* The name of this custom HTTP verb.
*
* @var string
*/
public $kind;
/**
* The path matched by this custom verb.
*
* @var string
*/
public $path;
/**
* The name of this custom HTTP verb.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The path matched by this custom verb.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomHttpPattern::class, 'Google_Service_ServiceUsage_CustomHttpPattern');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class DeleteAdminQuotaPolicyMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteAdminQuotaPolicyMetadata::class, 'Google_Service_ServiceUsage_DeleteAdminQuotaPolicyMetadata');
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class DisableServiceRequest extends \Google\Model
{
/**
* When unset, the default behavior is used, which is SKIP.
*/
public const CHECK_IF_SERVICE_HAS_USAGE_CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED = 'CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED';
/**
* If set, skip checking service usage when disabling a service.
*/
public const CHECK_IF_SERVICE_HAS_USAGE_SKIP = 'SKIP';
/**
* If set, service usage is checked when disabling the service. If a service,
* or its dependents, has usage in the last 30 days, the request returns a
* FAILED_PRECONDITION error.
*/
public const CHECK_IF_SERVICE_HAS_USAGE_CHECK = 'CHECK';
/**
* Defines the behavior for checking service usage when disabling a service.
*
* @var string
*/
public $checkIfServiceHasUsage;
/**
* Indicates if services that are enabled and which depend on this service
* should also be disabled. If not set, an error will be generated if any
* enabled services depend on the service to be disabled. When set, the
* service, and any enabled services that depend on it, will be disabled
* together.
*
* @var bool
*/
public $disableDependentServices;
/**
* Defines the behavior for checking service usage when disabling a service.
*
* Accepted values: CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED, SKIP, CHECK
*
* @param self::CHECK_IF_SERVICE_HAS_USAGE_* $checkIfServiceHasUsage
*/
public function setCheckIfServiceHasUsage($checkIfServiceHasUsage)
{
$this->checkIfServiceHasUsage = $checkIfServiceHasUsage;
}
/**
* @return self::CHECK_IF_SERVICE_HAS_USAGE_*
*/
public function getCheckIfServiceHasUsage()
{
return $this->checkIfServiceHasUsage;
}
/**
* Indicates if services that are enabled and which depend on this service
* should also be disabled. If not set, an error will be generated if any
* enabled services depend on the service to be disabled. When set, the
* service, and any enabled services that depend on it, will be disabled
* together.
*
* @param bool $disableDependentServices
*/
public function setDisableDependentServices($disableDependentServices)
{
$this->disableDependentServices = $disableDependentServices;
}
/**
* @return bool
*/
public function getDisableDependentServices()
{
return $this->disableDependentServices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DisableServiceRequest::class, 'Google_Service_ServiceUsage_DisableServiceRequest');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class DisableServiceResponse extends \Google\Model
{
protected $serviceType = GoogleApiServiceusageV1Service::class;
protected $serviceDataType = '';
/**
* The new state of the service after disabling.
*
* @param GoogleApiServiceusageV1Service $service
*/
public function setService(GoogleApiServiceusageV1Service $service)
{
$this->service = $service;
}
/**
* @return GoogleApiServiceusageV1Service
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DisableServiceResponse::class, 'Google_Service_ServiceUsage_DisableServiceResponse');
@@ -0,0 +1,215 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Documentation extends \Google\Collection
{
protected $collection_key = 'sectionOverrides';
/**
* Optional information about the IAM configuration. This is typically used to
* link to documentation about a product's IAM roles and permissions.
*
* @var string
*/
public $additionalIamInfo;
/**
* The URL to the root of documentation.
*
* @var string
*/
public $documentationRootUrl;
/**
* Declares a single overview page. For example: documentation: summary: ...
* overview: (== include overview.md ==) This is a shortcut for the following
* declaration (using pages style): documentation: summary: ... pages: - name:
* Overview content: (== include overview.md ==) Note: you cannot specify both
* `overview` field and `pages` field.
*
* @var string
*/
public $overview;
protected $pagesType = Page::class;
protected $pagesDataType = 'array';
protected $rulesType = DocumentationRule::class;
protected $rulesDataType = 'array';
protected $sectionOverridesType = Page::class;
protected $sectionOverridesDataType = 'array';
/**
* Specifies the service root url if the default one (the service name from
* the yaml file) is not suitable. This can be seen in any fully specified
* service urls as well as sections that show a base that other urls are
* relative to.
*
* @var string
*/
public $serviceRootUrl;
/**
* A short description of what the service does. The summary must be plain
* text. It becomes the overview of the service displayed in Google Cloud
* Console. NOTE: This field is equivalent to the standard field
* `description`.
*
* @var string
*/
public $summary;
/**
* Optional information about the IAM configuration. This is typically used to
* link to documentation about a product's IAM roles and permissions.
*
* @param string $additionalIamInfo
*/
public function setAdditionalIamInfo($additionalIamInfo)
{
$this->additionalIamInfo = $additionalIamInfo;
}
/**
* @return string
*/
public function getAdditionalIamInfo()
{
return $this->additionalIamInfo;
}
/**
* The URL to the root of documentation.
*
* @param string $documentationRootUrl
*/
public function setDocumentationRootUrl($documentationRootUrl)
{
$this->documentationRootUrl = $documentationRootUrl;
}
/**
* @return string
*/
public function getDocumentationRootUrl()
{
return $this->documentationRootUrl;
}
/**
* Declares a single overview page. For example: documentation: summary: ...
* overview: (== include overview.md ==) This is a shortcut for the following
* declaration (using pages style): documentation: summary: ... pages: - name:
* Overview content: (== include overview.md ==) Note: you cannot specify both
* `overview` field and `pages` field.
*
* @param string $overview
*/
public function setOverview($overview)
{
$this->overview = $overview;
}
/**
* @return string
*/
public function getOverview()
{
return $this->overview;
}
/**
* The top level pages for the documentation set.
*
* @param Page[] $pages
*/
public function setPages($pages)
{
$this->pages = $pages;
}
/**
* @return Page[]
*/
public function getPages()
{
return $this->pages;
}
/**
* A list of documentation rules that apply to individual API elements.
* **NOTE:** All service configuration rules follow "last one wins" order.
*
* @param DocumentationRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return DocumentationRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* Specifies section and content to override the boilerplate content.
* Currently overrides following sections: 1. rest.service.client_libraries
*
* @param Page[] $sectionOverrides
*/
public function setSectionOverrides($sectionOverrides)
{
$this->sectionOverrides = $sectionOverrides;
}
/**
* @return Page[]
*/
public function getSectionOverrides()
{
return $this->sectionOverrides;
}
/**
* Specifies the service root url if the default one (the service name from
* the yaml file) is not suitable. This can be seen in any fully specified
* service urls as well as sections that show a base that other urls are
* relative to.
*
* @param string $serviceRootUrl
*/
public function setServiceRootUrl($serviceRootUrl)
{
$this->serviceRootUrl = $serviceRootUrl;
}
/**
* @return string
*/
public function getServiceRootUrl()
{
return $this->serviceRootUrl;
}
/**
* A short description of what the service does. The summary must be plain
* text. It becomes the overview of the service displayed in Google Cloud
* Console. NOTE: This field is equivalent to the standard field
* `description`.
*
* @param string $summary
*/
public function setSummary($summary)
{
$this->summary = $summary;
}
/**
* @return string
*/
public function getSummary()
{
return $this->summary;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Documentation::class, 'Google_Service_ServiceUsage_Documentation');
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class DocumentationRule extends \Google\Model
{
/**
* Deprecation description of the selected element(s). It can be provided if
* an element is marked as `deprecated`.
*
* @var string
*/
public $deprecationDescription;
/**
* Description of the selected proto element (e.g. a message, a method, a
* 'service' definition, or a field). Defaults to leading & trailing comments
* taken from the proto source definition of the proto element.
*
* @var string
*/
public $description;
/**
* String of comma or space separated case-sensitive words for which
* method/field name replacement will be disabled.
*
* @var string
*/
public $disableReplacementWords;
/**
* The selector is a comma-separated list of patterns for any element such as
* a method, a field, an enum value. Each pattern is a qualified name of the
* element which may end in "*", indicating a wildcard. Wildcards are only
* allowed at the end and for a whole component of the qualified name, i.e.
* "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one
* or more components. To specify a default for all applicable elements, the
* whole pattern "*" is used.
*
* @var string
*/
public $selector;
/**
* Deprecation description of the selected element(s). It can be provided if
* an element is marked as `deprecated`.
*
* @param string $deprecationDescription
*/
public function setDeprecationDescription($deprecationDescription)
{
$this->deprecationDescription = $deprecationDescription;
}
/**
* @return string
*/
public function getDeprecationDescription()
{
return $this->deprecationDescription;
}
/**
* Description of the selected proto element (e.g. a message, a method, a
* 'service' definition, or a field). Defaults to leading & trailing comments
* taken from the proto source definition of the proto element.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* String of comma or space separated case-sensitive words for which
* method/field name replacement will be disabled.
*
* @param string $disableReplacementWords
*/
public function setDisableReplacementWords($disableReplacementWords)
{
$this->disableReplacementWords = $disableReplacementWords;
}
/**
* @return string
*/
public function getDisableReplacementWords()
{
return $this->disableReplacementWords;
}
/**
* The selector is a comma-separated list of patterns for any element such as
* a method, a field, an enum value. Each pattern is a qualified name of the
* element which may end in "*", indicating a wildcard. Wildcards are only
* allowed at the end and for a whole component of the qualified name, i.e.
* "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one
* or more components. To specify a default for all applicable elements, the
* whole pattern "*" is used.
*
* @param string $selector
*/
public function setSelector($selector)
{
$this->selector = $selector;
}
/**
* @return string
*/
public function getSelector()
{
return $this->selector;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DocumentationRule::class, 'Google_Service_ServiceUsage_DocumentationRule');
@@ -0,0 +1,177 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class DotnetSettings extends \Google\Collection
{
protected $collection_key = 'ignoredResources';
protected $commonType = CommonLanguageSettings::class;
protected $commonDataType = '';
/**
* Namespaces which must be aliased in snippets due to a known (but non-
* generator-predictable) naming collision
*
* @var string[]
*/
public $forcedNamespaceAliases;
/**
* Method signatures (in the form "service.method(signature)") which are
* provided separately, so shouldn't be generated. Snippets *calling* these
* methods are still generated, however.
*
* @var string[]
*/
public $handwrittenSignatures;
/**
* List of full resource types to ignore during generation. This is typically
* used for API-specific Location resources, which should be handled by the
* generator as if they were actually the common Location resources. Example
* entry: "documentai.googleapis.com/Location"
*
* @var string[]
*/
public $ignoredResources;
/**
* Map from full resource types to the effective short name for the resource.
* This is used when otherwise resource named from different services would
* cause naming collisions. Example entry:
* "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
*
* @var string[]
*/
public $renamedResources;
/**
* Map from original service names to renamed versions. This is used when the
* default generated types would cause a naming conflict. (Neither name is
* fully-qualified.) Example: Subscriber to SubscriberServiceApi.
*
* @var string[]
*/
public $renamedServices;
/**
* Some settings.
*
* @param CommonLanguageSettings $common
*/
public function setCommon(CommonLanguageSettings $common)
{
$this->common = $common;
}
/**
* @return CommonLanguageSettings
*/
public function getCommon()
{
return $this->common;
}
/**
* Namespaces which must be aliased in snippets due to a known (but non-
* generator-predictable) naming collision
*
* @param string[] $forcedNamespaceAliases
*/
public function setForcedNamespaceAliases($forcedNamespaceAliases)
{
$this->forcedNamespaceAliases = $forcedNamespaceAliases;
}
/**
* @return string[]
*/
public function getForcedNamespaceAliases()
{
return $this->forcedNamespaceAliases;
}
/**
* Method signatures (in the form "service.method(signature)") which are
* provided separately, so shouldn't be generated. Snippets *calling* these
* methods are still generated, however.
*
* @param string[] $handwrittenSignatures
*/
public function setHandwrittenSignatures($handwrittenSignatures)
{
$this->handwrittenSignatures = $handwrittenSignatures;
}
/**
* @return string[]
*/
public function getHandwrittenSignatures()
{
return $this->handwrittenSignatures;
}
/**
* List of full resource types to ignore during generation. This is typically
* used for API-specific Location resources, which should be handled by the
* generator as if they were actually the common Location resources. Example
* entry: "documentai.googleapis.com/Location"
*
* @param string[] $ignoredResources
*/
public function setIgnoredResources($ignoredResources)
{
$this->ignoredResources = $ignoredResources;
}
/**
* @return string[]
*/
public function getIgnoredResources()
{
return $this->ignoredResources;
}
/**
* Map from full resource types to the effective short name for the resource.
* This is used when otherwise resource named from different services would
* cause naming collisions. Example entry:
* "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
*
* @param string[] $renamedResources
*/
public function setRenamedResources($renamedResources)
{
$this->renamedResources = $renamedResources;
}
/**
* @return string[]
*/
public function getRenamedResources()
{
return $this->renamedResources;
}
/**
* Map from original service names to renamed versions. This is used when the
* default generated types would cause a naming conflict. (Neither name is
* fully-qualified.) Example: Subscriber to SubscriberServiceApi.
*
* @param string[] $renamedServices
*/
public function setRenamedServices($renamedServices)
{
$this->renamedServices = $renamedServices;
}
/**
* @return string[]
*/
public function getRenamedServices()
{
return $this->renamedServices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DotnetSettings::class, 'Google_Service_ServiceUsage_DotnetSettings');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class EnableFailure extends \Google\Model
{
/**
* An error message describing why the service could not be enabled.
*
* @var string
*/
public $errorMessage;
/**
* The service id of a service that could not be enabled.
*
* @var string
*/
public $serviceId;
/**
* An error message describing why the service could not be enabled.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
/**
* The service id of a service that could not be enabled.
*
* @param string $serviceId
*/
public function setServiceId($serviceId)
{
$this->serviceId = $serviceId;
}
/**
* @return string
*/
public function getServiceId()
{
return $this->serviceId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnableFailure::class, 'Google_Service_ServiceUsage_EnableFailure');
@@ -0,0 +1,157 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class EnableRule extends \Google\Collection
{
/**
* Unspecified enable type, which means enabled as both client and resource
* project.
*/
public const ENABLE_TYPE_ENABLE_TYPE_UNSPECIFIED = 'ENABLE_TYPE_UNSPECIFIED';
/**
* Enable all clients under the CRM node specified by `ConsumerPolicy.name` to
* use the listed services. A client can be an API key, an OAuth client, or a
* service account.
*/
public const ENABLE_TYPE_CLIENT = 'CLIENT';
/**
* Enable resources in the list services to be created and used under the CRM
* node specified by the `ConsumerPolicy.name`.
*/
public const ENABLE_TYPE_RESOURCE = 'RESOURCE';
/**
* Activation made by Service Usage v1 API. This will be how consumers
* differentiate between policy changes made by v1 and v2 clients and
* understand what is actually possible based on those different policies.
*/
public const ENABLE_TYPE_V1_COMPATIBLE = 'V1_COMPATIBLE';
protected $collection_key = 'values';
/**
* Client and resource project enable type.
*
* @var string
*/
public $enableType;
/**
* DEPRECATED: Please use field `values`. Service group should have prefix
* `groups/`. The names of the service groups that are enabled (Not
* Implemented). Example: `groups/googleServices`.
*
* @deprecated
* @var string[]
*/
public $groups;
/**
* DEPRECATED: Please use field `values`. Service should have prefix
* `services/`. The names of the services that are enabled. Example:
* `storage.googleapis.com`.
*
* @deprecated
* @var string[]
*/
public $services;
/**
* The names of the services or service groups that are enabled. Example:
* `services/storage.googleapis.com`, `groups/googleServices`,
* `groups/allServices`.
*
* @var string[]
*/
public $values;
/**
* Client and resource project enable type.
*
* Accepted values: ENABLE_TYPE_UNSPECIFIED, CLIENT, RESOURCE, V1_COMPATIBLE
*
* @param self::ENABLE_TYPE_* $enableType
*/
public function setEnableType($enableType)
{
$this->enableType = $enableType;
}
/**
* @return self::ENABLE_TYPE_*
*/
public function getEnableType()
{
return $this->enableType;
}
/**
* DEPRECATED: Please use field `values`. Service group should have prefix
* `groups/`. The names of the service groups that are enabled (Not
* Implemented). Example: `groups/googleServices`.
*
* @deprecated
* @param string[] $groups
*/
public function setGroups($groups)
{
$this->groups = $groups;
}
/**
* @deprecated
* @return string[]
*/
public function getGroups()
{
return $this->groups;
}
/**
* DEPRECATED: Please use field `values`. Service should have prefix
* `services/`. The names of the services that are enabled. Example:
* `storage.googleapis.com`.
*
* @deprecated
* @param string[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @deprecated
* @return string[]
*/
public function getServices()
{
return $this->services;
}
/**
* The names of the services or service groups that are enabled. Example:
* `services/storage.googleapis.com`, `groups/googleServices`,
* `groups/allServices`.
*
* @param string[] $values
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return string[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnableRule::class, 'Google_Service_ServiceUsage_EnableRule');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class EnableServiceRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnableServiceRequest::class, 'Google_Service_ServiceUsage_EnableServiceRequest');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class EnableServiceResponse extends \Google\Model
{
protected $serviceType = GoogleApiServiceusageV1Service::class;
protected $serviceDataType = '';
/**
* The new state of the service after enabling.
*
* @param GoogleApiServiceusageV1Service $service
*/
public function setService(GoogleApiServiceusageV1Service $service)
{
$this->service = $service;
}
/**
* @return GoogleApiServiceusageV1Service
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnableServiceResponse::class, 'Google_Service_ServiceUsage_EnableServiceResponse');
@@ -0,0 +1,135 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Endpoint extends \Google\Collection
{
protected $collection_key = 'aliases';
/**
* Aliases for this endpoint, these will be served by the same UrlMap as the
* parent endpoint, and will be provisioned in the GCP stack for the Regional
* Endpoints.
*
* @var string[]
*/
public $aliases;
/**
* Allowing [CORS](https://en.wikipedia.org/wiki/Cross-
* origin_resource_sharing), aka cross-domain traffic, would allow the
* backends served from this endpoint to receive and respond to HTTP OPTIONS
* requests. The response will be used by the browser to determine whether the
* subsequent cross-origin request is allowed to proceed.
*
* @var bool
*/
public $allowCors;
/**
* The canonical name of this endpoint.
*
* @var string
*/
public $name;
/**
* The specification of an Internet routable address of API frontend that will
* handle requests to this [API
* Endpoint](https://cloud.google.com/apis/design/glossary). It should be
* either a valid IPv4 address or a fully-qualified domain name. For example,
* "8.8.8.8" or "myservice.appspot.com".
*
* @var string
*/
public $target;
/**
* Aliases for this endpoint, these will be served by the same UrlMap as the
* parent endpoint, and will be provisioned in the GCP stack for the Regional
* Endpoints.
*
* @param string[] $aliases
*/
public function setAliases($aliases)
{
$this->aliases = $aliases;
}
/**
* @return string[]
*/
public function getAliases()
{
return $this->aliases;
}
/**
* Allowing [CORS](https://en.wikipedia.org/wiki/Cross-
* origin_resource_sharing), aka cross-domain traffic, would allow the
* backends served from this endpoint to receive and respond to HTTP OPTIONS
* requests. The response will be used by the browser to determine whether the
* subsequent cross-origin request is allowed to proceed.
*
* @param bool $allowCors
*/
public function setAllowCors($allowCors)
{
$this->allowCors = $allowCors;
}
/**
* @return bool
*/
public function getAllowCors()
{
return $this->allowCors;
}
/**
* The canonical name of this endpoint.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The specification of an Internet routable address of API frontend that will
* handle requests to this [API
* Endpoint](https://cloud.google.com/apis/design/glossary). It should be
* either a valid IPv4 address or a fully-qualified domain name. For example,
* "8.8.8.8" or "myservice.appspot.com".
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Endpoint::class, 'Google_Service_ServiceUsage_Endpoint');
@@ -0,0 +1,161 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Enum extends \Google\Collection
{
/**
* Syntax `proto2`.
*/
public const SYNTAX_SYNTAX_PROTO2 = 'SYNTAX_PROTO2';
/**
* Syntax `proto3`.
*/
public const SYNTAX_SYNTAX_PROTO3 = 'SYNTAX_PROTO3';
/**
* Syntax `editions`.
*/
public const SYNTAX_SYNTAX_EDITIONS = 'SYNTAX_EDITIONS';
protected $collection_key = 'options';
/**
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
*
* @var string
*/
public $edition;
protected $enumvalueType = EnumValue::class;
protected $enumvalueDataType = 'array';
/**
* Enum type name.
*
* @var string
*/
public $name;
protected $optionsType = Option::class;
protected $optionsDataType = 'array';
protected $sourceContextType = SourceContext::class;
protected $sourceContextDataType = '';
/**
* The source syntax.
*
* @var string
*/
public $syntax;
/**
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
*
* @param string $edition
*/
public function setEdition($edition)
{
$this->edition = $edition;
}
/**
* @return string
*/
public function getEdition()
{
return $this->edition;
}
/**
* Enum value definitions.
*
* @param EnumValue[] $enumvalue
*/
public function setEnumvalue($enumvalue)
{
$this->enumvalue = $enumvalue;
}
/**
* @return EnumValue[]
*/
public function getEnumvalue()
{
return $this->enumvalue;
}
/**
* Enum type name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Protocol buffer options.
*
* @param Option[] $options
*/
public function setOptions($options)
{
$this->options = $options;
}
/**
* @return Option[]
*/
public function getOptions()
{
return $this->options;
}
/**
* The source context.
*
* @param SourceContext $sourceContext
*/
public function setSourceContext(SourceContext $sourceContext)
{
$this->sourceContext = $sourceContext;
}
/**
* @return SourceContext
*/
public function getSourceContext()
{
return $this->sourceContext;
}
/**
* The source syntax.
*
* Accepted values: SYNTAX_PROTO2, SYNTAX_PROTO3, SYNTAX_EDITIONS
*
* @param self::SYNTAX_* $syntax
*/
public function setSyntax($syntax)
{
$this->syntax = $syntax;
}
/**
* @return self::SYNTAX_*
*/
public function getSyntax()
{
return $this->syntax;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Enum::class, 'Google_Service_ServiceUsage_Enum');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class EnumValue extends \Google\Collection
{
protected $collection_key = 'options';
/**
* Enum value name.
*
* @var string
*/
public $name;
/**
* Enum value number.
*
* @var int
*/
public $number;
protected $optionsType = Option::class;
protected $optionsDataType = 'array';
/**
* Enum value name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Enum value number.
*
* @param int $number
*/
public function setNumber($number)
{
$this->number = $number;
}
/**
* @return int
*/
public function getNumber()
{
return $this->number;
}
/**
* Protocol buffer options.
*
* @param Option[] $options
*/
public function setOptions($options)
{
$this->options = $options;
}
/**
* @return Option[]
*/
public function getOptions()
{
return $this->options;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnumValue::class, 'Google_Service_ServiceUsage_EnumValue');
@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ExperimentalFeatures extends \Google\Model
{
/**
* Enables generation of protobuf code using new types that are more Pythonic
* which are included in `protobuf>=5.29.x`. This feature will be enabled by
* default 1 month after launching the feature in preview packages.
*
* @var bool
*/
public $protobufPythonicTypesEnabled;
/**
* Enables generation of asynchronous REST clients if `rest` transport is
* enabled. By default, asynchronous REST clients will not be generated. This
* feature will be enabled by default 1 month after launching the feature in
* preview packages.
*
* @var bool
*/
public $restAsyncIoEnabled;
/**
* Disables generation of an unversioned Python package for this client
* library. This means that the module names will need to be versioned in
* import statements. For example `import google.cloud.library_v2` instead of
* `import google.cloud.library`.
*
* @var bool
*/
public $unversionedPackageDisabled;
/**
* Enables generation of protobuf code using new types that are more Pythonic
* which are included in `protobuf>=5.29.x`. This feature will be enabled by
* default 1 month after launching the feature in preview packages.
*
* @param bool $protobufPythonicTypesEnabled
*/
public function setProtobufPythonicTypesEnabled($protobufPythonicTypesEnabled)
{
$this->protobufPythonicTypesEnabled = $protobufPythonicTypesEnabled;
}
/**
* @return bool
*/
public function getProtobufPythonicTypesEnabled()
{
return $this->protobufPythonicTypesEnabled;
}
/**
* Enables generation of asynchronous REST clients if `rest` transport is
* enabled. By default, asynchronous REST clients will not be generated. This
* feature will be enabled by default 1 month after launching the feature in
* preview packages.
*
* @param bool $restAsyncIoEnabled
*/
public function setRestAsyncIoEnabled($restAsyncIoEnabled)
{
$this->restAsyncIoEnabled = $restAsyncIoEnabled;
}
/**
* @return bool
*/
public function getRestAsyncIoEnabled()
{
return $this->restAsyncIoEnabled;
}
/**
* Disables generation of an unversioned Python package for this client
* library. This means that the module names will need to be versioned in
* import statements. For example `import google.cloud.library_v2` instead of
* `import google.cloud.library`.
*
* @param bool $unversionedPackageDisabled
*/
public function setUnversionedPackageDisabled($unversionedPackageDisabled)
{
$this->unversionedPackageDisabled = $unversionedPackageDisabled;
}
/**
* @return bool
*/
public function getUnversionedPackageDisabled()
{
return $this->unversionedPackageDisabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExperimentalFeatures::class, 'Google_Service_ServiceUsage_ExperimentalFeatures');
@@ -0,0 +1,347 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Field extends \Google\Collection
{
/**
* For fields with unknown cardinality.
*/
public const CARDINALITY_CARDINALITY_UNKNOWN = 'CARDINALITY_UNKNOWN';
/**
* For optional fields.
*/
public const CARDINALITY_CARDINALITY_OPTIONAL = 'CARDINALITY_OPTIONAL';
/**
* For required fields. Proto2 syntax only.
*/
public const CARDINALITY_CARDINALITY_REQUIRED = 'CARDINALITY_REQUIRED';
/**
* For repeated fields.
*/
public const CARDINALITY_CARDINALITY_REPEATED = 'CARDINALITY_REPEATED';
/**
* Field type unknown.
*/
public const KIND_TYPE_UNKNOWN = 'TYPE_UNKNOWN';
/**
* Field type double.
*/
public const KIND_TYPE_DOUBLE = 'TYPE_DOUBLE';
/**
* Field type float.
*/
public const KIND_TYPE_FLOAT = 'TYPE_FLOAT';
/**
* Field type int64.
*/
public const KIND_TYPE_INT64 = 'TYPE_INT64';
/**
* Field type uint64.
*/
public const KIND_TYPE_UINT64 = 'TYPE_UINT64';
/**
* Field type int32.
*/
public const KIND_TYPE_INT32 = 'TYPE_INT32';
/**
* Field type fixed64.
*/
public const KIND_TYPE_FIXED64 = 'TYPE_FIXED64';
/**
* Field type fixed32.
*/
public const KIND_TYPE_FIXED32 = 'TYPE_FIXED32';
/**
* Field type bool.
*/
public const KIND_TYPE_BOOL = 'TYPE_BOOL';
/**
* Field type string.
*/
public const KIND_TYPE_STRING = 'TYPE_STRING';
/**
* Field type group. Proto2 syntax only, and deprecated.
*/
public const KIND_TYPE_GROUP = 'TYPE_GROUP';
/**
* Field type message.
*/
public const KIND_TYPE_MESSAGE = 'TYPE_MESSAGE';
/**
* Field type bytes.
*/
public const KIND_TYPE_BYTES = 'TYPE_BYTES';
/**
* Field type uint32.
*/
public const KIND_TYPE_UINT32 = 'TYPE_UINT32';
/**
* Field type enum.
*/
public const KIND_TYPE_ENUM = 'TYPE_ENUM';
/**
* Field type sfixed32.
*/
public const KIND_TYPE_SFIXED32 = 'TYPE_SFIXED32';
/**
* Field type sfixed64.
*/
public const KIND_TYPE_SFIXED64 = 'TYPE_SFIXED64';
/**
* Field type sint32.
*/
public const KIND_TYPE_SINT32 = 'TYPE_SINT32';
/**
* Field type sint64.
*/
public const KIND_TYPE_SINT64 = 'TYPE_SINT64';
protected $collection_key = 'options';
/**
* The field cardinality.
*
* @var string
*/
public $cardinality;
/**
* The string value of the default value of this field. Proto2 syntax only.
*
* @var string
*/
public $defaultValue;
/**
* The field JSON name.
*
* @var string
*/
public $jsonName;
/**
* The field type.
*
* @var string
*/
public $kind;
/**
* The field name.
*
* @var string
*/
public $name;
/**
* The field number.
*
* @var int
*/
public $number;
/**
* The index of the field type in `Type.oneofs`, for message or enumeration
* types. The first type has index 1; zero means the type is not in the list.
*
* @var int
*/
public $oneofIndex;
protected $optionsType = Option::class;
protected $optionsDataType = 'array';
/**
* Whether to use alternative packed wire representation.
*
* @var bool
*/
public $packed;
/**
* The field type URL, without the scheme, for message or enumeration types.
* Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
*
* @var string
*/
public $typeUrl;
/**
* The field cardinality.
*
* Accepted values: CARDINALITY_UNKNOWN, CARDINALITY_OPTIONAL,
* CARDINALITY_REQUIRED, CARDINALITY_REPEATED
*
* @param self::CARDINALITY_* $cardinality
*/
public function setCardinality($cardinality)
{
$this->cardinality = $cardinality;
}
/**
* @return self::CARDINALITY_*
*/
public function getCardinality()
{
return $this->cardinality;
}
/**
* The string value of the default value of this field. Proto2 syntax only.
*
* @param string $defaultValue
*/
public function setDefaultValue($defaultValue)
{
$this->defaultValue = $defaultValue;
}
/**
* @return string
*/
public function getDefaultValue()
{
return $this->defaultValue;
}
/**
* The field JSON name.
*
* @param string $jsonName
*/
public function setJsonName($jsonName)
{
$this->jsonName = $jsonName;
}
/**
* @return string
*/
public function getJsonName()
{
return $this->jsonName;
}
/**
* The field type.
*
* Accepted values: TYPE_UNKNOWN, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT64,
* TYPE_UINT64, TYPE_INT32, TYPE_FIXED64, TYPE_FIXED32, TYPE_BOOL,
* TYPE_STRING, TYPE_GROUP, TYPE_MESSAGE, TYPE_BYTES, TYPE_UINT32, TYPE_ENUM,
* TYPE_SFIXED32, TYPE_SFIXED64, TYPE_SINT32, TYPE_SINT64
*
* @param self::KIND_* $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return self::KIND_*
*/
public function getKind()
{
return $this->kind;
}
/**
* The field name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The field number.
*
* @param int $number
*/
public function setNumber($number)
{
$this->number = $number;
}
/**
* @return int
*/
public function getNumber()
{
return $this->number;
}
/**
* The index of the field type in `Type.oneofs`, for message or enumeration
* types. The first type has index 1; zero means the type is not in the list.
*
* @param int $oneofIndex
*/
public function setOneofIndex($oneofIndex)
{
$this->oneofIndex = $oneofIndex;
}
/**
* @return int
*/
public function getOneofIndex()
{
return $this->oneofIndex;
}
/**
* The protocol buffer options.
*
* @param Option[] $options
*/
public function setOptions($options)
{
$this->options = $options;
}
/**
* @return Option[]
*/
public function getOptions()
{
return $this->options;
}
/**
* Whether to use alternative packed wire representation.
*
* @param bool $packed
*/
public function setPacked($packed)
{
$this->packed = $packed;
}
/**
* @return bool
*/
public function getPacked()
{
return $this->packed;
}
/**
* The field type URL, without the scheme, for message or enumeration types.
* Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
*
* @param string $typeUrl
*/
public function setTypeUrl($typeUrl)
{
$this->typeUrl = $typeUrl;
}
/**
* @return string
*/
public function getTypeUrl()
{
return $this->typeUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Field::class, 'Google_Service_ServiceUsage_Field');
@@ -0,0 +1,108 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class FieldPolicy extends \Google\Model
{
/**
* Specifies the required permission(s) for the resource referred to by the
* field. It requires the field contains a valid resource reference, and the
* request must pass the permission checks to proceed. For example,
* "resourcemanager.projects.get".
*
* @var string
*/
public $resourcePermission;
/**
* Specifies the resource type for the resource referred to by the field.
*
* @var string
*/
public $resourceType;
/**
* Selects one or more request or response message fields to apply this
* `FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the
* selector must be left as empty. The service config generator will
* automatically fill the correct value. When a `FieldPolicy` is used in
* service config, the selector must be a comma-separated string with valid
* request or response field paths, such as "foo.bar" or "foo.bar,foo.baz".
*
* @var string
*/
public $selector;
/**
* Specifies the required permission(s) for the resource referred to by the
* field. It requires the field contains a valid resource reference, and the
* request must pass the permission checks to proceed. For example,
* "resourcemanager.projects.get".
*
* @param string $resourcePermission
*/
public function setResourcePermission($resourcePermission)
{
$this->resourcePermission = $resourcePermission;
}
/**
* @return string
*/
public function getResourcePermission()
{
return $this->resourcePermission;
}
/**
* Specifies the resource type for the resource referred to by the field.
*
* @param string $resourceType
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
/**
* Selects one or more request or response message fields to apply this
* `FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the
* selector must be left as empty. The service config generator will
* automatically fill the correct value. When a `FieldPolicy` is used in
* service config, the selector must be a comma-separated string with valid
* request or response field paths, such as "foo.bar" or "foo.bar,foo.baz".
*
* @param string $selector
*/
public function setSelector($selector)
{
$this->selector = $selector;
}
/**
* @return string
*/
public function getSelector()
{
return $this->selector;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FieldPolicy::class, 'Google_Service_ServiceUsage_FieldPolicy');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GetServiceIdentityMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetServiceIdentityMetadata::class, 'Google_Service_ServiceUsage_GetServiceIdentityMetadata');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GetServiceIdentityResponse extends \Google\Model
{
/**
* Default service identity state. This value is used if the state is omitted.
*/
public const STATE_IDENTITY_STATE_UNSPECIFIED = 'IDENTITY_STATE_UNSPECIFIED';
/**
* Service identity has been created and can be used.
*/
public const STATE_ACTIVE = 'ACTIVE';
protected $identityType = ServiceIdentity::class;
protected $identityDataType = '';
/**
* Service identity state.
*
* @var string
*/
public $state;
/**
* Service identity that service producer can use to access consumer
* resources. If exists is true, it contains email and unique_id. If exists is
* false, it contains pre-constructed email and empty unique_id.
*
* @param ServiceIdentity $identity
*/
public function setIdentity(ServiceIdentity $identity)
{
$this->identity = $identity;
}
/**
* @return ServiceIdentity
*/
public function getIdentity()
{
return $this->identity;
}
/**
* Service identity state.
*
* Accepted values: IDENTITY_STATE_UNSPECIFIED, ACTIVE
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetServiceIdentityResponse::class, 'Google_Service_ServiceUsage_GetServiceIdentityResponse');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoSettings extends \Google\Model
{
protected $commonType = CommonLanguageSettings::class;
protected $commonDataType = '';
/**
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client and
* call options. Example: publishing: go_settings: renamed_services:
* Publisher: TopicAdmin
*
* @var string[]
*/
public $renamedServices;
/**
* Some settings.
*
* @param CommonLanguageSettings $common
*/
public function setCommon(CommonLanguageSettings $common)
{
$this->common = $common;
}
/**
* @return CommonLanguageSettings
*/
public function getCommon()
{
return $this->common;
}
/**
* Map of service names to renamed services. Keys are the package relative
* service names and values are the name to be used for the service client and
* call options. Example: publishing: go_settings: renamed_services:
* Publisher: TopicAdmin
*
* @param string[] $renamedServices
*/
public function setRenamedServices($renamedServices)
{
$this->renamedServices = $renamedServices;
}
/**
* @return string[]
*/
public function getRenamedServices()
{
return $this->renamedServices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoSettings::class, 'Google_Service_ServiceUsage_GoSettings');
@@ -0,0 +1,609 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiService extends \Google\Collection
{
protected $collection_key = 'types';
protected $apisType = Api::class;
protected $apisDataType = 'array';
protected $aspectsType = Aspect::class;
protected $aspectsDataType = 'array';
protected $authenticationType = Authentication::class;
protected $authenticationDataType = '';
protected $backendType = Backend::class;
protected $backendDataType = '';
protected $billingType = Billing::class;
protected $billingDataType = '';
/**
* Obsolete. Do not use. This field has no semantic meaning. The service
* config compiler always sets this field to `3`.
*
* @var string
*/
public $configVersion;
protected $contextType = Context::class;
protected $contextDataType = '';
protected $controlType = Control::class;
protected $controlDataType = '';
protected $customErrorType = CustomError::class;
protected $customErrorDataType = '';
protected $documentationType = Documentation::class;
protected $documentationDataType = '';
protected $endpointsType = Endpoint::class;
protected $endpointsDataType = 'array';
protected $enumsType = Enum::class;
protected $enumsDataType = 'array';
protected $httpType = Http::class;
protected $httpDataType = '';
/**
* A unique ID for a specific instance of this message, typically assigned by
* the client for tracking purpose. Must be no longer than 63 characters and
* only lower case letters, digits, '.', '_' and '-' are allowed. If empty,
* the server may choose to generate one instead.
*
* @var string
*/
public $id;
protected $loggingType = Logging::class;
protected $loggingDataType = '';
protected $logsType = LogDescriptor::class;
protected $logsDataType = 'array';
protected $metricsType = MetricDescriptor::class;
protected $metricsDataType = 'array';
protected $monitoredResourcesType = MonitoredResourceDescriptor::class;
protected $monitoredResourcesDataType = 'array';
protected $monitoringType = Monitoring::class;
protected $monitoringDataType = '';
/**
* The service name, which is a DNS-like logical identifier for the service,
* such as `calendar.googleapis.com`. The service name typically goes through
* DNS verification to make sure the owner of the service also owns the DNS
* name.
*
* @var string
*/
public $name;
/**
* The Google project that owns this service.
*
* @var string
*/
public $producerProjectId;
protected $publishingType = Publishing::class;
protected $publishingDataType = '';
protected $quotaType = Quota::class;
protected $quotaDataType = '';
protected $sourceInfoType = SourceInfo::class;
protected $sourceInfoDataType = '';
protected $systemParametersType = SystemParameters::class;
protected $systemParametersDataType = '';
protected $systemTypesType = Type::class;
protected $systemTypesDataType = 'array';
/**
* The product title for this service, it is the name displayed in Google
* Cloud Console.
*
* @var string
*/
public $title;
protected $typesType = Type::class;
protected $typesDataType = 'array';
protected $usageType = Usage::class;
protected $usageDataType = '';
/**
* A list of API interfaces exported by this service. Only the `name` field of
* the google.protobuf.Api needs to be provided by the configuration author,
* as the remaining fields will be derived from the IDL during the
* normalization process. It is an error to specify an API interface here
* which cannot be resolved against the associated IDL files.
*
* @param Api[] $apis
*/
public function setApis($apis)
{
$this->apis = $apis;
}
/**
* @return Api[]
*/
public function getApis()
{
return $this->apis;
}
/**
* Configuration aspects. This is a repeated field to allow multiple aspects
* to be configured. The kind field in each ConfigAspect specifies the type of
* aspect. The spec field contains the configuration for that aspect. The
* schema for the spec field is defined by the backend service owners.
*
* @param Aspect[] $aspects
*/
public function setAspects($aspects)
{
$this->aspects = $aspects;
}
/**
* @return Aspect[]
*/
public function getAspects()
{
return $this->aspects;
}
/**
* Auth configuration.
*
* @param Authentication $authentication
*/
public function setAuthentication(Authentication $authentication)
{
$this->authentication = $authentication;
}
/**
* @return Authentication
*/
public function getAuthentication()
{
return $this->authentication;
}
/**
* API backend configuration.
*
* @param Backend $backend
*/
public function setBackend(Backend $backend)
{
$this->backend = $backend;
}
/**
* @return Backend
*/
public function getBackend()
{
return $this->backend;
}
/**
* Billing configuration.
*
* @param Billing $billing
*/
public function setBilling(Billing $billing)
{
$this->billing = $billing;
}
/**
* @return Billing
*/
public function getBilling()
{
return $this->billing;
}
/**
* Obsolete. Do not use. This field has no semantic meaning. The service
* config compiler always sets this field to `3`.
*
* @param string $configVersion
*/
public function setConfigVersion($configVersion)
{
$this->configVersion = $configVersion;
}
/**
* @return string
*/
public function getConfigVersion()
{
return $this->configVersion;
}
/**
* Context configuration.
*
* @param Context $context
*/
public function setContext(Context $context)
{
$this->context = $context;
}
/**
* @return Context
*/
public function getContext()
{
return $this->context;
}
/**
* Configuration for the service control plane.
*
* @param Control $control
*/
public function setControl(Control $control)
{
$this->control = $control;
}
/**
* @return Control
*/
public function getControl()
{
return $this->control;
}
/**
* Custom error configuration.
*
* @param CustomError $customError
*/
public function setCustomError(CustomError $customError)
{
$this->customError = $customError;
}
/**
* @return CustomError
*/
public function getCustomError()
{
return $this->customError;
}
/**
* Additional API documentation.
*
* @param Documentation $documentation
*/
public function setDocumentation(Documentation $documentation)
{
$this->documentation = $documentation;
}
/**
* @return Documentation
*/
public function getDocumentation()
{
return $this->documentation;
}
/**
* Configuration for network endpoints. If this is empty, then an endpoint
* with the same name as the service is automatically generated to service all
* defined APIs.
*
* @param Endpoint[] $endpoints
*/
public function setEndpoints($endpoints)
{
$this->endpoints = $endpoints;
}
/**
* @return Endpoint[]
*/
public function getEndpoints()
{
return $this->endpoints;
}
/**
* A list of all enum types included in this API service. Enums referenced
* directly or indirectly by the `apis` are automatically included. Enums
* which are not referenced but shall be included should be listed here by
* name by the configuration author. Example: enums: - name:
* google.someapi.v1.SomeEnum
*
* @param Enum[] $enums
*/
public function setEnums($enums)
{
$this->enums = $enums;
}
/**
* @return Enum[]
*/
public function getEnums()
{
return $this->enums;
}
/**
* HTTP configuration.
*
* @param Http $http
*/
public function setHttp(Http $http)
{
$this->http = $http;
}
/**
* @return Http
*/
public function getHttp()
{
return $this->http;
}
/**
* A unique ID for a specific instance of this message, typically assigned by
* the client for tracking purpose. Must be no longer than 63 characters and
* only lower case letters, digits, '.', '_' and '-' are allowed. If empty,
* the server may choose to generate one instead.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Logging configuration.
*
* @param Logging $logging
*/
public function setLogging(Logging $logging)
{
$this->logging = $logging;
}
/**
* @return Logging
*/
public function getLogging()
{
return $this->logging;
}
/**
* Defines the logs used by this service.
*
* @param LogDescriptor[] $logs
*/
public function setLogs($logs)
{
$this->logs = $logs;
}
/**
* @return LogDescriptor[]
*/
public function getLogs()
{
return $this->logs;
}
/**
* Defines the metrics used by this service.
*
* @param MetricDescriptor[] $metrics
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return MetricDescriptor[]
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* Defines the monitored resources used by this service. This is required by
* the `Service.monitoring` and `Service.logging` configurations.
*
* @param MonitoredResourceDescriptor[] $monitoredResources
*/
public function setMonitoredResources($monitoredResources)
{
$this->monitoredResources = $monitoredResources;
}
/**
* @return MonitoredResourceDescriptor[]
*/
public function getMonitoredResources()
{
return $this->monitoredResources;
}
/**
* Monitoring configuration.
*
* @param Monitoring $monitoring
*/
public function setMonitoring(Monitoring $monitoring)
{
$this->monitoring = $monitoring;
}
/**
* @return Monitoring
*/
public function getMonitoring()
{
return $this->monitoring;
}
/**
* The service name, which is a DNS-like logical identifier for the service,
* such as `calendar.googleapis.com`. The service name typically goes through
* DNS verification to make sure the owner of the service also owns the DNS
* name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The Google project that owns this service.
*
* @param string $producerProjectId
*/
public function setProducerProjectId($producerProjectId)
{
$this->producerProjectId = $producerProjectId;
}
/**
* @return string
*/
public function getProducerProjectId()
{
return $this->producerProjectId;
}
/**
* Settings for [Google Cloud Client
* libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
* generated from APIs defined as protocol buffers.
*
* @param Publishing $publishing
*/
public function setPublishing(Publishing $publishing)
{
$this->publishing = $publishing;
}
/**
* @return Publishing
*/
public function getPublishing()
{
return $this->publishing;
}
/**
* Quota configuration.
*
* @param Quota $quota
*/
public function setQuota(Quota $quota)
{
$this->quota = $quota;
}
/**
* @return Quota
*/
public function getQuota()
{
return $this->quota;
}
/**
* Output only. The source information for this configuration if available.
*
* @param SourceInfo $sourceInfo
*/
public function setSourceInfo(SourceInfo $sourceInfo)
{
$this->sourceInfo = $sourceInfo;
}
/**
* @return SourceInfo
*/
public function getSourceInfo()
{
return $this->sourceInfo;
}
/**
* System parameter configuration.
*
* @param SystemParameters $systemParameters
*/
public function setSystemParameters(SystemParameters $systemParameters)
{
$this->systemParameters = $systemParameters;
}
/**
* @return SystemParameters
*/
public function getSystemParameters()
{
return $this->systemParameters;
}
/**
* A list of all proto message types included in this API service. It serves
* similar purpose as [google.api.Service.types], except that these types are
* not needed by user-defined APIs. Therefore, they will not show up in the
* generated discovery doc. This field should only be used to define system
* APIs in ESF.
*
* @param Type[] $systemTypes
*/
public function setSystemTypes($systemTypes)
{
$this->systemTypes = $systemTypes;
}
/**
* @return Type[]
*/
public function getSystemTypes()
{
return $this->systemTypes;
}
/**
* The product title for this service, it is the name displayed in Google
* Cloud Console.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* A list of all proto message types included in this API service. Types
* referenced directly or indirectly by the `apis` are automatically included.
* Messages which are not referenced but shall be included, such as types used
* by the `google.protobuf.Any` type, should be listed here by name by the
* configuration author. Example: types: - name: google.protobuf.Int32
*
* @param Type[] $types
*/
public function setTypes($types)
{
$this->types = $types;
}
/**
* @return Type[]
*/
public function getTypes()
{
return $this->types;
}
/**
* Configuration controlling usage of this service.
*
* @param Usage $usage
*/
public function setUsage(Usage $usage)
{
$this->usage = $usage;
}
/**
* @return Usage
*/
public function getUsage()
{
return $this->usage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiService::class, 'Google_Service_ServiceUsage_GoogleApiService');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV1OperationMetadata extends \Google\Collection
{
protected $collection_key = 'resourceNames';
/**
* The full name of the resources that this operation is directly associated
* with.
*
* @var string[]
*/
public $resourceNames;
/**
* The full name of the resources that this operation is directly associated
* with.
*
* @param string[] $resourceNames
*/
public function setResourceNames($resourceNames)
{
$this->resourceNames = $resourceNames;
}
/**
* @return string[]
*/
public function getResourceNames()
{
return $this->resourceNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV1OperationMetadata::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV1OperationMetadata');
@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV1Service extends \Google\Model
{
/**
* The default value, which indicates that the enabled state of the service is
* unspecified or not meaningful. Currently, all consumers other than projects
* (such as folders and organizations) are always in this state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The service cannot be used by this consumer. It has either been explicitly
* disabled, or has never been enabled.
*/
public const STATE_DISABLED = 'DISABLED';
/**
* The service has been explicitly enabled for use by this consumer.
*/
public const STATE_ENABLED = 'ENABLED';
protected $configType = GoogleApiServiceusageV1ServiceConfig::class;
protected $configDataType = '';
/**
* The resource name of the consumer and service. A valid name would be: -
* projects/123/services/serviceusage.googleapis.com
*
* @var string
*/
public $name;
/**
* The resource name of the consumer. A valid name would be: - projects/123
*
* @var string
*/
public $parent;
/**
* Whether or not the service has been enabled for use by the consumer.
*
* @var string
*/
public $state;
/**
* The service configuration of the available service. Some fields may be
* filtered out of the configuration in responses to the `ListServices`
* method. These fields are present only in responses to the `GetService`
* method.
*
* @param GoogleApiServiceusageV1ServiceConfig $config
*/
public function setConfig(GoogleApiServiceusageV1ServiceConfig $config)
{
$this->config = $config;
}
/**
* @return GoogleApiServiceusageV1ServiceConfig
*/
public function getConfig()
{
return $this->config;
}
/**
* The resource name of the consumer and service. A valid name would be: -
* projects/123/services/serviceusage.googleapis.com
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The resource name of the consumer. A valid name would be: - projects/123
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Whether or not the service has been enabled for use by the consumer.
*
* Accepted values: STATE_UNSPECIFIED, DISABLED, ENABLED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV1Service::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV1Service');
@@ -0,0 +1,222 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV1ServiceConfig extends \Google\Collection
{
protected $collection_key = 'monitoredResources';
protected $apisType = Api::class;
protected $apisDataType = 'array';
protected $authenticationType = Authentication::class;
protected $authenticationDataType = '';
protected $documentationType = Documentation::class;
protected $documentationDataType = '';
protected $endpointsType = Endpoint::class;
protected $endpointsDataType = 'array';
protected $monitoredResourcesType = MonitoredResourceDescriptor::class;
protected $monitoredResourcesDataType = 'array';
protected $monitoringType = Monitoring::class;
protected $monitoringDataType = '';
/**
* The DNS address at which this service is available. An example DNS address
* would be: `calendar.googleapis.com`.
*
* @var string
*/
public $name;
protected $quotaType = Quota::class;
protected $quotaDataType = '';
/**
* The product title for this service.
*
* @var string
*/
public $title;
protected $usageType = Usage::class;
protected $usageDataType = '';
/**
* A list of API interfaces exported by this service. Contains only the names,
* versions, and method names of the interfaces.
*
* @param Api[] $apis
*/
public function setApis($apis)
{
$this->apis = $apis;
}
/**
* @return Api[]
*/
public function getApis()
{
return $this->apis;
}
/**
* Auth configuration. Contains only the OAuth rules.
*
* @param Authentication $authentication
*/
public function setAuthentication(Authentication $authentication)
{
$this->authentication = $authentication;
}
/**
* @return Authentication
*/
public function getAuthentication()
{
return $this->authentication;
}
/**
* Additional API documentation. Contains only the summary and the
* documentation URL.
*
* @param Documentation $documentation
*/
public function setDocumentation(Documentation $documentation)
{
$this->documentation = $documentation;
}
/**
* @return Documentation
*/
public function getDocumentation()
{
return $this->documentation;
}
/**
* Configuration for network endpoints. Contains only the names and aliases of
* the endpoints.
*
* @param Endpoint[] $endpoints
*/
public function setEndpoints($endpoints)
{
$this->endpoints = $endpoints;
}
/**
* @return Endpoint[]
*/
public function getEndpoints()
{
return $this->endpoints;
}
/**
* Defines the monitored resources used by this service. This is required by
* the Service.monitoring and Service.logging configurations.
*
* @param MonitoredResourceDescriptor[] $monitoredResources
*/
public function setMonitoredResources($monitoredResources)
{
$this->monitoredResources = $monitoredResources;
}
/**
* @return MonitoredResourceDescriptor[]
*/
public function getMonitoredResources()
{
return $this->monitoredResources;
}
/**
* Monitoring configuration. This should not include the
* 'producer_destinations' field.
*
* @param Monitoring $monitoring
*/
public function setMonitoring(Monitoring $monitoring)
{
$this->monitoring = $monitoring;
}
/**
* @return Monitoring
*/
public function getMonitoring()
{
return $this->monitoring;
}
/**
* The DNS address at which this service is available. An example DNS address
* would be: `calendar.googleapis.com`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Quota configuration.
*
* @param Quota $quota
*/
public function setQuota(Quota $quota)
{
$this->quota = $quota;
}
/**
* @return Quota
*/
public function getQuota()
{
return $this->quota;
}
/**
* The product title for this service.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Configuration controlling usage of this service.
*
* @param Usage $usage
*/
public function setUsage(Usage $usage)
{
$this->usage = $usage;
}
/**
* @return Usage
*/
public function getUsage()
{
return $this->usage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV1ServiceConfig::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV1ServiceConfig');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV1beta1GetServiceIdentityResponse extends \Google\Model
{
/**
* Default service identity state. This value is used if the state is omitted.
*/
public const STATE_IDENTITY_STATE_UNSPECIFIED = 'IDENTITY_STATE_UNSPECIFIED';
/**
* Service identity has been created and can be used.
*/
public const STATE_ACTIVE = 'ACTIVE';
protected $identityType = GoogleApiServiceusageV1beta1ServiceIdentity::class;
protected $identityDataType = '';
/**
* Service identity state.
*
* @var string
*/
public $state;
/**
* Service identity that service producer can use to access consumer
* resources. If exists is true, it contains email and unique_id. If exists is
* false, it contains pre-constructed email and empty unique_id.
*
* @param GoogleApiServiceusageV1beta1ServiceIdentity $identity
*/
public function setIdentity(GoogleApiServiceusageV1beta1ServiceIdentity $identity)
{
$this->identity = $identity;
}
/**
* @return GoogleApiServiceusageV1beta1ServiceIdentity
*/
public function getIdentity()
{
return $this->identity;
}
/**
* Service identity state.
*
* Accepted values: IDENTITY_STATE_UNSPECIFIED, ACTIVE
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV1beta1GetServiceIdentityResponse::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV1beta1GetServiceIdentityResponse');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV1beta1ServiceIdentity extends \Google\Model
{
/**
* The email address of the service account that a service producer would use
* to access consumer resources.
*
* @var string
*/
public $email;
/**
* The unique and stable id of the service account. https://cloud.google.com/i
* am/reference/rest/v1/projects.serviceAccounts#ServiceAccount
*
* @var string
*/
public $uniqueId;
/**
* The email address of the service account that a service producer would use
* to access consumer resources.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The unique and stable id of the service account. https://cloud.google.com/i
* am/reference/rest/v1/projects.serviceAccounts#ServiceAccount
*
* @param string $uniqueId
*/
public function setUniqueId($uniqueId)
{
$this->uniqueId = $uniqueId;
}
/**
* @return string
*/
public function getUniqueId()
{
return $this->uniqueId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV1beta1ServiceIdentity::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV1beta1ServiceIdentity');
@@ -0,0 +1,173 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2alphaConsumerPolicy extends \Google\Collection
{
protected $collection_key = 'enableRules';
/**
* Optional. Annotations is an unstructured key-value map stored with a policy
* that may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
* [AIP-128](https://google.aip.dev/128#annotations)
*
* @var string[]
*/
public $annotations;
/**
* Output only. The time the policy was created. For singleton policies, this
* is the first touch of the policy.
*
* @var string
*/
public $createTime;
protected $enableRulesType = GoogleApiServiceusageV2alphaEnableRule::class;
protected $enableRulesDataType = 'array';
/**
* Output only. An opaque tag indicating the current version of the policy,
* used for concurrency control.
*
* @var string
*/
public $etag;
/**
* Output only. The resource name of the policy. Only the `default` policy is
* supported: `projects/12345/consumerPolicies/default`,
* `folders/12345/consumerPolicies/default`,
* `organizations/12345/consumerPolicies/default`.
*
* @var string
*/
public $name;
/**
* Output only. The time the policy was last updated.
*
* @var string
*/
public $updateTime;
/**
* Optional. Annotations is an unstructured key-value map stored with a policy
* that may be set by external tools to store and retrieve arbitrary metadata.
* They are not queryable and should be preserved when modifying objects.
* [AIP-128](https://google.aip.dev/128#annotations)
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. The time the policy was created. For singleton policies, this
* is the first touch of the policy.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Enable rules define usable services, groups, and categories. There can
* currently be at most one `EnableRule`. This restriction will be lifted in
* later releases.
*
* @param GoogleApiServiceusageV2alphaEnableRule[] $enableRules
*/
public function setEnableRules($enableRules)
{
$this->enableRules = $enableRules;
}
/**
* @return GoogleApiServiceusageV2alphaEnableRule[]
*/
public function getEnableRules()
{
return $this->enableRules;
}
/**
* Output only. An opaque tag indicating the current version of the policy,
* used for concurrency control.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. The resource name of the policy. Only the `default` policy is
* supported: `projects/12345/consumerPolicies/default`,
* `folders/12345/consumerPolicies/default`,
* `organizations/12345/consumerPolicies/default`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The time the policy was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2alphaConsumerPolicy::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2alphaConsumerPolicy');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2alphaEnableRule extends \Google\Collection
{
protected $collection_key = 'services';
/**
* The names of the services that are enabled. Example:
* `services/storage.googleapis.com`.
*
* @var string[]
*/
public $services;
/**
* The names of the services that are enabled. Example:
* `services/storage.googleapis.com`.
*
* @param string[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return string[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2alphaEnableRule::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2alphaEnableRule');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata');
@@ -0,0 +1,129 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaAnalysis extends \Google\Model
{
/**
* Unspecified analysis type. Do not use.
*/
public const ANALYSIS_TYPE_ANALYSIS_TYPE_UNSPECIFIED = 'ANALYSIS_TYPE_UNSPECIFIED';
/**
* The analysis of service dependencies.
*/
public const ANALYSIS_TYPE_ANALYSIS_TYPE_DEPENDENCY = 'ANALYSIS_TYPE_DEPENDENCY';
/**
* The analysis of service resource usage.
*/
public const ANALYSIS_TYPE_ANALYSIS_TYPE_RESOURCE_USAGE = 'ANALYSIS_TYPE_RESOURCE_USAGE';
protected $analysisResultType = GoogleApiServiceusageV2betaAnalysisResult::class;
protected $analysisResultDataType = '';
/**
* Output only. The type of analysis.
*
* @var string
*/
public $analysisType;
/**
* Output only. The user friendly display name of the analysis type. E.g.
* service dependency analysis, service resource usage analysis, etc.
*
* @var string
*/
public $displayName;
/**
* The names of the service that has analysis result of warnings or blockers.
* Example: `services/storage.googleapis.com`.
*
* @var string
*/
public $service;
/**
* Output only. Analysis result of updating a policy.
*
* @param GoogleApiServiceusageV2betaAnalysisResult $analysisResult
*/
public function setAnalysisResult(GoogleApiServiceusageV2betaAnalysisResult $analysisResult)
{
$this->analysisResult = $analysisResult;
}
/**
* @return GoogleApiServiceusageV2betaAnalysisResult
*/
public function getAnalysisResult()
{
return $this->analysisResult;
}
/**
* Output only. The type of analysis.
*
* Accepted values: ANALYSIS_TYPE_UNSPECIFIED, ANALYSIS_TYPE_DEPENDENCY,
* ANALYSIS_TYPE_RESOURCE_USAGE
*
* @param self::ANALYSIS_TYPE_* $analysisType
*/
public function setAnalysisType($analysisType)
{
$this->analysisType = $analysisType;
}
/**
* @return self::ANALYSIS_TYPE_*
*/
public function getAnalysisType()
{
return $this->analysisType;
}
/**
* Output only. The user friendly display name of the analysis type. E.g.
* service dependency analysis, service resource usage analysis, etc.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The names of the service that has analysis result of warnings or blockers.
* Example: `services/storage.googleapis.com`.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaAnalysis::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaAnalysis');
@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaAnalysisResult extends \Google\Collection
{
protected $collection_key = 'warnings';
protected $blockersType = GoogleApiServiceusageV2betaImpact::class;
protected $blockersDataType = 'array';
protected $warningsType = GoogleApiServiceusageV2betaImpact::class;
protected $warningsDataType = 'array';
/**
* Blocking information that would prevent the policy changes at runtime.
*
* @param GoogleApiServiceusageV2betaImpact[] $blockers
*/
public function setBlockers($blockers)
{
$this->blockers = $blockers;
}
/**
* @return GoogleApiServiceusageV2betaImpact[]
*/
public function getBlockers()
{
return $this->blockers;
}
/**
* Warning information indicating that the policy changes might be unsafe, but
* will not block the changes at runtime.
*
* @param GoogleApiServiceusageV2betaImpact[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return GoogleApiServiceusageV2betaImpact[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaAnalysisResult::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaAnalysisResult');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse extends \Google\Collection
{
protected $collection_key = 'analysis';
protected $analysisType = GoogleApiServiceusageV2betaAnalysis::class;
protected $analysisDataType = 'array';
/**
* The list of analyses returned from performing the intended policy update
* analysis. The analysis is grouped by service name and different analysis
* types. The empty analysis list means that the consumer policy can be
* updated without any warnings or blockers.
*
* @param GoogleApiServiceusageV2betaAnalysis[] $analysis
*/
public function setAnalysis($analysis)
{
$this->analysis = $analysis;
}
/**
* @return GoogleApiServiceusageV2betaAnalysis[]
*/
public function getAnalysis()
{
return $this->analysis;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse');
@@ -0,0 +1,145 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaConsumerPolicy extends \Google\Collection
{
protected $collection_key = 'enableRules';
/**
* Output only. The time the policy was created. For singleton policies, this
* is the first touch of the policy.
*
* @var string
*/
public $createTime;
protected $enableRulesType = GoogleApiServiceusageV2betaEnableRule::class;
protected $enableRulesDataType = 'array';
/**
* An opaque tag indicating the current version of the policy, used for
* concurrency control.
*
* @var string
*/
public $etag;
/**
* Output only. The resource name of the policy. Only the `default` policy is
* supported: `projects/12345/consumerPolicies/default`,
* `folders/12345/consumerPolicies/default`,
* `organizations/12345/consumerPolicies/default`.
*
* @var string
*/
public $name;
/**
* Output only. The time the policy was last updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The time the policy was created. For singleton policies, this
* is the first touch of the policy.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Enable rules define usable services, groups, and categories. There can
* currently be at most one `EnableRule`. This restriction will be lifted in
* later releases.
*
* @param GoogleApiServiceusageV2betaEnableRule[] $enableRules
*/
public function setEnableRules($enableRules)
{
$this->enableRules = $enableRules;
}
/**
* @return GoogleApiServiceusageV2betaEnableRule[]
*/
public function getEnableRules()
{
return $this->enableRules;
}
/**
* An opaque tag indicating the current version of the policy, used for
* concurrency control.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. The resource name of the policy. Only the `default` policy is
* supported: `projects/12345/consumerPolicies/default`,
* `folders/12345/consumerPolicies/default`,
* `organizations/12345/consumerPolicies/default`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The time the policy was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaConsumerPolicy::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaConsumerPolicy');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaEnableRule extends \Google\Collection
{
protected $collection_key = 'services';
/**
* The names of the services that are enabled. Example:
* `services/storage.googleapis.com`.
*
* @var string[]
*/
public $services;
/**
* The names of the services that are enabled. Example:
* `services/storage.googleapis.com`.
*
* @param string[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return string[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaEnableRule::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaEnableRule');
@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaImpact extends \Google\Model
{
/**
* Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 -
* Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block
* 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE ...
*/
public const IMPACT_TYPE_IMPACT_TYPE_UNSPECIFIED = 'IMPACT_TYPE_UNSPECIFIED';
/**
* Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY
*/
public const IMPACT_TYPE_DEPENDENCY_MISSING_DEPENDENCIES = 'DEPENDENCY_MISSING_DEPENDENCIES';
/**
* Output only. User friendly impact detail in a free form message.
*
* @var string
*/
public $detail;
/**
* Output only. The type of impact.
*
* @var string
*/
public $impactType;
/**
* Output only. This field will be populated only for the
* `DEPENDENCY_MISSING_DEPENDENCIES` impact type. Example:
* `services/compute.googleapis.com`. Impact.detail will be in format :
* `missing service dependency: {missing_dependency}.`
*
* @var string
*/
public $missingDependency;
/**
* Output only. User friendly impact detail in a free form message.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* Output only. The type of impact.
*
* Accepted values: IMPACT_TYPE_UNSPECIFIED, DEPENDENCY_MISSING_DEPENDENCIES
*
* @param self::IMPACT_TYPE_* $impactType
*/
public function setImpactType($impactType)
{
$this->impactType = $impactType;
}
/**
* @return self::IMPACT_TYPE_*
*/
public function getImpactType()
{
return $this->impactType;
}
/**
* Output only. This field will be populated only for the
* `DEPENDENCY_MISSING_DEPENDENCIES` impact type. Example:
* `services/compute.googleapis.com`. Impact.detail will be in format :
* `missing service dependency: {missing_dependency}.`
*
* @param string $missingDependency
*/
public function setMissingDependency($missingDependency)
{
$this->missingDependency = $missingDependency;
}
/**
* @return string
*/
public function getMissingDependency()
{
return $this->missingDependency;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaImpact::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaImpact');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaMcpEnableRule extends \Google\Collection
{
protected $collection_key = 'mcpServices';
protected $mcpServicesType = GoogleApiServiceusageV2betaMcpService::class;
protected $mcpServicesDataType = 'array';
/**
* List of enabled MCP services.
*
* @param GoogleApiServiceusageV2betaMcpService[] $mcpServices
*/
public function setMcpServices($mcpServices)
{
$this->mcpServices = $mcpServices;
}
/**
* @return GoogleApiServiceusageV2betaMcpService[]
*/
public function getMcpServices()
{
return $this->mcpServices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaMcpEnableRule::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaMcpEnableRule');
@@ -0,0 +1,147 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaMcpPolicy extends \Google\Collection
{
protected $collection_key = 'mcpEnableRules';
/**
* Output only. The time the policy was created. For singleton policies (such
* as the `default` policy), this is the first touch of the policy.
*
* @var string
*/
public $createTime;
/**
* An opaque tag indicating the current version of the policy, used for
* concurrency control.
*
* @var string
*/
public $etag;
protected $mcpEnableRulesType = GoogleApiServiceusageV2betaMcpEnableRule::class;
protected $mcpEnableRulesDataType = 'array';
/**
* Output only. The resource name of the policy. Only the `default` policy is
* supported. We allow the following formats:
* `projects/{PROJECT_NUMBER}/mcpPolicies/default`,
* `projects/{PROJECT_ID}/mcpPolicies/default`,
* `folders/{FOLDER_ID}/mcpPolicies/default`,
* `organizations/{ORG_ID}/mcpPolicies/default`.
*
* @var string
*/
public $name;
/**
* Output only. The time the policy was last updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The time the policy was created. For singleton policies (such
* as the `default` policy), this is the first touch of the policy.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* An opaque tag indicating the current version of the policy, used for
* concurrency control.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* McpEnableRules contains MCP enablement related rules.
*
* @param GoogleApiServiceusageV2betaMcpEnableRule[] $mcpEnableRules
*/
public function setMcpEnableRules($mcpEnableRules)
{
$this->mcpEnableRules = $mcpEnableRules;
}
/**
* @return GoogleApiServiceusageV2betaMcpEnableRule[]
*/
public function getMcpEnableRules()
{
return $this->mcpEnableRules;
}
/**
* Output only. The resource name of the policy. Only the `default` policy is
* supported. We allow the following formats:
* `projects/{PROJECT_NUMBER}/mcpPolicies/default`,
* `projects/{PROJECT_ID}/mcpPolicies/default`,
* `folders/{FOLDER_ID}/mcpPolicies/default`,
* `organizations/{ORG_ID}/mcpPolicies/default`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The time the policy was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaMcpPolicy::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaMcpPolicy');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaMcpService extends \Google\Model
{
/**
* The names of the services that are enabled for MCP. Example:
* `services/library-example.googleapis.com`
*
* @var string
*/
public $service;
/**
* The names of the services that are enabled for MCP. Example:
* `services/library-example.googleapis.com`
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaMcpService::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaMcpService');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GoogleApiServiceusageV2betaUpdateMcpPolicyMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleApiServiceusageV2betaUpdateMcpPolicyMetadata::class, 'Google_Service_ServiceUsage_GoogleApiServiceusageV2betaUpdateMcpPolicyMetadata');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class GroupValue extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupValue::class, 'Google_Service_ServiceUsage_GroupValue');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Http extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded. The default behavior is to not decode RFC 6570 reserved
* characters in multi segment matches.
*
* @var bool
*/
public $fullyDecodeReservedExpansion;
protected $rulesType = HttpRule::class;
protected $rulesDataType = 'array';
/**
* When set to true, URL path parameters will be fully URI-decoded except in
* cases of single segment matches in reserved expansion, where "%2F" will be
* left encoded. The default behavior is to not decode RFC 6570 reserved
* characters in multi segment matches.
*
* @param bool $fullyDecodeReservedExpansion
*/
public function setFullyDecodeReservedExpansion($fullyDecodeReservedExpansion)
{
$this->fullyDecodeReservedExpansion = $fullyDecodeReservedExpansion;
}
/**
* @return bool
*/
public function getFullyDecodeReservedExpansion()
{
return $this->fullyDecodeReservedExpansion;
}
/**
* A list of HTTP configuration rules that apply to individual API methods.
* **NOTE:** All service configuration rules follow "last one wins" order.
*
* @param HttpRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return HttpRule[]
*/
public function getRules()
{
return $this->rules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Http::class, 'Google_Service_ServiceUsage_Http');
@@ -0,0 +1,260 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class HttpRule extends \Google\Collection
{
protected $collection_key = 'additionalBindings';
protected $additionalBindingsType = HttpRule::class;
protected $additionalBindingsDataType = 'array';
/**
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
* @var string
*/
public $body;
protected $customType = CustomHttpPattern::class;
protected $customDataType = '';
/**
* Maps to HTTP DELETE. Used for deleting a resource.
*
* @var string
*/
public $delete;
/**
* Maps to HTTP GET. Used for listing and getting information about resources.
*
* @var string
*/
public $get;
/**
* Maps to HTTP PATCH. Used for updating a resource.
*
* @var string
*/
public $patch;
/**
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
* @var string
*/
public $post;
/**
* Maps to HTTP PUT. Used for replacing a resource.
*
* @var string
*/
public $put;
/**
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used as
* the HTTP response body. NOTE: The referred field must be present at the
* top-level of the response message type.
*
* @var string
*/
public $responseBody;
/**
* Selects a method to which this rule applies. Refer to selector for syntax
* details.
*
* @var string
*/
public $selector;
/**
* Additional HTTP bindings for the selector. Nested bindings must not contain
* an `additional_bindings` field themselves (that is, the nesting may only be
* one level deep).
*
* @param HttpRule[] $additionalBindings
*/
public function setAdditionalBindings($additionalBindings)
{
$this->additionalBindings = $additionalBindings;
}
/**
* @return HttpRule[]
*/
public function getAdditionalBindings()
{
return $this->additionalBindings;
}
/**
* The name of the request field whose value is mapped to the HTTP request
* body, or `*` for mapping all request fields not captured by the path
* pattern to the HTTP body, or omitted for not having any HTTP request body.
* NOTE: the referred field must be present at the top-level of the request
* message type.
*
* @param string $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* The custom pattern is used for specifying an HTTP method that is not
* included in the `pattern` field, such as HEAD, or "*" to leave the HTTP
* method unspecified for this rule. The wild-card rule is useful for services
* that provide content to Web (HTML) clients.
*
* @param CustomHttpPattern $custom
*/
public function setCustom(CustomHttpPattern $custom)
{
$this->custom = $custom;
}
/**
* @return CustomHttpPattern
*/
public function getCustom()
{
return $this->custom;
}
/**
* Maps to HTTP DELETE. Used for deleting a resource.
*
* @param string $delete
*/
public function setDelete($delete)
{
$this->delete = $delete;
}
/**
* @return string
*/
public function getDelete()
{
return $this->delete;
}
/**
* Maps to HTTP GET. Used for listing and getting information about resources.
*
* @param string $get
*/
public function setGet($get)
{
$this->get = $get;
}
/**
* @return string
*/
public function getGet()
{
return $this->get;
}
/**
* Maps to HTTP PATCH. Used for updating a resource.
*
* @param string $patch
*/
public function setPatch($patch)
{
$this->patch = $patch;
}
/**
* @return string
*/
public function getPatch()
{
return $this->patch;
}
/**
* Maps to HTTP POST. Used for creating a resource or performing an action.
*
* @param string $post
*/
public function setPost($post)
{
$this->post = $post;
}
/**
* @return string
*/
public function getPost()
{
return $this->post;
}
/**
* Maps to HTTP PUT. Used for replacing a resource.
*
* @param string $put
*/
public function setPut($put)
{
$this->put = $put;
}
/**
* @return string
*/
public function getPut()
{
return $this->put;
}
/**
* Optional. The name of the response field whose value is mapped to the HTTP
* response body. When omitted, the entire response message will be used as
* the HTTP response body. NOTE: The referred field must be present at the
* top-level of the response message type.
*
* @param string $responseBody
*/
public function setResponseBody($responseBody)
{
$this->responseBody = $responseBody;
}
/**
* @return string
*/
public function getResponseBody()
{
return $this->responseBody;
}
/**
* Selects a method to which this rule applies. Refer to selector for syntax
* details.
*
* @param string $selector
*/
public function setSelector($selector)
{
$this->selector = $selector;
}
/**
* @return string
*/
public function getSelector()
{
return $this->selector;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRule::class, 'Google_Service_ServiceUsage_HttpRule');
@@ -0,0 +1,128 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Impact extends \Google\Model
{
/**
* Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 -
* Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block
* 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE Block 3 - Impact Type of
* ANALYSIS_TYPE_RESOURCE_EXISTENCE ...
*/
public const IMPACT_TYPE_IMPACT_TYPE_UNSPECIFIED = 'IMPACT_TYPE_UNSPECIFIED';
/**
* Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY
*/
public const IMPACT_TYPE_DEPENDENCY_MISSING_DEPENDENCIES = 'DEPENDENCY_MISSING_DEPENDENCIES';
/**
* Block 3 - Impact Type of ANALYSIS_TYPE_RESOURCE_EXISTENCE
*/
public const IMPACT_TYPE_RESOURCE_EXISTENCE_PROJECT = 'RESOURCE_EXISTENCE_PROJECT';
/**
* Output only. User friendly impact detail in a free form message.
*
* @var string
*/
public $detail;
/**
* Output only. The type of impact.
*
* @var string
*/
public $impactType;
/**
* The parent resource that the analysis is based on and the service name that
* the analysis is for. Example:
* `projects/100/services/compute.googleapis.com`,
* folders/101/services/compute.googleapis.com` and
* `organizations/102/services/compute.googleapis.com`. Usually, the parent
* resource here is same as the parent resource of the analyzed policy.
* However, for some analysis types, the parent can be different. For example,
* for resource existence analysis, if the parent resource of the analyzed
* policy is a folder or an organization, the parent resource here can still
* be the project that contains the resources.
*
* @var string
*/
public $parent;
/**
* Output only. User friendly impact detail in a free form message.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* Output only. The type of impact.
*
* Accepted values: IMPACT_TYPE_UNSPECIFIED, DEPENDENCY_MISSING_DEPENDENCIES,
* RESOURCE_EXISTENCE_PROJECT
*
* @param self::IMPACT_TYPE_* $impactType
*/
public function setImpactType($impactType)
{
$this->impactType = $impactType;
}
/**
* @return self::IMPACT_TYPE_*
*/
public function getImpactType()
{
return $this->impactType;
}
/**
* The parent resource that the analysis is based on and the service name that
* the analysis is for. Example:
* `projects/100/services/compute.googleapis.com`,
* folders/101/services/compute.googleapis.com` and
* `organizations/102/services/compute.googleapis.com`. Usually, the parent
* resource here is same as the parent resource of the analyzed policy.
* However, for some analysis types, the parent can be different. For example,
* for resource existence analysis, if the parent resource of the analyzed
* policy is a folder or an organization, the parent resource here can still
* be the project that contains the resources.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Impact::class, 'Google_Service_ServiceUsage_Impact');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ImportAdminOverridesMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportAdminOverridesMetadata::class, 'Google_Service_ServiceUsage_ImportAdminOverridesMetadata');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ImportAdminOverridesResponse extends \Google\Collection
{
protected $collection_key = 'overrides';
protected $overridesType = QuotaOverride::class;
protected $overridesDataType = 'array';
/**
* The overrides that were created from the imported data.
*
* @param QuotaOverride[] $overrides
*/
public function setOverrides($overrides)
{
$this->overrides = $overrides;
}
/**
* @return QuotaOverride[]
*/
public function getOverrides()
{
return $this->overrides;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportAdminOverridesResponse::class, 'Google_Service_ServiceUsage_ImportAdminOverridesResponse');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ImportAdminQuotaPoliciesMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportAdminQuotaPoliciesMetadata::class, 'Google_Service_ServiceUsage_ImportAdminQuotaPoliciesMetadata');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ImportAdminQuotaPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'policies';
protected $policiesType = AdminQuotaPolicy::class;
protected $policiesDataType = 'array';
/**
* The policies that were created from the imported data.
*
* @param AdminQuotaPolicy[] $policies
*/
public function setPolicies($policies)
{
$this->policies = $policies;
}
/**
* @return AdminQuotaPolicy[]
*/
public function getPolicies()
{
return $this->policies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportAdminQuotaPoliciesResponse::class, 'Google_Service_ServiceUsage_ImportAdminQuotaPoliciesResponse');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ImportConsumerOverridesMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportConsumerOverridesMetadata::class, 'Google_Service_ServiceUsage_ImportConsumerOverridesMetadata');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ImportConsumerOverridesResponse extends \Google\Collection
{
protected $collection_key = 'overrides';
protected $overridesType = QuotaOverride::class;
protected $overridesDataType = 'array';
/**
* The overrides that were created from the imported data.
*
* @param QuotaOverride[] $overrides
*/
public function setOverrides($overrides)
{
$this->overrides = $overrides;
}
/**
* @return QuotaOverride[]
*/
public function getOverrides()
{
return $this->overrides;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImportConsumerOverridesResponse::class, 'Google_Service_ServiceUsage_ImportConsumerOverridesResponse');
@@ -0,0 +1,112 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class JavaSettings extends \Google\Model
{
protected $commonType = CommonLanguageSettings::class;
protected $commonDataType = '';
/**
* The package name to use in Java. Clobbers the java_package option set in
* the protobuf. This should be used **only** by APIs who have already set the
* language_settings.java.package_name" field in gapic.yaml. API teams should
* use the protobuf java_package option where possible. Example of a YAML
* configuration:: publishing: library_settings: java_settings:
* library_package: com.google.cloud.pubsub.v1
*
* @var string
*/
public $libraryPackage;
/**
* Configure the Java class name to use instead of the service's for its
* corresponding generated GAPIC client. Keys are fully-qualified service
* names as they appear in the protobuf (including the full the
* language_settings.java.interface_names" field in gapic.yaml. API teams
* should otherwise use the service name as it appears in the protobuf.
* Example of a YAML configuration:: publishing: java_settings:
* service_class_names: - google.pubsub.v1.Publisher: TopicAdmin -
* google.pubsub.v1.Subscriber: SubscriptionAdmin
*
* @var string[]
*/
public $serviceClassNames;
/**
* Some settings.
*
* @param CommonLanguageSettings $common
*/
public function setCommon(CommonLanguageSettings $common)
{
$this->common = $common;
}
/**
* @return CommonLanguageSettings
*/
public function getCommon()
{
return $this->common;
}
/**
* The package name to use in Java. Clobbers the java_package option set in
* the protobuf. This should be used **only** by APIs who have already set the
* language_settings.java.package_name" field in gapic.yaml. API teams should
* use the protobuf java_package option where possible. Example of a YAML
* configuration:: publishing: library_settings: java_settings:
* library_package: com.google.cloud.pubsub.v1
*
* @param string $libraryPackage
*/
public function setLibraryPackage($libraryPackage)
{
$this->libraryPackage = $libraryPackage;
}
/**
* @return string
*/
public function getLibraryPackage()
{
return $this->libraryPackage;
}
/**
* Configure the Java class name to use instead of the service's for its
* corresponding generated GAPIC client. Keys are fully-qualified service
* names as they appear in the protobuf (including the full the
* language_settings.java.interface_names" field in gapic.yaml. API teams
* should otherwise use the service name as it appears in the protobuf.
* Example of a YAML configuration:: publishing: java_settings:
* service_class_names: - google.pubsub.v1.Publisher: TopicAdmin -
* google.pubsub.v1.Subscriber: SubscriptionAdmin
*
* @param string[] $serviceClassNames
*/
public function setServiceClassNames($serviceClassNames)
{
$this->serviceClassNames = $serviceClassNames;
}
/**
* @return string[]
*/
public function getServiceClassNames()
{
return $this->serviceClassNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(JavaSettings::class, 'Google_Service_ServiceUsage_JavaSettings');
@@ -0,0 +1,124 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class JwtLocation extends \Google\Model
{
/**
* Specifies cookie name to extract JWT token.
*
* @var string
*/
public $cookie;
/**
* Specifies HTTP header name to extract JWT token.
*
* @var string
*/
public $header;
/**
* Specifies URL query parameter name to extract JWT token.
*
* @var string
*/
public $query;
/**
* The value prefix. The value format is "value_prefix{token}" Only applies to
* "in" header type. Must be empty for "in" query type. If not empty, the
* header value has to match (case sensitive) this prefix. If not matched, JWT
* will not be extracted. If matched, JWT will be extracted after the prefix
* is removed. For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
* @var string
*/
public $valuePrefix;
/**
* Specifies cookie name to extract JWT token.
*
* @param string $cookie
*/
public function setCookie($cookie)
{
$this->cookie = $cookie;
}
/**
* @return string
*/
public function getCookie()
{
return $this->cookie;
}
/**
* Specifies HTTP header name to extract JWT token.
*
* @param string $header
*/
public function setHeader($header)
{
$this->header = $header;
}
/**
* @return string
*/
public function getHeader()
{
return $this->header;
}
/**
* Specifies URL query parameter name to extract JWT token.
*
* @param string $query
*/
public function setQuery($query)
{
$this->query = $query;
}
/**
* @return string
*/
public function getQuery()
{
return $this->query;
}
/**
* The value prefix. The value format is "value_prefix{token}" Only applies to
* "in" header type. Must be empty for "in" query type. If not empty, the
* header value has to match (case sensitive) this prefix. If not matched, JWT
* will not be extracted. If matched, JWT will be extracted after the prefix
* is removed. For example, for "Authorization: Bearer {JWT}",
* value_prefix="Bearer " with a space at the end.
*
* @param string $valuePrefix
*/
public function setValuePrefix($valuePrefix)
{
$this->valuePrefix = $valuePrefix;
}
/**
* @return string
*/
public function getValuePrefix()
{
return $this->valuePrefix;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(JwtLocation::class, 'Google_Service_ServiceUsage_JwtLocation');
@@ -0,0 +1,106 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class LabelDescriptor extends \Google\Model
{
/**
* A variable-length string. This is the default.
*/
public const VALUE_TYPE_STRING = 'STRING';
/**
* Boolean; true or false.
*/
public const VALUE_TYPE_BOOL = 'BOOL';
/**
* A 64-bit signed integer.
*/
public const VALUE_TYPE_INT64 = 'INT64';
/**
* A human-readable description for the label.
*
* @var string
*/
public $description;
/**
* The label key.
*
* @var string
*/
public $key;
/**
* The type of data that can be assigned to the label.
*
* @var string
*/
public $valueType;
/**
* A human-readable description for the label.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The label key.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* The type of data that can be assigned to the label.
*
* Accepted values: STRING, BOOL, INT64
*
* @param self::VALUE_TYPE_* $valueType
*/
public function setValueType($valueType)
{
$this->valueType = $valueType;
}
/**
* @return self::VALUE_TYPE_*
*/
public function getValueType()
{
return $this->valueType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelDescriptor::class, 'Google_Service_ServiceUsage_LabelDescriptor');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_ServiceUsage_ListOperationsResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class ListServicesResponse extends \Google\Collection
{
protected $collection_key = 'services';
/**
* Token that can be passed to `ListServices` to resume a paginated query.
*
* @var string
*/
public $nextPageToken;
protected $servicesType = GoogleApiServiceusageV1Service::class;
protected $servicesDataType = 'array';
/**
* Token that can be passed to `ListServices` to resume a paginated query.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The available services for the requested project.
*
* @param GoogleApiServiceusageV1Service[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return GoogleApiServiceusageV1Service[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServicesResponse::class, 'Google_Service_ServiceUsage_ListServicesResponse');
@@ -0,0 +1,123 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class LogDescriptor extends \Google\Collection
{
protected $collection_key = 'labels';
/**
* A human-readable description of this log. This information appears in the
* documentation and can contain details.
*
* @var string
*/
public $description;
/**
* The human-readable name for this log. This information appears on the user
* interface and should be concise.
*
* @var string
*/
public $displayName;
protected $labelsType = LabelDescriptor::class;
protected $labelsDataType = 'array';
/**
* The name of the log. It must be less than 512 characters long and can
* include the following characters: upper- and lower-case alphanumeric
* characters [A-Za-z0-9], and punctuation characters including slash,
* underscore, hyphen, period [/_-.].
*
* @var string
*/
public $name;
/**
* A human-readable description of this log. This information appears in the
* documentation and can contain details.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The human-readable name for this log. This information appears on the user
* interface and should be concise.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The set of labels that are available to describe a specific log entry.
* Runtime requests that contain labels not specified here are considered
* invalid.
*
* @param LabelDescriptor[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return LabelDescriptor[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The name of the log. It must be less than 512 characters long and can
* include the following characters: upper- and lower-case alphanumeric
* characters [A-Za-z0-9], and punctuation characters including slash,
* underscore, hyphen, period [/_-.].
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogDescriptor::class, 'Google_Service_ServiceUsage_LogDescriptor');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class Logging extends \Google\Collection
{
protected $collection_key = 'producerDestinations';
protected $consumerDestinationsType = LoggingDestination::class;
protected $consumerDestinationsDataType = 'array';
protected $producerDestinationsType = LoggingDestination::class;
protected $producerDestinationsDataType = 'array';
/**
* Logging configurations for sending logs to the consumer project. There can
* be multiple consumer destinations, each one must have a different monitored
* resource type. A log can be used in at most one consumer destination.
*
* @param LoggingDestination[] $consumerDestinations
*/
public function setConsumerDestinations($consumerDestinations)
{
$this->consumerDestinations = $consumerDestinations;
}
/**
* @return LoggingDestination[]
*/
public function getConsumerDestinations()
{
return $this->consumerDestinations;
}
/**
* Logging configurations for sending logs to the producer project. There can
* be multiple producer destinations, each one must have a different monitored
* resource type. A log can be used in at most one producer destination.
*
* @param LoggingDestination[] $producerDestinations
*/
public function setProducerDestinations($producerDestinations)
{
$this->producerDestinations = $producerDestinations;
}
/**
* @return LoggingDestination[]
*/
public function getProducerDestinations()
{
return $this->producerDestinations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Logging::class, 'Google_Service_ServiceUsage_Logging');
@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class LoggingDestination extends \Google\Collection
{
protected $collection_key = 'logs';
/**
* Names of the logs to be sent to this destination. Each name must be defined
* in the Service.logs section. If the log name is not a domain scoped name,
* it will be automatically prefixed with the service name followed by "/".
*
* @var string[]
*/
public $logs;
/**
* The monitored resource type. The type must be defined in the
* Service.monitored_resources section.
*
* @var string
*/
public $monitoredResource;
/**
* Names of the logs to be sent to this destination. Each name must be defined
* in the Service.logs section. If the log name is not a domain scoped name,
* it will be automatically prefixed with the service name followed by "/".
*
* @param string[] $logs
*/
public function setLogs($logs)
{
$this->logs = $logs;
}
/**
* @return string[]
*/
public function getLogs()
{
return $this->logs;
}
/**
* The monitored resource type. The type must be defined in the
* Service.monitored_resources section.
*
* @param string $monitoredResource
*/
public function setMonitoredResource($monitoredResource)
{
$this->monitoredResource = $monitoredResource;
}
/**
* @return string
*/
public function getMonitoredResource()
{
return $this->monitoredResource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoggingDestination::class, 'Google_Service_ServiceUsage_LoggingDestination');
@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceUsage;
class LongRunning extends \Google\Model
{
/**
* Initial delay after which the first poll request will be made. Default
* value: 5 seconds.
*
* @var string
*/
public $initialPollDelay;
/**
* Maximum time between two subsequent poll requests. Default value: 45
* seconds.
*
* @var string
*/
public $maxPollDelay;
/**
* Multiplier to gradually increase delay between subsequent polls until it
* reaches max_poll_delay. Default value: 1.5.
*
* @var float
*/
public $pollDelayMultiplier;
/**
* Total polling timeout. Default value: 5 minutes.
*
* @var string
*/
public $totalPollTimeout;
/**
* Initial delay after which the first poll request will be made. Default
* value: 5 seconds.
*
* @param string $initialPollDelay
*/
public function setInitialPollDelay($initialPollDelay)
{
$this->initialPollDelay = $initialPollDelay;
}
/**
* @return string
*/
public function getInitialPollDelay()
{
return $this->initialPollDelay;
}
/**
* Maximum time between two subsequent poll requests. Default value: 45
* seconds.
*
* @param string $maxPollDelay
*/
public function setMaxPollDelay($maxPollDelay)
{
$this->maxPollDelay = $maxPollDelay;
}
/**
* @return string
*/
public function getMaxPollDelay()
{
return $this->maxPollDelay;
}
/**
* Multiplier to gradually increase delay between subsequent polls until it
* reaches max_poll_delay. Default value: 1.5.
*
* @param float $pollDelayMultiplier
*/
public function setPollDelayMultiplier($pollDelayMultiplier)
{
$this->pollDelayMultiplier = $pollDelayMultiplier;
}
/**
* @return float
*/
public function getPollDelayMultiplier()
{
return $this->pollDelayMultiplier;
}
/**
* Total polling timeout. Default value: 5 minutes.
*
* @param string $totalPollTimeout
*/
public function setTotalPollTimeout($totalPollTimeout)
{
$this->totalPollTimeout = $totalPollTimeout;
}
/**
* @return string
*/
public function getTotalPollTimeout()
{
return $this->totalPollTimeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LongRunning::class, 'Google_Service_ServiceUsage_LongRunning');

Some files were not shown because too many files have changed in this diff Show More