📂 File Browser

AgentAI/vendor/google/apiclient-services/src/ServiceNetworking
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AddDnsRecordSetMetadata.php
▶ Open 📄 View Source
🐘 AddDnsRecordSetRequest.php
▶ Open 📄 View Source
🐘 AddDnsZoneMetadata.php
▶ Open 📄 View Source
🐘 AddDnsZoneRequest.php
▶ Open 📄 View Source
🐘 AddDnsZoneResponse.php
▶ Open 📄 View Source
🐘 AddRolesMetadata.php
▶ Open 📄 View Source
🐘 AddRolesRequest.php
▶ Open 📄 View Source
🐘 AddRolesResponse.php
▶ Open 📄 View Source
🐘 AddSubnetworkRequest.php
▶ Open 📄 View Source
🐘 Api.php
▶ Open 📄 View Source
🐘 Aspect.php
▶ Open 📄 View Source
🐘 AspectRule.php
▶ Open 📄 View Source
🐘 AuthProvider.php
▶ Open 📄 View Source
🐘 AuthRequirement.php
▶ Open 📄 View Source
🐘 Authentication.php
▶ Open 📄 View Source
🐘 AuthenticationRule.php
▶ Open 📄 View Source
🐘 Backend.php
▶ Open 📄 View Source
🐘 BackendRule.php
▶ Open 📄 View Source
🐘 BatchingConfigProto.php
▶ Open 📄 View Source
🐘 BatchingDescriptorProto.php
▶ Open 📄 View Source
🐘 BatchingSettingsProto.php
▶ Open 📄 View Source
🐘 Billing.php
▶ Open 📄 View Source
🐘 BillingDestination.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 CleanupConnectionMetadata.php
▶ Open 📄 View Source
🐘 ClientLibrarySettings.php
▶ Open 📄 View Source
🐘 CloudSQLConfig.php
▶ Open 📄 View Source
🐘 CommonLanguageSettings.php
▶ Open 📄 View Source
🐘 Connection.php
▶ Open 📄 View Source
🐘 ConsumerConfig.php
▶ Open 📄 View Source
🐘 ConsumerConfigMetadata.php
▶ Open 📄 View Source
🐘 ConsumerProject.php
▶ Open 📄 View Source
🐘 Context.php
▶ Open 📄 View Source
🐘 ContextRule.php
▶ Open 📄 View Source
🐘 Control.php
▶ Open 📄 View Source
🐘 CppSettings.php
▶ Open 📄 View Source
🐘 CustomError.php
▶ Open 📄 View Source
🐘 CustomErrorRule.php
▶ Open 📄 View Source
🐘 CustomHttpPattern.php
▶ Open 📄 View Source
🐘 DeleteConnectionMetadata.php
▶ Open 📄 View Source
🐘 DeleteConnectionRequest.php
▶ Open 📄 View Source
🐘 DeletePeeredDnsDomainMetadata.php
▶ Open 📄 View Source
🐘 DisableVpcServiceControlsRequest.php
▶ Open 📄 View Source
🐘 DnsRecordSet.php
▶ Open 📄 View Source
🐘 DnsZone.php
▶ Open 📄 View Source
🐘 DnsZonePair.php
▶ Open 📄 View Source
🐘 Documentation.php
▶ Open 📄 View Source
🐘 DocumentationRule.php
▶ Open 📄 View Source
🐘 DotnetSettings.php
▶ Open 📄 View Source
🐘 EnableVpcServiceControlsRequest.php
▶ Open 📄 View Source
🐘 Endpoint.php
▶ Open 📄 View Source
🐘 Enum.php
▶ Open 📄 View Source
🐘 EnumValue.php
▶ Open 📄 View Source
🐘 ExperimentalFeatures.php
▶ Open 📄 View Source
🐘 Field.php
▶ Open 📄 View Source
🐘 FieldPolicy.php
▶ Open 📄 View Source
🐘 GetDnsZoneResponse.php
▶ Open 📄 View Source
🐘 GoSettings.php
▶ Open 📄 View Source
🐘 GoogleCloudServicenetworkingV1ConsumerConfigReservedRange.php
▶ Open 📄 View Source
🐘 GoogleCloudServicenetworkingV1betaConnection.php
▶ Open 📄 View Source
🐘 GoogleCloudServicenetworkingV1betaSubnetwork.php
▶ Open 📄 View Source
🐘 Http.php
▶ Open 📄 View Source
🐘 HttpRule.php
▶ Open 📄 View Source
🐘 JavaSettings.php
▶ Open 📄 View Source
🐘 JwtLocation.php
▶ Open 📄 View Source
🐘 LabelDescriptor.php
▶ Open 📄 View Source
🐘 ListConnectionsResponse.php
▶ Open 📄 View Source
🐘 ListDnsRecordSetsResponse.php
▶ Open 📄 View Source
🐘 ListDnsZonesResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListPeeredDnsDomainsResponse.php
▶ Open 📄 View Source
🐘 LogDescriptor.php
▶ Open 📄 View Source
🐘 Logging.php
▶ Open 📄 View Source
🐘 LoggingDestination.php
▶ Open 📄 View Source
🐘 LongRunning.php
▶ Open 📄 View Source
🐘 Method.php
▶ Open 📄 View Source
🐘 MethodPolicy.php
▶ Open 📄 View Source
🐘 MethodSettings.php
▶ Open 📄 View Source
🐘 MetricDescriptor.php
▶ Open 📄 View Source
🐘 MetricDescriptorMetadata.php
▶ Open 📄 View Source
🐘 MetricRule.php
▶ Open 📄 View Source
🐘 Mixin.php
▶ Open 📄 View Source
🐘 MonitoredResourceDescriptor.php
▶ Open 📄 View Source
🐘 Monitoring.php
▶ Open 📄 View Source
🐘 MonitoringDestination.php
▶ Open 📄 View Source
🐘 NodeSettings.php
▶ Open 📄 View Source
🐘 OAuthRequirements.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 Option.php
▶ Open 📄 View Source
🐘 Page.php
▶ Open 📄 View Source
🐘 PartialDeleteConnectionMetadata.php
▶ Open 📄 View Source
🐘 PeeredDnsDomain.php
▶ Open 📄 View Source
🐘 PeeredDnsDomainMetadata.php
▶ Open 📄 View Source
🐘 PhpSettings.php
▶ Open 📄 View Source
🐘 PolicyBinding.php
▶ Open 📄 View Source
🐘 Publishing.php
▶ Open 📄 View Source
🐘 PythonSettings.php
▶ Open 📄 View Source
🐘 Quota.php
▶ Open 📄 View Source
🐘 QuotaLimit.php
▶ Open 📄 View Source
🐘 Range.php
▶ Open 📄 View Source
🐘 RangeReservation.php
▶ Open 📄 View Source
🐘 RemoveDnsRecordSetMetadata.php
▶ Open 📄 View Source
🐘 RemoveDnsRecordSetRequest.php
▶ Open 📄 View Source
🐘 RemoveDnsRecordSetResponse.php
▶ Open 📄 View Source
🐘 RemoveDnsZoneMetadata.php
▶ Open 📄 View Source
🐘 RemoveDnsZoneRequest.php
▶ Open 📄 View Source
🐘 RemoveDnsZoneResponse.php
▶ Open 📄 View Source
🐘 Route.php
▶ Open 📄 View Source
🐘 RubySettings.php
▶ Open 📄 View Source
🐘 SearchRangeRequest.php
▶ Open 📄 View Source
🐘 SecondaryIpRange.php
▶ Open 📄 View Source
🐘 SecondaryIpRangeSpec.php
▶ Open 📄 View Source
🐘 SelectiveGapicGeneration.php
▶ Open 📄 View Source
🐘 Service.php
▶ Open 📄 View Source
🐘 ServicenetworkingEmpty.php
▶ Open 📄 View Source
🐘 SourceContext.php
▶ Open 📄 View Source
🐘 SourceInfo.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 Subnetwork.php
▶ Open 📄 View Source
🐘 SystemParameter.php
▶ Open 📄 View Source
🐘 SystemParameterRule.php
▶ Open 📄 View Source
🐘 SystemParameters.php
▶ Open 📄 View Source
🐘 Type.php
▶ Open 📄 View Source
🐘 UpdateConsumerConfigRequest.php
▶ Open 📄 View Source
🐘 UpdateDnsRecordSetMetadata.php
▶ Open 📄 View Source
🐘 UpdateDnsRecordSetRequest.php
▶ Open 📄 View Source
🐘 Usage.php
▶ Open 📄 View Source
🐘 UsageRule.php
▶ Open 📄 View Source
🐘 ValidateConsumerConfigRequest.php
▶ Open 📄 View Source
🐘 ValidateConsumerConfigResponse.php
▶ Open 📄 View Source
🐘 VpcServiceControls.php
▶ Open 📄 View Source

📄 Source: AddSubnetworkRequest.php

<?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 VPC’s
   * 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 VPC’s
   * 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');
← Back