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\ServiceNetworking;
class AddDnsRecordSetMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddDnsRecordSetMetadata::class, 'Google_Service_ServiceNetworking_AddDnsRecordSetMetadata');
@@ -0,0 +1,96 @@
<?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\ServiceNetworking;
class AddDnsRecordSetRequest extends \Google\Model
{
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is the project number, as in '12345' {network} is the network
* name.
*
* @var string
*/
public $consumerNetwork;
protected $dnsRecordSetType = DnsRecordSet::class;
protected $dnsRecordSetDataType = '';
/**
* Required. The name of the private DNS zone in the shared producer host
* project to which the record set will be added.
*
* @var string
*/
public $zone;
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is the project number, as in '12345' {network} is the network
* name.
*
* @param string $consumerNetwork
*/
public function setConsumerNetwork($consumerNetwork)
{
$this->consumerNetwork = $consumerNetwork;
}
/**
* @return string
*/
public function getConsumerNetwork()
{
return $this->consumerNetwork;
}
/**
* Required. The DNS record set to add.
*
* @param DnsRecordSet $dnsRecordSet
*/
public function setDnsRecordSet(DnsRecordSet $dnsRecordSet)
{
$this->dnsRecordSet = $dnsRecordSet;
}
/**
* @return DnsRecordSet
*/
public function getDnsRecordSet()
{
return $this->dnsRecordSet;
}
/**
* Required. The name of the private DNS zone in the shared producer host
* project to which the record set will be added.
*
* @param string $zone
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddDnsRecordSetRequest::class, 'Google_Service_ServiceNetworking_AddDnsRecordSetRequest');
@@ -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\ServiceNetworking;
class AddDnsZoneMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddDnsZoneMetadata::class, 'Google_Service_ServiceNetworking_AddDnsZoneMetadata');
@@ -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\ServiceNetworking;
class AddDnsZoneRequest extends \Google\Model
{
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is the project number, as in '12345' {network} is the network
* name.
*
* @var string
*/
public $consumerNetwork;
/**
* Required. The DNS name suffix for the zones e.g. `example.com.`. Cloud DNS
* requires that a DNS suffix ends with a trailing dot.
*
* @var string
*/
public $dnsSuffix;
/**
* Required. The name for both the private zone in the shared producer host
* project and the peering zone in the consumer project. Must be unique within
* both projects. The name must be 1-63 characters long, must begin with a
* letter, end with a letter or digit, and only contain lowercase letters,
* digits or dashes.
*
* @var string
*/
public $name;
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is the project number, as in '12345' {network} is the network
* name.
*
* @param string $consumerNetwork
*/
public function setConsumerNetwork($consumerNetwork)
{
$this->consumerNetwork = $consumerNetwork;
}
/**
* @return string
*/
public function getConsumerNetwork()
{
return $this->consumerNetwork;
}
/**
* Required. The DNS name suffix for the zones e.g. `example.com.`. Cloud DNS
* requires that a DNS suffix ends with a trailing dot.
*
* @param string $dnsSuffix
*/
public function setDnsSuffix($dnsSuffix)
{
$this->dnsSuffix = $dnsSuffix;
}
/**
* @return string
*/
public function getDnsSuffix()
{
return $this->dnsSuffix;
}
/**
* Required. The name for both the private zone in the shared producer host
* project and the peering zone in the consumer project. Must be unique within
* both projects. The name must be 1-63 characters long, must begin with a
* letter, end with a letter or digit, and only contain lowercase letters,
* digits or dashes.
*
* @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(AddDnsZoneRequest::class, 'Google_Service_ServiceNetworking_AddDnsZoneRequest');
@@ -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\ServiceNetworking;
class AddDnsZoneResponse extends \Google\Model
{
protected $consumerPeeringZoneType = DnsZone::class;
protected $consumerPeeringZoneDataType = '';
protected $producerPrivateZoneType = DnsZone::class;
protected $producerPrivateZoneDataType = '';
/**
* The DNS peering zone created in the consumer project.
*
* @param DnsZone $consumerPeeringZone
*/
public function setConsumerPeeringZone(DnsZone $consumerPeeringZone)
{
$this->consumerPeeringZone = $consumerPeeringZone;
}
/**
* @return DnsZone
*/
public function getConsumerPeeringZone()
{
return $this->consumerPeeringZone;
}
/**
* The private DNS zone created in the shared producer host project.
*
* @param DnsZone $producerPrivateZone
*/
public function setProducerPrivateZone(DnsZone $producerPrivateZone)
{
$this->producerPrivateZone = $producerPrivateZone;
}
/**
* @return DnsZone
*/
public function getProducerPrivateZone()
{
return $this->producerPrivateZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddDnsZoneResponse::class, 'Google_Service_ServiceNetworking_AddDnsZoneResponse');
@@ -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\ServiceNetworking;
class AddRolesMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddRolesMetadata::class, 'Google_Service_ServiceNetworking_AddRolesMetadata');
@@ -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\ServiceNetworking;
class AddRolesRequest extends \Google\Collection
{
protected $collection_key = 'policyBinding';
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is a project number, as in '12345' {network} is a network name.
*
* @var string
*/
public $consumerNetwork;
protected $policyBindingType = PolicyBinding::class;
protected $policyBindingDataType = 'array';
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is a project number, as in '12345' {network} is a network name.
*
* @param string $consumerNetwork
*/
public function setConsumerNetwork($consumerNetwork)
{
$this->consumerNetwork = $consumerNetwork;
}
/**
* @return string
*/
public function getConsumerNetwork()
{
return $this->consumerNetwork;
}
/**
* Required. List of policy bindings to add to shared VPC host project.
*
* @param PolicyBinding[] $policyBinding
*/
public function setPolicyBinding($policyBinding)
{
$this->policyBinding = $policyBinding;
}
/**
* @return PolicyBinding[]
*/
public function getPolicyBinding()
{
return $this->policyBinding;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddRolesRequest::class, 'Google_Service_ServiceNetworking_AddRolesRequest');
@@ -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\ServiceNetworking;
class AddRolesResponse extends \Google\Collection
{
protected $collection_key = 'policyBinding';
protected $policyBindingType = PolicyBinding::class;
protected $policyBindingDataType = 'array';
/**
* Required. List of policy bindings that were added to the shared VPC host
* project.
*
* @param PolicyBinding[] $policyBinding
*/
public function setPolicyBinding($policyBinding)
{
$this->policyBinding = $policyBinding;
}
/**
* @return PolicyBinding[]
*/
public function getPolicyBinding()
{
return $this->policyBinding;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddRolesResponse::class, 'Google_Service_ServiceNetworking_AddRolesResponse');
@@ -0,0 +1,590 @@
<?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\ServiceNetworking;
class AddSubnetworkRequest extends \Google\Collection
{
protected $collection_key = 'subnetworkUsers';
/**
* Optional. Defines the allowSubnetCidrRoutesOverlap field of the subnet,
* e.g. Available in alpha and beta according to [Compute API documentation](h
* ttps://cloud.google.com/compute/docs/reference/rest/beta/subnetworks/insert
* )
*
* @var bool
*/
public $allowSubnetCidrRoutesOverlap;
/**
* Optional. The IAM permission check determines whether the consumer project
* has 'servicenetworking.services.use' permission or not.
*
* @var bool
*/
public $checkServiceNetworkingUsePermission;
/**
* Optional. Specifies a custom time bucket for GCE subnetwork request
* idempotency. If two equivalent concurrent requests are made, GCE will know
* to ignore the request if it has already been completed or is in progress.
* Only requests with matching compute_idempotency_window have guaranteed
* idempotency. Changing this time window between requests results in
* undefined behavior. Zero (or empty) value with
* custom_compute_idempotency_window=true specifies no idempotency (i.e. no
* request ID is provided to GCE). Maximum value of 14 days (enforced by GCE
* limit).
*
* @var string
*/
public $computeIdempotencyWindow;
/**
* Required. A resource that represents the service consumer, such as
* `projects/123456`. The project number can be different from the value in
* the consumer network parameter. For example, the network might be part of a
* Shared VPC network. In those cases, Service Networking validates that this
* resource belongs to that Shared VPC.
*
* @var string
*/
public $consumer;
/**
* Required. The name of the service consumer's VPC network. The network must
* have an existing private connection that was provisioned through the
* connections.create method. The name must be in the following format:
* `projects/{project}/global/networks/{network}`, where {project} is a
* project number, such as `12345`. {network} is the name of a VPC network in
* the project.
*
* @var string
*/
public $consumerNetwork;
/**
* Optional. Description of the subnet.
*
* @var string
*/
public $description;
/**
* Optional. The url of an Internal Range. Eg:
* `projects//locations/global/internalRanges/`. If specified, it means that
* the subnetwork cidr will be created using the combination of
* requested_address/ip_prefix_length. Note that the subnet cidr has to be
* within the cidr range of this Internal Range.
*
* @var string
*/
public $internalRange;
/**
* Required. The prefix length of the subnet's IP address range. Use CIDR
* range notation, such as `29` to provision a subnet with an `x.x.x.x/29`
* CIDR range. The IP address range is drawn from a pool of available ranges
* in the service consumer's allocated range. GCE disallows subnets with
* prefix_length > 29
*
* @var int
*/
public $ipPrefixLength;
/**
* Optional. Enable outside allocation using public IP addresses. Any public
* IP range may be specified. If this field is provided, we will not use
* customer reserved ranges for this primary IP range.
*
* @var string
*/
public $outsideAllocationPublicIpRange;
/**
* Optional. The private IPv6 google access type for the VMs in this subnet.
* For information about the access types that can be set using this field,
* see [subnetwork](https://cloud.google.com/compute/docs/reference/rest/v1/su
* bnetworks) in the Compute API documentation.
*
* @var string
*/
public $privateIpv6GoogleAccess;
/**
* Optional. Defines the purpose field of the subnet, e.g.
* 'PRIVATE_SERVICE_CONNECT'. For information about the purposes that can be
* set using this field, see [subnetwork](https://cloud.google.com/compute/doc
* s/reference/rest/v1/subnetworks) in the Compute API documentation.
*
* @var string
*/
public $purpose;
/**
* Required. The name of a
* [region](https://cloud.google.com/compute/docs/regions-zones) for the
* subnet, such `europe-west1`.
*
* @var string
*/
public $region;
/**
* Optional. The starting address of a range. The address must be a valid IPv4
* address in the x.x.x.x format. This value combined with the IP prefix range
* is the CIDR range for the subnet. The range must be within the allocated
* range that is assigned to the private connection. If the CIDR range isn't
* available, the call fails.
*
* @var string
*/
public $requestedAddress;
/**
* Optional. The name of one or more allocated IP address ranges associated
* with this private service access connection. If no range names are provided
* all ranges associated with this connection will be considered. If a CIDR
* range with the specified IP prefix length is not available within these
* ranges, the call fails.
*
* @var string[]
*/
public $requestedRanges;
/**
* Optional. Defines the role field of the subnet, e.g. 'ACTIVE'. For
* information about the roles that can be set using this field, see [subnetwo
* rk](https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks) in
* the Compute API documentation.
*
* @var string
*/
public $role;
protected $secondaryIpRangeSpecsType = SecondaryIpRangeSpec::class;
protected $secondaryIpRangeSpecsDataType = 'array';
/**
* Optional. Skips validating if the requested_address is in use by SN VPCs
* peering group. Compute Engine will still perform this check and fail the
* request if the requested_address is in use. Note that Compute Engine does
* not check for the existence of dynamic routes when performing this check.
* Caller of this API should make sure that there are no dynamic routes
* overlapping with the requested_address/prefix_length IP address range
* otherwise the created subnet could cause misrouting.
*
* @var bool
*/
public $skipRequestedAddressValidation;
/**
* Required. A name for the new subnet. For information about the naming
* requirements, see [subnetwork](https://cloud.google.com/compute/docs/refere
* nce/rest/v1/subnetworks) in the Compute API documentation.
*
* @var string
*/
public $subnetwork;
/**
* A list of members that are granted the
* `roles/servicenetworking.subnetworkAdmin` role on the subnet.
*
* @var string[]
*/
public $subnetworkUsers;
/**
* Optional. Specifies if Service Networking should use a custom time bucket
* for GCE idempotency. If false, Service Networking uses a 300 second (5
* minute) GCE idempotency window. If true, Service Networking uses a custom
* idempotency window provided by the user in field
* compute_idempotency_window.
*
* @var bool
*/
public $useCustomComputeIdempotencyWindow;
/**
* Optional. Defines the allowSubnetCidrRoutesOverlap field of the subnet,
* e.g. Available in alpha and beta according to [Compute API documentation](h
* ttps://cloud.google.com/compute/docs/reference/rest/beta/subnetworks/insert
* )
*
* @param bool $allowSubnetCidrRoutesOverlap
*/
public function setAllowSubnetCidrRoutesOverlap($allowSubnetCidrRoutesOverlap)
{
$this->allowSubnetCidrRoutesOverlap = $allowSubnetCidrRoutesOverlap;
}
/**
* @return bool
*/
public function getAllowSubnetCidrRoutesOverlap()
{
return $this->allowSubnetCidrRoutesOverlap;
}
/**
* Optional. The IAM permission check determines whether the consumer project
* has 'servicenetworking.services.use' permission or not.
*
* @param bool $checkServiceNetworkingUsePermission
*/
public function setCheckServiceNetworkingUsePermission($checkServiceNetworkingUsePermission)
{
$this->checkServiceNetworkingUsePermission = $checkServiceNetworkingUsePermission;
}
/**
* @return bool
*/
public function getCheckServiceNetworkingUsePermission()
{
return $this->checkServiceNetworkingUsePermission;
}
/**
* Optional. Specifies a custom time bucket for GCE subnetwork request
* idempotency. If two equivalent concurrent requests are made, GCE will know
* to ignore the request if it has already been completed or is in progress.
* Only requests with matching compute_idempotency_window have guaranteed
* idempotency. Changing this time window between requests results in
* undefined behavior. Zero (or empty) value with
* custom_compute_idempotency_window=true specifies no idempotency (i.e. no
* request ID is provided to GCE). Maximum value of 14 days (enforced by GCE
* limit).
*
* @param string $computeIdempotencyWindow
*/
public function setComputeIdempotencyWindow($computeIdempotencyWindow)
{
$this->computeIdempotencyWindow = $computeIdempotencyWindow;
}
/**
* @return string
*/
public function getComputeIdempotencyWindow()
{
return $this->computeIdempotencyWindow;
}
/**
* Required. A resource that represents the service consumer, such as
* `projects/123456`. The project number can be different from the value in
* the consumer network parameter. For example, the network might be part of a
* Shared VPC network. In those cases, Service Networking validates that this
* resource belongs to that Shared VPC.
*
* @param string $consumer
*/
public function setConsumer($consumer)
{
$this->consumer = $consumer;
}
/**
* @return string
*/
public function getConsumer()
{
return $this->consumer;
}
/**
* Required. The name of the service consumer's VPC network. The network must
* have an existing private connection that was provisioned through the
* connections.create method. The name must be in the following format:
* `projects/{project}/global/networks/{network}`, where {project} is a
* project number, such as `12345`. {network} is the name of a VPC network in
* the project.
*
* @param string $consumerNetwork
*/
public function setConsumerNetwork($consumerNetwork)
{
$this->consumerNetwork = $consumerNetwork;
}
/**
* @return string
*/
public function getConsumerNetwork()
{
return $this->consumerNetwork;
}
/**
* Optional. Description of the subnet.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. The url of an Internal Range. Eg:
* `projects//locations/global/internalRanges/`. If specified, it means that
* the subnetwork cidr will be created using the combination of
* requested_address/ip_prefix_length. Note that the subnet cidr has to be
* within the cidr range of this Internal Range.
*
* @param string $internalRange
*/
public function setInternalRange($internalRange)
{
$this->internalRange = $internalRange;
}
/**
* @return string
*/
public function getInternalRange()
{
return $this->internalRange;
}
/**
* Required. The prefix length of the subnet's IP address range. Use CIDR
* range notation, such as `29` to provision a subnet with an `x.x.x.x/29`
* CIDR range. The IP address range is drawn from a pool of available ranges
* in the service consumer's allocated range. GCE disallows subnets with
* prefix_length > 29
*
* @param int $ipPrefixLength
*/
public function setIpPrefixLength($ipPrefixLength)
{
$this->ipPrefixLength = $ipPrefixLength;
}
/**
* @return int
*/
public function getIpPrefixLength()
{
return $this->ipPrefixLength;
}
/**
* Optional. Enable outside allocation using public IP addresses. Any public
* IP range may be specified. If this field is provided, we will not use
* customer reserved ranges for this primary IP range.
*
* @param string $outsideAllocationPublicIpRange
*/
public function setOutsideAllocationPublicIpRange($outsideAllocationPublicIpRange)
{
$this->outsideAllocationPublicIpRange = $outsideAllocationPublicIpRange;
}
/**
* @return string
*/
public function getOutsideAllocationPublicIpRange()
{
return $this->outsideAllocationPublicIpRange;
}
/**
* Optional. The private IPv6 google access type for the VMs in this subnet.
* For information about the access types that can be set using this field,
* see [subnetwork](https://cloud.google.com/compute/docs/reference/rest/v1/su
* bnetworks) in the Compute API documentation.
*
* @param string $privateIpv6GoogleAccess
*/
public function setPrivateIpv6GoogleAccess($privateIpv6GoogleAccess)
{
$this->privateIpv6GoogleAccess = $privateIpv6GoogleAccess;
}
/**
* @return string
*/
public function getPrivateIpv6GoogleAccess()
{
return $this->privateIpv6GoogleAccess;
}
/**
* Optional. Defines the purpose field of the subnet, e.g.
* 'PRIVATE_SERVICE_CONNECT'. For information about the purposes that can be
* set using this field, see [subnetwork](https://cloud.google.com/compute/doc
* s/reference/rest/v1/subnetworks) in the Compute API documentation.
*
* @param string $purpose
*/
public function setPurpose($purpose)
{
$this->purpose = $purpose;
}
/**
* @return string
*/
public function getPurpose()
{
return $this->purpose;
}
/**
* Required. The name of a
* [region](https://cloud.google.com/compute/docs/regions-zones) for the
* subnet, such `europe-west1`.
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* Optional. The starting address of a range. The address must be a valid IPv4
* address in the x.x.x.x format. This value combined with the IP prefix range
* is the CIDR range for the subnet. The range must be within the allocated
* range that is assigned to the private connection. If the CIDR range isn't
* available, the call fails.
*
* @param string $requestedAddress
*/
public function setRequestedAddress($requestedAddress)
{
$this->requestedAddress = $requestedAddress;
}
/**
* @return string
*/
public function getRequestedAddress()
{
return $this->requestedAddress;
}
/**
* Optional. The name of one or more allocated IP address ranges associated
* with this private service access connection. If no range names are provided
* all ranges associated with this connection will be considered. If a CIDR
* range with the specified IP prefix length is not available within these
* ranges, the call fails.
*
* @param string[] $requestedRanges
*/
public function setRequestedRanges($requestedRanges)
{
$this->requestedRanges = $requestedRanges;
}
/**
* @return string[]
*/
public function getRequestedRanges()
{
return $this->requestedRanges;
}
/**
* Optional. Defines the role field of the subnet, e.g. 'ACTIVE'. For
* information about the roles that can be set using this field, see [subnetwo
* rk](https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks) in
* the Compute API documentation.
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* Optional. A list of secondary IP ranges to be created within the new
* subnetwork.
*
* @param SecondaryIpRangeSpec[] $secondaryIpRangeSpecs
*/
public function setSecondaryIpRangeSpecs($secondaryIpRangeSpecs)
{
$this->secondaryIpRangeSpecs = $secondaryIpRangeSpecs;
}
/**
* @return SecondaryIpRangeSpec[]
*/
public function getSecondaryIpRangeSpecs()
{
return $this->secondaryIpRangeSpecs;
}
/**
* Optional. Skips validating if the requested_address is in use by SN VPCs
* peering group. Compute Engine will still perform this check and fail the
* request if the requested_address is in use. Note that Compute Engine does
* not check for the existence of dynamic routes when performing this check.
* Caller of this API should make sure that there are no dynamic routes
* overlapping with the requested_address/prefix_length IP address range
* otherwise the created subnet could cause misrouting.
*
* @param bool $skipRequestedAddressValidation
*/
public function setSkipRequestedAddressValidation($skipRequestedAddressValidation)
{
$this->skipRequestedAddressValidation = $skipRequestedAddressValidation;
}
/**
* @return bool
*/
public function getSkipRequestedAddressValidation()
{
return $this->skipRequestedAddressValidation;
}
/**
* Required. A name for the new subnet. For information about the naming
* requirements, see [subnetwork](https://cloud.google.com/compute/docs/refere
* nce/rest/v1/subnetworks) in the Compute API documentation.
*
* @param string $subnetwork
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
/**
* A list of members that are granted the
* `roles/servicenetworking.subnetworkAdmin` role on the subnet.
*
* @param string[] $subnetworkUsers
*/
public function setSubnetworkUsers($subnetworkUsers)
{
$this->subnetworkUsers = $subnetworkUsers;
}
/**
* @return string[]
*/
public function getSubnetworkUsers()
{
return $this->subnetworkUsers;
}
/**
* Optional. Specifies if Service Networking should use a custom time bucket
* for GCE idempotency. If false, Service Networking uses a 300 second (5
* minute) GCE idempotency window. If true, Service Networking uses a custom
* idempotency window provided by the user in field
* compute_idempotency_window.
*
* @param bool $useCustomComputeIdempotencyWindow
*/
public function setUseCustomComputeIdempotencyWindow($useCustomComputeIdempotencyWindow)
{
$this->useCustomComputeIdempotencyWindow = $useCustomComputeIdempotencyWindow;
}
/**
* @return bool
*/
public function getUseCustomComputeIdempotencyWindow()
{
return $this->useCustomComputeIdempotencyWindow;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddSubnetworkRequest::class, 'Google_Service_ServiceNetworking_AddSubnetworkRequest');
@@ -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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_BackendRule');
@@ -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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_ServiceNetworking_CancelOperationRequest');
@@ -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\ServiceNetworking;
class CleanupConnectionMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CleanupConnectionMetadata::class, 'Google_Service_ServiceNetworking_CleanupConnectionMetadata');
@@ -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\ServiceNetworking;
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_ServiceNetworking_ClientLibrarySettings');
@@ -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\ServiceNetworking;
class CloudSQLConfig extends \Google\Model
{
/**
* Required. Peering service used for peering with the Cloud SQL project.
*
* @var string
*/
public $service;
/**
* Required. The name of the umbrella network in the Cloud SQL umbrella
* project.
*
* @var string
*/
public $umbrellaNetwork;
/**
* Required. The project number of the Cloud SQL umbrella project.
*
* @var string
*/
public $umbrellaProject;
/**
* Required. Peering service used for peering with the Cloud SQL project.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* Required. The name of the umbrella network in the Cloud SQL umbrella
* project.
*
* @param string $umbrellaNetwork
*/
public function setUmbrellaNetwork($umbrellaNetwork)
{
$this->umbrellaNetwork = $umbrellaNetwork;
}
/**
* @return string
*/
public function getUmbrellaNetwork()
{
return $this->umbrellaNetwork;
}
/**
* Required. The project number of the Cloud SQL umbrella project.
*
* @param string $umbrellaProject
*/
public function setUmbrellaProject($umbrellaProject)
{
$this->umbrellaProject = $umbrellaProject;
}
/**
* @return string
*/
public function getUmbrellaProject()
{
return $this->umbrellaProject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudSQLConfig::class, 'Google_Service_ServiceNetworking_CloudSQLConfig');
@@ -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\ServiceNetworking;
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_ServiceNetworking_CommonLanguageSettings');
@@ -0,0 +1,139 @@
<?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\ServiceNetworking;
class Connection extends \Google\Collection
{
protected $collection_key = 'reservedPeeringRanges';
/**
* Required. The name of service consumer's VPC network that's connected with
* service producer network, in the following format:
* `projects/{project}/global/networks/{network}`. `{project}` is a project
* number, such as in `12345` that includes the VPC service consumer's VPC
* network. `{network}` is the name of the service consumer's VPC network.
*
* @var string
*/
public $network;
/**
* Output only. The name of the VPC Network Peering connection that was
* created by the service producer.
*
* @var string
*/
public $peering;
/**
* The name of one or more allocated IP address ranges for this service
* producer of type `PEERING`. Note that invoking CreateConnection method with
* a different range when connection is already established will not modify
* already provisioned service producer subnetworks. If CreateConnection
* method is invoked repeatedly to reconnect when peering connection had been
* disconnected on the consumer side, leaving this field empty will restore
* previously allocated IP ranges.
*
* @var string[]
*/
public $reservedPeeringRanges;
/**
* Output only. The name of the peering service that's associated with this
* connection, in the following format: `services/{service name}`.
*
* @var string
*/
public $service;
/**
* Required. The name of service consumer's VPC network that's connected with
* service producer network, in the following format:
* `projects/{project}/global/networks/{network}`. `{project}` is a project
* number, such as in `12345` that includes the VPC service consumer's VPC
* network. `{network}` is the name of the service consumer's VPC network.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Output only. The name of the VPC Network Peering connection that was
* created by the service producer.
*
* @param string $peering
*/
public function setPeering($peering)
{
$this->peering = $peering;
}
/**
* @return string
*/
public function getPeering()
{
return $this->peering;
}
/**
* The name of one or more allocated IP address ranges for this service
* producer of type `PEERING`. Note that invoking CreateConnection method with
* a different range when connection is already established will not modify
* already provisioned service producer subnetworks. If CreateConnection
* method is invoked repeatedly to reconnect when peering connection had been
* disconnected on the consumer side, leaving this field empty will restore
* previously allocated IP ranges.
*
* @param string[] $reservedPeeringRanges
*/
public function setReservedPeeringRanges($reservedPeeringRanges)
{
$this->reservedPeeringRanges = $reservedPeeringRanges;
}
/**
* @return string[]
*/
public function getReservedPeeringRanges()
{
return $this->reservedPeeringRanges;
}
/**
* Output only. The name of the peering service that's associated with this
* connection, in the following format: `services/{service name}`.
*
* @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(Connection::class, 'Google_Service_ServiceNetworking_Connection');
@@ -0,0 +1,344 @@
<?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\ServiceNetworking;
class ConsumerConfig extends \Google\Collection
{
protected $collection_key = 'usedIpRanges';
protected $cloudsqlConfigsType = CloudSQLConfig::class;
protected $cloudsqlConfigsDataType = 'array';
/**
* Export custom routes flag value for peering from consumer to producer.
*
* @var bool
*/
public $consumerExportCustomRoutes;
/**
* Export subnet routes with public ip flag value for peering from consumer to
* producer.
*
* @var bool
*/
public $consumerExportSubnetRoutesWithPublicIp;
/**
* Import custom routes flag value for peering from consumer to producer.
*
* @var bool
*/
public $consumerImportCustomRoutes;
/**
* Import subnet routes with public ip flag value for peering from consumer to
* producer.
*
* @var bool
*/
public $consumerImportSubnetRoutesWithPublicIp;
/**
* Output only. If this is true, consumer peering is active.
*
* @var bool
*/
public $consumerPeeringActive;
/**
* Export custom routes flag value for peering from producer to consumer.
*
* @var bool
*/
public $producerExportCustomRoutes;
/**
* Export subnet routes with public ip flag value for peering from producer to
* consumer.
*
* @var bool
*/
public $producerExportSubnetRoutesWithPublicIp;
/**
* Import custom routes flag value for peering from producer to consumer.
*
* @var bool
*/
public $producerImportCustomRoutes;
/**
* Import subnet routes with public ip flag value for peering from producer to
* consumer.
*
* @var bool
*/
public $producerImportSubnetRoutesWithPublicIp;
/**
* Output only. The VPC host network that is used to host managed service
* instances. In the format, projects/{project}/global/networks/{network}
* where {project} is the project number e.g. '12345' and {network} is the
* network name.
*
* @var string
*/
public $producerNetwork;
protected $reservedRangesType = GoogleCloudServicenetworkingV1ConsumerConfigReservedRange::class;
protected $reservedRangesDataType = 'array';
/**
* Output only. The IP ranges already in use by consumer or producer
*
* @var string[]
*/
public $usedIpRanges;
/**
* Output only. Indicates whether the VPC Service Controls reference
* architecture is configured for the producer VPC host network.
*
* @var bool
*/
public $vpcScReferenceArchitectureEnabled;
/**
* Represents one or multiple Cloud SQL configurations.
*
* @param CloudSQLConfig[] $cloudsqlConfigs
*/
public function setCloudsqlConfigs($cloudsqlConfigs)
{
$this->cloudsqlConfigs = $cloudsqlConfigs;
}
/**
* @return CloudSQLConfig[]
*/
public function getCloudsqlConfigs()
{
return $this->cloudsqlConfigs;
}
/**
* Export custom routes flag value for peering from consumer to producer.
*
* @param bool $consumerExportCustomRoutes
*/
public function setConsumerExportCustomRoutes($consumerExportCustomRoutes)
{
$this->consumerExportCustomRoutes = $consumerExportCustomRoutes;
}
/**
* @return bool
*/
public function getConsumerExportCustomRoutes()
{
return $this->consumerExportCustomRoutes;
}
/**
* Export subnet routes with public ip flag value for peering from consumer to
* producer.
*
* @param bool $consumerExportSubnetRoutesWithPublicIp
*/
public function setConsumerExportSubnetRoutesWithPublicIp($consumerExportSubnetRoutesWithPublicIp)
{
$this->consumerExportSubnetRoutesWithPublicIp = $consumerExportSubnetRoutesWithPublicIp;
}
/**
* @return bool
*/
public function getConsumerExportSubnetRoutesWithPublicIp()
{
return $this->consumerExportSubnetRoutesWithPublicIp;
}
/**
* Import custom routes flag value for peering from consumer to producer.
*
* @param bool $consumerImportCustomRoutes
*/
public function setConsumerImportCustomRoutes($consumerImportCustomRoutes)
{
$this->consumerImportCustomRoutes = $consumerImportCustomRoutes;
}
/**
* @return bool
*/
public function getConsumerImportCustomRoutes()
{
return $this->consumerImportCustomRoutes;
}
/**
* Import subnet routes with public ip flag value for peering from consumer to
* producer.
*
* @param bool $consumerImportSubnetRoutesWithPublicIp
*/
public function setConsumerImportSubnetRoutesWithPublicIp($consumerImportSubnetRoutesWithPublicIp)
{
$this->consumerImportSubnetRoutesWithPublicIp = $consumerImportSubnetRoutesWithPublicIp;
}
/**
* @return bool
*/
public function getConsumerImportSubnetRoutesWithPublicIp()
{
return $this->consumerImportSubnetRoutesWithPublicIp;
}
/**
* Output only. If this is true, consumer peering is active.
*
* @param bool $consumerPeeringActive
*/
public function setConsumerPeeringActive($consumerPeeringActive)
{
$this->consumerPeeringActive = $consumerPeeringActive;
}
/**
* @return bool
*/
public function getConsumerPeeringActive()
{
return $this->consumerPeeringActive;
}
/**
* Export custom routes flag value for peering from producer to consumer.
*
* @param bool $producerExportCustomRoutes
*/
public function setProducerExportCustomRoutes($producerExportCustomRoutes)
{
$this->producerExportCustomRoutes = $producerExportCustomRoutes;
}
/**
* @return bool
*/
public function getProducerExportCustomRoutes()
{
return $this->producerExportCustomRoutes;
}
/**
* Export subnet routes with public ip flag value for peering from producer to
* consumer.
*
* @param bool $producerExportSubnetRoutesWithPublicIp
*/
public function setProducerExportSubnetRoutesWithPublicIp($producerExportSubnetRoutesWithPublicIp)
{
$this->producerExportSubnetRoutesWithPublicIp = $producerExportSubnetRoutesWithPublicIp;
}
/**
* @return bool
*/
public function getProducerExportSubnetRoutesWithPublicIp()
{
return $this->producerExportSubnetRoutesWithPublicIp;
}
/**
* Import custom routes flag value for peering from producer to consumer.
*
* @param bool $producerImportCustomRoutes
*/
public function setProducerImportCustomRoutes($producerImportCustomRoutes)
{
$this->producerImportCustomRoutes = $producerImportCustomRoutes;
}
/**
* @return bool
*/
public function getProducerImportCustomRoutes()
{
return $this->producerImportCustomRoutes;
}
/**
* Import subnet routes with public ip flag value for peering from producer to
* consumer.
*
* @param bool $producerImportSubnetRoutesWithPublicIp
*/
public function setProducerImportSubnetRoutesWithPublicIp($producerImportSubnetRoutesWithPublicIp)
{
$this->producerImportSubnetRoutesWithPublicIp = $producerImportSubnetRoutesWithPublicIp;
}
/**
* @return bool
*/
public function getProducerImportSubnetRoutesWithPublicIp()
{
return $this->producerImportSubnetRoutesWithPublicIp;
}
/**
* Output only. The VPC host network that is used to host managed service
* instances. In the format, projects/{project}/global/networks/{network}
* where {project} is the project number e.g. '12345' and {network} is the
* network name.
*
* @param string $producerNetwork
*/
public function setProducerNetwork($producerNetwork)
{
$this->producerNetwork = $producerNetwork;
}
/**
* @return string
*/
public function getProducerNetwork()
{
return $this->producerNetwork;
}
/**
* Output only. The reserved ranges associated with this private service
* access connection.
*
* @param GoogleCloudServicenetworkingV1ConsumerConfigReservedRange[] $reservedRanges
*/
public function setReservedRanges($reservedRanges)
{
$this->reservedRanges = $reservedRanges;
}
/**
* @return GoogleCloudServicenetworkingV1ConsumerConfigReservedRange[]
*/
public function getReservedRanges()
{
return $this->reservedRanges;
}
/**
* Output only. The IP ranges already in use by consumer or producer
*
* @param string[] $usedIpRanges
*/
public function setUsedIpRanges($usedIpRanges)
{
$this->usedIpRanges = $usedIpRanges;
}
/**
* @return string[]
*/
public function getUsedIpRanges()
{
return $this->usedIpRanges;
}
/**
* Output only. Indicates whether the VPC Service Controls reference
* architecture is configured for the producer VPC host network.
*
* @param bool $vpcScReferenceArchitectureEnabled
*/
public function setVpcScReferenceArchitectureEnabled($vpcScReferenceArchitectureEnabled)
{
$this->vpcScReferenceArchitectureEnabled = $vpcScReferenceArchitectureEnabled;
}
/**
* @return bool
*/
public function getVpcScReferenceArchitectureEnabled()
{
return $this->vpcScReferenceArchitectureEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConsumerConfig::class, 'Google_Service_ServiceNetworking_ConsumerConfig');
@@ -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\ServiceNetworking;
class ConsumerConfigMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConsumerConfigMetadata::class, 'Google_Service_ServiceNetworking_ConsumerConfigMetadata');
@@ -0,0 +1,52 @@
<?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\ServiceNetworking;
class ConsumerProject extends \Google\Model
{
/**
* Required. Project number of the consumer that is launching the service
* instance. It can own the network that is peered with Google or, be a
* service project in an XPN where the host project has the network.
*
* @var string
*/
public $projectNum;
/**
* Required. Project number of the consumer that is launching the service
* instance. It can own the network that is peered with Google or, be a
* service project in an XPN where the host project has the network.
*
* @param string $projectNum
*/
public function setProjectNum($projectNum)
{
$this->projectNum = $projectNum;
}
/**
* @return string
*/
public function getProjectNum()
{
return $this->projectNum;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConsumerProject::class, 'Google_Service_ServiceNetworking_ConsumerProject');
@@ -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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_CppSettings');
@@ -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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
class DeleteConnectionMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteConnectionMetadata::class, 'Google_Service_ServiceNetworking_DeleteConnectionMetadata');
@@ -0,0 +1,52 @@
<?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\ServiceNetworking;
class DeleteConnectionRequest extends \Google\Model
{
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is a project number, as in '12345' {network} is a network name.
*
* @var string
*/
public $consumerNetwork;
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is a project number, as in '12345' {network} is a network name.
*
* @param string $consumerNetwork
*/
public function setConsumerNetwork($consumerNetwork)
{
$this->consumerNetwork = $consumerNetwork;
}
/**
* @return string
*/
public function getConsumerNetwork()
{
return $this->consumerNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteConnectionRequest::class, 'Google_Service_ServiceNetworking_DeleteConnectionRequest');
@@ -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\ServiceNetworking;
class DeletePeeredDnsDomainMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeletePeeredDnsDomainMetadata::class, 'Google_Service_ServiceNetworking_DeletePeeredDnsDomainMetadata');
@@ -0,0 +1,52 @@
<?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\ServiceNetworking;
class DisableVpcServiceControlsRequest extends \Google\Model
{
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is a project number, as in '12345' {network} is network name.
*
* @var string
*/
public $consumerNetwork;
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is a project number, as in '12345' {network} is network name.
*
* @param string $consumerNetwork
*/
public function setConsumerNetwork($consumerNetwork)
{
$this->consumerNetwork = $consumerNetwork;
}
/**
* @return string
*/
public function getConsumerNetwork()
{
return $this->consumerNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DisableVpcServiceControlsRequest::class, 'Google_Service_ServiceNetworking_DisableVpcServiceControlsRequest');
@@ -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\ServiceNetworking;
class DnsRecordSet extends \Google\Collection
{
protected $collection_key = 'data';
/**
* Required. As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1)
* for examples see https://cloud.google.com/dns/records/json-record.
*
* @var string[]
*/
public $data;
/**
* Required. The DNS or domain name of the record set, e.g.
* `test.example.com`. Cloud DNS requires that a DNS suffix ends with a
* trailing dot.
*
* @var string
*/
public $domain;
/**
* Required. The period of time for which this RecordSet can be cached by
* resolvers.
*
* @var string
*/
public $ttl;
/**
* Required. The identifier of a supported record type.
*
* @var string
*/
public $type;
/**
* Required. As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1)
* for examples see https://cloud.google.com/dns/records/json-record.
*
* @param string[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string[]
*/
public function getData()
{
return $this->data;
}
/**
* Required. The DNS or domain name of the record set, e.g.
* `test.example.com`. Cloud DNS requires that a DNS suffix ends with a
* trailing dot.
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Required. The period of time for which this RecordSet can be cached by
* resolvers.
*
* @param string $ttl
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
/**
* Required. The identifier of a supported record type.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DnsRecordSet::class, 'Google_Service_ServiceNetworking_DnsRecordSet');
@@ -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\ServiceNetworking;
class DnsZone extends \Google\Model
{
/**
* The DNS name suffix of this zone e.g. `example.com.`. Cloud DNS requires
* that a DNS suffix ends with a trailing dot.
*
* @var string
*/
public $dnsSuffix;
/**
* User assigned name for this resource. Must be unique within the project.
* The name must be 1-63 characters long, must begin with a letter, end with a
* letter or digit, and only contain lowercase letters, digits or dashes.
*
* @var string
*/
public $name;
/**
* The DNS name suffix of this zone e.g. `example.com.`. Cloud DNS requires
* that a DNS suffix ends with a trailing dot.
*
* @param string $dnsSuffix
*/
public function setDnsSuffix($dnsSuffix)
{
$this->dnsSuffix = $dnsSuffix;
}
/**
* @return string
*/
public function getDnsSuffix()
{
return $this->dnsSuffix;
}
/**
* User assigned name for this resource. Must be unique within the project.
* The name must be 1-63 characters long, must begin with a letter, end with a
* letter or digit, and only contain lowercase letters, digits or dashes.
*
* @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(DnsZone::class, 'Google_Service_ServiceNetworking_DnsZone');
@@ -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\ServiceNetworking;
class DnsZonePair extends \Google\Model
{
protected $consumerPeeringZoneType = DnsZone::class;
protected $consumerPeeringZoneDataType = '';
protected $producerPrivateZoneType = DnsZone::class;
protected $producerPrivateZoneDataType = '';
/**
* The DNS peering zone in the consumer project.
*
* @param DnsZone $consumerPeeringZone
*/
public function setConsumerPeeringZone(DnsZone $consumerPeeringZone)
{
$this->consumerPeeringZone = $consumerPeeringZone;
}
/**
* @return DnsZone
*/
public function getConsumerPeeringZone()
{
return $this->consumerPeeringZone;
}
/**
* The private DNS zone in the shared producer host project.
*
* @param DnsZone $producerPrivateZone
*/
public function setProducerPrivateZone(DnsZone $producerPrivateZone)
{
$this->producerPrivateZone = $producerPrivateZone;
}
/**
* @return DnsZone
*/
public function getProducerPrivateZone()
{
return $this->producerPrivateZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DnsZonePair::class, 'Google_Service_ServiceNetworking_DnsZonePair');
@@ -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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_DotnetSettings');
@@ -0,0 +1,52 @@
<?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\ServiceNetworking;
class EnableVpcServiceControlsRequest extends \Google\Model
{
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is a project number, as in '12345' {network} is network name.
*
* @var string
*/
public $consumerNetwork;
/**
* Required. The network that the consumer is using to connect with services.
* Must be in the form of projects/{project}/global/networks/{network}
* {project} is a project number, as in '12345' {network} is network name.
*
* @param string $consumerNetwork
*/
public function setConsumerNetwork($consumerNetwork)
{
$this->consumerNetwork = $consumerNetwork;
}
/**
* @return string
*/
public function getConsumerNetwork()
{
return $this->consumerNetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnableVpcServiceControlsRequest::class, 'Google_Service_ServiceNetworking_EnableVpcServiceControlsRequest');
@@ -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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_FieldPolicy');
@@ -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\ServiceNetworking;
class GetDnsZoneResponse extends \Google\Model
{
protected $consumerPeeringZoneType = DnsZone::class;
protected $consumerPeeringZoneDataType = '';
protected $producerPrivateZoneType = DnsZone::class;
protected $producerPrivateZoneDataType = '';
/**
* The DNS peering zone created in the consumer project.
*
* @param DnsZone $consumerPeeringZone
*/
public function setConsumerPeeringZone(DnsZone $consumerPeeringZone)
{
$this->consumerPeeringZone = $consumerPeeringZone;
}
/**
* @return DnsZone
*/
public function getConsumerPeeringZone()
{
return $this->consumerPeeringZone;
}
/**
* The private DNS zone created in the shared producer host project.
*
* @param DnsZone $producerPrivateZone
*/
public function setProducerPrivateZone(DnsZone $producerPrivateZone)
{
$this->producerPrivateZone = $producerPrivateZone;
}
/**
* @return DnsZone
*/
public function getProducerPrivateZone()
{
return $this->producerPrivateZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetDnsZoneResponse::class, 'Google_Service_ServiceNetworking_GetDnsZoneResponse');
@@ -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\ServiceNetworking;
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_ServiceNetworking_GoSettings');
@@ -0,0 +1,96 @@
<?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\ServiceNetworking;
class GoogleCloudServicenetworkingV1ConsumerConfigReservedRange extends \Google\Model
{
/**
* The starting address of the reserved range. The address must be a valid
* IPv4 address in the x.x.x.x format. This value combined with the IP prefix
* length is the CIDR range for the reserved range.
*
* @var string
*/
public $address;
/**
* The prefix length of the reserved range.
*
* @var int
*/
public $ipPrefixLength;
/**
* The name of the reserved range.
*
* @var string
*/
public $name;
/**
* The starting address of the reserved range. The address must be a valid
* IPv4 address in the x.x.x.x format. This value combined with the IP prefix
* length is the CIDR range for the reserved range.
*
* @param string $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* The prefix length of the reserved range.
*
* @param int $ipPrefixLength
*/
public function setIpPrefixLength($ipPrefixLength)
{
$this->ipPrefixLength = $ipPrefixLength;
}
/**
* @return int
*/
public function getIpPrefixLength()
{
return $this->ipPrefixLength;
}
/**
* The name of the reserved range.
*
* @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(GoogleCloudServicenetworkingV1ConsumerConfigReservedRange::class, 'Google_Service_ServiceNetworking_GoogleCloudServicenetworkingV1ConsumerConfigReservedRange');
@@ -0,0 +1,133 @@
<?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\ServiceNetworking;
class GoogleCloudServicenetworkingV1betaConnection extends \Google\Collection
{
protected $collection_key = 'reservedPeeringRanges';
/**
* The name of service consumer's VPC network that's connected with service
* producer network, in the following format:
* `projects/{project}/global/networks/{network}`. `{project}` is a project
* number, such as in `12345` that includes the VPC service consumer's VPC
* network. `{network}` is the name of the service consumer's VPC network.
*
* @var string
*/
public $network;
/**
* Output only. The name of the VPC Network Peering connection that was
* created by the service producer.
*
* @var string
*/
public $peering;
/**
* The name of one or more allocated IP address ranges for this service
* producer of type `PEERING`. Note that invoking this method with a different
* range when connection is already established will not modify already
* provisioned service producer subnetworks.
*
* @var string[]
*/
public $reservedPeeringRanges;
/**
* Output only. The name of the peering service that's associated with this
* connection, in the following format: `services/{service name}`.
*
* @var string
*/
public $service;
/**
* The name of service consumer's VPC network that's connected with service
* producer network, in the following format:
* `projects/{project}/global/networks/{network}`. `{project}` is a project
* number, such as in `12345` that includes the VPC service consumer's VPC
* network. `{network}` is the name of the service consumer's VPC network.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Output only. The name of the VPC Network Peering connection that was
* created by the service producer.
*
* @param string $peering
*/
public function setPeering($peering)
{
$this->peering = $peering;
}
/**
* @return string
*/
public function getPeering()
{
return $this->peering;
}
/**
* The name of one or more allocated IP address ranges for this service
* producer of type `PEERING`. Note that invoking this method with a different
* range when connection is already established will not modify already
* provisioned service producer subnetworks.
*
* @param string[] $reservedPeeringRanges
*/
public function setReservedPeeringRanges($reservedPeeringRanges)
{
$this->reservedPeeringRanges = $reservedPeeringRanges;
}
/**
* @return string[]
*/
public function getReservedPeeringRanges()
{
return $this->reservedPeeringRanges;
}
/**
* Output only. The name of the peering service that's associated with this
* connection, in the following format: `services/{service name}`.
*
* @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(GoogleCloudServicenetworkingV1betaConnection::class, 'Google_Service_ServiceNetworking_GoogleCloudServicenetworkingV1betaConnection');
@@ -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\ServiceNetworking;
class GoogleCloudServicenetworkingV1betaSubnetwork extends \Google\Model
{
/**
* Subnetwork CIDR range in `10.x.x.x/y` format.
*
* @var string
*/
public $ipCidrRange;
/**
* Subnetwork name. See https://cloud.google.com/compute/docs/vpc/
*
* @var string
*/
public $name;
/**
* In the Shared VPC host project, the VPC network that's peered with the
* consumer network. For example: `projects/1234321/global/networks/host-
* network`
*
* @var string
*/
public $network;
/**
* This is a discovered subnet that is not within the current consumer
* allocated ranges.
*
* @var bool
*/
public $outsideAllocation;
/**
* Subnetwork CIDR range in `10.x.x.x/y` format.
*
* @param string $ipCidrRange
*/
public function setIpCidrRange($ipCidrRange)
{
$this->ipCidrRange = $ipCidrRange;
}
/**
* @return string
*/
public function getIpCidrRange()
{
return $this->ipCidrRange;
}
/**
* Subnetwork name. See https://cloud.google.com/compute/docs/vpc/
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* In the Shared VPC host project, the VPC network that's peered with the
* consumer network. For example: `projects/1234321/global/networks/host-
* network`
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* This is a discovered subnet that is not within the current consumer
* allocated ranges.
*
* @param bool $outsideAllocation
*/
public function setOutsideAllocation($outsideAllocation)
{
$this->outsideAllocation = $outsideAllocation;
}
/**
* @return bool
*/
public function getOutsideAllocation()
{
return $this->outsideAllocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudServicenetworkingV1betaSubnetwork::class, 'Google_Service_ServiceNetworking_GoogleCloudServicenetworkingV1betaSubnetwork');
@@ -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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_HttpRule');
@@ -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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_LabelDescriptor');
@@ -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\ServiceNetworking;
class ListConnectionsResponse extends \Google\Collection
{
protected $collection_key = 'connections';
protected $connectionsType = Connection::class;
protected $connectionsDataType = 'array';
/**
* The list of Connections.
*
* @param Connection[] $connections
*/
public function setConnections($connections)
{
$this->connections = $connections;
}
/**
* @return Connection[]
*/
public function getConnections()
{
return $this->connections;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListConnectionsResponse::class, 'Google_Service_ServiceNetworking_ListConnectionsResponse');
@@ -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\ServiceNetworking;
class ListDnsRecordSetsResponse extends \Google\Collection
{
protected $collection_key = 'dnsRecordSets';
protected $dnsRecordSetsType = DnsRecordSet::class;
protected $dnsRecordSetsDataType = 'array';
/**
* DNS record Set Resource
*
* @param DnsRecordSet[] $dnsRecordSets
*/
public function setDnsRecordSets($dnsRecordSets)
{
$this->dnsRecordSets = $dnsRecordSets;
}
/**
* @return DnsRecordSet[]
*/
public function getDnsRecordSets()
{
return $this->dnsRecordSets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDnsRecordSetsResponse::class, 'Google_Service_ServiceNetworking_ListDnsRecordSetsResponse');
@@ -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\ServiceNetworking;
class ListDnsZonesResponse extends \Google\Collection
{
protected $collection_key = 'dnsZonePairs';
protected $dnsZonePairsType = DnsZonePair::class;
protected $dnsZonePairsDataType = 'array';
/**
* All pairs of private DNS zones in the shared producer host project and the
* matching peering zones in the consumer project..
*
* @param DnsZonePair[] $dnsZonePairs
*/
public function setDnsZonePairs($dnsZonePairs)
{
$this->dnsZonePairs = $dnsZonePairs;
}
/**
* @return DnsZonePair[]
*/
public function getDnsZonePairs()
{
return $this->dnsZonePairs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDnsZonesResponse::class, 'Google_Service_ServiceNetworking_ListDnsZonesResponse');
@@ -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\ServiceNetworking;
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_ServiceNetworking_ListOperationsResponse');
@@ -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\ServiceNetworking;
class ListPeeredDnsDomainsResponse extends \Google\Collection
{
protected $collection_key = 'peeredDnsDomains';
protected $peeredDnsDomainsType = PeeredDnsDomain::class;
protected $peeredDnsDomainsDataType = 'array';
/**
* The list of peered DNS domains.
*
* @param PeeredDnsDomain[] $peeredDnsDomains
*/
public function setPeeredDnsDomains($peeredDnsDomains)
{
$this->peeredDnsDomains = $peeredDnsDomains;
}
/**
* @return PeeredDnsDomain[]
*/
public function getPeeredDnsDomains()
{
return $this->peeredDnsDomains;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPeeredDnsDomainsResponse::class, 'Google_Service_ServiceNetworking_ListPeeredDnsDomainsResponse');
@@ -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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_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\ServiceNetworking;
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_ServiceNetworking_LongRunning');
@@ -0,0 +1,227 @@
<?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\ServiceNetworking;
class Method 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. This
* field should be ignored, instead the edition should be inherited from Api.
* This is similar to Field and EnumValue.
*
* @deprecated
* @var string
*/
public $edition;
/**
* The simple name of this method.
*
* @var string
*/
public $name;
protected $optionsType = Option::class;
protected $optionsDataType = 'array';
/**
* If true, the request is streamed.
*
* @var bool
*/
public $requestStreaming;
/**
* A URL of the input message type.
*
* @var string
*/
public $requestTypeUrl;
/**
* If true, the response is streamed.
*
* @var bool
*/
public $responseStreaming;
/**
* The URL of the output message type.
*
* @var string
*/
public $responseTypeUrl;
/**
* The source syntax of this method. This field should be ignored, instead the
* syntax should be inherited from Api. This is similar to Field and
* EnumValue.
*
* @deprecated
* @var string
*/
public $syntax;
/**
* The source edition string, only valid when syntax is SYNTAX_EDITIONS. This
* field should be ignored, instead the edition should be inherited from Api.
* This is similar to Field and EnumValue.
*
* @deprecated
* @param string $edition
*/
public function setEdition($edition)
{
$this->edition = $edition;
}
/**
* @deprecated
* @return string
*/
public function getEdition()
{
return $this->edition;
}
/**
* The simple name of this method.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Any metadata attached to the method.
*
* @param Option[] $options
*/
public function setOptions($options)
{
$this->options = $options;
}
/**
* @return Option[]
*/
public function getOptions()
{
return $this->options;
}
/**
* If true, the request is streamed.
*
* @param bool $requestStreaming
*/
public function setRequestStreaming($requestStreaming)
{
$this->requestStreaming = $requestStreaming;
}
/**
* @return bool
*/
public function getRequestStreaming()
{
return $this->requestStreaming;
}
/**
* A URL of the input message type.
*
* @param string $requestTypeUrl
*/
public function setRequestTypeUrl($requestTypeUrl)
{
$this->requestTypeUrl = $requestTypeUrl;
}
/**
* @return string
*/
public function getRequestTypeUrl()
{
return $this->requestTypeUrl;
}
/**
* If true, the response is streamed.
*
* @param bool $responseStreaming
*/
public function setResponseStreaming($responseStreaming)
{
$this->responseStreaming = $responseStreaming;
}
/**
* @return bool
*/
public function getResponseStreaming()
{
return $this->responseStreaming;
}
/**
* The URL of the output message type.
*
* @param string $responseTypeUrl
*/
public function setResponseTypeUrl($responseTypeUrl)
{
$this->responseTypeUrl = $responseTypeUrl;
}
/**
* @return string
*/
public function getResponseTypeUrl()
{
return $this->responseTypeUrl;
}
/**
* The source syntax of this method. This field should be ignored, instead the
* syntax should be inherited from Api. This is similar to Field and
* EnumValue.
*
* Accepted values: SYNTAX_PROTO2, SYNTAX_PROTO3, SYNTAX_EDITIONS
*
* @deprecated
* @param self::SYNTAX_* $syntax
*/
public function setSyntax($syntax)
{
$this->syntax = $syntax;
}
/**
* @deprecated
* @return self::SYNTAX_*
*/
public function getSyntax()
{
return $this->syntax;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Method::class, 'Google_Service_ServiceNetworking_Method');
@@ -0,0 +1,73 @@
<?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\ServiceNetworking;
class MethodPolicy extends \Google\Collection
{
protected $collection_key = 'requestPolicies';
protected $requestPoliciesType = FieldPolicy::class;
protected $requestPoliciesDataType = 'array';
/**
* Selects a method to which these policies should be enforced, for example,
* "google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for
* syntax details. NOTE: This field must not be set in the proto annotation.
* It will be automatically filled by the service config compiler .
*
* @var string
*/
public $selector;
/**
* Policies that are applicable to the request message.
*
* @param FieldPolicy[] $requestPolicies
*/
public function setRequestPolicies($requestPolicies)
{
$this->requestPolicies = $requestPolicies;
}
/**
* @return FieldPolicy[]
*/
public function getRequestPolicies()
{
return $this->requestPolicies;
}
/**
* Selects a method to which these policies should be enforced, for example,
* "google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for
* syntax details. NOTE: This field must not be set in the proto annotation.
* It will be automatically filled by the service config compiler .
*
* @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(MethodPolicy::class, 'Google_Service_ServiceNetworking_MethodPolicy');
@@ -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\ServiceNetworking;
class MethodSettings extends \Google\Collection
{
protected $collection_key = 'autoPopulatedFields';
/**
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4. Example
* of a YAML configuration: publishing: method_settings: - selector:
* google.example.v1.ExampleService.CreateExample auto_populated_fields: -
* request_id
*
* @var string[]
*/
public $autoPopulatedFields;
protected $batchingType = BatchingConfigProto::class;
protected $batchingDataType = '';
protected $longRunningType = LongRunning::class;
protected $longRunningDataType = '';
/**
* The fully qualified name of the method, for which the options below apply.
* This is used to find the method to apply the options. Example: publishing:
* method_settings: - selector:
* google.storage.control.v2.StorageControl.CreateFolder # method settings for
* CreateFolder...
*
* @var string
*/
public $selector;
/**
* List of top-level fields of the request message, that should be
* automatically populated by the client libraries based on their
* (google.api.field_info).format. Currently supported format: UUID4. Example
* of a YAML configuration: publishing: method_settings: - selector:
* google.example.v1.ExampleService.CreateExample auto_populated_fields: -
* request_id
*
* @param string[] $autoPopulatedFields
*/
public function setAutoPopulatedFields($autoPopulatedFields)
{
$this->autoPopulatedFields = $autoPopulatedFields;
}
/**
* @return string[]
*/
public function getAutoPopulatedFields()
{
return $this->autoPopulatedFields;
}
/**
* Batching configuration for an API method in client libraries. Example of a
* YAML configuration: publishing: method_settings: - selector:
* google.example.v1.ExampleService.BatchCreateExample batching:
* element_count_threshold: 1000 request_byte_threshold: 100000000
* delay_threshold_millis: 10
*
* @param BatchingConfigProto $batching
*/
public function setBatching(BatchingConfigProto $batching)
{
$this->batching = $batching;
}
/**
* @return BatchingConfigProto
*/
public function getBatching()
{
return $this->batching;
}
/**
* Describes settings to use for long-running operations when generating API
* methods for RPCs. Complements RPCs that use the annotations in
* google/longrunning/operations.proto. Example of a YAML configuration::
* publishing: method_settings: - selector:
* google.cloud.speech.v2.Speech.BatchRecognize long_running:
* initial_poll_delay: 60s # 1 minute poll_delay_multiplier: 1.5
* max_poll_delay: 360s # 6 minutes total_poll_timeout: 54000s # 90 minutes
*
* @param LongRunning $longRunning
*/
public function setLongRunning(LongRunning $longRunning)
{
$this->longRunning = $longRunning;
}
/**
* @return LongRunning
*/
public function getLongRunning()
{
return $this->longRunning;
}
/**
* The fully qualified name of the method, for which the options below apply.
* This is used to find the method to apply the options. Example: publishing:
* method_settings: - selector:
* google.storage.control.v2.StorageControl.CreateFolder # method settings for
* CreateFolder...
*
* @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(MethodSettings::class, 'Google_Service_ServiceNetworking_MethodSettings');
@@ -0,0 +1,499 @@
<?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\ServiceNetworking;
class MetricDescriptor extends \Google\Collection
{
/**
* 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';
/**
* Do not use this default value.
*/
public const METRIC_KIND_METRIC_KIND_UNSPECIFIED = 'METRIC_KIND_UNSPECIFIED';
/**
* An instantaneous measurement of a value.
*/
public const METRIC_KIND_GAUGE = 'GAUGE';
/**
* The change in a value during a time interval.
*/
public const METRIC_KIND_DELTA = 'DELTA';
/**
* A value accumulated over a time interval. Cumulative measurements in a time
* series should have the same start time and increasing end times, until an
* event resets the cumulative value to zero and sets a new start time for the
* following points.
*/
public const METRIC_KIND_CUMULATIVE = 'CUMULATIVE';
/**
* Do not use this default value.
*/
public const VALUE_TYPE_VALUE_TYPE_UNSPECIFIED = 'VALUE_TYPE_UNSPECIFIED';
/**
* The value is a boolean. This value type can be used only if the metric kind
* is `GAUGE`.
*/
public const VALUE_TYPE_BOOL = 'BOOL';
/**
* The value is a signed 64-bit integer.
*/
public const VALUE_TYPE_INT64 = 'INT64';
/**
* The value is a double precision floating point number.
*/
public const VALUE_TYPE_DOUBLE = 'DOUBLE';
/**
* The value is a text string. This value type can be used only if the metric
* kind is `GAUGE`.
*/
public const VALUE_TYPE_STRING = 'STRING';
/**
* The value is a `Distribution`.
*/
public const VALUE_TYPE_DISTRIBUTION = 'DISTRIBUTION';
/**
* The value is money.
*/
public const VALUE_TYPE_MONEY = 'MONEY';
protected $collection_key = 'monitoredResourceTypes';
/**
* A detailed description of the metric, which can be used in documentation.
*
* @var string
*/
public $description;
/**
* A concise name for the metric, which can be displayed in user interfaces.
* Use sentence case without an ending period, for example "Request count".
* This field is optional but it is recommended to be set for any metrics
* associated with user-visible concepts, such as Quota.
*
* @var string
*/
public $displayName;
protected $labelsType = LabelDescriptor::class;
protected $labelsDataType = 'array';
/**
* Optional. The launch stage of the metric definition.
*
* @var string
*/
public $launchStage;
protected $metadataType = MetricDescriptorMetadata::class;
protected $metadataDataType = '';
/**
* Whether the metric records instantaneous values, changes to a value, etc.
* Some combinations of `metric_kind` and `value_type` might not be supported.
*
* @var string
*/
public $metricKind;
/**
* Read-only. If present, then a time series, which is identified partially by
* a metric type and a MonitoredResourceDescriptor, that is associated with
* this metric type can only be associated with one of the monitored resource
* types listed here.
*
* @var string[]
*/
public $monitoredResourceTypes;
/**
* The resource name of the metric descriptor.
*
* @var string
*/
public $name;
/**
* The metric type, including its DNS name prefix. The type is not URL-
* encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
*
* @var string
*/
public $type;
/**
* The units in which the metric value is reported. It is only applicable if
* the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values. Different systems
* might scale the values to be more easily displayed (so a value of `0.02kBy`
* _might_ be displayed as `20By`, and a value of `3523kBy` _might_ be
* displayed as `3.5MBy`). However, if the `unit` is `kBy`, then the value of
* the metric is always in thousands of bytes, no matter how it might be
* displayed. If you want a custom metric to record the exact number of CPU-
* seconds used by a job, you can create an `INT64 CUMULATIVE` metric whose
* `unit` is `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses
* 12,005 CPU-seconds, then the value is written as `12005`. Alternatively, if
* you want a custom metric to record data in a more granular way, you can
* create a `DOUBLE CUMULATIVE` metric whose `unit` is `ks{CPU}`, and then
* write the value `12.005` (which is `12005/1000`), or use `Kis{CPU}` and
* write `11.723` (which is `12005/1024`). The supported units are a subset of
* [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard: **Basic units
* (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour *
* `d` day * `1` dimensionless **Prefixes (PREFIX)** * `k` kilo (10^3) * `M`
* mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `E`
* exa (10^18) * `Z` zetta (10^21) * `Y` yotta (10^24) * `m` milli (10^-3) *
* `u` micro (10^-6) * `n` nano (10^-9) * `p` pico (10^-12) * `f` femto
* (10^-15) * `a` atto (10^-18) * `z` zepto (10^-21) * `y` yocto (10^-24) *
* `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) *
* `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: *
* `/` division or ratio (as an infix operator). For examples, `kBy/{email}`
* or `MiBy/10ms` (although you should almost never have `/s` in a metric
* `unit`; rates should always be computed at query time from the underlying
* cumulative or delta value). * `.` multiplication or composition (as an
* infix operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a
* unit is as follows: Expression = Component { "." Component } { "/"
* Component } ; Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] |
* Annotation | "1" ; Annotation = "{" NAME "}" ; Notes: * `Annotation` is
* just a comment if it follows a `UNIT`. If the annotation is used alone,
* then the unit is equivalent to `1`. For examples, `{request}/s == 1/s`,
* `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable
* ASCII characters not containing `{` or `}`. * `1` represents a unitary
* [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity)
* of 1, such as in `1/s`. It is typically used when none of the basic units
* are appropriate. For example, "new users per day" can be represented as
* `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new users).
* Alternatively, "thousands of page views per day" would be represented as
* `1000/d` or `k1/d` or `k{page_views}/d` (and a metric value of `5.3` would
* mean "5300 page views per day"). * `%` represents dimensionless value of
* 1/100, and annotates values giving a percentage (so the metric values are
* typically in the range of 0..100, and a metric value `3` means "3
* percent"). * `10^2.%` indicates a metric contains a ratio, typically in the
* range 0..1, that will be multiplied by 100 and displayed as a percentage
* (so a metric value `0.03` means "3 percent").
*
* @var string
*/
public $unit;
/**
* Whether the measurement is an integer, a floating-point number, etc. Some
* combinations of `metric_kind` and `value_type` might not be supported.
*
* @var string
*/
public $valueType;
/**
* A detailed description of the metric, which can be used in documentation.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* A concise name for the metric, which can be displayed in user interfaces.
* Use sentence case without an ending period, for example "Request count".
* This field is optional but it is recommended to be set for any metrics
* associated with user-visible concepts, such as Quota.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The set of labels that can be used to describe a specific instance of this
* metric type. For example, the
* `appengine.googleapis.com/http/server/response_latencies` metric type has a
* label for the HTTP response code, `response_code`, so you can look at
* latencies for successful responses or just for responses that failed.
*
* @param LabelDescriptor[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return LabelDescriptor[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. The launch stage of the metric definition.
*
* 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;
}
/**
* Optional. Metadata which can be used to guide usage of the metric.
*
* @param MetricDescriptorMetadata $metadata
*/
public function setMetadata(MetricDescriptorMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return MetricDescriptorMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Whether the metric records instantaneous values, changes to a value, etc.
* Some combinations of `metric_kind` and `value_type` might not be supported.
*
* Accepted values: METRIC_KIND_UNSPECIFIED, GAUGE, DELTA, CUMULATIVE
*
* @param self::METRIC_KIND_* $metricKind
*/
public function setMetricKind($metricKind)
{
$this->metricKind = $metricKind;
}
/**
* @return self::METRIC_KIND_*
*/
public function getMetricKind()
{
return $this->metricKind;
}
/**
* Read-only. If present, then a time series, which is identified partially by
* a metric type and a MonitoredResourceDescriptor, that is associated with
* this metric type can only be associated with one of the monitored resource
* types listed here.
*
* @param string[] $monitoredResourceTypes
*/
public function setMonitoredResourceTypes($monitoredResourceTypes)
{
$this->monitoredResourceTypes = $monitoredResourceTypes;
}
/**
* @return string[]
*/
public function getMonitoredResourceTypes()
{
return $this->monitoredResourceTypes;
}
/**
* The resource name of the metric descriptor.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The metric type, including its DNS name prefix. The type is not URL-
* encoded. All user-defined metric types have the DNS name
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
* use a natural hierarchical grouping. For example:
* "custom.googleapis.com/invoice/paid/amount"
* "external.googleapis.com/prometheus/up"
* "appengine.googleapis.com/http/server/response_latencies"
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* The units in which the metric value is reported. It is only applicable if
* the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
* defines the representation of the stored metric values. Different systems
* might scale the values to be more easily displayed (so a value of `0.02kBy`
* _might_ be displayed as `20By`, and a value of `3523kBy` _might_ be
* displayed as `3.5MBy`). However, if the `unit` is `kBy`, then the value of
* the metric is always in thousands of bytes, no matter how it might be
* displayed. If you want a custom metric to record the exact number of CPU-
* seconds used by a job, you can create an `INT64 CUMULATIVE` metric whose
* `unit` is `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses
* 12,005 CPU-seconds, then the value is written as `12005`. Alternatively, if
* you want a custom metric to record data in a more granular way, you can
* create a `DOUBLE CUMULATIVE` metric whose `unit` is `ks{CPU}`, and then
* write the value `12.005` (which is `12005/1000`), or use `Kis{CPU}` and
* write `11.723` (which is `12005/1024`). The supported units are a subset of
* [The Unified Code for Units of
* Measure](https://unitsofmeasure.org/ucum.html) standard: **Basic units
* (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour *
* `d` day * `1` dimensionless **Prefixes (PREFIX)** * `k` kilo (10^3) * `M`
* mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `E`
* exa (10^18) * `Z` zetta (10^21) * `Y` yotta (10^24) * `m` milli (10^-3) *
* `u` micro (10^-6) * `n` nano (10^-9) * `p` pico (10^-12) * `f` femto
* (10^-15) * `a` atto (10^-18) * `z` zepto (10^-21) * `y` yocto (10^-24) *
* `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) *
* `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: *
* `/` division or ratio (as an infix operator). For examples, `kBy/{email}`
* or `MiBy/10ms` (although you should almost never have `/s` in a metric
* `unit`; rates should always be computed at query time from the underlying
* cumulative or delta value). * `.` multiplication or composition (as an
* infix operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a
* unit is as follows: Expression = Component { "." Component } { "/"
* Component } ; Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] |
* Annotation | "1" ; Annotation = "{" NAME "}" ; Notes: * `Annotation` is
* just a comment if it follows a `UNIT`. If the annotation is used alone,
* then the unit is equivalent to `1`. For examples, `{request}/s == 1/s`,
* `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable
* ASCII characters not containing `{` or `}`. * `1` represents a unitary
* [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity)
* of 1, such as in `1/s`. It is typically used when none of the basic units
* are appropriate. For example, "new users per day" can be represented as
* `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new users).
* Alternatively, "thousands of page views per day" would be represented as
* `1000/d` or `k1/d` or `k{page_views}/d` (and a metric value of `5.3` would
* mean "5300 page views per day"). * `%` represents dimensionless value of
* 1/100, and annotates values giving a percentage (so the metric values are
* typically in the range of 0..100, and a metric value `3` means "3
* percent"). * `10^2.%` indicates a metric contains a ratio, typically in the
* range 0..1, that will be multiplied by 100 and displayed as a percentage
* (so a metric value `0.03` means "3 percent").
*
* @param string $unit
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
/**
* Whether the measurement is an integer, a floating-point number, etc. Some
* combinations of `metric_kind` and `value_type` might not be supported.
*
* Accepted values: VALUE_TYPE_UNSPECIFIED, BOOL, INT64, DOUBLE, STRING,
* DISTRIBUTION, MONEY
*
* @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(MetricDescriptor::class, 'Google_Service_ServiceNetworking_MetricDescriptor');
@@ -0,0 +1,184 @@
<?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\ServiceNetworking;
class MetricDescriptorMetadata extends \Google\Collection
{
/**
* 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 $collection_key = 'timeSeriesResourceHierarchyLevel';
/**
* The delay of data points caused by ingestion. Data points older than this
* age are guaranteed to be ingested and available to be read, excluding data
* loss due to errors.
*
* @var string
*/
public $ingestDelay;
/**
* Deprecated. Must use the MetricDescriptor.launch_stage instead.
*
* @deprecated
* @var string
*/
public $launchStage;
/**
* The sampling period of metric data points. For metrics which are written
* periodically, consecutive data points are stored at this time interval,
* excluding data loss due to errors. Metrics with a higher granularity have a
* smaller sampling period.
*
* @var string
*/
public $samplePeriod;
/**
* The scope of the timeseries data of the metric.
*
* @var string[]
*/
public $timeSeriesResourceHierarchyLevel;
/**
* The delay of data points caused by ingestion. Data points older than this
* age are guaranteed to be ingested and available to be read, excluding data
* loss due to errors.
*
* @param string $ingestDelay
*/
public function setIngestDelay($ingestDelay)
{
$this->ingestDelay = $ingestDelay;
}
/**
* @return string
*/
public function getIngestDelay()
{
return $this->ingestDelay;
}
/**
* Deprecated. Must use the MetricDescriptor.launch_stage instead.
*
* Accepted values: LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH,
* EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED
*
* @deprecated
* @param self::LAUNCH_STAGE_* $launchStage
*/
public function setLaunchStage($launchStage)
{
$this->launchStage = $launchStage;
}
/**
* @deprecated
* @return self::LAUNCH_STAGE_*
*/
public function getLaunchStage()
{
return $this->launchStage;
}
/**
* The sampling period of metric data points. For metrics which are written
* periodically, consecutive data points are stored at this time interval,
* excluding data loss due to errors. Metrics with a higher granularity have a
* smaller sampling period.
*
* @param string $samplePeriod
*/
public function setSamplePeriod($samplePeriod)
{
$this->samplePeriod = $samplePeriod;
}
/**
* @return string
*/
public function getSamplePeriod()
{
return $this->samplePeriod;
}
/**
* The scope of the timeseries data of the metric.
*
* @param string[] $timeSeriesResourceHierarchyLevel
*/
public function setTimeSeriesResourceHierarchyLevel($timeSeriesResourceHierarchyLevel)
{
$this->timeSeriesResourceHierarchyLevel = $timeSeriesResourceHierarchyLevel;
}
/**
* @return string[]
*/
public function getTimeSeriesResourceHierarchyLevel()
{
return $this->timeSeriesResourceHierarchyLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetricDescriptorMetadata::class, 'Google_Service_ServiceNetworking_MetricDescriptorMetadata');
@@ -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\ServiceNetworking;
class MetricRule extends \Google\Model
{
/**
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric. The key of the map is the metric name, and the
* values are the amount increased for the metric against which the quota
* limits are defined. The value must not be negative.
*
* @var string[]
*/
public $metricCosts;
/**
* Selects the methods to which this rule applies. Refer to selector for
* syntax details.
*
* @var string
*/
public $selector;
/**
* Metrics to update when the selected methods are called, and the associated
* cost applied to each metric. The key of the map is the metric name, and the
* values are the amount increased for the metric against which the quota
* limits are defined. The value must not be negative.
*
* @param string[] $metricCosts
*/
public function setMetricCosts($metricCosts)
{
$this->metricCosts = $metricCosts;
}
/**
* @return string[]
*/
public function getMetricCosts()
{
return $this->metricCosts;
}
/**
* 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(MetricRule::class, 'Google_Service_ServiceNetworking_MetricRule');
@@ -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\ServiceNetworking;
class Mixin extends \Google\Model
{
/**
* The fully qualified name of the interface which is included.
*
* @var string
*/
public $name;
/**
* If non-empty specifies a path under which inherited HTTP paths are rooted.
*
* @var string
*/
public $root;
/**
* The fully qualified name of the interface which is included.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* If non-empty specifies a path under which inherited HTTP paths are rooted.
*
* @param string $root
*/
public function setRoot($root)
{
$this->root = $root;
}
/**
* @return string
*/
public function getRoot()
{
return $this->root;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Mixin::class, 'Google_Service_ServiceNetworking_Mixin');
@@ -0,0 +1,241 @@
<?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\ServiceNetworking;
class MonitoredResourceDescriptor extends \Google\Collection
{
/**
* 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 $collection_key = 'labels';
/**
* Optional. A detailed description of the monitored resource type that might
* be used in documentation.
*
* @var string
*/
public $description;
/**
* Optional. A concise name for the monitored resource type that might be
* displayed in user interfaces. It should be a Title Cased Noun Phrase,
* without any article or other determiners. For example, `"Google Cloud SQL
* Database"`.
*
* @var string
*/
public $displayName;
protected $labelsType = LabelDescriptor::class;
protected $labelsDataType = 'array';
/**
* Optional. The launch stage of the monitored resource definition.
*
* @var string
*/
public $launchStage;
/**
* Optional. The resource name of the monitored resource descriptor:
* `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where {type}
* is the value of the `type` field in this object and {project_id} is a
* project ID that provides API-specific context for accessing the type. APIs
* that do not use project information can use the resource name format
* `"monitoredResourceDescriptors/{type}"`.
*
* @var string
*/
public $name;
/**
* Required. The monitored resource type. For example, the type
* `"cloudsql_database"` represents databases in Google Cloud SQL. For a list
* of types, see [Monitored resource
* types](https://cloud.google.com/monitoring/api/resources) and [Logging
* resource types](https://cloud.google.com/logging/docs/api/v2/resource-
* list).
*
* @var string
*/
public $type;
/**
* Optional. A detailed description of the monitored resource type that might
* be used in documentation.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. A concise name for the monitored resource type that might be
* displayed in user interfaces. It should be a Title Cased Noun Phrase,
* without any article or other determiners. For example, `"Google Cloud SQL
* Database"`.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Required. A set of labels used to describe instances of this monitored
* resource type. For example, an individual Google Cloud SQL database is
* identified by values for the labels `"database_id"` and `"zone"`.
*
* @param LabelDescriptor[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return LabelDescriptor[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. The launch stage of the monitored resource definition.
*
* 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;
}
/**
* Optional. The resource name of the monitored resource descriptor:
* `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where {type}
* is the value of the `type` field in this object and {project_id} is a
* project ID that provides API-specific context for accessing the type. APIs
* that do not use project information can use the resource name format
* `"monitoredResourceDescriptors/{type}"`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The monitored resource type. For example, the type
* `"cloudsql_database"` represents databases in Google Cloud SQL. For a list
* of types, see [Monitored resource
* types](https://cloud.google.com/monitoring/api/resources) and [Logging
* resource types](https://cloud.google.com/logging/docs/api/v2/resource-
* list).
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MonitoredResourceDescriptor::class, 'Google_Service_ServiceNetworking_MonitoredResourceDescriptor');
@@ -0,0 +1,73 @@
<?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\ServiceNetworking;
class Monitoring extends \Google\Collection
{
protected $collection_key = 'producerDestinations';
protected $consumerDestinationsType = MonitoringDestination::class;
protected $consumerDestinationsDataType = 'array';
protected $producerDestinationsType = MonitoringDestination::class;
protected $producerDestinationsDataType = 'array';
/**
* Monitoring configurations for sending metrics to the consumer project.
* There can be multiple consumer destinations. A monitored resource type may
* appear in multiple monitoring destinations if different aggregations are
* needed for different sets of metrics associated with that monitored
* resource type. A monitored resource and metric pair may only be used once
* in the Monitoring configuration.
*
* @param MonitoringDestination[] $consumerDestinations
*/
public function setConsumerDestinations($consumerDestinations)
{
$this->consumerDestinations = $consumerDestinations;
}
/**
* @return MonitoringDestination[]
*/
public function getConsumerDestinations()
{
return $this->consumerDestinations;
}
/**
* Monitoring configurations for sending metrics to the producer project.
* There can be multiple producer destinations. A monitored resource type may
* appear in multiple monitoring destinations if different aggregations are
* needed for different sets of metrics associated with that monitored
* resource type. A monitored resource and metric pair may only be used once
* in the Monitoring configuration.
*
* @param MonitoringDestination[] $producerDestinations
*/
public function setProducerDestinations($producerDestinations)
{
$this->producerDestinations = $producerDestinations;
}
/**
* @return MonitoringDestination[]
*/
public function getProducerDestinations()
{
return $this->producerDestinations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Monitoring::class, 'Google_Service_ServiceNetworking_Monitoring');
@@ -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\ServiceNetworking;
class MonitoringDestination extends \Google\Collection
{
protected $collection_key = 'metrics';
/**
* Types of the metrics to report to this monitoring destination. Each type
* 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;
/**
* Types of the metrics to report to this monitoring destination. Each type
* 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(MonitoringDestination::class, 'Google_Service_ServiceNetworking_MonitoringDestination');
@@ -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\ServiceNetworking;
class NodeSettings 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(NodeSettings::class, 'Google_Service_ServiceNetworking_NodeSettings');
@@ -0,0 +1,54 @@
<?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\ServiceNetworking;
class OAuthRequirements extends \Google\Model
{
/**
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted. Example:
* canonical_scopes: https://www.googleapis.com/auth/calendar,
* https://www.googleapis.com/auth/calendar.read
*
* @var string
*/
public $canonicalScopes;
/**
* The list of publicly documented OAuth scopes that are allowed access. An
* OAuth token containing any of these scopes will be accepted. Example:
* canonical_scopes: https://www.googleapis.com/auth/calendar,
* https://www.googleapis.com/auth/calendar.read
*
* @param string $canonicalScopes
*/
public function setCanonicalScopes($canonicalScopes)
{
$this->canonicalScopes = $canonicalScopes;
}
/**
* @return string
*/
public function getCanonicalScopes()
{
return $this->canonicalScopes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OAuthRequirements::class, 'Google_Service_ServiceNetworking_OAuthRequirements');
@@ -0,0 +1,158 @@
<?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\ServiceNetworking;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_ServiceNetworking_Operation');
@@ -0,0 +1,82 @@
<?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\ServiceNetworking;
class Option extends \Google\Model
{
/**
* The option's name. For protobuf built-in options (options defined in
* descriptor.proto), this is the short name. For example, `"map_entry"`. For
* custom options, it should be the fully-qualified name. For example,
* `"google.api.http"`.
*
* @var string
*/
public $name;
/**
* The option's value packed in an Any message. If the value is a primitive,
* the corresponding wrapper type defined in google/protobuf/wrappers.proto
* should be used. If the value is an enum, it should be stored as an int32
* value using the google.protobuf.Int32Value type.
*
* @var array[]
*/
public $value;
/**
* The option's name. For protobuf built-in options (options defined in
* descriptor.proto), this is the short name. For example, `"map_entry"`. For
* custom options, it should be the fully-qualified name. For example,
* `"google.api.http"`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The option's value packed in an Any message. If the value is a primitive,
* the corresponding wrapper type defined in google/protobuf/wrappers.proto
* should be used. If the value is an enum, it should be stored as an int32
* value using the google.protobuf.Int32Value type.
*
* @param array[] $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return array[]
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Option::class, 'Google_Service_ServiceNetworking_Option');
@@ -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\ServiceNetworking;
class Page extends \Google\Collection
{
protected $collection_key = 'subpages';
/**
* The Markdown content of the page. You can use ```(== include {path} ==)```
* to include content from a Markdown file. The content can be used to produce
* the documentation page such as HTML format page.
*
* @var string
*/
public $content;
/**
* The name of the page. It will be used as an identity of the page to
* generate URI of the page, text of the link to this page in navigation, etc.
* The full page name (start from the root page name to this page concatenated
* with `.`) can be used as reference to the page in your documentation. For
* example: pages: - name: Tutorial content: (== include tutorial.md ==)
* subpages: - name: Java content: (== include tutorial_java.md ==) You can
* reference `Java` page using Markdown reference link syntax: `Java`.
*
* @var string
*/
public $name;
protected $subpagesType = Page::class;
protected $subpagesDataType = 'array';
/**
* The Markdown content of the page. You can use ```(== include {path} ==)```
* to include content from a Markdown file. The content can be used to produce
* the documentation page such as HTML format page.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* The name of the page. It will be used as an identity of the page to
* generate URI of the page, text of the link to this page in navigation, etc.
* The full page name (start from the root page name to this page concatenated
* with `.`) can be used as reference to the page in your documentation. For
* example: pages: - name: Tutorial content: (== include tutorial.md ==)
* subpages: - name: Java content: (== include tutorial_java.md ==) You can
* reference `Java` page using Markdown reference link syntax: `Java`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Subpages of this page. The order of subpages specified here will be honored
* in the generated docset.
*
* @param Page[] $subpages
*/
public function setSubpages($subpages)
{
$this->subpages = $subpages;
}
/**
* @return Page[]
*/
public function getSubpages()
{
return $this->subpages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Page::class, 'Google_Service_ServiceNetworking_Page');
@@ -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\ServiceNetworking;
class PartialDeleteConnectionMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartialDeleteConnectionMetadata::class, 'Google_Service_ServiceNetworking_PartialDeleteConnectionMetadata');
@@ -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\ServiceNetworking;
class PeeredDnsDomain extends \Google\Model
{
/**
* The DNS domain name suffix e.g. `example.com.`. Cloud DNS requires that a
* DNS suffix ends with a trailing dot.
*
* @var string
*/
public $dnsSuffix;
/**
* Required. User assigned name for this resource. Must be unique within the
* consumer network. The name must be 1-63 characters long, must begin with a
* letter, end with a letter or digit, and only contain lowercase letters,
* digits or dashes.
*
* @var string
*/
public $name;
/**
* The DNS domain name suffix e.g. `example.com.`. Cloud DNS requires that a
* DNS suffix ends with a trailing dot.
*
* @param string $dnsSuffix
*/
public function setDnsSuffix($dnsSuffix)
{
$this->dnsSuffix = $dnsSuffix;
}
/**
* @return string
*/
public function getDnsSuffix()
{
return $this->dnsSuffix;
}
/**
* Required. User assigned name for this resource. Must be unique within the
* consumer network. The name must be 1-63 characters long, must begin with a
* letter, end with a letter or digit, and only contain lowercase letters,
* digits or dashes.
*
* @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(PeeredDnsDomain::class, 'Google_Service_ServiceNetworking_PeeredDnsDomain');
@@ -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\ServiceNetworking;
class PeeredDnsDomainMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PeeredDnsDomainMetadata::class, 'Google_Service_ServiceNetworking_PeeredDnsDomainMetadata');
@@ -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\ServiceNetworking;
class PhpSettings extends \Google\Model
{
protected $commonType = CommonLanguageSettings::class;
protected $commonDataType = '';
/**
* The package name to use in Php. Clobbers the php_namespace option set in
* the protobuf. This should be used **only** by APIs who have already set the
* language_settings.php.package_name" field in gapic.yaml. API teams should
* use the protobuf php_namespace option where possible. Example of a YAML
* configuration:: publishing: library_settings: php_settings:
* library_package: Google\Cloud\PubSub\V1
*
* @var string
*/
public $libraryPackage;
/**
* 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 Php. Clobbers the php_namespace option set in
* the protobuf. This should be used **only** by APIs who have already set the
* language_settings.php.package_name" field in gapic.yaml. API teams should
* use the protobuf php_namespace option where possible. Example of a YAML
* configuration:: publishing: library_settings: php_settings:
* library_package: Google\Cloud\PubSub\V1
*
* @param string $libraryPackage
*/
public function setLibraryPackage($libraryPackage)
{
$this->libraryPackage = $libraryPackage;
}
/**
* @return string
*/
public function getLibraryPackage()
{
return $this->libraryPackage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PhpSettings::class, 'Google_Service_ServiceNetworking_PhpSettings');
@@ -0,0 +1,96 @@
<?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\ServiceNetworking;
class PolicyBinding extends \Google\Model
{
/**
* Required. Member to bind the role with. See
* /iam/docs/reference/rest/v1/Policy#Binding for how to format each member.
* Eg. - user:myuser@mydomain.com - serviceAccount:my-service-
* account@app.gserviceaccount.com
*
* @var string
*/
public $member;
/**
* Required. Role to apply. Only allowlisted roles can be used at the
* specified granularity. The role must be one of the following: -
* 'roles/container.hostServiceAgentUser' applied on the shared VPC host
* project - 'roles/compute.securityAdmin' applied on the shared VPC host
* project - 'roles/compute.networkAdmin' applied on the shared VPC host
* project - 'roles/tpu.xpnAgent' applied on the shared VPC host project -
* 'roles/dns.admin' applied on the shared VPC host project -
* 'roles/logging.admin' applied on the shared VPC host project -
* 'roles/monitoring.viewer' applied on the shared VPC host project -
* 'roles/servicemanagement.quotaViewer' applied on the shared VPC host
* project
*
* @var string
*/
public $role;
/**
* Required. Member to bind the role with. See
* /iam/docs/reference/rest/v1/Policy#Binding for how to format each member.
* Eg. - user:myuser@mydomain.com - serviceAccount:my-service-
* account@app.gserviceaccount.com
*
* @param string $member
*/
public function setMember($member)
{
$this->member = $member;
}
/**
* @return string
*/
public function getMember()
{
return $this->member;
}
/**
* Required. Role to apply. Only allowlisted roles can be used at the
* specified granularity. The role must be one of the following: -
* 'roles/container.hostServiceAgentUser' applied on the shared VPC host
* project - 'roles/compute.securityAdmin' applied on the shared VPC host
* project - 'roles/compute.networkAdmin' applied on the shared VPC host
* project - 'roles/tpu.xpnAgent' applied on the shared VPC host project -
* 'roles/dns.admin' applied on the shared VPC host project -
* 'roles/logging.admin' applied on the shared VPC host project -
* 'roles/monitoring.viewer' applied on the shared VPC host project -
* 'roles/servicemanagement.quotaViewer' applied on the shared VPC host
* project
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PolicyBinding::class, 'Google_Service_ServiceNetworking_PolicyBinding');
@@ -0,0 +1,313 @@
<?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\ServiceNetworking;
class Publishing extends \Google\Collection
{
/**
* Not useful.
*/
public const ORGANIZATION_CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED';
/**
* Google Cloud Platform Org.
*/
public const ORGANIZATION_CLOUD = 'CLOUD';
/**
* Ads (Advertising) Org.
*/
public const ORGANIZATION_ADS = 'ADS';
/**
* Photos Org.
*/
public const ORGANIZATION_PHOTOS = 'PHOTOS';
/**
* Street View Org.
*/
public const ORGANIZATION_STREET_VIEW = 'STREET_VIEW';
/**
* Shopping Org.
*/
public const ORGANIZATION_SHOPPING = 'SHOPPING';
/**
* Geo Org.
*/
public const ORGANIZATION_GEO = 'GEO';
/**
* Generative AI - https://developers.generativeai.google
*/
public const ORGANIZATION_GENERATIVE_AI = 'GENERATIVE_AI';
/**
* Health Org.
*/
public const ORGANIZATION_HEALTH = 'HEALTH';
protected $collection_key = 'methodSettings';
/**
* Used as a tracking tag when collecting data about the APIs developer
* relations artifacts like docs, packages delivered to package managers, etc.
* Example: "speech".
*
* @var string
*/
public $apiShortName;
/**
* GitHub teams to be added to CODEOWNERS in the directory in GitHub
* containing source code for the client libraries for this API.
*
* @var string[]
*/
public $codeownerGithubTeams;
/**
* A prefix used in sample code when demarking regions to be included in
* documentation.
*
* @var string
*/
public $docTagPrefix;
/**
* Link to product home page. Example: https://cloud.google.com/asset-
* inventory/docs/overview
*
* @var string
*/
public $documentationUri;
/**
* GitHub label to apply to issues and pull requests opened for this API.
*
* @var string
*/
public $githubLabel;
protected $librarySettingsType = ClientLibrarySettings::class;
protected $librarySettingsDataType = 'array';
protected $methodSettingsType = MethodSettings::class;
protected $methodSettingsDataType = 'array';
/**
* @var string
*/
public $newIssueUri;
/**
* For whom the client library is being published.
*
* @var string
*/
public $organization;
/**
* Optional link to proto reference documentation. Example:
* https://cloud.google.com/pubsub/lite/docs/reference/rpc
*
* @var string
*/
public $protoReferenceDocumentationUri;
/**
* Optional link to REST reference documentation. Example:
* https://cloud.google.com/pubsub/lite/docs/reference/rest
*
* @var string
*/
public $restReferenceDocumentationUri;
/**
* Used as a tracking tag when collecting data about the APIs developer
* relations artifacts like docs, packages delivered to package managers, etc.
* Example: "speech".
*
* @param string $apiShortName
*/
public function setApiShortName($apiShortName)
{
$this->apiShortName = $apiShortName;
}
/**
* @return string
*/
public function getApiShortName()
{
return $this->apiShortName;
}
/**
* GitHub teams to be added to CODEOWNERS in the directory in GitHub
* containing source code for the client libraries for this API.
*
* @param string[] $codeownerGithubTeams
*/
public function setCodeownerGithubTeams($codeownerGithubTeams)
{
$this->codeownerGithubTeams = $codeownerGithubTeams;
}
/**
* @return string[]
*/
public function getCodeownerGithubTeams()
{
return $this->codeownerGithubTeams;
}
/**
* A prefix used in sample code when demarking regions to be included in
* documentation.
*
* @param string $docTagPrefix
*/
public function setDocTagPrefix($docTagPrefix)
{
$this->docTagPrefix = $docTagPrefix;
}
/**
* @return string
*/
public function getDocTagPrefix()
{
return $this->docTagPrefix;
}
/**
* Link to product home page. Example: https://cloud.google.com/asset-
* inventory/docs/overview
*
* @param string $documentationUri
*/
public function setDocumentationUri($documentationUri)
{
$this->documentationUri = $documentationUri;
}
/**
* @return string
*/
public function getDocumentationUri()
{
return $this->documentationUri;
}
/**
* GitHub label to apply to issues and pull requests opened for this API.
*
* @param string $githubLabel
*/
public function setGithubLabel($githubLabel)
{
$this->githubLabel = $githubLabel;
}
/**
* @return string
*/
public function getGithubLabel()
{
return $this->githubLabel;
}
/**
* Client library settings. If the same version string appears multiple times
* in this list, then the last one wins. Settings from earlier settings with
* the same version string are discarded.
*
* @param ClientLibrarySettings[] $librarySettings
*/
public function setLibrarySettings($librarySettings)
{
$this->librarySettings = $librarySettings;
}
/**
* @return ClientLibrarySettings[]
*/
public function getLibrarySettings()
{
return $this->librarySettings;
}
/**
* A list of API method settings, e.g. the behavior for methods that use the
* long-running operation pattern.
*
* @param MethodSettings[] $methodSettings
*/
public function setMethodSettings($methodSettings)
{
$this->methodSettings = $methodSettings;
}
/**
* @return MethodSettings[]
*/
public function getMethodSettings()
{
return $this->methodSettings;
}
/**
* @param string $newIssueUri
*/
public function setNewIssueUri($newIssueUri)
{
$this->newIssueUri = $newIssueUri;
}
/**
* @return string
*/
public function getNewIssueUri()
{
return $this->newIssueUri;
}
/**
* For whom the client library is being published.
*
* Accepted values: CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED, CLOUD, ADS,
* PHOTOS, STREET_VIEW, SHOPPING, GEO, GENERATIVE_AI, HEALTH
*
* @param self::ORGANIZATION_* $organization
*/
public function setOrganization($organization)
{
$this->organization = $organization;
}
/**
* @return self::ORGANIZATION_*
*/
public function getOrganization()
{
return $this->organization;
}
/**
* Optional link to proto reference documentation. Example:
* https://cloud.google.com/pubsub/lite/docs/reference/rpc
*
* @param string $protoReferenceDocumentationUri
*/
public function setProtoReferenceDocumentationUri($protoReferenceDocumentationUri)
{
$this->protoReferenceDocumentationUri = $protoReferenceDocumentationUri;
}
/**
* @return string
*/
public function getProtoReferenceDocumentationUri()
{
return $this->protoReferenceDocumentationUri;
}
/**
* Optional link to REST reference documentation. Example:
* https://cloud.google.com/pubsub/lite/docs/reference/rest
*
* @param string $restReferenceDocumentationUri
*/
public function setRestReferenceDocumentationUri($restReferenceDocumentationUri)
{
$this->restReferenceDocumentationUri = $restReferenceDocumentationUri;
}
/**
* @return string
*/
public function getRestReferenceDocumentationUri()
{
return $this->restReferenceDocumentationUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Publishing::class, 'Google_Service_ServiceNetworking_Publishing');
@@ -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\ServiceNetworking;
class PythonSettings extends \Google\Model
{
protected $commonType = CommonLanguageSettings::class;
protected $commonDataType = '';
protected $experimentalFeaturesType = ExperimentalFeatures::class;
protected $experimentalFeaturesDataType = '';
/**
* Some settings.
*
* @param CommonLanguageSettings $common
*/
public function setCommon(CommonLanguageSettings $common)
{
$this->common = $common;
}
/**
* @return CommonLanguageSettings
*/
public function getCommon()
{
return $this->common;
}
/**
* Experimental features to be included during client library generation.
*
* @param ExperimentalFeatures $experimentalFeatures
*/
public function setExperimentalFeatures(ExperimentalFeatures $experimentalFeatures)
{
$this->experimentalFeatures = $experimentalFeatures;
}
/**
* @return ExperimentalFeatures
*/
public function getExperimentalFeatures()
{
return $this->experimentalFeatures;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PythonSettings::class, 'Google_Service_ServiceNetworking_PythonSettings');
@@ -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\ServiceNetworking;
class Quota extends \Google\Collection
{
protected $collection_key = 'metricRules';
protected $limitsType = QuotaLimit::class;
protected $limitsDataType = 'array';
protected $metricRulesType = MetricRule::class;
protected $metricRulesDataType = 'array';
/**
* List of QuotaLimit definitions for the service.
*
* @param QuotaLimit[] $limits
*/
public function setLimits($limits)
{
$this->limits = $limits;
}
/**
* @return QuotaLimit[]
*/
public function getLimits()
{
return $this->limits;
}
/**
* List of MetricRule definitions, each one mapping a selected method to one
* or more metrics.
*
* @param MetricRule[] $metricRules
*/
public function setMetricRules($metricRules)
{
$this->metricRules = $metricRules;
}
/**
* @return MetricRule[]
*/
public function getMetricRules()
{
return $this->metricRules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Quota::class, 'Google_Service_ServiceNetworking_Quota');
@@ -0,0 +1,310 @@
<?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\ServiceNetworking;
class QuotaLimit extends \Google\Model
{
/**
* Default number of tokens that can be consumed during the specified
* duration. This is the number of tokens assigned when a client application
* developer activates the service for his/her project. Specifying a value of
* 0 will block all requests. This can be used if you are provisioning quota
* to selected consumers and blocking others. Similarly, a value of -1 will
* indicate an unlimited quota. No other negative values are allowed. Used by
* group-based quotas only.
*
* @var string
*/
public $defaultLimit;
/**
* Optional. User-visible, extended description for this quota limit. Should
* be used only when more context is needed to understand this limit than
* provided by the limit's display name (see: `display_name`).
*
* @var string
*/
public $description;
/**
* User-visible display name for this limit. Optional. If not set, the UI will
* provide a default display name based on the quota configuration. This field
* can be used to override the default display name generated from the
* configuration.
*
* @var string
*/
public $displayName;
/**
* Duration of this limit in textual notation. Must be "100s" or "1d". Used by
* group-based quotas only.
*
* @var string
*/
public $duration;
/**
* Free tier value displayed in the Developers Console for this limit. The
* free tier is the number of tokens that will be subtracted from the billed
* amount when billing is enabled. This field can only be set on a limit with
* duration "1d", in a billable group; it is invalid on any other limit. If
* this field is not set, it defaults to 0, indicating that there is no free
* tier for this service. Used by group-based quotas only.
*
* @var string
*/
public $freeTier;
/**
* Maximum number of tokens that can be consumed during the specified
* duration. Client application developers can override the default limit up
* to this maximum. If specified, this value cannot be set to a value less
* than the default limit. If not specified, it is set to the default limit.
* To allow clients to apply overrides with no upper bound, set this to -1,
* indicating unlimited maximum quota. Used by group-based quotas only.
*
* @var string
*/
public $maxLimit;
/**
* The name of the metric this quota limit applies to. The quota limits with
* the same metric will be checked together during runtime. The metric must be
* defined within the service config.
*
* @var string
*/
public $metric;
/**
* Name of the quota limit. The name must be provided, and it must be unique
* within the service. The name can only include alphanumeric characters as
* well as '-'. The maximum length of the limit name is 64 characters.
*
* @var string
*/
public $name;
/**
* Specify the unit of the quota limit. It uses the same syntax as
* MetricDescriptor.unit. The supported unit kinds are determined by the quota
* backend system. Here are some examples: * "1/min/{project}" for quota per
* minute per project. Note: the order of unit components is insignificant.
* The "1" at the beginning is required to follow the metric unit syntax.
*
* @var string
*/
public $unit;
/**
* Tiered limit values. You must specify this as a key:value pair, with an
* integer value that is the maximum number of requests allowed for the
* specified unit. Currently only STANDARD is supported.
*
* @var string[]
*/
public $values;
/**
* Default number of tokens that can be consumed during the specified
* duration. This is the number of tokens assigned when a client application
* developer activates the service for his/her project. Specifying a value of
* 0 will block all requests. This can be used if you are provisioning quota
* to selected consumers and blocking others. Similarly, a value of -1 will
* indicate an unlimited quota. No other negative values are allowed. Used by
* group-based quotas only.
*
* @param string $defaultLimit
*/
public function setDefaultLimit($defaultLimit)
{
$this->defaultLimit = $defaultLimit;
}
/**
* @return string
*/
public function getDefaultLimit()
{
return $this->defaultLimit;
}
/**
* Optional. User-visible, extended description for this quota limit. Should
* be used only when more context is needed to understand this limit than
* provided by the limit's display name (see: `display_name`).
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* User-visible display name for this limit. Optional. If not set, the UI will
* provide a default display name based on the quota configuration. This field
* can be used to override the default display name generated from the
* configuration.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Duration of this limit in textual notation. Must be "100s" or "1d". Used by
* group-based quotas only.
*
* @param string $duration
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
/**
* Free tier value displayed in the Developers Console for this limit. The
* free tier is the number of tokens that will be subtracted from the billed
* amount when billing is enabled. This field can only be set on a limit with
* duration "1d", in a billable group; it is invalid on any other limit. If
* this field is not set, it defaults to 0, indicating that there is no free
* tier for this service. Used by group-based quotas only.
*
* @param string $freeTier
*/
public function setFreeTier($freeTier)
{
$this->freeTier = $freeTier;
}
/**
* @return string
*/
public function getFreeTier()
{
return $this->freeTier;
}
/**
* Maximum number of tokens that can be consumed during the specified
* duration. Client application developers can override the default limit up
* to this maximum. If specified, this value cannot be set to a value less
* than the default limit. If not specified, it is set to the default limit.
* To allow clients to apply overrides with no upper bound, set this to -1,
* indicating unlimited maximum quota. Used by group-based quotas only.
*
* @param string $maxLimit
*/
public function setMaxLimit($maxLimit)
{
$this->maxLimit = $maxLimit;
}
/**
* @return string
*/
public function getMaxLimit()
{
return $this->maxLimit;
}
/**
* The name of the metric this quota limit applies to. The quota limits with
* the same metric will be checked together during runtime. The metric must be
* defined within the service config.
*
* @param string $metric
*/
public function setMetric($metric)
{
$this->metric = $metric;
}
/**
* @return string
*/
public function getMetric()
{
return $this->metric;
}
/**
* Name of the quota limit. The name must be provided, and it must be unique
* within the service. The name can only include alphanumeric characters as
* well as '-'. The maximum length of the limit name is 64 characters.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Specify the unit of the quota limit. It uses the same syntax as
* MetricDescriptor.unit. The supported unit kinds are determined by the quota
* backend system. Here are some examples: * "1/min/{project}" for quota per
* minute per project. Note: the order of unit components is insignificant.
* The "1" at the beginning is required to follow the metric unit syntax.
*
* @param string $unit
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
/**
* Tiered limit values. You must specify this as a key:value pair, with an
* integer value that is the maximum number of requests allowed for the
* specified unit. Currently only STANDARD is supported.
*
* @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(QuotaLimit::class, 'Google_Service_ServiceNetworking_QuotaLimit');
@@ -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\ServiceNetworking;
class Range extends \Google\Model
{
/**
* CIDR range in "10.x.x.x/y" format that is within the allocated ranges and
* currently unused.
*
* @var string
*/
public $ipCidrRange;
/**
* In the Shared VPC host project, the VPC network that's peered with the
* consumer network. For example: `projects/1234321/global/networks/host-
* network`
*
* @var string
*/
public $network;
/**
* CIDR range in "10.x.x.x/y" format that is within the allocated ranges and
* currently unused.
*
* @param string $ipCidrRange
*/
public function setIpCidrRange($ipCidrRange)
{
$this->ipCidrRange = $ipCidrRange;
}
/**
* @return string
*/
public function getIpCidrRange()
{
return $this->ipCidrRange;
}
/**
* In the Shared VPC host project, the VPC network that's peered with the
* consumer network. For example: `projects/1234321/global/networks/host-
* network`
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Range::class, 'Google_Service_ServiceNetworking_Range');

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