diff --git a/Compute/metadata/V1/Compute.php b/Compute/metadata/V1/Compute.php index 8b8316d1c990..8ff4d1d676d2 100644 Binary files a/Compute/metadata/V1/Compute.php and b/Compute/metadata/V1/Compute.php differ diff --git a/Compute/src/V1/AcceleratorTypeAggregatedList.php b/Compute/src/V1/AcceleratorTypeAggregatedList.php index 9cb08ca360cf..3edf0602d7b4 100644 --- a/Compute/src/V1/AcceleratorTypeAggregatedList.php +++ b/Compute/src/V1/AcceleratorTypeAggregatedList.php @@ -73,7 +73,7 @@ class AcceleratorTypeAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/AcceleratorTypeList.php b/Compute/src/V1/AcceleratorTypeList.php index d9b17f6fb623..7f8203395b1f 100644 --- a/Compute/src/V1/AcceleratorTypeList.php +++ b/Compute/src/V1/AcceleratorTypeList.php @@ -60,7 +60,7 @@ class AcceleratorTypeList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\AcceleratorType[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\AcceleratorType>|\Google\Protobuf\Internal\RepeatedField $items * A list of AcceleratorType resources. * @type string $kind * [Output Only] Type of resource. Always compute#acceleratorTypeList for lists of accelerator types. @@ -128,7 +128,7 @@ public function getItems() * A list of AcceleratorType resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.AcceleratorType items = 100526016; - * @param \Google\Cloud\Compute\V1\AcceleratorType[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AcceleratorType>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/AcceleratorTypesScopedList.php b/Compute/src/V1/AcceleratorTypesScopedList.php index 0f6e48a316fe..4e8d136e4b06 100644 --- a/Compute/src/V1/AcceleratorTypesScopedList.php +++ b/Compute/src/V1/AcceleratorTypesScopedList.php @@ -33,7 +33,7 @@ class AcceleratorTypesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\AcceleratorType[]|\Google\Protobuf\Internal\RepeatedField $accelerator_types + * @type array<\Google\Cloud\Compute\V1\AcceleratorType>|\Google\Protobuf\Internal\RepeatedField $accelerator_types * [Output Only] A list of accelerator types contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] An informational warning that appears when the accelerator types list is empty. @@ -59,7 +59,7 @@ public function getAcceleratorTypes() * [Output Only] A list of accelerator types contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.AcceleratorType accelerator_types = 520872357; - * @param \Google\Cloud\Compute\V1\AcceleratorType[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AcceleratorType>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAcceleratorTypes($var) diff --git a/Compute/src/V1/Address.php b/Compute/src/V1/Address.php index 3aeb708d2ec6..2862006f3738 100644 --- a/Compute/src/V1/Address.php +++ b/Compute/src/V1/Address.php @@ -166,7 +166,7 @@ class Address extends \Google\Protobuf\Internal\Message * Check the Status enum for the list of possible values. * @type string $subnetwork * The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $users + * @type array|\Google\Protobuf\Internal\RepeatedField $users * [Output Only] The URLs of the resources that are using this address. * } */ @@ -776,7 +776,7 @@ public function getUsers() * [Output Only] The URLs of the resources that are using this address. * * Generated from protobuf field repeated string users = 111578632; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUsers($var) diff --git a/Compute/src/V1/AddressAggregatedList.php b/Compute/src/V1/AddressAggregatedList.php index 842a5714b3c6..b33f88c5816b 100644 --- a/Compute/src/V1/AddressAggregatedList.php +++ b/Compute/src/V1/AddressAggregatedList.php @@ -73,7 +73,7 @@ class AddressAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/AddressList.php b/Compute/src/V1/AddressList.php index b7636b5afd5b..c8ff49d12955 100644 --- a/Compute/src/V1/AddressList.php +++ b/Compute/src/V1/AddressList.php @@ -60,7 +60,7 @@ class AddressList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Address[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Address>|\Google\Protobuf\Internal\RepeatedField $items * A list of Address resources. * @type string $kind * [Output Only] Type of resource. Always compute#addressList for lists of addresses. @@ -128,7 +128,7 @@ public function getItems() * A list of Address resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Address items = 100526016; - * @param \Google\Cloud\Compute\V1\Address[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Address>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/AddressesScopedList.php b/Compute/src/V1/AddressesScopedList.php index 8a9746f1b720..91cceec64ea9 100644 --- a/Compute/src/V1/AddressesScopedList.php +++ b/Compute/src/V1/AddressesScopedList.php @@ -33,7 +33,7 @@ class AddressesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Address[]|\Google\Protobuf\Internal\RepeatedField $addresses + * @type array<\Google\Cloud\Compute\V1\Address>|\Google\Protobuf\Internal\RepeatedField $addresses * [Output Only] A list of addresses contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning which replaces the list of addresses when the list is empty. @@ -59,7 +59,7 @@ public function getAddresses() * [Output Only] A list of addresses contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.Address addresses = 337673122; - * @param \Google\Cloud\Compute\V1\Address[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Address>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAddresses($var) diff --git a/Compute/src/V1/AllocationSpecificSKUAllocationReservedInstanceProperties.php b/Compute/src/V1/AllocationSpecificSKUAllocationReservedInstanceProperties.php index d6c9f171c006..f4598cd09f41 100644 --- a/Compute/src/V1/AllocationSpecificSKUAllocationReservedInstanceProperties.php +++ b/Compute/src/V1/AllocationSpecificSKUAllocationReservedInstanceProperties.php @@ -52,9 +52,9 @@ class AllocationSpecificSKUAllocationReservedInstanceProperties extends \Google\ * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $guest_accelerators + * @type array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $guest_accelerators * Specifies accelerator type and count. - * @type \Google\Cloud\Compute\V1\AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk[]|\Google\Protobuf\Internal\RepeatedField $local_ssds + * @type array<\Google\Cloud\Compute\V1\AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk>|\Google\Protobuf\Internal\RepeatedField $local_ssds * Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. * @type string $location_hint * An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API. @@ -84,7 +84,7 @@ public function getGuestAccelerators() * Specifies accelerator type and count. * * Generated from protobuf field repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119; - * @param \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setGuestAccelerators($var) @@ -110,7 +110,7 @@ public function getLocalSsds() * Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. * * Generated from protobuf field repeated .google.cloud.compute.v1.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk local_ssds = 229951299; - * @param \Google\Cloud\Compute\V1\AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLocalSsds($var) diff --git a/Compute/src/V1/Allowed.php b/Compute/src/V1/Allowed.php index 0572010ac104..980dfc25c08c 100644 --- a/Compute/src/V1/Allowed.php +++ b/Compute/src/V1/Allowed.php @@ -35,7 +35,7 @@ class Allowed extends \Google\Protobuf\Internal\Message * * @type string $I_p_protocol * The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $ports + * @type array|\Google\Protobuf\Internal\RepeatedField $ports * An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. * } */ @@ -95,7 +95,7 @@ public function getPorts() * An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. * * Generated from protobuf field repeated string ports = 106854418; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPorts($var) diff --git a/Compute/src/V1/AttachedDisk.php b/Compute/src/V1/AttachedDisk.php index b927fea2c72f..88e565943c3c 100644 --- a/Compute/src/V1/AttachedDisk.php +++ b/Compute/src/V1/AttachedDisk.php @@ -15,6 +15,13 @@ */ class AttachedDisk extends \Google\Protobuf\Internal\Message { + /** + * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + */ + private $architecture = null; /** * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). * @@ -115,6 +122,9 @@ class AttachedDisk extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * + * @type string $architecture + * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. * @type bool $auto_delete * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). * @type bool $boot @@ -125,7 +135,7 @@ class AttachedDisk extends \Google\Protobuf\Internal\Message * Encrypts or decrypts a disk using a customer-supplied encryption key. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. * @type int|string $disk_size_gb * The size of the disk in GB. - * @type \Google\Cloud\Compute\V1\GuestOsFeature[]|\Google\Protobuf\Internal\RepeatedField $guest_os_features + * @type array<\Google\Cloud\Compute\V1\GuestOsFeature>|\Google\Protobuf\Internal\RepeatedField $guest_os_features * A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. * @type int $index * [Output Only] A zero-based index to this disk, where 0 is reserved for the boot disk. If you have many disks attached to an instance, each disk would have a unique index number. @@ -136,7 +146,7 @@ class AttachedDisk extends \Google\Protobuf\Internal\Message * Check the Interface enum for the list of possible values. * @type string $kind * [Output Only] Type of the resource. Always compute#attachedDisk for attached disks. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $licenses + * @type array|\Google\Protobuf\Internal\RepeatedField $licenses * [Output Only] Any valid publicly visible licenses. * @type string $mode * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode. @@ -155,6 +165,44 @@ public function __construct($data = NULL) { parent::__construct($data); } + /** + * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @return string + */ + public function getArchitecture() + { + return isset($this->architecture) ? $this->architecture : ''; + } + + public function hasArchitecture() + { + return isset($this->architecture); + } + + public function clearArchitecture() + { + unset($this->architecture); + } + + /** + * [Output Only] The architecture of the attached disk. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @param string $var + * @return $this + */ + public function setArchitecture($var) + { + GPBUtil::checkString($var, True); + $this->architecture = $var; + + return $this; + } + /** * Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). * @@ -350,7 +398,7 @@ public function getGuestOsFeatures() * A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. * * Generated from protobuf field repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545; - * @param \Google\Cloud\Compute\V1\GuestOsFeature[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\GuestOsFeature>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setGuestOsFeatures($var) @@ -522,7 +570,7 @@ public function getLicenses() * [Output Only] Any valid publicly visible licenses. * * Generated from protobuf field repeated string licenses = 337642578; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLicenses($var) diff --git a/Compute/src/V1/AttachedDisk/Architecture.php b/Compute/src/V1/AttachedDisk/Architecture.php new file mode 100644 index 000000000000..aac95c367d31 --- /dev/null +++ b/Compute/src/V1/AttachedDisk/Architecture.php @@ -0,0 +1,69 @@ +google.cloud.compute.v1.AttachedDisk.Architecture + */ +class Architecture +{ + /** + * A value indicating that the enum field is not set. + * + * Generated from protobuf enum UNDEFINED_ARCHITECTURE = 0; + */ + const UNDEFINED_ARCHITECTURE = 0; + /** + * Default value indicating Architecture is not set. + * + * Generated from protobuf enum ARCHITECTURE_UNSPECIFIED = 394750507; + */ + const ARCHITECTURE_UNSPECIFIED = 394750507; + /** + * Machines with architecture ARM64 + * + * Generated from protobuf enum ARM64 = 62547450; + */ + const ARM64 = 62547450; + /** + * Machines with architecture X86_64 + * + * Generated from protobuf enum X86_64 = 425300551; + */ + const X86_64 = 425300551; + + private static $valueToName = [ + self::UNDEFINED_ARCHITECTURE => 'UNDEFINED_ARCHITECTURE', + self::ARCHITECTURE_UNSPECIFIED => 'ARCHITECTURE_UNSPECIFIED', + self::ARM64 => 'ARM64', + self::X86_64 => 'X86_64', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Compute/src/V1/AttachedDiskInitializeParams.php b/Compute/src/V1/AttachedDiskInitializeParams.php index 81b059ac1d8f..0e69d5ddf2f8 100644 --- a/Compute/src/V1/AttachedDiskInitializeParams.php +++ b/Compute/src/V1/AttachedDiskInitializeParams.php @@ -15,6 +15,13 @@ */ class AttachedDiskInitializeParams extends \Google\Protobuf\Internal\Message { + /** + * The architecture of the attached disk. Valid values are arm64 or x86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + */ + private $architecture = null; /** * An optional description. Provide this property when creating the disk. * @@ -101,6 +108,9 @@ class AttachedDiskInitializeParams extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * + * @type string $architecture + * The architecture of the attached disk. Valid values are arm64 or x86_64. + * Check the Architecture enum for the list of possible values. * @type string $description * An optional description. Provide this property when creating the disk. * @type string $disk_name @@ -111,14 +121,14 @@ class AttachedDiskInitializeParams extends \Google\Protobuf\Internal\Message * Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you define this field, you can provide either the full or partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is the name of the disk type, not URL. * @type array|\Google\Protobuf\Internal\MapField $labels * Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $licenses + * @type array|\Google\Protobuf\Internal\RepeatedField $licenses * A list of publicly visible licenses. Reserved for Google's use. * @type string $on_update_action * Specifies which action to take on instance update with this disk. Default is to use the existing disk. * Check the OnUpdateAction enum for the list of possible values. * @type int|string $provisioned_iops * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $resource_policies + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_policies * Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name. * @type string $source_image * The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set. @@ -135,6 +145,44 @@ public function __construct($data = NULL) { parent::__construct($data); } + /** + * The architecture of the attached disk. Valid values are arm64 or x86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @return string + */ + public function getArchitecture() + { + return isset($this->architecture) ? $this->architecture : ''; + } + + public function hasArchitecture() + { + return isset($this->architecture); + } + + public function clearArchitecture() + { + unset($this->architecture); + } + + /** + * The architecture of the attached disk. Valid values are arm64 or x86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @param string $var + * @return $this + */ + public function setArchitecture($var) + { + GPBUtil::checkString($var, True); + $this->architecture = $var; + + return $this; + } + /** * An optional description. Provide this property when creating the disk. * @@ -320,7 +368,7 @@ public function getLicenses() * A list of publicly visible licenses. Reserved for Google's use. * * Generated from protobuf field repeated string licenses = 337642578; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLicenses($var) @@ -420,7 +468,7 @@ public function getResourcePolicies() * Resource policies applied to this disk for automatic snapshot creations. Specified using the full or partial URL. For instance template, specify only the resource policy name. * * Generated from protobuf field repeated string resource_policies = 22220385; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcePolicies($var) diff --git a/Compute/src/V1/AttachedDiskInitializeParams/Architecture.php b/Compute/src/V1/AttachedDiskInitializeParams/Architecture.php new file mode 100644 index 000000000000..bb43b94837eb --- /dev/null +++ b/Compute/src/V1/AttachedDiskInitializeParams/Architecture.php @@ -0,0 +1,69 @@ +google.cloud.compute.v1.AttachedDiskInitializeParams.Architecture + */ +class Architecture +{ + /** + * A value indicating that the enum field is not set. + * + * Generated from protobuf enum UNDEFINED_ARCHITECTURE = 0; + */ + const UNDEFINED_ARCHITECTURE = 0; + /** + * Default value indicating Architecture is not set. + * + * Generated from protobuf enum ARCHITECTURE_UNSPECIFIED = 394750507; + */ + const ARCHITECTURE_UNSPECIFIED = 394750507; + /** + * Machines with architecture ARM64 + * + * Generated from protobuf enum ARM64 = 62547450; + */ + const ARM64 = 62547450; + /** + * Machines with architecture X86_64 + * + * Generated from protobuf enum X86_64 = 425300551; + */ + const X86_64 = 425300551; + + private static $valueToName = [ + self::UNDEFINED_ARCHITECTURE => 'UNDEFINED_ARCHITECTURE', + self::ARCHITECTURE_UNSPECIFIED => 'ARCHITECTURE_UNSPECIFIED', + self::ARM64 => 'ARM64', + self::X86_64 => 'X86_64', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Compute/src/V1/AuditConfig.php b/Compute/src/V1/AuditConfig.php index b9dbbff9f393..67bdd64fd30e 100644 --- a/Compute/src/V1/AuditConfig.php +++ b/Compute/src/V1/AuditConfig.php @@ -40,9 +40,9 @@ class AuditConfig extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\AuditLogConfig[]|\Google\Protobuf\Internal\RepeatedField $audit_log_configs + * @type array<\Google\Cloud\Compute\V1\AuditLogConfig>|\Google\Protobuf\Internal\RepeatedField $audit_log_configs * The configuration for logging of each type of permission. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $exempted_members + * @type array|\Google\Protobuf\Internal\RepeatedField $exempted_members * This is deprecated and has no effect. Do not use. * @type string $service * Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. @@ -68,7 +68,7 @@ public function getAuditLogConfigs() * The configuration for logging of each type of permission. * * Generated from protobuf field repeated .google.cloud.compute.v1.AuditLogConfig audit_log_configs = 488420626; - * @param \Google\Cloud\Compute\V1\AuditLogConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AuditLogConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAuditLogConfigs($var) @@ -94,7 +94,7 @@ public function getExemptedMembers() * This is deprecated and has no effect. Do not use. * * Generated from protobuf field repeated string exempted_members = 232615576; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExemptedMembers($var) diff --git a/Compute/src/V1/AuditLogConfig.php b/Compute/src/V1/AuditLogConfig.php index 8ded00b0dd0e..7bfebc4632c4 100644 --- a/Compute/src/V1/AuditLogConfig.php +++ b/Compute/src/V1/AuditLogConfig.php @@ -41,7 +41,7 @@ class AuditLogConfig extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $exempted_members + * @type array|\Google\Protobuf\Internal\RepeatedField $exempted_members * Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. * @type bool $ignore_child_exemptions * This is deprecated and has no effect. Do not use. @@ -70,7 +70,7 @@ public function getExemptedMembers() * Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. * * Generated from protobuf field repeated string exempted_members = 232615576; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExemptedMembers($var) diff --git a/Compute/src/V1/Autoscaler.php b/Compute/src/V1/Autoscaler.php index 97346a5fd7b9..3671aed382c2 100644 --- a/Compute/src/V1/Autoscaler.php +++ b/Compute/src/V1/Autoscaler.php @@ -130,7 +130,7 @@ class Autoscaler extends \Google\Protobuf\Internal\Message * @type string $status * [Output Only] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future. * Check the Status enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\AutoscalerStatusDetails[]|\Google\Protobuf\Internal\RepeatedField $status_details + * @type array<\Google\Cloud\Compute\V1\AutoscalerStatusDetails>|\Google\Protobuf\Internal\RepeatedField $status_details * [Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter. * @type string $target * URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler. @@ -546,7 +546,7 @@ public function getStatusDetails() * [Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter. * * Generated from protobuf field repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; - * @param \Google\Cloud\Compute\V1\AutoscalerStatusDetails[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AutoscalerStatusDetails>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setStatusDetails($var) diff --git a/Compute/src/V1/AutoscalerAggregatedList.php b/Compute/src/V1/AutoscalerAggregatedList.php index 6b868e82a3b0..d5c8f4fd1de0 100644 --- a/Compute/src/V1/AutoscalerAggregatedList.php +++ b/Compute/src/V1/AutoscalerAggregatedList.php @@ -73,7 +73,7 @@ class AutoscalerAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. end_interface: MixerListResponseWithEtagBuilder * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/AutoscalerList.php b/Compute/src/V1/AutoscalerList.php index 9cb1187502cd..f907b3f5b37e 100644 --- a/Compute/src/V1/AutoscalerList.php +++ b/Compute/src/V1/AutoscalerList.php @@ -60,7 +60,7 @@ class AutoscalerList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Autoscaler[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Autoscaler>|\Google\Protobuf\Internal\RepeatedField $items * A list of Autoscaler resources. * @type string $kind * [Output Only] Type of resource. Always compute#autoscalerList for lists of autoscalers. @@ -128,7 +128,7 @@ public function getItems() * A list of Autoscaler resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Autoscaler items = 100526016; - * @param \Google\Cloud\Compute\V1\Autoscaler[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Autoscaler>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/AutoscalersScopedList.php b/Compute/src/V1/AutoscalersScopedList.php index 154425c9b4b8..235ffc3ad716 100644 --- a/Compute/src/V1/AutoscalersScopedList.php +++ b/Compute/src/V1/AutoscalersScopedList.php @@ -33,7 +33,7 @@ class AutoscalersScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Autoscaler[]|\Google\Protobuf\Internal\RepeatedField $autoscalers + * @type array<\Google\Cloud\Compute\V1\Autoscaler>|\Google\Protobuf\Internal\RepeatedField $autoscalers * [Output Only] A list of autoscalers contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning which replaces the list of autoscalers when the list is empty. @@ -59,7 +59,7 @@ public function getAutoscalers() * [Output Only] A list of autoscalers contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.Autoscaler autoscalers = 465771644; - * @param \Google\Cloud\Compute\V1\Autoscaler[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Autoscaler>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAutoscalers($var) diff --git a/Compute/src/V1/AutoscalingPolicy.php b/Compute/src/V1/AutoscalingPolicy.php index 6f102d9800af..32c4d82cf655 100644 --- a/Compute/src/V1/AutoscalingPolicy.php +++ b/Compute/src/V1/AutoscalingPolicy.php @@ -79,7 +79,7 @@ class AutoscalingPolicy extends \Google\Protobuf\Internal\Message * The number of seconds that the autoscaler waits before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process. * @type \Google\Cloud\Compute\V1\AutoscalingPolicyCpuUtilization $cpu_utilization * Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group. - * @type \Google\Cloud\Compute\V1\AutoscalingPolicyCustomMetricUtilization[]|\Google\Protobuf\Internal\RepeatedField $custom_metric_utilizations + * @type array<\Google\Cloud\Compute\V1\AutoscalingPolicyCustomMetricUtilization>|\Google\Protobuf\Internal\RepeatedField $custom_metric_utilizations * Configuration parameters of autoscaling based on a custom metric. * @type \Google\Cloud\Compute\V1\AutoscalingPolicyLoadBalancingUtilization $load_balancing_utilization * Configuration parameters of autoscaling based on load balancer. @@ -187,7 +187,7 @@ public function getCustomMetricUtilizations() * Configuration parameters of autoscaling based on a custom metric. * * Generated from protobuf field repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850; - * @param \Google\Cloud\Compute\V1\AutoscalingPolicyCustomMetricUtilization[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AutoscalingPolicyCustomMetricUtilization>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCustomMetricUtilizations($var) diff --git a/Compute/src/V1/Backend.php b/Compute/src/V1/Backend.php index 806e8820c5cc..9daa68e1918e 100644 --- a/Compute/src/V1/Backend.php +++ b/Compute/src/V1/Backend.php @@ -83,7 +83,7 @@ class Backend extends \Google\Protobuf\Internal\Message */ private $max_rate_per_instance = null; /** - * Optional parameter to define a target capacity for the UTILIZATIONbalancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode. + * Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode. * * Generated from protobuf field optional float max_utilization = 148192199; */ @@ -119,7 +119,7 @@ class Backend extends \Google\Protobuf\Internal\Message * @type float $max_rate_per_instance * Defines a maximum target for requests per second (RPS). For usage guidelines, see Rate balancing mode and Utilization balancing mode. Not available if the backend's balancingMode is CONNECTION. * @type float $max_utilization - * Optional parameter to define a target capacity for the UTILIZATIONbalancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode. + * Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode. * } */ public function __construct($data = NULL) { @@ -526,7 +526,7 @@ public function setMaxRatePerInstance($var) } /** - * Optional parameter to define a target capacity for the UTILIZATIONbalancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode. + * Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode. * * Generated from protobuf field optional float max_utilization = 148192199; * @return float @@ -547,7 +547,7 @@ public function clearMaxUtilization() } /** - * Optional parameter to define a target capacity for the UTILIZATIONbalancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode. + * Optional parameter to define a target capacity for the UTILIZATION balancing mode. The valid range is [0.0, 1.0]. For usage guidelines, see Utilization balancing mode. * * Generated from protobuf field optional float max_utilization = 148192199; * @param float $var diff --git a/Compute/src/V1/BackendBucket.php b/Compute/src/V1/BackendBucket.php index e51083566c21..951cc40132b0 100644 --- a/Compute/src/V1/BackendBucket.php +++ b/Compute/src/V1/BackendBucket.php @@ -94,7 +94,7 @@ class BackendBucket extends \Google\Protobuf\Internal\Message * Cloud CDN configuration for this BackendBucket. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $custom_response_headers + * @type array|\Google\Protobuf\Internal\RepeatedField $custom_response_headers * Headers that the HTTP/S load balancer should add to proxied responses. * @type string $description * An optional textual description of the resource; provided by the client when the resource is created. @@ -240,7 +240,7 @@ public function getCustomResponseHeaders() * Headers that the HTTP/S load balancer should add to proxied responses. * * Generated from protobuf field repeated string custom_response_headers = 387539094; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCustomResponseHeaders($var) diff --git a/Compute/src/V1/BackendBucketCdnPolicy.php b/Compute/src/V1/BackendBucketCdnPolicy.php index 5e03753e970b..4d385368013b 100644 --- a/Compute/src/V1/BackendBucketCdnPolicy.php +++ b/Compute/src/V1/BackendBucketCdnPolicy.php @@ -95,7 +95,7 @@ class BackendBucketCdnPolicy extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\BackendBucketCdnPolicyBypassCacheOnRequestHeader[]|\Google\Protobuf\Internal\RepeatedField $bypass_cache_on_request_headers + * @type array<\Google\Cloud\Compute\V1\BackendBucketCdnPolicyBypassCacheOnRequestHeader>|\Google\Protobuf\Internal\RepeatedField $bypass_cache_on_request_headers * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings. * @type \Google\Cloud\Compute\V1\BackendBucketCdnPolicyCacheKeyPolicy $cache_key_policy * The CacheKeyPolicy for this CdnPolicy. @@ -110,7 +110,7 @@ class BackendBucketCdnPolicy extends \Google\Protobuf\Internal\Message * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. * @type bool $negative_caching * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. - * @type \Google\Cloud\Compute\V1\BackendBucketCdnPolicyNegativeCachingPolicy[]|\Google\Protobuf\Internal\RepeatedField $negative_caching_policy + * @type array<\Google\Cloud\Compute\V1\BackendBucketCdnPolicyNegativeCachingPolicy>|\Google\Protobuf\Internal\RepeatedField $negative_caching_policy * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled will use Cloud CDN's default cache TTLs. Note that when specifying an explicit negative_caching_policy, you should take care to specify a cache TTL for all response codes that you wish to cache. Cloud CDN will not apply any default negative caching when a policy exists. * @type bool $request_coalescing * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin. @@ -118,7 +118,7 @@ class BackendBucketCdnPolicy extends \Google\Protobuf\Internal\Message * Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache. This setting defines the default "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale responses that exceed the TTL configured here will not be served. The default limit (max-stale) is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max-age (or s-max-age) of a cached response. The maximum allowed value is 604800 (1 week). Set this to zero (0) to disable serve-while-stale. * @type int|string $signed_url_cache_max_age_sec * Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. Defaults to 1hr (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $signed_url_key_names + * @type array|\Google\Protobuf\Internal\RepeatedField $signed_url_key_names * [Output Only] Names of the keys for signing request URLs. * } */ @@ -142,7 +142,7 @@ public function getBypassCacheOnRequestHeaders() * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings. * * Generated from protobuf field repeated .google.cloud.compute.v1.BackendBucketCdnPolicyBypassCacheOnRequestHeader bypass_cache_on_request_headers = 486203082; - * @param \Google\Cloud\Compute\V1\BackendBucketCdnPolicyBypassCacheOnRequestHeader[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\BackendBucketCdnPolicyBypassCacheOnRequestHeader>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBypassCacheOnRequestHeaders($var) @@ -386,7 +386,7 @@ public function getNegativeCachingPolicy() * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled will use Cloud CDN's default cache TTLs. Note that when specifying an explicit negative_caching_policy, you should take care to specify a cache TTL for all response codes that you wish to cache. Cloud CDN will not apply any default negative caching when a policy exists. * * Generated from protobuf field repeated .google.cloud.compute.v1.BackendBucketCdnPolicyNegativeCachingPolicy negative_caching_policy = 155359996; - * @param \Google\Cloud\Compute\V1\BackendBucketCdnPolicyNegativeCachingPolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\BackendBucketCdnPolicyNegativeCachingPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNegativeCachingPolicy($var) @@ -520,7 +520,7 @@ public function getSignedUrlKeyNames() * [Output Only] Names of the keys for signing request URLs. * * Generated from protobuf field repeated string signed_url_key_names = 371848885; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSignedUrlKeyNames($var) diff --git a/Compute/src/V1/BackendBucketCdnPolicyCacheKeyPolicy.php b/Compute/src/V1/BackendBucketCdnPolicyCacheKeyPolicy.php index c1e5de5651ca..0d0514da7bd1 100644 --- a/Compute/src/V1/BackendBucketCdnPolicyCacheKeyPolicy.php +++ b/Compute/src/V1/BackendBucketCdnPolicyCacheKeyPolicy.php @@ -34,9 +34,9 @@ class BackendBucketCdnPolicyCacheKeyPolicy extends \Google\Protobuf\Internal\Mes * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $include_http_headers + * @type array|\Google\Protobuf\Internal\RepeatedField $include_http_headers * Allows HTTP request headers (by name) to be used in the cache key. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $query_string_whitelist + * @type array|\Google\Protobuf\Internal\RepeatedField $query_string_whitelist * Names of query string parameters to include in cache keys. Default parameters are always included. '&' and '=' will be percent encoded and not treated as delimiters. * } */ @@ -60,7 +60,7 @@ public function getIncludeHttpHeaders() * Allows HTTP request headers (by name) to be used in the cache key. * * Generated from protobuf field repeated string include_http_headers = 2489606; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIncludeHttpHeaders($var) @@ -86,7 +86,7 @@ public function getQueryStringWhitelist() * Names of query string parameters to include in cache keys. Default parameters are always included. '&' and '=' will be percent encoded and not treated as delimiters. * * Generated from protobuf field repeated string query_string_whitelist = 52456496; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setQueryStringWhitelist($var) diff --git a/Compute/src/V1/BackendBucketList.php b/Compute/src/V1/BackendBucketList.php index a6fc2002d3a7..a56de1003782 100644 --- a/Compute/src/V1/BackendBucketList.php +++ b/Compute/src/V1/BackendBucketList.php @@ -60,7 +60,7 @@ class BackendBucketList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\BackendBucket[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\BackendBucket>|\Google\Protobuf\Internal\RepeatedField $items * A list of BackendBucket resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of BackendBucket resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.BackendBucket items = 100526016; - * @param \Google\Cloud\Compute\V1\BackendBucket[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\BackendBucket>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/BackendService.php b/Compute/src/V1/BackendService.php index 40b0a51acf22..0bd365169c0a 100644 --- a/Compute/src/V1/BackendService.php +++ b/Compute/src/V1/BackendService.php @@ -250,7 +250,7 @@ class BackendService extends \Google\Protobuf\Internal\Message * * @type int $affinity_cookie_ttl_sec * Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. - * @type \Google\Cloud\Compute\V1\Backend[]|\Google\Protobuf\Internal\RepeatedField $backends + * @type array<\Google\Cloud\Compute\V1\Backend>|\Google\Protobuf\Internal\RepeatedField $backends * The list of backends that serve this BackendService. * @type \Google\Cloud\Compute\V1\BackendServiceCdnPolicy $cdn_policy * Cloud CDN configuration for this BackendService. Only available for specified load balancer types. @@ -262,9 +262,9 @@ class BackendService extends \Google\Protobuf\Internal\Message * Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $custom_request_headers + * @type array|\Google\Protobuf\Internal\RepeatedField $custom_request_headers * Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers). - * @type string[]|\Google\Protobuf\Internal\RepeatedField $custom_response_headers + * @type array|\Google\Protobuf\Internal\RepeatedField $custom_response_headers * Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers). * @type string $description * An optional description of this resource. Provide this property when you create the resource. @@ -276,7 +276,7 @@ class BackendService extends \Google\Protobuf\Internal\Message * Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). * @type string $fingerprint * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a BackendService. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $health_checks + * @type array|\Google\Protobuf\Internal\RepeatedField $health_checks * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check. * @type \Google\Cloud\Compute\V1\BackendServiceIAP $iap * The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing. @@ -287,7 +287,7 @@ class BackendService extends \Google\Protobuf\Internal\Message * @type string $load_balancing_scheme * Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer. * Check the LoadBalancingScheme enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfig[]|\Google\Protobuf\Internal\RepeatedField $locality_lb_policies + * @type array<\Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfig>|\Google\Protobuf\Internal\RepeatedField $locality_lb_policies * A list of locality load balancing policies to be used in order of preference. Either the policy or the customPolicy field should be set. Overrides any value set in the localityLbPolicy field. localityLbPolicies is only supported when the BackendService is referenced by a URL Map that is referenced by a target gRPC proxy that has the validateForProxyless field set to true. * @type string $locality_lb_policy * The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. @@ -317,7 +317,7 @@ class BackendService extends \Google\Protobuf\Internal\Message * This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. * @type string $self_link * [Output Only] Server-defined URL for the resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $service_bindings + * @type array|\Google\Protobuf\Internal\RepeatedField $service_bindings * URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty. * @type string $session_affinity * Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). @@ -383,7 +383,7 @@ public function getBackends() * The list of backends that serve this BackendService. * * Generated from protobuf field repeated .google.cloud.compute.v1.Backend backends = 510839903; - * @param \Google\Cloud\Compute\V1\Backend[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Backend>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBackends($var) @@ -617,7 +617,7 @@ public function getCustomRequestHeaders() * Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers). * * Generated from protobuf field repeated string custom_request_headers = 27977992; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCustomRequestHeaders($var) @@ -643,7 +643,7 @@ public function getCustomResponseHeaders() * Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers). * * Generated from protobuf field repeated string custom_response_headers = 387539094; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCustomResponseHeaders($var) @@ -849,7 +849,7 @@ public function getHealthChecks() * The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check. * * Generated from protobuf field repeated string health_checks = 448370606; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHealthChecks($var) @@ -1021,7 +1021,7 @@ public function getLocalityLbPolicies() * A list of locality load balancing policies to be used in order of preference. Either the policy or the customPolicy field should be set. Overrides any value set in the localityLbPolicy field. localityLbPolicies is only supported when the BackendService is referenced by a URL Map that is referenced by a target gRPC proxy that has the validateForProxyless field set to true. * * Generated from protobuf field repeated .google.cloud.compute.v1.BackendServiceLocalityLoadBalancingPolicyConfig locality_lb_policies = 140982557; - * @param \Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\BackendServiceLocalityLoadBalancingPolicyConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLocalityLbPolicies($var) @@ -1519,7 +1519,7 @@ public function getServiceBindings() * URLs of networkservices.ServiceBinding resources. Can only be set if load balancing scheme is INTERNAL_SELF_MANAGED. If set, lists of backends and health checks must be both empty. * * Generated from protobuf field repeated string service_bindings = 133581016; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setServiceBindings($var) diff --git a/Compute/src/V1/BackendServiceAggregatedList.php b/Compute/src/V1/BackendServiceAggregatedList.php index 51f2a6550998..9a831ec2a5f0 100644 --- a/Compute/src/V1/BackendServiceAggregatedList.php +++ b/Compute/src/V1/BackendServiceAggregatedList.php @@ -74,7 +74,7 @@ class BackendServiceAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -270,7 +270,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/BackendServiceCdnPolicy.php b/Compute/src/V1/BackendServiceCdnPolicy.php index 3ac13421b3ba..ce282d04333a 100644 --- a/Compute/src/V1/BackendServiceCdnPolicy.php +++ b/Compute/src/V1/BackendServiceCdnPolicy.php @@ -95,7 +95,7 @@ class BackendServiceCdnPolicy extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\BackendServiceCdnPolicyBypassCacheOnRequestHeader[]|\Google\Protobuf\Internal\RepeatedField $bypass_cache_on_request_headers + * @type array<\Google\Cloud\Compute\V1\BackendServiceCdnPolicyBypassCacheOnRequestHeader>|\Google\Protobuf\Internal\RepeatedField $bypass_cache_on_request_headers * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings. * @type \Google\Cloud\Compute\V1\CacheKeyPolicy $cache_key_policy * The CacheKeyPolicy for this CdnPolicy. @@ -110,7 +110,7 @@ class BackendServiceCdnPolicy extends \Google\Protobuf\Internal\Message * Specifies the maximum allowed TTL for cached content served by this origin. Cache directives that attempt to set a max-age or s-maxage higher than this, or an Expires header more than maxTTL seconds in the future will be capped at the value of maxTTL, as if it were the value of an s-maxage Cache-Control directive. Headers sent to the client will not be modified. Setting a TTL of "0" means "always revalidate". The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. * @type bool $negative_caching * Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. When the cache mode is set to CACHE_ALL_STATIC or USE_ORIGIN_HEADERS, negative caching applies to responses with the specified response code that lack any Cache-Control, Expires, or Pragma: no-cache directives. When the cache mode is set to FORCE_CACHE_ALL, negative caching applies to all responses with the specified response code, and override any caching headers. By default, Cloud CDN will apply the following default TTLs to these status codes: HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 421 (Misdirected Request), 501 (Not Implemented): 60s. These defaults can be overridden in negative_caching_policy. - * @type \Google\Cloud\Compute\V1\BackendServiceCdnPolicyNegativeCachingPolicy[]|\Google\Protobuf\Internal\RepeatedField $negative_caching_policy + * @type array<\Google\Cloud\Compute\V1\BackendServiceCdnPolicyNegativeCachingPolicy>|\Google\Protobuf\Internal\RepeatedField $negative_caching_policy * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled will use Cloud CDN's default cache TTLs. Note that when specifying an explicit negative_caching_policy, you should take care to specify a cache TTL for all response codes that you wish to cache. Cloud CDN will not apply any default negative caching when a policy exists. * @type bool $request_coalescing * If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin. @@ -118,7 +118,7 @@ class BackendServiceCdnPolicy extends \Google\Protobuf\Internal\Message * Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache. This setting defines the default "max-stale" duration for any cached responses that do not specify a max-stale directive. Stale responses that exceed the TTL configured here will not be served. The default limit (max-stale) is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max-age (or s-max-age) of a cached response. The maximum allowed value is 604800 (1 week). Set this to zero (0) to disable serve-while-stale. * @type int|string $signed_url_cache_max_age_sec * Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. Defaults to 1hr (3600s). When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $signed_url_key_names + * @type array|\Google\Protobuf\Internal\RepeatedField $signed_url_key_names * [Output Only] Names of the keys for signing request URLs. * } */ @@ -142,7 +142,7 @@ public function getBypassCacheOnRequestHeaders() * Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings. * * Generated from protobuf field repeated .google.cloud.compute.v1.BackendServiceCdnPolicyBypassCacheOnRequestHeader bypass_cache_on_request_headers = 486203082; - * @param \Google\Cloud\Compute\V1\BackendServiceCdnPolicyBypassCacheOnRequestHeader[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\BackendServiceCdnPolicyBypassCacheOnRequestHeader>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBypassCacheOnRequestHeaders($var) @@ -386,7 +386,7 @@ public function getNegativeCachingPolicy() * Sets a cache TTL for the specified HTTP status code. negative_caching must be enabled to configure negative_caching_policy. Omitting the policy and leaving negative_caching enabled will use Cloud CDN's default cache TTLs. Note that when specifying an explicit negative_caching_policy, you should take care to specify a cache TTL for all response codes that you wish to cache. Cloud CDN will not apply any default negative caching when a policy exists. * * Generated from protobuf field repeated .google.cloud.compute.v1.BackendServiceCdnPolicyNegativeCachingPolicy negative_caching_policy = 155359996; - * @param \Google\Cloud\Compute\V1\BackendServiceCdnPolicyNegativeCachingPolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\BackendServiceCdnPolicyNegativeCachingPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNegativeCachingPolicy($var) @@ -520,7 +520,7 @@ public function getSignedUrlKeyNames() * [Output Only] Names of the keys for signing request URLs. * * Generated from protobuf field repeated string signed_url_key_names = 371848885; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSignedUrlKeyNames($var) diff --git a/Compute/src/V1/BackendServiceGroupHealth.php b/Compute/src/V1/BackendServiceGroupHealth.php index 4995df778598..5df8fe05d5e0 100644 --- a/Compute/src/V1/BackendServiceGroupHealth.php +++ b/Compute/src/V1/BackendServiceGroupHealth.php @@ -41,7 +41,7 @@ class BackendServiceGroupHealth extends \Google\Protobuf\Internal\Message * * @type array|\Google\Protobuf\Internal\MapField $annotations * Metadata defined as annotations on the network endpoint group. - * @type \Google\Cloud\Compute\V1\HealthStatus[]|\Google\Protobuf\Internal\RepeatedField $health_status + * @type array<\Google\Cloud\Compute\V1\HealthStatus>|\Google\Protobuf\Internal\RepeatedField $health_status * Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks. * @type string $kind * [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services. @@ -93,7 +93,7 @@ public function getHealthStatus() * Health state of the backend instances or endpoints in requested instance or network endpoint group, determined based on configured health checks. * * Generated from protobuf field repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845; - * @param \Google\Cloud\Compute\V1\HealthStatus[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HealthStatus>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHealthStatus($var) diff --git a/Compute/src/V1/BackendServiceList.php b/Compute/src/V1/BackendServiceList.php index a03501b1b989..56a1f6a844d9 100644 --- a/Compute/src/V1/BackendServiceList.php +++ b/Compute/src/V1/BackendServiceList.php @@ -60,7 +60,7 @@ class BackendServiceList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\BackendService[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\BackendService>|\Google\Protobuf\Internal\RepeatedField $items * A list of BackendService resources. * @type string $kind * [Output Only] Type of resource. Always compute#backendServiceList for lists of backend services. @@ -128,7 +128,7 @@ public function getItems() * A list of BackendService resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.BackendService items = 100526016; - * @param \Google\Cloud\Compute\V1\BackendService[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\BackendService>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/BackendServicesScopedList.php b/Compute/src/V1/BackendServicesScopedList.php index 8ea3eada7e45..dec1212773e2 100644 --- a/Compute/src/V1/BackendServicesScopedList.php +++ b/Compute/src/V1/BackendServicesScopedList.php @@ -33,7 +33,7 @@ class BackendServicesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\BackendService[]|\Google\Protobuf\Internal\RepeatedField $backend_services + * @type array<\Google\Cloud\Compute\V1\BackendService>|\Google\Protobuf\Internal\RepeatedField $backend_services * A list of BackendServices contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of backend services when the list is empty. @@ -59,7 +59,7 @@ public function getBackendServices() * A list of BackendServices contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.BackendService backend_services = 388522409; - * @param \Google\Cloud\Compute\V1\BackendService[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\BackendService>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBackendServices($var) diff --git a/Compute/src/V1/BfdStatus.php b/Compute/src/V1/BfdStatus.php index 33fd1bfc76b4..22d6b7a50c6e 100644 --- a/Compute/src/V1/BfdStatus.php +++ b/Compute/src/V1/BfdStatus.php @@ -92,7 +92,7 @@ class BfdStatus extends \Google\Protobuf\Internal\Message * Unix timestamp of the most recent config update. * @type \Google\Cloud\Compute\V1\BfdStatusPacketCounts $control_packet_counts * Control packet counts for the current BFD session. - * @type \Google\Cloud\Compute\V1\PacketIntervals[]|\Google\Protobuf\Internal\RepeatedField $control_packet_intervals + * @type array<\Google\Cloud\Compute\V1\PacketIntervals>|\Google\Protobuf\Internal\RepeatedField $control_packet_intervals * Inter-packet time interval statistics for control packets. * @type string $local_diagnostic * The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 @@ -240,7 +240,7 @@ public function getControlPacketIntervals() * Inter-packet time interval statistics for control packets. * * Generated from protobuf field repeated .google.cloud.compute.v1.PacketIntervals control_packet_intervals = 500806649; - * @param \Google\Cloud\Compute\V1\PacketIntervals[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PacketIntervals>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setControlPacketIntervals($var) diff --git a/Compute/src/V1/Binding.php b/Compute/src/V1/Binding.php index b37ec4d0962a..28aa879c5d4d 100644 --- a/Compute/src/V1/Binding.php +++ b/Compute/src/V1/Binding.php @@ -50,7 +50,7 @@ class Binding extends \Google\Protobuf\Internal\Message * This is deprecated and has no effect. Do not use. * @type \Google\Cloud\Compute\V1\Expr $condition * The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * @type string[]|\Google\Protobuf\Internal\RepeatedField $members + * @type array|\Google\Protobuf\Internal\RepeatedField $members * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * @type string $role * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. @@ -148,7 +148,7 @@ public function getMembers() * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * * Generated from protobuf field repeated string members = 412010777; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMembers($var) diff --git a/Compute/src/V1/BulkInsertInstanceResource.php b/Compute/src/V1/BulkInsertInstanceResource.php index 196029d1b750..36c2d2f1cca3 100644 --- a/Compute/src/V1/BulkInsertInstanceResource.php +++ b/Compute/src/V1/BulkInsertInstanceResource.php @@ -28,7 +28,7 @@ class BulkInsertInstanceResource extends \Google\Protobuf\Internal\Message */ private $instance_properties = null; /** - * Policy for chosing target zone. + * Policy for chosing target zone. For more information, see Create VMs in bulk . * * Generated from protobuf field optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852; */ @@ -69,7 +69,7 @@ class BulkInsertInstanceResource extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Compute\V1\InstanceProperties $instance_properties * The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided. * @type \Google\Cloud\Compute\V1\LocationPolicy $location_policy - * Policy for chosing target zone. + * Policy for chosing target zone. For more information, see Create VMs in bulk . * @type int|string $min_count * The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted. * @type string $name_pattern @@ -158,7 +158,7 @@ public function setInstanceProperties($var) } /** - * Policy for chosing target zone. + * Policy for chosing target zone. For more information, see Create VMs in bulk . * * Generated from protobuf field optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852; * @return \Google\Cloud\Compute\V1\LocationPolicy|null @@ -179,7 +179,7 @@ public function clearLocationPolicy() } /** - * Policy for chosing target zone. + * Policy for chosing target zone. For more information, see Create VMs in bulk . * * Generated from protobuf field optional .google.cloud.compute.v1.LocationPolicy location_policy = 465689852; * @param \Google\Cloud\Compute\V1\LocationPolicy $var diff --git a/Compute/src/V1/CacheKeyPolicy.php b/Compute/src/V1/CacheKeyPolicy.php index e506cd14e64f..5e787e84c61e 100644 --- a/Compute/src/V1/CacheKeyPolicy.php +++ b/Compute/src/V1/CacheKeyPolicy.php @@ -66,17 +66,17 @@ class CacheKeyPolicy extends \Google\Protobuf\Internal\Message * * @type bool $include_host * If true, requests to different hosts will be cached separately. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $include_http_headers + * @type array|\Google\Protobuf\Internal\RepeatedField $include_http_headers * Allows HTTP request headers (by name) to be used in the cache key. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $include_named_cookies + * @type array|\Google\Protobuf\Internal\RepeatedField $include_named_cookies * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates. * @type bool $include_protocol * If true, http and https requests will be cached separately. * @type bool $include_query_string * If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $query_string_blacklist + * @type array|\Google\Protobuf\Internal\RepeatedField $query_string_blacklist * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $query_string_whitelist + * @type array|\Google\Protobuf\Internal\RepeatedField $query_string_whitelist * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters. * } */ @@ -136,7 +136,7 @@ public function getIncludeHttpHeaders() * Allows HTTP request headers (by name) to be used in the cache key. * * Generated from protobuf field repeated string include_http_headers = 2489606; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIncludeHttpHeaders($var) @@ -162,7 +162,7 @@ public function getIncludeNamedCookies() * Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates. * * Generated from protobuf field repeated string include_named_cookies = 87316530; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIncludeNamedCookies($var) @@ -260,7 +260,7 @@ public function getQueryStringBlacklist() * Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters. * * Generated from protobuf field repeated string query_string_blacklist = 354964742; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setQueryStringBlacklist($var) @@ -286,7 +286,7 @@ public function getQueryStringWhitelist() * Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters. * * Generated from protobuf field repeated string query_string_whitelist = 52456496; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setQueryStringWhitelist($var) diff --git a/Compute/src/V1/Commitment.php b/Compute/src/V1/Commitment.php index 78306e353a52..c44500faf410 100644 --- a/Compute/src/V1/Commitment.php +++ b/Compute/src/V1/Commitment.php @@ -158,9 +158,9 @@ class Commitment extends \Google\Protobuf\Internal\Message * Check the Plan enum for the list of possible values. * @type string $region * [Output Only] URL of the region where this commitment may be used. - * @type \Google\Cloud\Compute\V1\Reservation[]|\Google\Protobuf\Internal\RepeatedField $reservations + * @type array<\Google\Cloud\Compute\V1\Reservation>|\Google\Protobuf\Internal\RepeatedField $reservations * List of reservations in this commitment. - * @type \Google\Cloud\Compute\V1\ResourceCommitment[]|\Google\Protobuf\Internal\RepeatedField $resources + * @type array<\Google\Cloud\Compute\V1\ResourceCommitment>|\Google\Protobuf\Internal\RepeatedField $resources * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. * @type string $self_link * [Output Only] Server-defined URL for the resource. @@ -596,7 +596,7 @@ public function getReservations() * List of reservations in this commitment. * * Generated from protobuf field repeated .google.cloud.compute.v1.Reservation reservations = 399717927; - * @param \Google\Cloud\Compute\V1\Reservation[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Reservation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setReservations($var) @@ -622,7 +622,7 @@ public function getResources() * A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. * * Generated from protobuf field repeated .google.cloud.compute.v1.ResourceCommitment resources = 164412965; - * @param \Google\Cloud\Compute\V1\ResourceCommitment[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ResourceCommitment>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResources($var) diff --git a/Compute/src/V1/Commitment/Status.php b/Compute/src/V1/Commitment/Status.php index 684ad586b839..4e7abfd587b3 100644 --- a/Compute/src/V1/Commitment/Status.php +++ b/Compute/src/V1/Commitment/Status.php @@ -23,6 +23,10 @@ class Status * Generated from protobuf enum ACTIVE = 314733318; */ const ACTIVE = 314733318; + /** + * Generated from protobuf enum CANCELLED = 41957681; + */ + const CANCELLED = 41957681; /** * Generated from protobuf enum CREATING = 455564985; */ @@ -39,6 +43,7 @@ class Status private static $valueToName = [ self::UNDEFINED_STATUS => 'UNDEFINED_STATUS', self::ACTIVE => 'ACTIVE', + self::CANCELLED => 'CANCELLED', self::CREATING => 'CREATING', self::EXPIRED => 'EXPIRED', self::NOT_YET_ACTIVE => 'NOT_YET_ACTIVE', diff --git a/Compute/src/V1/CommitmentAggregatedList.php b/Compute/src/V1/CommitmentAggregatedList.php index 8a769ade4fad..330a55eee99c 100644 --- a/Compute/src/V1/CommitmentAggregatedList.php +++ b/Compute/src/V1/CommitmentAggregatedList.php @@ -73,7 +73,7 @@ class CommitmentAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/CommitmentList.php b/Compute/src/V1/CommitmentList.php index ecf7d32559b7..cf7354e3d4f8 100644 --- a/Compute/src/V1/CommitmentList.php +++ b/Compute/src/V1/CommitmentList.php @@ -60,7 +60,7 @@ class CommitmentList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Commitment[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Commitment>|\Google\Protobuf\Internal\RepeatedField $items * A list of Commitment resources. * @type string $kind * [Output Only] Type of resource. Always compute#commitmentList for lists of commitments. @@ -128,7 +128,7 @@ public function getItems() * A list of Commitment resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Commitment items = 100526016; - * @param \Google\Cloud\Compute\V1\Commitment[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Commitment>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/CommitmentsScopedList.php b/Compute/src/V1/CommitmentsScopedList.php index 7a070f97ead3..60224f97dba1 100644 --- a/Compute/src/V1/CommitmentsScopedList.php +++ b/Compute/src/V1/CommitmentsScopedList.php @@ -33,7 +33,7 @@ class CommitmentsScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Commitment[]|\Google\Protobuf\Internal\RepeatedField $commitments + * @type array<\Google\Cloud\Compute\V1\Commitment>|\Google\Protobuf\Internal\RepeatedField $commitments * [Output Only] A list of commitments contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning which replaces the list of commitments when the list is empty. @@ -59,7 +59,7 @@ public function getCommitments() * [Output Only] A list of commitments contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.Commitment commitments = 450664446; - * @param \Google\Cloud\Compute\V1\Commitment[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Commitment>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCommitments($var) diff --git a/Compute/src/V1/Condition.php b/Compute/src/V1/Condition.php index ab5051750f8e..b8ce7b6eb729 100644 --- a/Compute/src/V1/Condition.php +++ b/Compute/src/V1/Condition.php @@ -66,7 +66,7 @@ class Condition extends \Google\Protobuf\Internal\Message * @type string $sys * This is deprecated and has no effect. Do not use. * Check the Sys enum for the list of possible values. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $values + * @type array|\Google\Protobuf\Internal\RepeatedField $values * This is deprecated and has no effect. Do not use. * } */ @@ -240,7 +240,7 @@ public function getValues() * This is deprecated and has no effect. Do not use. * * Generated from protobuf field repeated string values = 249928994; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setValues($var) diff --git a/Compute/src/V1/CorsPolicy.php b/Compute/src/V1/CorsPolicy.php index 814b0aef9652..d12164dd9bf7 100644 --- a/Compute/src/V1/CorsPolicy.php +++ b/Compute/src/V1/CorsPolicy.php @@ -72,17 +72,17 @@ class CorsPolicy extends \Google\Protobuf\Internal\Message * * @type bool $allow_credentials * In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $allow_headers + * @type array|\Google\Protobuf\Internal\RepeatedField $allow_headers * Specifies the content for the Access-Control-Allow-Headers header. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $allow_methods + * @type array|\Google\Protobuf\Internal\RepeatedField $allow_methods * Specifies the content for the Access-Control-Allow-Methods header. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $allow_origin_regexes + * @type array|\Google\Protobuf\Internal\RepeatedField $allow_origin_regexes * Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $allow_origins + * @type array|\Google\Protobuf\Internal\RepeatedField $allow_origins * Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. * @type bool $disabled * If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $expose_headers + * @type array|\Google\Protobuf\Internal\RepeatedField $expose_headers * Specifies the content for the Access-Control-Expose-Headers header. * @type int $max_age * Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header. @@ -144,7 +144,7 @@ public function getAllowHeaders() * Specifies the content for the Access-Control-Allow-Headers header. * * Generated from protobuf field repeated string allow_headers = 45179024; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAllowHeaders($var) @@ -170,7 +170,7 @@ public function getAllowMethods() * Specifies the content for the Access-Control-Allow-Methods header. * * Generated from protobuf field repeated string allow_methods = 205405372; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAllowMethods($var) @@ -196,7 +196,7 @@ public function getAllowOriginRegexes() * Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. * * Generated from protobuf field repeated string allow_origin_regexes = 215385810; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAllowOriginRegexes($var) @@ -222,7 +222,7 @@ public function getAllowOrigins() * Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. * * Generated from protobuf field repeated string allow_origins = 194914071; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAllowOrigins($var) @@ -284,7 +284,7 @@ public function getExposeHeaders() * Specifies the content for the Access-Control-Expose-Headers header. * * Generated from protobuf field repeated string expose_headers = 247604747; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExposeHeaders($var) diff --git a/Compute/src/V1/Denied.php b/Compute/src/V1/Denied.php index 55392f4b59bd..cbbff65afd70 100644 --- a/Compute/src/V1/Denied.php +++ b/Compute/src/V1/Denied.php @@ -35,7 +35,7 @@ class Denied extends \Google\Protobuf\Internal\Message * * @type string $I_p_protocol * The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp) or the IP protocol number. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $ports + * @type array|\Google\Protobuf\Internal\RepeatedField $ports * An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. * } */ @@ -95,7 +95,7 @@ public function getPorts() * An optional list of ports to which this rule applies. This field is only applicable for the UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. * * Generated from protobuf field repeated string ports = 106854418; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPorts($var) diff --git a/Compute/src/V1/Disk.php b/Compute/src/V1/Disk.php index 5374e9be07d8..77bb88b6280e 100644 --- a/Compute/src/V1/Disk.php +++ b/Compute/src/V1/Disk.php @@ -15,6 +15,13 @@ */ class Disk extends \Google\Protobuf\Internal\Message { + /** + * The architecture of the disk. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + */ + private $architecture = null; /** * [Output Only] Creation timestamp in RFC3339 text format. * @@ -239,13 +246,16 @@ class Disk extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * + * @type string $architecture + * The architecture of the disk. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. * @type string $description * An optional description of this resource. Provide this property when you create the resource. * @type \Google\Cloud\Compute\V1\CustomerEncryptionKey $disk_encryption_key * Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key. Encryption keys do not protect access to metadata of the disk. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later. For example, to create a disk snapshot, to create a disk image, to create a machine image, or to attach the disk to a virtual machine. After you encrypt a disk with a customer-managed key, the diskEncryptionKey.kmsKeyName is set to a key *version* name once the disk is created. The disk is encrypted with this version of the key. In the response, diskEncryptionKey.kmsKeyName appears in the following format: "diskEncryptionKey.kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeysVersions/version If you do not provide an encryption key when creating the disk, then the disk is encrypted using an automatically generated key and you don't need to provide a key to use the disk later. - * @type \Google\Cloud\Compute\V1\GuestOsFeature[]|\Google\Protobuf\Internal\RepeatedField $guest_os_features + * @type array<\Google\Cloud\Compute\V1\GuestOsFeature>|\Google\Protobuf\Internal\RepeatedField $guest_os_features * A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. @@ -259,9 +269,9 @@ class Disk extends \Google\Protobuf\Internal\Message * [Output Only] Last attach timestamp in RFC3339 text format. * @type string $last_detach_timestamp * [Output Only] Last detach timestamp in RFC3339 text format. - * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $license_codes + * @type array|array|\Google\Protobuf\Internal\RepeatedField $license_codes * Integer license codes indicating which licenses are attached to this disk. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $licenses + * @type array|\Google\Protobuf\Internal\RepeatedField $licenses * A list of publicly visible licenses. Reserved for Google's use. * @type string $location_hint * An opaque location hint used to place the disk close to other resources. This field is for use by internal tools that use the public API. @@ -275,9 +285,9 @@ class Disk extends \Google\Protobuf\Internal\Message * Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation. * @type string $region * [Output Only] URL of the region where the disk resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $replica_zones + * @type array|\Google\Protobuf\Internal\RepeatedField $replica_zones * URLs of the zones where the disk should be replicated to. Only applicable for regional resources. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $resource_policies + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_policies * Resource policies applied to this disk for automatic snapshot creations. * @type bool $satisfies_pzs * [Output Only] Reserved for future use. @@ -308,7 +318,7 @@ class Disk extends \Google\Protobuf\Internal\Message * Check the Status enum for the list of possible values. * @type string $type * URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk. For example: projects/project /zones/zone/diskTypes/pd-ssd . See Persistent disk types. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $users + * @type array|\Google\Protobuf\Internal\RepeatedField $users * [Output Only] Links to the users of the disk (attached instances) in form: projects/project/zones/zone/instances/instance * @type string $zone * [Output Only] URL of the zone where the disk resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. @@ -319,6 +329,44 @@ public function __construct($data = NULL) { parent::__construct($data); } + /** + * The architecture of the disk. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @return string + */ + public function getArchitecture() + { + return isset($this->architecture) ? $this->architecture : ''; + } + + public function hasArchitecture() + { + return isset($this->architecture); + } + + public function clearArchitecture() + { + unset($this->architecture); + } + + /** + * The architecture of the disk. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @param string $var + * @return $this + */ + public function setArchitecture($var) + { + GPBUtil::checkString($var, True); + $this->architecture = $var; + + return $this; + } + /** * [Output Only] Creation timestamp in RFC3339 text format. * @@ -442,7 +490,7 @@ public function getGuestOsFeatures() * A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. * * Generated from protobuf field repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545; - * @param \Google\Cloud\Compute\V1\GuestOsFeature[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\GuestOsFeature>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setGuestOsFeatures($var) @@ -674,7 +722,7 @@ public function getLicenseCodes() * Integer license codes indicating which licenses are attached to this disk. * * Generated from protobuf field repeated int64 license_codes = 45482664; - * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLicenseCodes($var) @@ -700,7 +748,7 @@ public function getLicenses() * A list of publicly visible licenses. Reserved for Google's use. * * Generated from protobuf field repeated string licenses = 337642578; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLicenses($var) @@ -942,7 +990,7 @@ public function getReplicaZones() * URLs of the zones where the disk should be replicated to. Only applicable for regional resources. * * Generated from protobuf field repeated string replica_zones = 48438272; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setReplicaZones($var) @@ -968,7 +1016,7 @@ public function getResourcePolicies() * Resource policies applied to this disk for automatic snapshot creations. * * Generated from protobuf field repeated string resource_policies = 22220385; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcePolicies($var) @@ -1500,7 +1548,7 @@ public function getUsers() * [Output Only] Links to the users of the disk (attached instances) in form: projects/project/zones/zone/instances/instance * * Generated from protobuf field repeated string users = 111578632; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUsers($var) diff --git a/Compute/src/V1/Disk/Architecture.php b/Compute/src/V1/Disk/Architecture.php new file mode 100644 index 000000000000..2558644120c0 --- /dev/null +++ b/Compute/src/V1/Disk/Architecture.php @@ -0,0 +1,69 @@ +google.cloud.compute.v1.Disk.Architecture + */ +class Architecture +{ + /** + * A value indicating that the enum field is not set. + * + * Generated from protobuf enum UNDEFINED_ARCHITECTURE = 0; + */ + const UNDEFINED_ARCHITECTURE = 0; + /** + * Default value indicating Architecture is not set. + * + * Generated from protobuf enum ARCHITECTURE_UNSPECIFIED = 394750507; + */ + const ARCHITECTURE_UNSPECIFIED = 394750507; + /** + * Machines with architecture ARM64 + * + * Generated from protobuf enum ARM64 = 62547450; + */ + const ARM64 = 62547450; + /** + * Machines with architecture X86_64 + * + * Generated from protobuf enum X86_64 = 425300551; + */ + const X86_64 = 425300551; + + private static $valueToName = [ + self::UNDEFINED_ARCHITECTURE => 'UNDEFINED_ARCHITECTURE', + self::ARCHITECTURE_UNSPECIFIED => 'ARCHITECTURE_UNSPECIFIED', + self::ARM64 => 'ARM64', + self::X86_64 => 'X86_64', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Compute/src/V1/DiskAggregatedList.php b/Compute/src/V1/DiskAggregatedList.php index fee5d72249b7..185a961dd784 100644 --- a/Compute/src/V1/DiskAggregatedList.php +++ b/Compute/src/V1/DiskAggregatedList.php @@ -73,7 +73,7 @@ class DiskAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/DiskInstantiationConfig/InstantiateFrom.php b/Compute/src/V1/DiskInstantiationConfig/InstantiateFrom.php index d10f058feb86..af4a62a03587 100644 --- a/Compute/src/V1/DiskInstantiationConfig/InstantiateFrom.php +++ b/Compute/src/V1/DiskInstantiationConfig/InstantiateFrom.php @@ -67,7 +67,7 @@ class InstantiateFrom self::ATTACH_READ_ONLY => 'ATTACH_READ_ONLY', self::BLANK => 'BLANK', self::CUSTOM_IMAGE => 'CUSTOM_IMAGE', - self::PBDEFAULT => 'PBDEFAULT', + self::PBDEFAULT => 'DEFAULT', self::DO_NOT_INCLUDE => 'DO_NOT_INCLUDE', self::SOURCE_IMAGE => 'SOURCE_IMAGE', self::SOURCE_IMAGE_FAMILY => 'SOURCE_IMAGE_FAMILY', @@ -87,8 +87,12 @@ public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); } return constant($const); } diff --git a/Compute/src/V1/DiskList.php b/Compute/src/V1/DiskList.php index fdc5d8cbc83d..72542bf4eaa5 100644 --- a/Compute/src/V1/DiskList.php +++ b/Compute/src/V1/DiskList.php @@ -60,7 +60,7 @@ class DiskList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Disk[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Disk>|\Google\Protobuf\Internal\RepeatedField $items * A list of Disk resources. * @type string $kind * [Output Only] Type of resource. Always compute#diskList for lists of disks. @@ -128,7 +128,7 @@ public function getItems() * A list of Disk resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Disk items = 100526016; - * @param \Google\Cloud\Compute\V1\Disk[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Disk>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/DiskTypeAggregatedList.php b/Compute/src/V1/DiskTypeAggregatedList.php index 563e29ef5a7e..214baed64371 100644 --- a/Compute/src/V1/DiskTypeAggregatedList.php +++ b/Compute/src/V1/DiskTypeAggregatedList.php @@ -73,7 +73,7 @@ class DiskTypeAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/DiskTypeList.php b/Compute/src/V1/DiskTypeList.php index 699e5a3ad4a7..37bdd3f7fec7 100644 --- a/Compute/src/V1/DiskTypeList.php +++ b/Compute/src/V1/DiskTypeList.php @@ -60,7 +60,7 @@ class DiskTypeList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\DiskType[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\DiskType>|\Google\Protobuf\Internal\RepeatedField $items * A list of DiskType resources. * @type string $kind * [Output Only] Type of resource. Always compute#diskTypeList for disk types. @@ -128,7 +128,7 @@ public function getItems() * A list of DiskType resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.DiskType items = 100526016; - * @param \Google\Cloud\Compute\V1\DiskType[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\DiskType>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/DiskTypesScopedList.php b/Compute/src/V1/DiskTypesScopedList.php index fb2a3f8c166d..1b2759f199c5 100644 --- a/Compute/src/V1/DiskTypesScopedList.php +++ b/Compute/src/V1/DiskTypesScopedList.php @@ -33,7 +33,7 @@ class DiskTypesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\DiskType[]|\Google\Protobuf\Internal\RepeatedField $disk_types + * @type array<\Google\Cloud\Compute\V1\DiskType>|\Google\Protobuf\Internal\RepeatedField $disk_types * [Output Only] A list of disk types contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning which replaces the list of disk types when the list is empty. @@ -59,7 +59,7 @@ public function getDiskTypes() * [Output Only] A list of disk types contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.DiskType disk_types = 198926167; - * @param \Google\Cloud\Compute\V1\DiskType[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\DiskType>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDiskTypes($var) diff --git a/Compute/src/V1/DisksAddResourcePoliciesRequest.php b/Compute/src/V1/DisksAddResourcePoliciesRequest.php index 0ffce5aa796e..4f1754df2537 100644 --- a/Compute/src/V1/DisksAddResourcePoliciesRequest.php +++ b/Compute/src/V1/DisksAddResourcePoliciesRequest.php @@ -27,7 +27,7 @@ class DisksAddResourcePoliciesRequest extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $resource_policies + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_policies * Full or relative path to the resource policy to be added to this disk. You can only specify one resource policy. * } */ @@ -51,7 +51,7 @@ public function getResourcePolicies() * Full or relative path to the resource policy to be added to this disk. You can only specify one resource policy. * * Generated from protobuf field repeated string resource_policies = 22220385; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcePolicies($var) diff --git a/Compute/src/V1/DisksRemoveResourcePoliciesRequest.php b/Compute/src/V1/DisksRemoveResourcePoliciesRequest.php index 6fde5272fed0..7b49b01ae366 100644 --- a/Compute/src/V1/DisksRemoveResourcePoliciesRequest.php +++ b/Compute/src/V1/DisksRemoveResourcePoliciesRequest.php @@ -27,7 +27,7 @@ class DisksRemoveResourcePoliciesRequest extends \Google\Protobuf\Internal\Messa * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $resource_policies + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_policies * Resource policies to be removed from this disk. * } */ @@ -51,7 +51,7 @@ public function getResourcePolicies() * Resource policies to be removed from this disk. * * Generated from protobuf field repeated string resource_policies = 22220385; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcePolicies($var) diff --git a/Compute/src/V1/DisksScopedList.php b/Compute/src/V1/DisksScopedList.php index 55b6ae047694..a0cf07aef01f 100644 --- a/Compute/src/V1/DisksScopedList.php +++ b/Compute/src/V1/DisksScopedList.php @@ -33,7 +33,7 @@ class DisksScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Disk[]|\Google\Protobuf\Internal\RepeatedField $disks + * @type array<\Google\Cloud\Compute\V1\Disk>|\Google\Protobuf\Internal\RepeatedField $disks * [Output Only] A list of disks contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning which replaces the list of disks when the list is empty. @@ -59,7 +59,7 @@ public function getDisks() * [Output Only] A list of disks contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.Disk disks = 95594102; - * @param \Google\Cloud\Compute\V1\Disk[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Disk>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDisks($var) diff --git a/Compute/src/V1/DistributionPolicy.php b/Compute/src/V1/DistributionPolicy.php index 9789786f00c7..6d8c9ca05048 100644 --- a/Compute/src/V1/DistributionPolicy.php +++ b/Compute/src/V1/DistributionPolicy.php @@ -37,7 +37,7 @@ class DistributionPolicy extends \Google\Protobuf\Internal\Message * @type string $target_shape * The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType). * Check the TargetShape enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\DistributionPolicyZoneConfiguration[]|\Google\Protobuf\Internal\RepeatedField $zones + * @type array<\Google\Cloud\Compute\V1\DistributionPolicyZoneConfiguration>|\Google\Protobuf\Internal\RepeatedField $zones * Zones where the regional managed instance group will create and manage its instances. * } */ @@ -99,7 +99,7 @@ public function getZones() * Zones where the regional managed instance group will create and manage its instances. * * Generated from protobuf field repeated .google.cloud.compute.v1.DistributionPolicyZoneConfiguration zones = 116085319; - * @param \Google\Cloud\Compute\V1\DistributionPolicyZoneConfiguration[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\DistributionPolicyZoneConfiguration>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setZones($var) diff --git a/Compute/src/V1/Enums/AttachedDisk/Architecture.php b/Compute/src/V1/Enums/AttachedDisk/Architecture.php new file mode 100644 index 000000000000..f64f06cc2bec --- /dev/null +++ b/Compute/src/V1/Enums/AttachedDisk/Architecture.php @@ -0,0 +1,40 @@ +|\Google\Protobuf\Internal\RepeatedField $errors * [Output Only] The array of errors encountered while processing this operation. * } */ @@ -52,7 +52,7 @@ public function getErrors() * [Output Only] The array of errors encountered while processing this operation. * * Generated from protobuf field repeated .google.cloud.compute.v1.Errors errors = 315977579; - * @param \Google\Cloud\Compute\V1\Errors[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Errors>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setErrors($var) diff --git a/Compute/src/V1/ErrorDetails.php b/Compute/src/V1/ErrorDetails.php new file mode 100644 index 000000000000..949c70d7ac0e --- /dev/null +++ b/Compute/src/V1/ErrorDetails.php @@ -0,0 +1,143 @@ +google.cloud.compute.v1.ErrorDetails + */ +class ErrorDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field optional .google.cloud.compute.v1.ErrorInfo error_info = 25251973; + */ + private $error_info = null; + /** + * Generated from protobuf field optional .google.cloud.compute.v1.Help help = 3198785; + */ + private $help = null; + /** + * Generated from protobuf field optional .google.cloud.compute.v1.LocalizedMessage localized_message = 404537155; + */ + private $localized_message = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Compute\V1\ErrorInfo $error_info + * @type \Google\Cloud\Compute\V1\Help $help + * @type \Google\Cloud\Compute\V1\LocalizedMessage $localized_message + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field optional .google.cloud.compute.v1.ErrorInfo error_info = 25251973; + * @return \Google\Cloud\Compute\V1\ErrorInfo|null + */ + public function getErrorInfo() + { + return $this->error_info; + } + + public function hasErrorInfo() + { + return isset($this->error_info); + } + + public function clearErrorInfo() + { + unset($this->error_info); + } + + /** + * Generated from protobuf field optional .google.cloud.compute.v1.ErrorInfo error_info = 25251973; + * @param \Google\Cloud\Compute\V1\ErrorInfo $var + * @return $this + */ + public function setErrorInfo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\ErrorInfo::class); + $this->error_info = $var; + + return $this; + } + + /** + * Generated from protobuf field optional .google.cloud.compute.v1.Help help = 3198785; + * @return \Google\Cloud\Compute\V1\Help|null + */ + public function getHelp() + { + return $this->help; + } + + public function hasHelp() + { + return isset($this->help); + } + + public function clearHelp() + { + unset($this->help); + } + + /** + * Generated from protobuf field optional .google.cloud.compute.v1.Help help = 3198785; + * @param \Google\Cloud\Compute\V1\Help $var + * @return $this + */ + public function setHelp($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\Help::class); + $this->help = $var; + + return $this; + } + + /** + * Generated from protobuf field optional .google.cloud.compute.v1.LocalizedMessage localized_message = 404537155; + * @return \Google\Cloud\Compute\V1\LocalizedMessage|null + */ + public function getLocalizedMessage() + { + return $this->localized_message; + } + + public function hasLocalizedMessage() + { + return isset($this->localized_message); + } + + public function clearLocalizedMessage() + { + unset($this->localized_message); + } + + /** + * Generated from protobuf field optional .google.cloud.compute.v1.LocalizedMessage localized_message = 404537155; + * @param \Google\Cloud\Compute\V1\LocalizedMessage $var + * @return $this + */ + public function setLocalizedMessage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\LocalizedMessage::class); + $this->localized_message = $var; + + return $this; + } + +} + diff --git a/Compute/src/V1/ErrorInfo.php b/Compute/src/V1/ErrorInfo.php new file mode 100644 index 000000000000..9674574ccc7e --- /dev/null +++ b/Compute/src/V1/ErrorInfo.php @@ -0,0 +1,155 @@ +google.cloud.compute.v1.ErrorInfo + */ +class ErrorInfo extends \Google\Protobuf\Internal\Message +{ + /** + * The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". + * + * Generated from protobuf field optional string domain = 284415172; + */ + private $domain = null; + /** + * Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. + * + * Generated from protobuf field map metadatas = 8514340; + */ + private $metadatas; + /** + * The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match /[A-Z0-9_]+/. + * + * Generated from protobuf field optional string reason = 138777156; + */ + private $reason = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $domain + * The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". + * @type array|\Google\Protobuf\Internal\MapField $metadatas + * Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. + * @type string $reason + * The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match /[A-Z0-9_]+/. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce(); + parent::__construct($data); + } + + /** + * The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". + * + * Generated from protobuf field optional string domain = 284415172; + * @return string + */ + public function getDomain() + { + return isset($this->domain) ? $this->domain : ''; + } + + public function hasDomain() + { + return isset($this->domain); + } + + public function clearDomain() + { + unset($this->domain); + } + + /** + * The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". + * + * Generated from protobuf field optional string domain = 284415172; + * @param string $var + * @return $this + */ + public function setDomain($var) + { + GPBUtil::checkString($var, True); + $this->domain = $var; + + return $this; + } + + /** + * Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. + * + * Generated from protobuf field map metadatas = 8514340; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMetadatas() + { + return $this->metadatas; + } + + /** + * Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. + * + * Generated from protobuf field map metadatas = 8514340; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMetadatas($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->metadatas = $arr; + + return $this; + } + + /** + * The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match /[A-Z0-9_]+/. + * + * Generated from protobuf field optional string reason = 138777156; + * @return string + */ + public function getReason() + { + return isset($this->reason) ? $this->reason : ''; + } + + public function hasReason() + { + return isset($this->reason); + } + + public function clearReason() + { + unset($this->reason); + } + + /** + * The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match /[A-Z0-9_]+/. + * + * Generated from protobuf field optional string reason = 138777156; + * @param string $var + * @return $this + */ + public function setReason($var) + { + GPBUtil::checkString($var, True); + $this->reason = $var; + + return $this; + } + +} + diff --git a/Compute/src/V1/Errors.php b/Compute/src/V1/Errors.php index c5b62de861de..d42d8a645fab 100644 --- a/Compute/src/V1/Errors.php +++ b/Compute/src/V1/Errors.php @@ -20,6 +20,12 @@ class Errors extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional string code = 3059181; */ private $code = null; + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * + * Generated from protobuf field repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963; + */ + private $error_details; /** * [Output Only] Indicates the field in the request that caused the error. This property is optional. * @@ -41,6 +47,8 @@ class Errors extends \Google\Protobuf\Internal\Message * * @type string $code * [Output Only] The error type identifier for this error. + * @type array<\Google\Cloud\Compute\V1\ErrorDetails>|\Google\Protobuf\Internal\RepeatedField $error_details + * [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. * @type string $location * [Output Only] Indicates the field in the request that caused the error. This property is optional. * @type string $message @@ -88,6 +96,32 @@ public function setCode($var) return $this; } + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * + * Generated from protobuf field repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getErrorDetails() + { + return $this->error_details; + } + + /** + * [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. + * + * Generated from protobuf field repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963; + * @param array<\Google\Cloud\Compute\V1\ErrorDetails>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setErrorDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\ErrorDetails::class); + $this->error_details = $arr; + + return $this; + } + /** * [Output Only] Indicates the field in the request that caused the error. This property is optional. * diff --git a/Compute/src/V1/ExchangedPeeringRoutesList.php b/Compute/src/V1/ExchangedPeeringRoutesList.php index 543685b03bf7..328d66a6f398 100644 --- a/Compute/src/V1/ExchangedPeeringRoutesList.php +++ b/Compute/src/V1/ExchangedPeeringRoutesList.php @@ -59,7 +59,7 @@ class ExchangedPeeringRoutesList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\ExchangedPeeringRoute[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\ExchangedPeeringRoute>|\Google\Protobuf\Internal\RepeatedField $items * A list of ExchangedPeeringRoute resources. * @type string $kind * [Output Only] Type of resource. Always compute#exchangedPeeringRoutesList for exchanged peering routes lists. @@ -127,7 +127,7 @@ public function getItems() * A list of ExchangedPeeringRoute resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.ExchangedPeeringRoute items = 100526016; - * @param \Google\Cloud\Compute\V1\ExchangedPeeringRoute[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ExchangedPeeringRoute>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/ExternalVpnGateway.php b/Compute/src/V1/ExternalVpnGateway.php index cd26ddfcb017..641a4dc446d1 100644 --- a/Compute/src/V1/ExternalVpnGateway.php +++ b/Compute/src/V1/ExternalVpnGateway.php @@ -89,7 +89,7 @@ class ExternalVpnGateway extends \Google\Protobuf\Internal\Message * An optional description of this resource. Provide this property when you create the resource. * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @type \Google\Cloud\Compute\V1\ExternalVpnGatewayInterface[]|\Google\Protobuf\Internal\RepeatedField $interfaces + * @type array<\Google\Cloud\Compute\V1\ExternalVpnGatewayInterface>|\Google\Protobuf\Internal\RepeatedField $interfaces * A list of interfaces for this external VPN gateway. If your peer-side gateway is an on-premises gateway and non-AWS cloud providers' gateway, at most two interfaces can be provided for an external VPN gateway. If your peer side is an AWS virtual private gateway, four interfaces should be provided for an external VPN gateway. * @type string $kind * [Output Only] Type of the resource. Always compute#externalVpnGateway for externalVpnGateways. @@ -234,7 +234,7 @@ public function getInterfaces() * A list of interfaces for this external VPN gateway. If your peer-side gateway is an on-premises gateway and non-AWS cloud providers' gateway, at most two interfaces can be provided for an external VPN gateway. If your peer side is an AWS virtual private gateway, four interfaces should be provided for an external VPN gateway. * * Generated from protobuf field repeated .google.cloud.compute.v1.ExternalVpnGatewayInterface interfaces = 12073562; - * @param \Google\Cloud\Compute\V1\ExternalVpnGatewayInterface[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ExternalVpnGatewayInterface>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInterfaces($var) diff --git a/Compute/src/V1/ExternalVpnGatewayList.php b/Compute/src/V1/ExternalVpnGatewayList.php index 65dd8a1c0bae..c0ec728e0e03 100644 --- a/Compute/src/V1/ExternalVpnGatewayList.php +++ b/Compute/src/V1/ExternalVpnGatewayList.php @@ -65,7 +65,7 @@ class ExternalVpnGatewayList extends \Google\Protobuf\Internal\Message * @type string $etag * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\ExternalVpnGateway[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\ExternalVpnGateway>|\Google\Protobuf\Internal\RepeatedField $items * A list of ExternalVpnGateway resources. * @type string $kind * [Output Only] Type of resource. Always compute#externalVpnGatewayList for lists of externalVpnGateways. @@ -165,7 +165,7 @@ public function getItems() * A list of ExternalVpnGateway resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.ExternalVpnGateway items = 100526016; - * @param \Google\Cloud\Compute\V1\ExternalVpnGateway[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ExternalVpnGateway>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/Firewall.php b/Compute/src/V1/Firewall.php index 29e74319aadc..2536f41204dd 100644 --- a/Compute/src/V1/Firewall.php +++ b/Compute/src/V1/Firewall.php @@ -137,15 +137,15 @@ class Firewall extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Allowed[]|\Google\Protobuf\Internal\RepeatedField $allowed + * @type array<\Google\Cloud\Compute\V1\Allowed>|\Google\Protobuf\Internal\RepeatedField $allowed * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. - * @type \Google\Cloud\Compute\V1\Denied[]|\Google\Protobuf\Internal\RepeatedField $denied + * @type array<\Google\Cloud\Compute\V1\Denied>|\Google\Protobuf\Internal\RepeatedField $denied * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. * @type string $description * An optional description of this resource. Provide this field when you create the resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $destination_ranges + * @type array|\Google\Protobuf\Internal\RepeatedField $destination_ranges * If destination ranges are specified, the firewall rule applies only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Both IPv4 and IPv6 are supported. * @type string $direction * Direction of traffic to which this firewall applies, either `INGRESS` or `EGRESS`. The default is `INGRESS`. For `INGRESS` traffic, you cannot specify the destinationRanges field, and for `EGRESS` traffic, you cannot specify the sourceRanges or sourceTags fields. @@ -166,15 +166,15 @@ class Firewall extends \Google\Protobuf\Internal\Message * Priority for this rule. This is an integer between `0` and `65535`, both inclusive. The default value is `1000`. Relative priorities determine which rule takes effect if multiple rules apply. Lower values indicate higher priority. For example, a rule with priority `0` has higher precedence than a rule with priority `1`. DENY rules take precedence over ALLOW rules if they have equal priority. Note that VPC networks have implied rules with a priority of `65535`. To avoid conflicts with the implied rules, use a priority number less than `65535`. * @type string $self_link * [Output Only] Server-defined URL for the resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $source_ranges + * @type array|\Google\Protobuf\Internal\RepeatedField $source_ranges * If source ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the rule to apply. Both IPv4 and IPv6 are supported. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $source_service_accounts + * @type array|\Google\Protobuf\Internal\RepeatedField $source_service_accounts * If source service accounts are specified, the firewall rules apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP address within the sourceRanges OR a source IP that belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both fields for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $source_tags + * @type array|\Google\Protobuf\Internal\RepeatedField $source_tags * If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both fields are set, the firewall applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the firewall to apply. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $target_service_accounts + * @type array|\Google\Protobuf\Internal\RepeatedField $target_service_accounts * A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $target_tags + * @type array|\Google\Protobuf\Internal\RepeatedField $target_tags * A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. * } */ @@ -198,7 +198,7 @@ public function getAllowed() * The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. * * Generated from protobuf field repeated .google.cloud.compute.v1.Allowed allowed = 162398632; - * @param \Google\Cloud\Compute\V1\Allowed[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Allowed>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAllowed($var) @@ -260,7 +260,7 @@ public function getDenied() * The list of DENY rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a denied connection. * * Generated from protobuf field repeated .google.cloud.compute.v1.Denied denied = 275217307; - * @param \Google\Cloud\Compute\V1\Denied[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Denied>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDenied($var) @@ -322,7 +322,7 @@ public function getDestinationRanges() * If destination ranges are specified, the firewall rule applies only to traffic that has destination IP address in these ranges. These ranges must be expressed in CIDR format. Both IPv4 and IPv6 are supported. * * Generated from protobuf field repeated string destination_ranges = 305699879; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDestinationRanges($var) @@ -674,7 +674,7 @@ public function getSourceRanges() * If source ranges are specified, the firewall rule applies only to traffic that has a source IP address in these ranges. These ranges must be expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both fields are set, the rule applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the rule to apply. Both IPv4 and IPv6 are supported. * * Generated from protobuf field repeated string source_ranges = 200097658; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSourceRanges($var) @@ -700,7 +700,7 @@ public function getSourceServiceAccounts() * If source service accounts are specified, the firewall rules apply only to traffic originating from an instance with a service account in this list. Source service accounts cannot be used to control traffic to an instance's external IP address because service accounts are associated with an instance, not an IP address. sourceRanges can be set at the same time as sourceServiceAccounts. If both are set, the firewall applies to traffic that has a source IP address within the sourceRanges OR a source IP that belongs to an instance with service account listed in sourceServiceAccount. The connection does not need to match both fields for the firewall to apply. sourceServiceAccounts cannot be used at the same time as sourceTags or targetTags. * * Generated from protobuf field repeated string source_service_accounts = 105100756; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSourceServiceAccounts($var) @@ -726,7 +726,7 @@ public function getSourceTags() * If source tags are specified, the firewall rule applies only to traffic with source IPs that match the primary network interfaces of VM instances that have the tag and are in the same VPC network. Source tags cannot be used to control traffic to an instance's external IP address, it only applies to traffic between instances in the same virtual network. Because tags are associated with instances, not IP addresses. One or both of sourceRanges and sourceTags may be set. If both fields are set, the firewall applies to traffic that has a source IP address within sourceRanges OR a source IP from a resource with a matching tag listed in the sourceTags field. The connection does not need to match both fields for the firewall to apply. * * Generated from protobuf field repeated string source_tags = 452222397; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSourceTags($var) @@ -752,7 +752,7 @@ public function getTargetServiceAccounts() * A list of service accounts indicating sets of instances located in the network that may make network connections as specified in allowed[]. targetServiceAccounts cannot be used at the same time as targetTags or sourceTags. If neither targetServiceAccounts nor targetTags are specified, the firewall rule applies to all instances on the specified network. * * Generated from protobuf field repeated string target_service_accounts = 457639710; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetServiceAccounts($var) @@ -778,7 +778,7 @@ public function getTargetTags() * A list of tags that controls which instances the firewall rule applies to. If targetTags are specified, then the firewall rule applies only to instances in the VPC network that have one of those tags. If no targetTags are specified, the firewall rule applies to all instances on the specified network. * * Generated from protobuf field repeated string target_tags = 62901767; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetTags($var) diff --git a/Compute/src/V1/FirewallList.php b/Compute/src/V1/FirewallList.php index 939eb26adb1b..dbd343e2352b 100644 --- a/Compute/src/V1/FirewallList.php +++ b/Compute/src/V1/FirewallList.php @@ -60,7 +60,7 @@ class FirewallList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Firewall[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Firewall>|\Google\Protobuf\Internal\RepeatedField $items * A list of Firewall resources. * @type string $kind * [Output Only] Type of resource. Always compute#firewallList for lists of firewalls. @@ -128,7 +128,7 @@ public function getItems() * A list of Firewall resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Firewall items = 100526016; - * @param \Google\Cloud\Compute\V1\Firewall[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Firewall>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/FirewallPoliciesListAssociationsResponse.php b/Compute/src/V1/FirewallPoliciesListAssociationsResponse.php index ecc45ad0b2ed..9cd3ab5299f0 100644 --- a/Compute/src/V1/FirewallPoliciesListAssociationsResponse.php +++ b/Compute/src/V1/FirewallPoliciesListAssociationsResponse.php @@ -33,7 +33,7 @@ class FirewallPoliciesListAssociationsResponse extends \Google\Protobuf\Internal * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\FirewallPolicyAssociation[]|\Google\Protobuf\Internal\RepeatedField $associations + * @type array<\Google\Cloud\Compute\V1\FirewallPolicyAssociation>|\Google\Protobuf\Internal\RepeatedField $associations * A list of associations. * @type string $kind * [Output Only] Type of firewallPolicy associations. Always compute#FirewallPoliciesListAssociations for lists of firewallPolicy associations. @@ -59,7 +59,7 @@ public function getAssociations() * A list of associations. * * Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyAssociation associations = 508736530; - * @param \Google\Cloud\Compute\V1\FirewallPolicyAssociation[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FirewallPolicyAssociation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAssociations($var) diff --git a/Compute/src/V1/FirewallPolicy.php b/Compute/src/V1/FirewallPolicy.php index b2011e605d84..a017365f15c7 100644 --- a/Compute/src/V1/FirewallPolicy.php +++ b/Compute/src/V1/FirewallPolicy.php @@ -112,7 +112,7 @@ class FirewallPolicy extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\FirewallPolicyAssociation[]|\Google\Protobuf\Internal\RepeatedField $associations + * @type array<\Google\Cloud\Compute\V1\FirewallPolicyAssociation>|\Google\Protobuf\Internal\RepeatedField $associations * A list of associations that belong to this firewall policy. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. @@ -134,7 +134,7 @@ class FirewallPolicy extends \Google\Protobuf\Internal\Message * [Output Only] URL of the region where the regional firewall policy resides. This field is not applicable to global firewall policies. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. * @type int $rule_tuple_count * [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples. - * @type \Google\Cloud\Compute\V1\FirewallPolicyRule[]|\Google\Protobuf\Internal\RepeatedField $rules + * @type array<\Google\Cloud\Compute\V1\FirewallPolicyRule>|\Google\Protobuf\Internal\RepeatedField $rules * A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added. * @type string $self_link * [Output Only] Server-defined URL for the resource. @@ -164,7 +164,7 @@ public function getAssociations() * A list of associations that belong to this firewall policy. * * Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyAssociation associations = 508736530; - * @param \Google\Cloud\Compute\V1\FirewallPolicyAssociation[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FirewallPolicyAssociation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAssociations($var) @@ -550,7 +550,7 @@ public function getRules() * A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added. * * Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975; - * @param \Google\Cloud\Compute\V1\FirewallPolicyRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FirewallPolicyRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) diff --git a/Compute/src/V1/FirewallPolicyList.php b/Compute/src/V1/FirewallPolicyList.php index 9456473f24be..2742c4e010e9 100644 --- a/Compute/src/V1/FirewallPolicyList.php +++ b/Compute/src/V1/FirewallPolicyList.php @@ -53,7 +53,7 @@ class FirewallPolicyList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\FirewallPolicy[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\FirewallPolicy>|\Google\Protobuf\Internal\RepeatedField $items * A list of FirewallPolicy resources. * @type string $kind * [Output Only] Type of resource. Always compute#firewallPolicyList for listsof FirewallPolicies @@ -119,7 +119,7 @@ public function getItems() * A list of FirewallPolicy resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicy items = 100526016; - * @param \Google\Cloud\Compute\V1\FirewallPolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FirewallPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/FirewallPolicyRule.php b/Compute/src/V1/FirewallPolicyRule.php index 3be7f7cb5d71..49fc66df25bd 100644 --- a/Compute/src/V1/FirewallPolicyRule.php +++ b/Compute/src/V1/FirewallPolicyRule.php @@ -122,11 +122,11 @@ class FirewallPolicyRule extends \Google\Protobuf\Internal\Message * An optional name for the rule. This field is not a unique identifier and can be updated. * @type int $rule_tuple_count * [Output Only] Calculation of the complexity of a single firewall policy rule. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $target_resources + * @type array|\Google\Protobuf\Internal\RepeatedField $target_resources * A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. - * @type \Google\Cloud\Compute\V1\FirewallPolicyRuleSecureTag[]|\Google\Protobuf\Internal\RepeatedField $target_secure_tags + * @type array<\Google\Cloud\Compute\V1\FirewallPolicyRuleSecureTag>|\Google\Protobuf\Internal\RepeatedField $target_secure_tags * A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $target_service_accounts + * @type array|\Google\Protobuf\Internal\RepeatedField $target_service_accounts * A list of service accounts indicating the sets of instances that are applied with this rule. * } */ @@ -512,7 +512,7 @@ public function getTargetResources() * A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. * * Generated from protobuf field repeated string target_resources = 528230647; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetResources($var) @@ -538,7 +538,7 @@ public function getTargetSecureTags() * A list of secure tags that controls which instances the firewall rule applies to. If targetSecureTag are specified, then the firewall rule applies only to instances in the VPC network that have one of those EFFECTIVE secure tags, if all the target_secure_tag are in INEFFECTIVE state, then this rule will be ignored. targetSecureTag may not be set at the same time as targetServiceAccounts. If neither targetServiceAccounts nor targetSecureTag are specified, the firewall rule applies to all instances on the specified network. Maximum number of target label tags allowed is 256. * * Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag target_secure_tags = 468132403; - * @param \Google\Cloud\Compute\V1\FirewallPolicyRuleSecureTag[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FirewallPolicyRuleSecureTag>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetSecureTags($var) @@ -564,7 +564,7 @@ public function getTargetServiceAccounts() * A list of service accounts indicating the sets of instances that are applied with this rule. * * Generated from protobuf field repeated string target_service_accounts = 457639710; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetServiceAccounts($var) diff --git a/Compute/src/V1/FirewallPolicyRuleMatcher.php b/Compute/src/V1/FirewallPolicyRuleMatcher.php index 8faa5aaeca06..32c19b51cec2 100644 --- a/Compute/src/V1/FirewallPolicyRuleMatcher.php +++ b/Compute/src/V1/FirewallPolicyRuleMatcher.php @@ -46,13 +46,13 @@ class FirewallPolicyRuleMatcher extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $dest_ip_ranges + * @type array|\Google\Protobuf\Internal\RepeatedField $dest_ip_ranges * CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. - * @type \Google\Cloud\Compute\V1\FirewallPolicyRuleMatcherLayer4Config[]|\Google\Protobuf\Internal\RepeatedField $layer4_configs + * @type array<\Google\Cloud\Compute\V1\FirewallPolicyRuleMatcherLayer4Config>|\Google\Protobuf\Internal\RepeatedField $layer4_configs * Pairs of IP protocols and ports that the rule should match. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $src_ip_ranges + * @type array|\Google\Protobuf\Internal\RepeatedField $src_ip_ranges * CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. - * @type \Google\Cloud\Compute\V1\FirewallPolicyRuleSecureTag[]|\Google\Protobuf\Internal\RepeatedField $src_secure_tags + * @type array<\Google\Cloud\Compute\V1\FirewallPolicyRuleSecureTag>|\Google\Protobuf\Internal\RepeatedField $src_secure_tags * List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256. * } */ @@ -76,7 +76,7 @@ public function getDestIpRanges() * CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. * * Generated from protobuf field repeated string dest_ip_ranges = 337357713; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDestIpRanges($var) @@ -102,7 +102,7 @@ public function getLayer4Configs() * Pairs of IP protocols and ports that the rule should match. * * Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261; - * @param \Google\Cloud\Compute\V1\FirewallPolicyRuleMatcherLayer4Config[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FirewallPolicyRuleMatcherLayer4Config>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLayer4Configs($var) @@ -128,7 +128,7 @@ public function getSrcIpRanges() * CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. * * Generated from protobuf field repeated string src_ip_ranges = 432128083; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSrcIpRanges($var) @@ -154,7 +154,7 @@ public function getSrcSecureTags() * List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256. * * Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag src_secure_tags = 508791302; - * @param \Google\Cloud\Compute\V1\FirewallPolicyRuleSecureTag[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FirewallPolicyRuleSecureTag>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSrcSecureTags($var) diff --git a/Compute/src/V1/FirewallPolicyRuleMatcherLayer4Config.php b/Compute/src/V1/FirewallPolicyRuleMatcherLayer4Config.php index 2320938bb5a9..9a3d6fe22317 100644 --- a/Compute/src/V1/FirewallPolicyRuleMatcherLayer4Config.php +++ b/Compute/src/V1/FirewallPolicyRuleMatcherLayer4Config.php @@ -35,7 +35,7 @@ class FirewallPolicyRuleMatcherLayer4Config extends \Google\Protobuf\Internal\Me * * @type string $ip_protocol * The IP protocol to which this rule applies. The protocol type is required when creating a firewall rule. This value can either be one of the following well known protocol strings (tcp, udp, icmp, esp, ah, ipip, sctp), or the IP protocol number. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $ports + * @type array|\Google\Protobuf\Internal\RepeatedField $ports * An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. * } */ @@ -95,7 +95,7 @@ public function getPorts() * An optional list of ports to which this rule applies. This field is only applicable for UDP or TCP protocol. Each entry must be either an integer or a range. If not specified, this rule applies to connections through any port. Example inputs include: ["22"], ["80","443"], and ["12345-12349"]. * * Generated from protobuf field repeated string ports = 106854418; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPorts($var) diff --git a/Compute/src/V1/ForwardingRule.php b/Compute/src/V1/ForwardingRule.php index bb114232558d..64d5196fc928 100644 --- a/Compute/src/V1/ForwardingRule.php +++ b/Compute/src/V1/ForwardingRule.php @@ -71,7 +71,7 @@ class ForwardingRule extends \Google\Protobuf\Internal\Message */ private $id = null; /** - * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for an external global forwarding rule. + * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. * Check the IpVersion enum for the list of possible values. * * Generated from protobuf field optional string ip_version = 294959552; @@ -231,7 +231,7 @@ class ForwardingRule extends \Google\Protobuf\Internal\Message * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * @type string $ip_version - * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for an external global forwarding rule. + * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. * Check the IpVersion enum for the list of possible values. * @type bool $is_mirroring_collector * Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL. @@ -244,7 +244,7 @@ class ForwardingRule extends \Google\Protobuf\Internal\Message * @type string $load_balancing_scheme * Specifies the forwarding rule type. For more information about forwarding rules, refer to Forwarding rule concepts. * Check the LoadBalancingScheme enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\MetadataFilter[]|\Google\Protobuf\Internal\RepeatedField $metadata_filters + * @type array<\Google\Cloud\Compute\V1\MetadataFilter>|\Google\Protobuf\Internal\RepeatedField $metadata_filters * Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. * @type string $name * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For Private Service Connect forwarding rules that forward traffic to Google APIs, the forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and must start with a letter. @@ -257,7 +257,7 @@ class ForwardingRule extends \Google\Protobuf\Internal\Message * This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field. * @type string $port_range * This field can be used only if: - Load balancing scheme is one of EXTERNAL, INTERNAL_SELF_MANAGED or INTERNAL_MANAGED - IPProtocol is one of TCP, UDP, or SCTP. Packets addressed to ports in the specified range will be forwarded to target or backend_service. You can only use one of ports, port_range, or allPorts. The three are mutually exclusive. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint ports. Some types of forwarding target have constraints on the acceptable ports. For more information, see [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#port_specifications). @pattern: \\d+(?:-\\d+)? - * @type string[]|\Google\Protobuf\Internal\RepeatedField $ports + * @type array|\Google\Protobuf\Internal\RepeatedField $ports * The ports field is only supported when the forwarding rule references a backend_service directly. Only packets addressed to the [specified list of ports]((https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#port_specifications)) are forwarded to backends. You can only use one of ports and port_range, or allPorts. The three are mutually exclusive. You can specify a list of up to five ports, which can be non-contiguous. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint ports. @pattern: \\d+(?:-\\d+)? * @type int|string $psc_connection_id * [Output Only] The PSC connection id of the PSC Forwarding Rule. @@ -268,7 +268,7 @@ class ForwardingRule extends \Google\Protobuf\Internal\Message * [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. * @type string $self_link * [Output Only] Server-defined URL for the resource. - * @type \Google\Cloud\Compute\V1\ForwardingRuleServiceDirectoryRegistration[]|\Google\Protobuf\Internal\RepeatedField $service_directory_registrations + * @type array<\Google\Cloud\Compute\V1\ForwardingRuleServiceDirectoryRegistration>|\Google\Protobuf\Internal\RepeatedField $service_directory_registrations * Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource. * @type string $service_label * An optional prefix to the service name for this Forwarding Rule. If specified, the prefix is the first label of the fully qualified service name. The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is only used for internal load balancing. @@ -611,7 +611,7 @@ public function setId($var) } /** - * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for an external global forwarding rule. + * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. * Check the IpVersion enum for the list of possible values. * * Generated from protobuf field optional string ip_version = 294959552; @@ -633,7 +633,7 @@ public function clearIpVersion() } /** - * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for an external global forwarding rule. + * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. * Check the IpVersion enum for the list of possible values. * * Generated from protobuf field optional string ip_version = 294959552; @@ -835,7 +835,7 @@ public function getMetadataFilters() * Opaque filter criteria used by load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to load balancer, xDS clients present node metadata. When there is a match, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. TargetHttpProxy, UrlMap) referenced by the ForwardingRule are not visible to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applifed before those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. * * Generated from protobuf field repeated .google.cloud.compute.v1.MetadataFilter metadata_filters = 464725739; - * @param \Google\Cloud\Compute\V1\MetadataFilter[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\MetadataFilter>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMetadataFilters($var) @@ -1043,7 +1043,7 @@ public function getPorts() * The ports field is only supported when the forwarding rule references a backend_service directly. Only packets addressed to the [specified list of ports]((https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#port_specifications)) are forwarded to backends. You can only use one of ports and port_range, or allPorts. The three are mutually exclusive. You can specify a list of up to five ports, which can be non-contiguous. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint ports. @pattern: \\d+(?:-\\d+)? * * Generated from protobuf field repeated string ports = 106854418; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPorts($var) @@ -1215,7 +1215,7 @@ public function getServiceDirectoryRegistrations() * Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource. * * Generated from protobuf field repeated .google.cloud.compute.v1.ForwardingRuleServiceDirectoryRegistration service_directory_registrations = 223549694; - * @param \Google\Cloud\Compute\V1\ForwardingRuleServiceDirectoryRegistration[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ForwardingRuleServiceDirectoryRegistration>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setServiceDirectoryRegistrations($var) diff --git a/Compute/src/V1/ForwardingRule/IpVersion.php b/Compute/src/V1/ForwardingRule/IpVersion.php index 511532ee425f..83130753e2ef 100644 --- a/Compute/src/V1/ForwardingRule/IpVersion.php +++ b/Compute/src/V1/ForwardingRule/IpVersion.php @@ -7,7 +7,7 @@ use UnexpectedValueException; /** - * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for an external global forwarding rule. + * The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. * * Protobuf type google.cloud.compute.v1.ForwardingRule.IpVersion */ diff --git a/Compute/src/V1/ForwardingRule/PscConnectionStatus.php b/Compute/src/V1/ForwardingRule/PscConnectionStatus.php index a8aa4621b1cc..6cf2e70bff2d 100644 --- a/Compute/src/V1/ForwardingRule/PscConnectionStatus.php +++ b/Compute/src/V1/ForwardingRule/PscConnectionStatus.php @@ -30,6 +30,12 @@ class PscConnectionStatus * Generated from protobuf enum CLOSED = 380163436; */ const CLOSED = 380163436; + /** + * The connection has been accepted by the producer, but the producer needs to take further action before the forwarding rule can serve traffic. + * + * Generated from protobuf enum NEEDS_ATTENTION = 344491452; + */ + const NEEDS_ATTENTION = 344491452; /** * The connection is pending acceptance by the producer. * @@ -51,6 +57,7 @@ class PscConnectionStatus self::UNDEFINED_PSC_CONNECTION_STATUS => 'UNDEFINED_PSC_CONNECTION_STATUS', self::ACCEPTED => 'ACCEPTED', self::CLOSED => 'CLOSED', + self::NEEDS_ATTENTION => 'NEEDS_ATTENTION', self::PENDING => 'PENDING', self::REJECTED => 'REJECTED', self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', diff --git a/Compute/src/V1/ForwardingRuleAggregatedList.php b/Compute/src/V1/ForwardingRuleAggregatedList.php index 23de4baef11e..c511be81ecf2 100644 --- a/Compute/src/V1/ForwardingRuleAggregatedList.php +++ b/Compute/src/V1/ForwardingRuleAggregatedList.php @@ -73,7 +73,7 @@ class ForwardingRuleAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/ForwardingRuleList.php b/Compute/src/V1/ForwardingRuleList.php index b0c5d313a340..9ee0d4eb37b1 100644 --- a/Compute/src/V1/ForwardingRuleList.php +++ b/Compute/src/V1/ForwardingRuleList.php @@ -60,7 +60,7 @@ class ForwardingRuleList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\ForwardingRule[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\ForwardingRule>|\Google\Protobuf\Internal\RepeatedField $items * A list of ForwardingRule resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of ForwardingRule resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.ForwardingRule items = 100526016; - * @param \Google\Cloud\Compute\V1\ForwardingRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ForwardingRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/ForwardingRulesScopedList.php b/Compute/src/V1/ForwardingRulesScopedList.php index db6ad10585ce..a3c9e69e5eaf 100644 --- a/Compute/src/V1/ForwardingRulesScopedList.php +++ b/Compute/src/V1/ForwardingRulesScopedList.php @@ -33,7 +33,7 @@ class ForwardingRulesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\ForwardingRule[]|\Google\Protobuf\Internal\RepeatedField $forwarding_rules + * @type array<\Google\Cloud\Compute\V1\ForwardingRule>|\Google\Protobuf\Internal\RepeatedField $forwarding_rules * A list of forwarding rules contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of forwarding rules when the list is empty. @@ -59,7 +59,7 @@ public function getForwardingRules() * A list of forwarding rules contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.ForwardingRule forwarding_rules = 315821365; - * @param \Google\Cloud\Compute\V1\ForwardingRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ForwardingRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setForwardingRules($var) diff --git a/Compute/src/V1/Gapic/AcceleratorTypesGapicClient.php b/Compute/src/V1/Gapic/AcceleratorTypesGapicClient.php index 84b6d6a460f1..67c61f083c9b 100644 --- a/Compute/src/V1/Gapic/AcceleratorTypesGapicClient.php +++ b/Compute/src/V1/Gapic/AcceleratorTypesGapicClient.php @@ -247,10 +247,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -315,10 +314,9 @@ public function aggregatedList($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\AcceleratorType @@ -386,10 +384,9 @@ public function get($acceleratorType, $project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/AddressesGapicClient.php b/Compute/src/V1/Gapic/AddressesGapicClient.php index d7f67cc8e0a4..4fbf052e6ecd 100644 --- a/Compute/src/V1/Gapic/AddressesGapicClient.php +++ b/Compute/src/V1/Gapic/AddressesGapicClient.php @@ -302,10 +302,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -395,10 +394,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -447,10 +445,9 @@ public function delete($address, $project, $region, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Address @@ -520,10 +517,9 @@ public function get($address, $project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -594,10 +590,9 @@ public function insert($addressResource, $project, $region, array $optionalArgs * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/AutoscalersGapicClient.php b/Compute/src/V1/Gapic/AutoscalersGapicClient.php index ae39c3a90240..72d76d81ca4f 100644 --- a/Compute/src/V1/Gapic/AutoscalersGapicClient.php +++ b/Compute/src/V1/Gapic/AutoscalersGapicClient.php @@ -304,10 +304,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -397,10 +396,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -449,10 +447,9 @@ public function delete($autoscaler, $project, $zone, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Autoscaler @@ -522,10 +519,9 @@ public function get($autoscaler, $project, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -596,10 +592,9 @@ public function insert($autoscalerResource, $project, $zone, array $optionalArgs * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -689,10 +684,9 @@ public function list($project, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -771,10 +765,9 @@ public function patch($autoscalerResource, $project, $zone, array $optionalArgs * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/BackendBucketsGapicClient.php b/Compute/src/V1/Gapic/BackendBucketsGapicClient.php index 1274070c89b2..9e00d190f164 100644 --- a/Compute/src/V1/Gapic/BackendBucketsGapicClient.php +++ b/Compute/src/V1/Gapic/BackendBucketsGapicClient.php @@ -321,10 +321,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -395,10 +394,9 @@ public function addSignedUrlKey($backendBucket, $project, $signedUrlKeyResource, * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -470,10 +468,9 @@ public function delete($backendBucket, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -519,10 +516,9 @@ public function deleteSignedUrlKey($backendBucket, $keyName, $project, array $op * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\BackendBucket @@ -588,10 +584,9 @@ public function get($backendBucket, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -658,10 +653,9 @@ public function insert($backendBucketResource, $project, array $optionalArgs = [ * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -747,10 +741,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -823,10 +816,9 @@ public function patch($backendBucket, $backendBucketResource, $project, array $o * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -899,10 +891,9 @@ public function setEdgeSecurityPolicy($backendBucket, $project, $securityPolicyR * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/BackendServicesGapicClient.php b/Compute/src/V1/Gapic/BackendServicesGapicClient.php index 9f8cd0fd2a3f..2128b522c86a 100644 --- a/Compute/src/V1/Gapic/BackendServicesGapicClient.php +++ b/Compute/src/V1/Gapic/BackendServicesGapicClient.php @@ -327,10 +327,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -401,10 +400,9 @@ public function addSignedUrlKey($backendService, $project, $signedUrlKeyResource * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -492,10 +490,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -567,10 +564,9 @@ public function delete($backendService, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -616,10 +612,9 @@ public function deleteSignedUrlKey($backendService, $keyName, $project, array $o * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\BackendService @@ -662,10 +657,9 @@ public function get($backendService, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\BackendServiceGroupHealth @@ -732,10 +726,9 @@ public function getHealth($backendService, $project, $resourceGroupReferenceReso * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -802,10 +795,9 @@ public function insert($backendServiceResource, $project, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -891,10 +883,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -967,10 +958,9 @@ public function patch($backendService, $backendServiceResource, $project, array * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1043,10 +1033,9 @@ public function setEdgeSecurityPolicy($backendService, $project, $securityPolicy * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1119,10 +1108,9 @@ public function setSecurityPolicy($backendService, $project, $securityPolicyRefe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/DiskTypesGapicClient.php b/Compute/src/V1/Gapic/DiskTypesGapicClient.php index c3f6e51d5c00..040c15615bf0 100644 --- a/Compute/src/V1/Gapic/DiskTypesGapicClient.php +++ b/Compute/src/V1/Gapic/DiskTypesGapicClient.php @@ -244,10 +244,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -312,10 +311,9 @@ public function aggregatedList($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\DiskType @@ -383,10 +381,9 @@ public function get($diskType, $project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/DisksGapicClient.php b/Compute/src/V1/Gapic/DisksGapicClient.php index f0bf284e6ac0..a41a633d9ec2 100644 --- a/Compute/src/V1/Gapic/DisksGapicClient.php +++ b/Compute/src/V1/Gapic/DisksGapicClient.php @@ -337,10 +337,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -413,10 +412,9 @@ public function addResourcePolicies($disk, $disksAddResourcePoliciesRequestResou * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -510,10 +508,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -592,10 +589,9 @@ public function createSnapshot($disk, $project, $snapshotResource, $zone, array * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -644,10 +640,9 @@ public function delete($disk, $project, $zone, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Disk @@ -694,10 +689,9 @@ public function get($disk, $project, $zone, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -773,10 +767,9 @@ public function getIamPolicy($project, $resource, $zone, array $optionalArgs = [ * @type string $sourceImage * Source image to restore onto a disk. This field is optional. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -851,10 +844,9 @@ public function insert($diskResource, $project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -944,10 +936,9 @@ public function list($project, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1024,10 +1015,9 @@ public function removeResourcePolicies($disk, $disksRemoveResourcePoliciesReques * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1079,10 +1069,9 @@ public function resize($disk, $disksResizeRequestResource, $project, $zone, arra * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -1155,10 +1144,9 @@ public function setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestRe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1210,10 +1198,9 @@ public function setLabels($project, $resource, $zone, $zoneSetLabelsRequestResou * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/ExternalVpnGatewaysGapicClient.php b/Compute/src/V1/Gapic/ExternalVpnGatewaysGapicClient.php index c48db6c4e334..39068fff2b42 100644 --- a/Compute/src/V1/Gapic/ExternalVpnGatewaysGapicClient.php +++ b/Compute/src/V1/Gapic/ExternalVpnGatewaysGapicClient.php @@ -316,10 +316,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -364,10 +363,9 @@ public function delete($externalVpnGateway, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\ExternalVpnGateway @@ -433,10 +431,9 @@ public function get($externalVpnGateway, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -503,10 +500,9 @@ public function insert($externalVpnGatewayResource, $project, array $optionalArg * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -590,10 +586,9 @@ public function list($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -637,10 +632,9 @@ public function setLabels($globalSetLabelsRequestResource, $project, $resource, * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/FirewallPoliciesGapicClient.php b/Compute/src/V1/Gapic/FirewallPoliciesGapicClient.php index bf536511feb9..f614bc0ad8fe 100644 --- a/Compute/src/V1/Gapic/FirewallPoliciesGapicClient.php +++ b/Compute/src/V1/Gapic/FirewallPoliciesGapicClient.php @@ -333,10 +333,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -409,10 +408,9 @@ public function addAssociation($firewallPolicy, $firewallPolicyAssociationResour * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -481,10 +479,9 @@ public function addRule($firewallPolicy, $firewallPolicyRuleResource, array $opt * @type string $sourceFirewallPolicy * The firewall policy from which to copy rules. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -554,10 +551,9 @@ public function cloneRules($firewallPolicy, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -598,10 +594,9 @@ public function delete($firewallPolicy, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\FirewallPolicy @@ -640,10 +635,9 @@ public function get($firewallPolicy, array $optionalArgs = []) * @type string $name * The name of the association to get from the firewall policy. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\FirewallPolicyAssociation @@ -686,10 +680,9 @@ public function getAssociation($firewallPolicy, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -732,10 +725,9 @@ public function getIamPolicy($resource, array $optionalArgs = []) * @type int $priority * The priority of the rule to get from the firewall policy. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\FirewallPolicyRule @@ -803,10 +795,9 @@ public function getRule($firewallPolicy, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -869,10 +860,9 @@ public function insert($firewallPolicyResource, $parentId, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -928,10 +918,9 @@ public function list(array $optionalArgs = []) * @type string $targetResource * The target resource to list associations. It is an organization, or a folder. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\FirewallPoliciesListAssociationsResponse @@ -994,10 +983,9 @@ public function listAssociations(array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1066,10 +1054,9 @@ public function move($firewallPolicy, $parentId, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1140,10 +1127,9 @@ public function patch($firewallPolicy, $firewallPolicyResource, array $optionalA * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1216,10 +1202,9 @@ public function patchRule($firewallPolicy, $firewallPolicyRuleResource, array $o * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1291,10 +1276,9 @@ public function removeAssociation($firewallPolicy, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1341,10 +1325,9 @@ public function removeRule($firewallPolicy, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -1384,10 +1367,9 @@ public function setIamPolicy($globalOrganizationSetPolicyRequestResource, $resou * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/FirewallsGapicClient.php b/Compute/src/V1/Gapic/FirewallsGapicClient.php index e8610359d44e..9596dc4ea259 100644 --- a/Compute/src/V1/Gapic/FirewallsGapicClient.php +++ b/Compute/src/V1/Gapic/FirewallsGapicClient.php @@ -313,10 +313,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -361,10 +360,9 @@ public function delete($firewall, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Firewall @@ -430,10 +428,9 @@ public function get($firewall, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -500,10 +497,9 @@ public function insert($firewallResource, $project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -589,10 +585,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -665,10 +660,9 @@ public function patch($firewall, $firewallResource, $project, array $optionalArg * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/ForwardingRulesGapicClient.php b/Compute/src/V1/Gapic/ForwardingRulesGapicClient.php index 98b62ac93c23..be499f71331e 100644 --- a/Compute/src/V1/Gapic/ForwardingRulesGapicClient.php +++ b/Compute/src/V1/Gapic/ForwardingRulesGapicClient.php @@ -307,10 +307,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -400,10 +399,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -452,10 +450,9 @@ public function delete($forwardingRule, $project, $region, array $optionalArgs = * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\ForwardingRule @@ -525,10 +522,9 @@ public function get($forwardingRule, $project, $region, array $optionalArgs = [] * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -599,10 +595,9 @@ public function insert($forwardingRuleResource, $project, $region, array $option * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -692,10 +687,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -772,10 +766,9 @@ public function patch($forwardingRule, $forwardingRuleResource, $project, $regio * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -852,10 +845,9 @@ public function setLabels($project, $region, $regionSetLabelsRequestResource, $r * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/GlobalAddressesGapicClient.php b/Compute/src/V1/Gapic/GlobalAddressesGapicClient.php index 8ba524623b96..635d96299991 100644 --- a/Compute/src/V1/Gapic/GlobalAddressesGapicClient.php +++ b/Compute/src/V1/Gapic/GlobalAddressesGapicClient.php @@ -311,10 +311,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -359,10 +358,9 @@ public function delete($address, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Address @@ -428,10 +426,9 @@ public function get($address, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -498,10 +495,9 @@ public function insert($addressResource, $project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/GlobalForwardingRulesGapicClient.php b/Compute/src/V1/Gapic/GlobalForwardingRulesGapicClient.php index 106587e07f45..5105cb39c27e 100644 --- a/Compute/src/V1/Gapic/GlobalForwardingRulesGapicClient.php +++ b/Compute/src/V1/Gapic/GlobalForwardingRulesGapicClient.php @@ -316,10 +316,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -364,10 +363,9 @@ public function delete($forwardingRule, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\ForwardingRule @@ -433,10 +431,9 @@ public function get($forwardingRule, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -503,10 +500,9 @@ public function insert($forwardingRuleResource, $project, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -592,10 +588,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -666,10 +661,9 @@ public function patch($forwardingRule, $forwardingRuleResource, $project, array * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -738,10 +732,9 @@ public function setLabels($globalSetLabelsRequestResource, $project, $resource, * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/GlobalNetworkEndpointGroupsGapicClient.php b/Compute/src/V1/Gapic/GlobalNetworkEndpointGroupsGapicClient.php index 377dfe2254c0..4e5d2a912b02 100644 --- a/Compute/src/V1/Gapic/GlobalNetworkEndpointGroupsGapicClient.php +++ b/Compute/src/V1/Gapic/GlobalNetworkEndpointGroupsGapicClient.php @@ -320,10 +320,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -394,10 +393,9 @@ public function attachNetworkEndpoints($globalNetworkEndpointGroupsAttachEndpoin * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -469,10 +467,9 @@ public function delete($networkEndpointGroup, $project, array $optionalArgs = [] * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -518,10 +515,9 @@ public function detachNetworkEndpoints($globalNetworkEndpointGroupsDetachEndpoin * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\NetworkEndpointGroup @@ -587,10 +583,9 @@ public function get($networkEndpointGroup, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -657,10 +652,9 @@ public function insert($networkEndpointGroupResource, $project, array $optionalA * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -744,10 +738,9 @@ public function list($project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/GlobalOperationsGapicClient.php b/Compute/src/V1/Gapic/GlobalOperationsGapicClient.php index 2e86f0251307..bf57f78b8fb1 100644 --- a/Compute/src/V1/Gapic/GlobalOperationsGapicClient.php +++ b/Compute/src/V1/Gapic/GlobalOperationsGapicClient.php @@ -246,10 +246,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -312,10 +311,9 @@ public function aggregatedList($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\DeleteGlobalOperationResponse @@ -356,10 +354,9 @@ public function delete($operation, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Operation @@ -423,10 +420,9 @@ public function get($operation, $project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -485,10 +481,9 @@ public function list($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Operation diff --git a/Compute/src/V1/Gapic/GlobalOrganizationOperationsGapicClient.php b/Compute/src/V1/Gapic/GlobalOrganizationOperationsGapicClient.php index d2150baf1758..c77a2698e01b 100644 --- a/Compute/src/V1/Gapic/GlobalOrganizationOperationsGapicClient.php +++ b/Compute/src/V1/Gapic/GlobalOrganizationOperationsGapicClient.php @@ -206,10 +206,9 @@ public function __construct(array $options = []) * @type string $parentId * Parent ID for this request. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\DeleteGlobalOrganizationOperationResponse @@ -252,10 +251,9 @@ public function delete($operation, array $optionalArgs = []) * @type string $parentId * Parent ID for this request. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Operation @@ -321,10 +319,9 @@ public function get($operation, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/GlobalPublicDelegatedPrefixesGapicClient.php b/Compute/src/V1/Gapic/GlobalPublicDelegatedPrefixesGapicClient.php index ecdcbf7f3c5d..c05bdde579aa 100644 --- a/Compute/src/V1/Gapic/GlobalPublicDelegatedPrefixesGapicClient.php +++ b/Compute/src/V1/Gapic/GlobalPublicDelegatedPrefixesGapicClient.php @@ -312,10 +312,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -360,10 +359,9 @@ public function delete($project, $publicDelegatedPrefix, array $optionalArgs = [ * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\PublicDelegatedPrefix @@ -429,10 +427,9 @@ public function get($project, $publicDelegatedPrefix, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -499,10 +496,9 @@ public function insert($project, $publicDelegatedPrefixResource, array $optional * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -588,10 +584,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/HealthChecksGapicClient.php b/Compute/src/V1/Gapic/HealthChecksGapicClient.php index 760e8760d19b..dec7ed2375ba 100644 --- a/Compute/src/V1/Gapic/HealthChecksGapicClient.php +++ b/Compute/src/V1/Gapic/HealthChecksGapicClient.php @@ -303,10 +303,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -394,10 +393,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -442,10 +440,9 @@ public function delete($healthCheck, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\HealthCheck @@ -511,10 +508,9 @@ public function get($healthCheck, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -581,10 +577,9 @@ public function insert($healthCheckResource, $project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -670,10 +665,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -746,10 +740,9 @@ public function patch($healthCheck, $healthCheckResource, $project, array $optio * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/ImageFamilyViewsGapicClient.php b/Compute/src/V1/Gapic/ImageFamilyViewsGapicClient.php index d49e9cfab929..49f7d580f1aa 100644 --- a/Compute/src/V1/Gapic/ImageFamilyViewsGapicClient.php +++ b/Compute/src/V1/Gapic/ImageFamilyViewsGapicClient.php @@ -207,10 +207,9 @@ public function __construct(array $options = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\ImageFamilyView diff --git a/Compute/src/V1/Gapic/ImagesGapicClient.php b/Compute/src/V1/Gapic/ImagesGapicClient.php index 579cf899360d..470cd755abf0 100644 --- a/Compute/src/V1/Gapic/ImagesGapicClient.php +++ b/Compute/src/V1/Gapic/ImagesGapicClient.php @@ -324,10 +324,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -399,10 +398,9 @@ public function delete($image, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -448,10 +446,9 @@ public function deprecate($deprecationStatusResource, $image, $project, array $o * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Image @@ -492,10 +489,9 @@ public function get($image, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Image @@ -538,10 +534,9 @@ public function getFromFamily($family, $project, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -613,10 +608,9 @@ public function getIamPolicy($project, $resource, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -687,10 +681,9 @@ public function insert($imageResource, $project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -776,10 +769,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -827,10 +819,9 @@ public function patch($image, $imageResource, $project, array $optionalArgs = [] * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -897,10 +888,9 @@ public function setIamPolicy($globalSetPolicyRequestResource, $project, $resourc * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -944,10 +934,9 @@ public function setLabels($globalSetLabelsRequestResource, $project, $resource, * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/InstanceGroupManagersGapicClient.php b/Compute/src/V1/Gapic/InstanceGroupManagersGapicClient.php index cd858d2508d0..8e364e6c3aee 100644 --- a/Compute/src/V1/Gapic/InstanceGroupManagersGapicClient.php +++ b/Compute/src/V1/Gapic/InstanceGroupManagersGapicClient.php @@ -348,10 +348,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -424,10 +423,9 @@ public function abandonInstances($instanceGroupManager, $instanceGroupManagersAb * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -517,10 +515,9 @@ public function aggregatedList($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -593,10 +590,9 @@ public function applyUpdatesToInstances($instanceGroupManager, $instanceGroupMan * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -671,10 +667,9 @@ public function createInstances($instanceGroupManager, $instanceGroupManagersCre * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -750,10 +745,9 @@ public function delete($instanceGroupManager, $project, $zone, array $optionalAr * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -828,10 +822,9 @@ public function deleteInstances($instanceGroupManager, $instanceGroupManagersDel * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -877,10 +870,9 @@ public function deletePerInstanceConfigs($instanceGroupManager, $instanceGroupMa * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\InstanceGroupManager @@ -950,10 +942,9 @@ public function get($instanceGroupManager, $project, $zone, array $optionalArgs * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1024,10 +1015,9 @@ public function insert($instanceGroupManagerResource, $project, $zone, array $op * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1115,10 +1105,9 @@ public function list($project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1161,7 +1150,7 @@ public function listErrors($instanceGroupManager, $project, $zone, array $option } /** - * Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. + * Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. * * Sample code: * ``` @@ -1208,10 +1197,9 @@ public function listErrors($instanceGroupManager, $project, $zone, array $option * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1301,10 +1289,9 @@ public function listManagedInstances($instanceGroupManager, $project, $zone, arr * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1396,10 +1383,9 @@ public function listPerInstanceConfigs($instanceGroupManager, $project, $zone, a * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1476,10 +1462,9 @@ public function patch($instanceGroupManager, $instanceGroupManagerResource, $pro * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1556,10 +1541,9 @@ public function patchPerInstanceConfigs($instanceGroupManager, $instanceGroupMan * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1636,10 +1620,9 @@ public function recreateInstances($instanceGroupManager, $instanceGroupManagersR * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1716,10 +1699,9 @@ public function resize($instanceGroupManager, $project, $size, $zone, array $opt * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1796,10 +1778,9 @@ public function setInstanceTemplate($instanceGroupManager, $instanceGroupManager * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1876,10 +1857,9 @@ public function setTargetPools($instanceGroupManager, $instanceGroupManagersSetT * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/InstanceGroupsGapicClient.php b/Compute/src/V1/Gapic/InstanceGroupsGapicClient.php index fe3154352397..003cd7847023 100644 --- a/Compute/src/V1/Gapic/InstanceGroupsGapicClient.php +++ b/Compute/src/V1/Gapic/InstanceGroupsGapicClient.php @@ -329,10 +329,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -405,10 +404,9 @@ public function addInstances($instanceGroup, $instanceGroupsAddInstancesRequestR * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -498,10 +496,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -550,10 +547,9 @@ public function delete($instanceGroup, $project, $zone, array $optionalArgs = [] * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\InstanceGroup @@ -623,10 +619,9 @@ public function get($instanceGroup, $project, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -697,10 +692,9 @@ public function insert($instanceGroupResource, $project, $zone, array $optionalA * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -790,10 +784,9 @@ public function list($project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -886,10 +879,9 @@ public function listInstances($instanceGroup, $instanceGroupsListInstancesReques * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -966,10 +958,9 @@ public function removeInstances($instanceGroup, $instanceGroupsRemoveInstancesRe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/InstanceTemplatesGapicClient.php b/Compute/src/V1/Gapic/InstanceTemplatesGapicClient.php index b00fff15d2d1..c0dadb673a1e 100644 --- a/Compute/src/V1/Gapic/InstanceTemplatesGapicClient.php +++ b/Compute/src/V1/Gapic/InstanceTemplatesGapicClient.php @@ -318,10 +318,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -366,10 +365,9 @@ public function delete($instanceTemplate, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\InstanceTemplate @@ -412,10 +410,9 @@ public function get($instanceTemplate, $project, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -485,10 +482,9 @@ public function getIamPolicy($project, $resource, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -555,10 +551,9 @@ public function insert($instanceTemplateResource, $project, array $optionalArgs * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -619,10 +614,9 @@ public function list($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -666,10 +660,9 @@ public function setIamPolicy($globalSetPolicyRequestResource, $project, $resourc * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/InstancesGapicClient.php b/Compute/src/V1/Gapic/InstancesGapicClient.php index ce13c45d5e95..4ee9a28a5029 100644 --- a/Compute/src/V1/Gapic/InstancesGapicClient.php +++ b/Compute/src/V1/Gapic/InstancesGapicClient.php @@ -392,10 +392,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -473,10 +472,9 @@ public function addAccessConfig($accessConfigResource, $instance, $networkInterf * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -549,10 +547,9 @@ public function addResourcePolicies($instance, $instancesAddResourcePoliciesRequ * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -646,10 +643,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -681,7 +677,7 @@ public function attachDisk($attachedDiskResource, $instance, $project, $zone, ar } /** - * Creates multiple instances. Count specifies the number of instances to create. + * Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs. * * Sample code: * ``` @@ -728,10 +724,9 @@ public function attachDisk($attachedDiskResource, $instance, $project, $zone, ar * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -804,10 +799,9 @@ public function bulkInsert($bulkInsertInstanceResourceResource, $project, $zone, * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -885,10 +879,9 @@ public function delete($instance, $project, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -966,10 +959,9 @@ public function deleteAccessConfig($accessConfig, $instance, $networkInterface, * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1019,10 +1011,9 @@ public function detachDisk($deviceName, $instance, $project, $zone, array $optio * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Instance @@ -1069,10 +1060,9 @@ public function get($instance, $project, $zone, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\InstancesGetEffectiveFirewallsResponse @@ -1122,10 +1112,9 @@ public function getEffectiveFirewalls($instance, $networkInterface, $project, $z * @type string $variableKey * Specifies the key for the guest attributes entry. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\GuestAttributes @@ -1180,10 +1169,9 @@ public function getGuestAttributes($instance, $project, $zone, array $optionalAr * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -1232,10 +1220,9 @@ public function getIamPolicy($project, $resource, $zone, array $optionalArgs = [ * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Screenshot @@ -1284,10 +1271,9 @@ public function getScreenshot($instance, $project, $zone, array $optionalArgs = * @type int $start * Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\SerialPortOutput @@ -1340,10 +1326,9 @@ public function getSerialPortOutput($instance, $project, $zone, array $optionalA * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\ShieldedInstanceIdentity @@ -1417,10 +1402,9 @@ public function getShieldedInstanceIdentity($instance, $project, $zone, array $o * @type string $sourceMachineImage * Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1499,10 +1483,9 @@ public function insert($instanceResource, $project, $zone, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1590,10 +1573,9 @@ public function list($project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1685,10 +1667,9 @@ public function listReferrers($instance, $project, $zone, array $optionalArgs = * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1763,10 +1744,9 @@ public function removeResourcePolicies($instance, $instancesRemoveResourcePolici * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1840,10 +1820,9 @@ public function reset($instance, $project, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1892,10 +1871,9 @@ public function resume($instance, $project, $zone, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\SendDiagnosticInterruptInstanceResponse @@ -1967,10 +1945,9 @@ public function sendDiagnosticInterrupt($instance, $project, $zone, array $optio * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2052,10 +2029,9 @@ public function setDeletionProtection($project, $resource, $zone, array $optiona * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2108,10 +2084,9 @@ public function setDiskAutoDelete($autoDelete, $deviceName, $instance, $project, * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -2184,10 +2159,9 @@ public function setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestRe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2264,10 +2238,9 @@ public function setLabels($instance, $instancesSetLabelsRequestResource, $projec * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2344,10 +2317,9 @@ public function setMachineResources($instance, $instancesSetMachineResourcesRequ * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2424,10 +2396,9 @@ public function setMachineType($instance, $instancesSetMachineTypeRequestResourc * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2504,10 +2475,9 @@ public function setMetadata($instance, $metadataResource, $project, $zone, array * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2584,10 +2554,9 @@ public function setMinCpuPlatform($instance, $instancesSetMinCpuPlatformRequestR * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2664,10 +2633,9 @@ public function setScheduling($instance, $project, $schedulingResource, $zone, a * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2744,10 +2712,9 @@ public function setServiceAccount($instance, $instancesSetServiceAccountRequestR * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2824,10 +2791,9 @@ public function setShieldedInstanceIntegrityPolicy($instance, $project, $shielde * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2900,10 +2866,9 @@ public function setTags($instance, $project, $tagsResource, $zone, array $option * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2973,10 +2938,9 @@ public function simulateMaintenanceEvent($instance, $project, $zone, array $opti * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -3052,10 +3016,9 @@ public function start($instance, $project, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -3130,10 +3093,9 @@ public function startWithEncryptionKey($instance, $instancesStartWithEncryptionK * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -3207,10 +3169,9 @@ public function stop($instance, $project, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -3261,10 +3222,9 @@ public function suspend($instance, $project, $zone, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse @@ -3343,10 +3303,9 @@ public function testIamPermissions($project, $resource, $testPermissionsRequestR * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -3433,10 +3392,9 @@ public function update($instance, $instanceResource, $project, $zone, array $opt * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -3514,10 +3472,9 @@ public function updateAccessConfig($accessConfigResource, $instance, $networkInt * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -3596,10 +3553,9 @@ public function updateDisplayDevice($displayDeviceResource, $instance, $project, * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -3677,10 +3633,9 @@ public function updateNetworkInterface($instance, $networkInterface, $networkInt * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/InterconnectAttachmentsGapicClient.php b/Compute/src/V1/Gapic/InterconnectAttachmentsGapicClient.php index 855b9b48b3e2..8b33393dc596 100644 --- a/Compute/src/V1/Gapic/InterconnectAttachmentsGapicClient.php +++ b/Compute/src/V1/Gapic/InterconnectAttachmentsGapicClient.php @@ -303,10 +303,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -396,10 +395,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -448,10 +446,9 @@ public function delete($interconnectAttachment, $project, $region, array $option * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\InterconnectAttachment @@ -523,10 +520,9 @@ public function get($interconnectAttachment, $project, $region, array $optionalA * @type bool $validateOnly * If true, the request will not be committed. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -601,10 +597,9 @@ public function insert($interconnectAttachmentResource, $project, $region, array * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -694,10 +689,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/InterconnectLocationsGapicClient.php b/Compute/src/V1/Gapic/InterconnectLocationsGapicClient.php index 5d8a94ee54e2..022d4fe358f7 100644 --- a/Compute/src/V1/Gapic/InterconnectLocationsGapicClient.php +++ b/Compute/src/V1/Gapic/InterconnectLocationsGapicClient.php @@ -206,10 +206,9 @@ public function __construct(array $options = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\InterconnectLocation @@ -273,10 +272,9 @@ public function get($interconnectLocation, $project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/InterconnectsGapicClient.php b/Compute/src/V1/Gapic/InterconnectsGapicClient.php index b89b68fab11f..e9b69157d381 100644 --- a/Compute/src/V1/Gapic/InterconnectsGapicClient.php +++ b/Compute/src/V1/Gapic/InterconnectsGapicClient.php @@ -314,10 +314,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -362,10 +361,9 @@ public function delete($interconnect, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Interconnect @@ -406,10 +404,9 @@ public function get($interconnect, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\InterconnectsGetDiagnosticsResponse @@ -475,10 +472,9 @@ public function getDiagnostics($interconnect, $project, array $optionalArgs = [] * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -545,10 +541,9 @@ public function insert($interconnectResource, $project, array $optionalArgs = [] * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -634,10 +629,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/LicenseCodesGapicClient.php b/Compute/src/V1/Gapic/LicenseCodesGapicClient.php index 7416ab4f933e..28fc357e7efc 100644 --- a/Compute/src/V1/Gapic/LicenseCodesGapicClient.php +++ b/Compute/src/V1/Gapic/LicenseCodesGapicClient.php @@ -207,10 +207,9 @@ public function __construct(array $options = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\LicenseCode @@ -253,10 +252,9 @@ public function get($licenseCode, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/LicensesGapicClient.php b/Compute/src/V1/Gapic/LicensesGapicClient.php index da2d0d062d33..6cfe20456891 100644 --- a/Compute/src/V1/Gapic/LicensesGapicClient.php +++ b/Compute/src/V1/Gapic/LicensesGapicClient.php @@ -318,10 +318,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -366,10 +365,9 @@ public function delete($license, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\License @@ -412,10 +410,9 @@ public function get($license, $project, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -485,10 +482,9 @@ public function getIamPolicy($project, $resource, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -555,10 +551,9 @@ public function insert($licenseResource, $project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -619,10 +614,9 @@ public function list($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -666,10 +660,9 @@ public function setIamPolicy($globalSetPolicyRequestResource, $project, $resourc * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/MachineImagesGapicClient.php b/Compute/src/V1/Gapic/MachineImagesGapicClient.php index 9b490ddeef25..ae34d99f081b 100644 --- a/Compute/src/V1/Gapic/MachineImagesGapicClient.php +++ b/Compute/src/V1/Gapic/MachineImagesGapicClient.php @@ -318,10 +318,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -366,10 +365,9 @@ public function delete($machineImage, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\MachineImage @@ -412,10 +410,9 @@ public function get($machineImage, $project, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -487,10 +484,9 @@ public function getIamPolicy($project, $resource, array $optionalArgs = []) * @type string $sourceInstance * Required. Source instance that is used to create the machine image from. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -561,10 +557,9 @@ public function insert($machineImageResource, $project, array $optionalArgs = [] * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -625,10 +620,9 @@ public function list($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -672,10 +666,9 @@ public function setIamPolicy($globalSetPolicyRequestResource, $project, $resourc * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/MachineTypesGapicClient.php b/Compute/src/V1/Gapic/MachineTypesGapicClient.php index af8daa20e245..e4270cfd0511 100644 --- a/Compute/src/V1/Gapic/MachineTypesGapicClient.php +++ b/Compute/src/V1/Gapic/MachineTypesGapicClient.php @@ -244,10 +244,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -312,10 +311,9 @@ public function aggregatedList($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\MachineType @@ -383,10 +381,9 @@ public function get($machineType, $project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/NetworkEdgeSecurityServicesGapicClient.php b/Compute/src/V1/Gapic/NetworkEdgeSecurityServicesGapicClient.php index ece26f33ddde..b6a5c8498939 100644 --- a/Compute/src/V1/Gapic/NetworkEdgeSecurityServicesGapicClient.php +++ b/Compute/src/V1/Gapic/NetworkEdgeSecurityServicesGapicClient.php @@ -301,10 +301,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -394,10 +393,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -446,10 +444,9 @@ public function delete($networkEdgeSecurityService, $project, $region, array $op * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\NetworkEdgeSecurityService @@ -521,10 +518,9 @@ public function get($networkEdgeSecurityService, $project, $region, array $optio * @type bool $validateOnly * If true, the request will not be committed. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -606,10 +602,9 @@ public function insert($networkEdgeSecurityServiceResource, $project, $region, a * @type string $updateMask * Indicates fields to be updated as part of this request. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/NetworkEndpointGroupsGapicClient.php b/Compute/src/V1/Gapic/NetworkEndpointGroupsGapicClient.php index 5064db90cd8c..c596a1c314df 100644 --- a/Compute/src/V1/Gapic/NetworkEndpointGroupsGapicClient.php +++ b/Compute/src/V1/Gapic/NetworkEndpointGroupsGapicClient.php @@ -312,10 +312,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -407,10 +406,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -485,10 +483,9 @@ public function attachNetworkEndpoints($networkEndpointGroup, $networkEndpointGr * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -564,10 +561,9 @@ public function delete($networkEndpointGroup, $project, $zone, array $optionalAr * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -617,10 +613,9 @@ public function detachNetworkEndpoints($networkEndpointGroup, $networkEndpointGr * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\NetworkEndpointGroup @@ -690,10 +685,9 @@ public function get($networkEndpointGroup, $project, $zone, array $optionalArgs * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -764,10 +758,9 @@ public function insert($networkEndpointGroupResource, $project, $zone, array $op * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -857,10 +850,9 @@ public function list($project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -928,10 +920,9 @@ public function listNetworkEndpoints($networkEndpointGroup, $networkEndpointGrou * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/NetworkFirewallPoliciesGapicClient.php b/Compute/src/V1/Gapic/NetworkFirewallPoliciesGapicClient.php index cb041877e374..a23923d567a7 100644 --- a/Compute/src/V1/Gapic/NetworkFirewallPoliciesGapicClient.php +++ b/Compute/src/V1/Gapic/NetworkFirewallPoliciesGapicClient.php @@ -334,10 +334,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -418,10 +417,9 @@ public function addAssociation($firewallPolicy, $firewallPolicyAssociationResour * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -502,10 +500,9 @@ public function addRule($firewallPolicy, $firewallPolicyRuleResource, $project, * @type string $sourceFirewallPolicy * The firewall policy from which to copy rules. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -579,10 +576,9 @@ public function cloneRules($firewallPolicy, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -627,10 +623,9 @@ public function delete($firewallPolicy, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\FirewallPolicy @@ -673,10 +668,9 @@ public function get($firewallPolicy, $project, array $optionalArgs = []) * @type string $name * The name of the association to get from the firewall policy. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\FirewallPolicyAssociation @@ -723,10 +717,9 @@ public function getAssociation($firewallPolicy, $project, array $optionalArgs = * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -773,10 +766,9 @@ public function getIamPolicy($project, $resource, array $optionalArgs = []) * @type int $priority * The priority of the rule to get from the firewall policy. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\FirewallPolicyRule @@ -846,10 +838,9 @@ public function getRule($firewallPolicy, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -916,10 +907,9 @@ public function insert($firewallPolicyResource, $project, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1005,10 +995,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1083,10 +1072,9 @@ public function patch($firewallPolicy, $firewallPolicyResource, $project, array * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1163,10 +1151,9 @@ public function patchRule($firewallPolicy, $firewallPolicyRuleResource, $project * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1242,10 +1229,9 @@ public function removeAssociation($firewallPolicy, $project, array $optionalArgs * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1296,10 +1282,9 @@ public function removeRule($firewallPolicy, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -1343,10 +1328,9 @@ public function setIamPolicy($globalSetPolicyRequestResource, $project, $resourc * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/NetworksGapicClient.php b/Compute/src/V1/Gapic/NetworksGapicClient.php index 993b80950d4a..0f8f89bfbaa7 100644 --- a/Compute/src/V1/Gapic/NetworksGapicClient.php +++ b/Compute/src/V1/Gapic/NetworksGapicClient.php @@ -326,10 +326,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -400,10 +399,9 @@ public function addPeering($network, $networksAddPeeringRequestResource, $projec * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -448,10 +446,9 @@ public function delete($network, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Network @@ -492,10 +489,9 @@ public function get($network, $project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\NetworksGetEffectiveFirewallsResponse @@ -561,10 +557,9 @@ public function getEffectiveFirewalls($network, $project, array $optionalArgs = * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -631,10 +626,9 @@ public function insert($networkResource, $project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -725,10 +719,9 @@ public function list($project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -828,10 +821,9 @@ public function listPeeringRoutes($network, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -904,10 +896,9 @@ public function patch($network, $networkResource, $project, array $optionalArgs * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -978,10 +969,9 @@ public function removePeering($network, $networksRemovePeeringRequestResource, $ * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1053,10 +1043,9 @@ public function switchToCustomMode($network, $project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/NodeGroupsGapicClient.php b/Compute/src/V1/Gapic/NodeGroupsGapicClient.php index 5052e65d18ed..067743599386 100644 --- a/Compute/src/V1/Gapic/NodeGroupsGapicClient.php +++ b/Compute/src/V1/Gapic/NodeGroupsGapicClient.php @@ -336,10 +336,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -412,10 +411,9 @@ public function addNodes($nodeGroup, $nodeGroupsAddNodesRequestResource, $projec * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -505,10 +503,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -584,10 +581,9 @@ public function delete($nodeGroup, $project, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -637,10 +633,9 @@ public function deleteNodes($nodeGroup, $nodeGroupsDeleteNodesRequestResource, $ * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\NodeGroup @@ -687,10 +682,9 @@ public function get($nodeGroup, $project, $zone, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -766,10 +760,9 @@ public function getIamPolicy($project, $resource, $zone, array $optionalArgs = [ * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -841,10 +834,9 @@ public function insert($initialNodeCount, $nodeGroupResource, $project, $zone, a * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -932,10 +924,9 @@ public function list($project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1027,10 +1018,9 @@ public function listNodes($nodeGroup, $project, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1082,10 +1072,9 @@ public function patch($nodeGroup, $nodeGroupResource, $project, $zone, array $op * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -1158,10 +1147,9 @@ public function setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestRe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1213,10 +1201,9 @@ public function setNodeTemplate($nodeGroup, $nodeGroupsSetNodeTemplateRequestRes * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/NodeTemplatesGapicClient.php b/Compute/src/V1/Gapic/NodeTemplatesGapicClient.php index d7f28fa90f0d..ca9af6d39fd6 100644 --- a/Compute/src/V1/Gapic/NodeTemplatesGapicClient.php +++ b/Compute/src/V1/Gapic/NodeTemplatesGapicClient.php @@ -309,10 +309,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -402,10 +401,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -454,10 +452,9 @@ public function delete($nodeTemplate, $project, $region, array $optionalArgs = [ * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\NodeTemplate @@ -504,10 +501,9 @@ public function get($nodeTemplate, $project, $region, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -581,10 +577,9 @@ public function getIamPolicy($project, $region, $resource, array $optionalArgs = * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -655,10 +650,9 @@ public function insert($nodeTemplateResource, $project, $region, array $optional * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -723,10 +717,9 @@ public function list($project, $region, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -774,10 +767,9 @@ public function setIamPolicy($project, $region, $regionSetPolicyRequestResource, * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/NodeTypesGapicClient.php b/Compute/src/V1/Gapic/NodeTypesGapicClient.php index e33a5d7a63e0..e89367ccd289 100644 --- a/Compute/src/V1/Gapic/NodeTypesGapicClient.php +++ b/Compute/src/V1/Gapic/NodeTypesGapicClient.php @@ -244,10 +244,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -312,10 +311,9 @@ public function aggregatedList($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\NodeType @@ -383,10 +381,9 @@ public function get($nodeType, $project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/PacketMirroringsGapicClient.php b/Compute/src/V1/Gapic/PacketMirroringsGapicClient.php index fc0e46eb4b82..a9674e6874c7 100644 --- a/Compute/src/V1/Gapic/PacketMirroringsGapicClient.php +++ b/Compute/src/V1/Gapic/PacketMirroringsGapicClient.php @@ -306,10 +306,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -399,10 +398,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -451,10 +449,9 @@ public function delete($packetMirroring, $project, $region, array $optionalArgs * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\PacketMirroring @@ -524,10 +521,9 @@ public function get($packetMirroring, $project, $region, array $optionalArgs = [ * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -598,10 +594,9 @@ public function insert($packetMirroringResource, $project, $region, array $optio * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -691,10 +686,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -746,10 +740,9 @@ public function patch($packetMirroring, $packetMirroringResource, $project, $reg * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/ProjectsGapicClient.php b/Compute/src/V1/Gapic/ProjectsGapicClient.php index bc6fffc109a5..93fc6d878b89 100644 --- a/Compute/src/V1/Gapic/ProjectsGapicClient.php +++ b/Compute/src/V1/Gapic/ProjectsGapicClient.php @@ -326,10 +326,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -397,10 +396,9 @@ public function disableXpnHost($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -467,10 +465,9 @@ public function disableXpnResource($project, $projectsDisableXpnResourceRequestR * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -538,10 +535,9 @@ public function enableXpnHost($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -583,10 +579,9 @@ public function enableXpnResource($project, $projectsEnableXpnResourceRequestRes * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Project @@ -623,10 +618,9 @@ public function get($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Project @@ -688,10 +682,9 @@ public function getXpnHost($project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -775,10 +768,9 @@ public function getXpnResources($project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -863,10 +855,9 @@ public function listXpnHosts($project, $projectsListXpnHostsRequestResource, arr * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -935,10 +926,9 @@ public function moveDisk($diskMoveRequestResource, $project, array $optionalArgs * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1007,10 +997,9 @@ public function moveInstance($instanceMoveRequestResource, $project, array $opti * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1079,10 +1068,9 @@ public function setCommonInstanceMetadata($metadataResource, $project, array $op * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1151,10 +1139,9 @@ public function setDefaultNetworkTier($project, $projectsSetDefaultNetworkTierRe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/PublicAdvertisedPrefixesGapicClient.php b/Compute/src/V1/Gapic/PublicAdvertisedPrefixesGapicClient.php index f07489cd8ad5..1b4436c161be 100644 --- a/Compute/src/V1/Gapic/PublicAdvertisedPrefixesGapicClient.php +++ b/Compute/src/V1/Gapic/PublicAdvertisedPrefixesGapicClient.php @@ -312,10 +312,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -360,10 +359,9 @@ public function delete($project, $publicAdvertisedPrefix, array $optionalArgs = * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\PublicAdvertisedPrefix @@ -429,10 +427,9 @@ public function get($project, $publicAdvertisedPrefix, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -499,10 +496,9 @@ public function insert($project, $publicAdvertisedPrefixResource, array $optiona * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -588,10 +584,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/PublicDelegatedPrefixesGapicClient.php b/Compute/src/V1/Gapic/PublicDelegatedPrefixesGapicClient.php index 1ce17c5854de..0ddb60389cec 100644 --- a/Compute/src/V1/Gapic/PublicDelegatedPrefixesGapicClient.php +++ b/Compute/src/V1/Gapic/PublicDelegatedPrefixesGapicClient.php @@ -303,10 +303,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -396,10 +395,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -448,10 +446,9 @@ public function delete($project, $publicDelegatedPrefix, $region, array $optiona * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\PublicDelegatedPrefix @@ -521,10 +518,9 @@ public function get($project, $publicDelegatedPrefix, $region, array $optionalAr * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -595,10 +591,9 @@ public function insert($project, $publicDelegatedPrefixResource, $region, array * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -688,10 +683,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionAutoscalersGapicClient.php b/Compute/src/V1/Gapic/RegionAutoscalersGapicClient.php index 1a59fa0fe22d..3d7bb0f742ba 100644 --- a/Compute/src/V1/Gapic/RegionAutoscalersGapicClient.php +++ b/Compute/src/V1/Gapic/RegionAutoscalersGapicClient.php @@ -317,10 +317,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -369,10 +368,9 @@ public function delete($autoscaler, $project, $region, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Autoscaler @@ -442,10 +440,9 @@ public function get($autoscaler, $project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -516,10 +513,9 @@ public function insert($autoscalerResource, $project, $region, array $optionalAr * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -609,10 +605,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -691,10 +686,9 @@ public function patch($autoscalerResource, $project, $region, array $optionalArg * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionBackendServicesGapicClient.php b/Compute/src/V1/Gapic/RegionBackendServicesGapicClient.php index 98e88c6c926c..abffd1a7dc20 100644 --- a/Compute/src/V1/Gapic/RegionBackendServicesGapicClient.php +++ b/Compute/src/V1/Gapic/RegionBackendServicesGapicClient.php @@ -320,10 +320,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -372,10 +371,9 @@ public function delete($backendService, $project, $region, array $optionalArgs = * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\BackendService @@ -422,10 +420,9 @@ public function get($backendService, $project, $region, array $optionalArgs = [] * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\BackendServiceGroupHealth @@ -496,10 +493,9 @@ public function getHealth($backendService, $project, $region, $resourceGroupRefe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -570,10 +566,9 @@ public function insert($backendServiceResource, $project, $region, array $option * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -663,10 +658,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -743,10 +737,9 @@ public function patch($backendService, $backendServiceResource, $project, $regio * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionCommitmentsGapicClient.php b/Compute/src/V1/Gapic/RegionCommitmentsGapicClient.php index 5b6a83fc9f26..874b4424e5ea 100644 --- a/Compute/src/V1/Gapic/RegionCommitmentsGapicClient.php +++ b/Compute/src/V1/Gapic/RegionCommitmentsGapicClient.php @@ -302,10 +302,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -370,10 +369,9 @@ public function aggregatedList($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Commitment @@ -443,10 +441,9 @@ public function get($commitment, $project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -517,10 +514,9 @@ public function insert($commitmentResource, $project, $region, array $optionalAr * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -613,10 +609,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $updateMask * update_mask indicates fields to be updated as part of this request. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionDiskTypesGapicClient.php b/Compute/src/V1/Gapic/RegionDiskTypesGapicClient.php index d91fd75ff548..a14a03415a10 100644 --- a/Compute/src/V1/Gapic/RegionDiskTypesGapicClient.php +++ b/Compute/src/V1/Gapic/RegionDiskTypesGapicClient.php @@ -209,10 +209,9 @@ public function __construct(array $options = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\DiskType @@ -280,10 +279,9 @@ public function get($diskType, $project, $region, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/RegionDisksGapicClient.php b/Compute/src/V1/Gapic/RegionDisksGapicClient.php index 8bd0975c5e96..c456075d402a 100644 --- a/Compute/src/V1/Gapic/RegionDisksGapicClient.php +++ b/Compute/src/V1/Gapic/RegionDisksGapicClient.php @@ -335,10 +335,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -415,10 +414,9 @@ public function addResourcePolicies($disk, $project, $region, $regionDisksAddRes * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -493,10 +491,9 @@ public function createSnapshot($disk, $project, $region, $snapshotResource, arra * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -545,10 +542,9 @@ public function delete($disk, $project, $region, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Disk @@ -595,10 +591,9 @@ public function get($disk, $project, $region, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -674,10 +669,9 @@ public function getIamPolicy($project, $region, $resource, array $optionalArgs = * @type string $sourceImage * Source image to restore onto a disk. This field is optional. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -752,10 +746,9 @@ public function insert($diskResource, $project, $region, array $optionalArgs = [ * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -845,10 +838,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -925,10 +917,9 @@ public function removeResourcePolicies($disk, $project, $region, $regionDisksRem * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -980,10 +971,9 @@ public function resize($disk, $project, $region, $regionDisksResizeRequestResour * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -1056,10 +1046,9 @@ public function setIamPolicy($project, $region, $regionSetPolicyRequestResource, * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1111,10 +1100,9 @@ public function setLabels($project, $region, $regionSetLabelsRequestResource, $r * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/RegionHealthCheckServicesGapicClient.php b/Compute/src/V1/Gapic/RegionHealthCheckServicesGapicClient.php index 7ebbe2b9c786..d828be8b1dd6 100644 --- a/Compute/src/V1/Gapic/RegionHealthCheckServicesGapicClient.php +++ b/Compute/src/V1/Gapic/RegionHealthCheckServicesGapicClient.php @@ -316,10 +316,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -368,10 +367,9 @@ public function delete($healthCheckService, $project, $region, array $optionalAr * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\HealthCheckService @@ -441,10 +439,9 @@ public function get($healthCheckService, $project, $region, array $optionalArgs * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -515,10 +512,9 @@ public function insert($healthCheckServiceResource, $project, $region, array $op * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -608,10 +604,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionHealthChecksGapicClient.php b/Compute/src/V1/Gapic/RegionHealthChecksGapicClient.php index 7af0518f3eca..0390d00844df 100644 --- a/Compute/src/V1/Gapic/RegionHealthChecksGapicClient.php +++ b/Compute/src/V1/Gapic/RegionHealthChecksGapicClient.php @@ -317,10 +317,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -369,10 +368,9 @@ public function delete($healthCheck, $project, $region, array $optionalArgs = [] * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\HealthCheck @@ -442,10 +440,9 @@ public function get($healthCheck, $project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -516,10 +513,9 @@ public function insert($healthCheckResource, $project, $region, array $optionalA * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -609,10 +605,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -689,10 +684,9 @@ public function patch($healthCheck, $healthCheckResource, $project, $region, arr * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionInstanceGroupManagersGapicClient.php b/Compute/src/V1/Gapic/RegionInstanceGroupManagersGapicClient.php index 1b7f05cfb346..d6d94d83065f 100644 --- a/Compute/src/V1/Gapic/RegionInstanceGroupManagersGapicClient.php +++ b/Compute/src/V1/Gapic/RegionInstanceGroupManagersGapicClient.php @@ -346,10 +346,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -424,10 +423,9 @@ public function abandonInstances($instanceGroupManager, $project, $region, $regi * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -500,10 +498,9 @@ public function applyUpdatesToInstances($instanceGroupManager, $project, $region * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -578,10 +575,9 @@ public function createInstances($instanceGroupManager, $project, $region, $regio * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -657,10 +653,9 @@ public function delete($instanceGroupManager, $project, $region, array $optional * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -735,10 +730,9 @@ public function deleteInstances($instanceGroupManager, $project, $region, $regio * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -784,10 +778,9 @@ public function deletePerInstanceConfigs($instanceGroupManager, $project, $regio * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\InstanceGroupManager @@ -857,10 +850,9 @@ public function get($instanceGroupManager, $project, $region, array $optionalArg * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -931,10 +923,9 @@ public function insert($instanceGroupManagerResource, $project, $region, array $ * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1022,10 +1013,9 @@ public function list($project, $region, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1068,7 +1058,7 @@ public function listErrors($instanceGroupManager, $project, $region, array $opti } /** - * Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. + * Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. * * Sample code: * ``` @@ -1115,10 +1105,9 @@ public function listErrors($instanceGroupManager, $project, $region, array $opti * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1208,10 +1197,9 @@ public function listManagedInstances($instanceGroupManager, $project, $region, a * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1303,10 +1291,9 @@ public function listPerInstanceConfigs($instanceGroupManager, $project, $region, * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1383,10 +1370,9 @@ public function patch($instanceGroupManager, $instanceGroupManagerResource, $pro * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1463,10 +1449,9 @@ public function patchPerInstanceConfigs($instanceGroupManager, $project, $region * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1543,10 +1528,9 @@ public function recreateInstances($instanceGroupManager, $project, $region, $reg * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1623,10 +1607,9 @@ public function resize($instanceGroupManager, $project, $region, $size, array $o * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1703,10 +1686,9 @@ public function setInstanceTemplate($instanceGroupManager, $project, $region, $r * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1783,10 +1765,9 @@ public function setTargetPools($instanceGroupManager, $project, $region, $region * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionInstanceGroupsGapicClient.php b/Compute/src/V1/Gapic/RegionInstanceGroupsGapicClient.php index 38b133f8652c..e09db06d2eeb 100644 --- a/Compute/src/V1/Gapic/RegionInstanceGroupsGapicClient.php +++ b/Compute/src/V1/Gapic/RegionInstanceGroupsGapicClient.php @@ -270,10 +270,9 @@ public function __construct(array $options = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\InstanceGroup @@ -341,10 +340,9 @@ public function get($instanceGroup, $project, $region, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -434,10 +432,9 @@ public function list($project, $region, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -530,10 +527,9 @@ public function listInstances($instanceGroup, $project, $region, $regionInstance * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionInstancesGapicClient.php b/Compute/src/V1/Gapic/RegionInstancesGapicClient.php index 8333657f019a..371d80bb1661 100644 --- a/Compute/src/V1/Gapic/RegionInstancesGapicClient.php +++ b/Compute/src/V1/Gapic/RegionInstancesGapicClient.php @@ -311,10 +311,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionNetworkEndpointGroupsGapicClient.php b/Compute/src/V1/Gapic/RegionNetworkEndpointGroupsGapicClient.php index 78ca730e7b50..7754a9e3bf42 100644 --- a/Compute/src/V1/Gapic/RegionNetworkEndpointGroupsGapicClient.php +++ b/Compute/src/V1/Gapic/RegionNetworkEndpointGroupsGapicClient.php @@ -315,10 +315,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -367,10 +366,9 @@ public function delete($networkEndpointGroup, $project, $region, array $optional * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\NetworkEndpointGroup @@ -440,10 +438,9 @@ public function get($networkEndpointGroup, $project, $region, array $optionalArg * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -514,10 +511,9 @@ public function insert($networkEndpointGroupResource, $project, $region, array $ * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/RegionNetworkFirewallPoliciesGapicClient.php b/Compute/src/V1/Gapic/RegionNetworkFirewallPoliciesGapicClient.php index ea1cbb7b412b..dce76ef57f13 100644 --- a/Compute/src/V1/Gapic/RegionNetworkFirewallPoliciesGapicClient.php +++ b/Compute/src/V1/Gapic/RegionNetworkFirewallPoliciesGapicClient.php @@ -340,10 +340,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -428,10 +427,9 @@ public function addAssociation($firewallPolicy, $firewallPolicyAssociationResour * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -516,10 +514,9 @@ public function addRule($firewallPolicy, $firewallPolicyRuleResource, $project, * @type string $sourceFirewallPolicy * The firewall policy from which to copy rules. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -597,10 +594,9 @@ public function cloneRules($firewallPolicy, $project, $region, array $optionalAr * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -649,10 +645,9 @@ public function delete($firewallPolicy, $project, $region, array $optionalArgs = * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\FirewallPolicy @@ -699,10 +694,9 @@ public function get($firewallPolicy, $project, $region, array $optionalArgs = [] * @type string $name * The name of the association to get from the firewall policy. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\FirewallPolicyAssociation @@ -751,10 +745,9 @@ public function getAssociation($firewallPolicy, $project, $region, array $option * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse @@ -800,10 +793,9 @@ public function getEffectiveFirewalls($network, $project, $region, array $option * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -854,10 +846,9 @@ public function getIamPolicy($project, $region, $resource, array $optionalArgs = * @type int $priority * The priority of the rule to get from the firewall policy. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\FirewallPolicyRule @@ -931,10 +922,9 @@ public function getRule($firewallPolicy, $project, $region, array $optionalArgs * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1005,10 +995,9 @@ public function insert($firewallPolicyResource, $project, $region, array $option * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1098,10 +1087,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1180,10 +1168,9 @@ public function patch($firewallPolicy, $firewallPolicyResource, $project, $regio * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1264,10 +1251,9 @@ public function patchRule($firewallPolicy, $firewallPolicyRuleResource, $project * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1347,10 +1333,9 @@ public function removeAssociation($firewallPolicy, $project, $region, array $opt * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1405,10 +1390,9 @@ public function removeRule($firewallPolicy, $project, $region, array $optionalAr * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -1456,10 +1440,9 @@ public function setIamPolicy($project, $region, $regionSetPolicyRequestResource, * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/RegionNotificationEndpointsGapicClient.php b/Compute/src/V1/Gapic/RegionNotificationEndpointsGapicClient.php index a89641087980..f96373eedc86 100644 --- a/Compute/src/V1/Gapic/RegionNotificationEndpointsGapicClient.php +++ b/Compute/src/V1/Gapic/RegionNotificationEndpointsGapicClient.php @@ -315,10 +315,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -367,10 +366,9 @@ public function delete($notificationEndpoint, $project, $region, array $optional * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\NotificationEndpoint @@ -440,10 +438,9 @@ public function get($notificationEndpoint, $project, $region, array $optionalArg * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -514,10 +511,9 @@ public function insert($notificationEndpointResource, $project, $region, array $ * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/RegionOperationsGapicClient.php b/Compute/src/V1/Gapic/RegionOperationsGapicClient.php index 1d36e572268b..c7c06db7de6a 100644 --- a/Compute/src/V1/Gapic/RegionOperationsGapicClient.php +++ b/Compute/src/V1/Gapic/RegionOperationsGapicClient.php @@ -211,10 +211,9 @@ public function __construct(array $options = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\DeleteRegionOperationResponse @@ -259,10 +258,9 @@ public function delete($operation, $project, $region, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Operation @@ -330,10 +328,9 @@ public function get($operation, $project, $region, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -396,10 +393,9 @@ public function list($project, $region, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Operation diff --git a/Compute/src/V1/Gapic/RegionSecurityPoliciesGapicClient.php b/Compute/src/V1/Gapic/RegionSecurityPoliciesGapicClient.php index 7e3c9227b319..eecefd0d468b 100644 --- a/Compute/src/V1/Gapic/RegionSecurityPoliciesGapicClient.php +++ b/Compute/src/V1/Gapic/RegionSecurityPoliciesGapicClient.php @@ -316,10 +316,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -368,10 +367,9 @@ public function delete($project, $region, $securityPolicy, array $optionalArgs = * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\SecurityPolicy @@ -443,10 +441,9 @@ public function get($project, $region, $securityPolicy, array $optionalArgs = [] * @type bool $validateOnly * If true, the request will not be committed. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -521,10 +518,9 @@ public function insert($project, $region, $securityPolicyResource, array $option * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -614,10 +610,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionSslCertificatesGapicClient.php b/Compute/src/V1/Gapic/RegionSslCertificatesGapicClient.php index 00eb17e389a2..a5f78882e58b 100644 --- a/Compute/src/V1/Gapic/RegionSslCertificatesGapicClient.php +++ b/Compute/src/V1/Gapic/RegionSslCertificatesGapicClient.php @@ -315,10 +315,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -367,10 +366,9 @@ public function delete($project, $region, $sslCertificate, array $optionalArgs = * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\SslCertificate @@ -440,10 +438,9 @@ public function get($project, $region, $sslCertificate, array $optionalArgs = [] * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -514,10 +511,9 @@ public function insert($project, $region, $sslCertificateResource, array $option * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/RegionTargetHttpProxiesGapicClient.php b/Compute/src/V1/Gapic/RegionTargetHttpProxiesGapicClient.php index feda16eb87a5..81c09d659719 100644 --- a/Compute/src/V1/Gapic/RegionTargetHttpProxiesGapicClient.php +++ b/Compute/src/V1/Gapic/RegionTargetHttpProxiesGapicClient.php @@ -317,10 +317,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -369,10 +368,9 @@ public function delete($project, $region, $targetHttpProxy, array $optionalArgs * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TargetHttpProxy @@ -442,10 +440,9 @@ public function get($project, $region, $targetHttpProxy, array $optionalArgs = [ * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -516,10 +513,9 @@ public function insert($project, $region, $targetHttpProxyResource, array $optio * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -609,10 +605,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionTargetHttpsProxiesGapicClient.php b/Compute/src/V1/Gapic/RegionTargetHttpsProxiesGapicClient.php index aa9391824deb..0d747e5926d4 100644 --- a/Compute/src/V1/Gapic/RegionTargetHttpsProxiesGapicClient.php +++ b/Compute/src/V1/Gapic/RegionTargetHttpsProxiesGapicClient.php @@ -320,10 +320,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -372,10 +371,9 @@ public function delete($project, $region, $targetHttpsProxy, array $optionalArgs * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TargetHttpsProxy @@ -445,10 +443,9 @@ public function get($project, $region, $targetHttpsProxy, array $optionalArgs = * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -519,10 +516,9 @@ public function insert($project, $region, $targetHttpsProxyResource, array $opti * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -612,10 +608,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -692,10 +687,9 @@ public function patch($project, $region, $targetHttpsProxy, $targetHttpsProxyRes * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -772,10 +766,9 @@ public function setSslCertificates($project, $region, $regionTargetHttpsProxiesS * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RegionUrlMapsGapicClient.php b/Compute/src/V1/Gapic/RegionUrlMapsGapicClient.php index 776c2c2d74fb..9c73af1c5de9 100644 --- a/Compute/src/V1/Gapic/RegionUrlMapsGapicClient.php +++ b/Compute/src/V1/Gapic/RegionUrlMapsGapicClient.php @@ -320,10 +320,9 @@ public function __construct(array $options = []) * @type string $requestId * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -372,10 +371,9 @@ public function delete($project, $region, $urlMap, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\UrlMap @@ -445,10 +443,9 @@ public function get($project, $region, $urlMap, array $optionalArgs = []) * @type string $requestId * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -519,10 +516,9 @@ public function insert($project, $region, $urlMapResource, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -612,10 +608,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -692,10 +687,9 @@ public function patch($project, $region, $urlMap, $urlMapResource, array $option * @type string $requestId * begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -747,10 +741,9 @@ public function update($project, $region, $urlMap, $urlMapResource, array $optio * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\UrlMapsValidateResponse diff --git a/Compute/src/V1/Gapic/RegionsGapicClient.php b/Compute/src/V1/Gapic/RegionsGapicClient.php index d589a1b7babd..ba5a542bdce2 100644 --- a/Compute/src/V1/Gapic/RegionsGapicClient.php +++ b/Compute/src/V1/Gapic/RegionsGapicClient.php @@ -206,10 +206,9 @@ public function __construct(array $options = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Region @@ -273,10 +272,9 @@ public function get($project, $region, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/ReservationsGapicClient.php b/Compute/src/V1/Gapic/ReservationsGapicClient.php index a48d01f39670..c43de68e26ec 100644 --- a/Compute/src/V1/Gapic/ReservationsGapicClient.php +++ b/Compute/src/V1/Gapic/ReservationsGapicClient.php @@ -312,10 +312,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -405,10 +404,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -457,10 +455,9 @@ public function delete($project, $reservation, $zone, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Reservation @@ -507,10 +504,9 @@ public function get($project, $reservation, $zone, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -584,10 +580,9 @@ public function getIamPolicy($project, $resource, $zone, array $optionalArgs = [ * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -658,10 +653,9 @@ public function insert($project, $reservationResource, $zone, array $optionalArg * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -751,10 +745,9 @@ public function list($project, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -806,10 +799,9 @@ public function resize($project, $reservation, $reservationsResizeRequestResourc * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -857,10 +849,9 @@ public function setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestRe * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse @@ -936,10 +927,9 @@ public function testIamPermissions($project, $resource, $testPermissionsRequestR * @type string $updateMask * Update_mask indicates fields to be updated as part of this request. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/ResourcePoliciesGapicClient.php b/Compute/src/V1/Gapic/ResourcePoliciesGapicClient.php index 4def41dc742e..408e9db601dc 100644 --- a/Compute/src/V1/Gapic/ResourcePoliciesGapicClient.php +++ b/Compute/src/V1/Gapic/ResourcePoliciesGapicClient.php @@ -309,10 +309,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -402,10 +401,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -454,10 +452,9 @@ public function delete($project, $region, $resourcePolicy, array $optionalArgs = * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\ResourcePolicy @@ -504,10 +501,9 @@ public function get($project, $region, $resourcePolicy, array $optionalArgs = [] * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -581,10 +577,9 @@ public function getIamPolicy($project, $region, $resource, array $optionalArgs = * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -655,10 +650,9 @@ public function insert($project, $region, $resourcePolicyResource, array $option * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -723,10 +717,9 @@ public function list($project, $region, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -774,10 +767,9 @@ public function setIamPolicy($project, $region, $regionSetPolicyRequestResource, * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/RoutersGapicClient.php b/Compute/src/V1/Gapic/RoutersGapicClient.php index 857330bbe9cf..7863e2a05ab3 100644 --- a/Compute/src/V1/Gapic/RoutersGapicClient.php +++ b/Compute/src/V1/Gapic/RoutersGapicClient.php @@ -310,10 +310,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -403,10 +402,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -455,10 +453,9 @@ public function delete($project, $region, $router, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Router @@ -528,10 +525,9 @@ public function get($project, $region, $router, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -596,10 +592,9 @@ public function getNatMappingInfo($project, $region, $router, array $optionalArg * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\RouterStatusResponse @@ -669,10 +664,9 @@ public function getRouterStatus($project, $region, $router, array $optionalArgs * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -743,10 +737,9 @@ public function insert($project, $region, $routerResource, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -836,10 +829,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -891,10 +883,9 @@ public function patch($project, $region, $router, $routerResource, array $option * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\RoutersPreviewResponse @@ -967,10 +958,9 @@ public function preview($project, $region, $router, $routerResource, array $opti * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/RoutesGapicClient.php b/Compute/src/V1/Gapic/RoutesGapicClient.php index 5c39a8ca9949..a10142aeb974 100644 --- a/Compute/src/V1/Gapic/RoutesGapicClient.php +++ b/Compute/src/V1/Gapic/RoutesGapicClient.php @@ -311,10 +311,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -359,10 +358,9 @@ public function delete($project, $route, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Route @@ -428,10 +426,9 @@ public function get($project, $route, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -498,10 +495,9 @@ public function insert($project, $routeResource, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/SecurityPoliciesGapicClient.php b/Compute/src/V1/Gapic/SecurityPoliciesGapicClient.php index e6e4e49aaa2b..274d10de5286 100644 --- a/Compute/src/V1/Gapic/SecurityPoliciesGapicClient.php +++ b/Compute/src/V1/Gapic/SecurityPoliciesGapicClient.php @@ -324,10 +324,9 @@ public function __construct(array $options = []) * @type bool $validateOnly * If true, the request will not be committed. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -398,10 +397,9 @@ public function addRule($project, $securityPolicy, $securityPolicyRuleResource, * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -489,10 +487,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -537,10 +534,9 @@ public function delete($project, $securityPolicy, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\SecurityPolicy @@ -583,10 +579,9 @@ public function get($project, $securityPolicy, array $optionalArgs = []) * @type int $priority * The priority of the rule to get from the security policy. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\SecurityPolicyRule @@ -658,10 +653,9 @@ public function getRule($project, $securityPolicy, array $optionalArgs = []) * @type bool $validateOnly * If true, the request will not be committed. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -732,10 +726,9 @@ public function insert($project, $securityPolicyResource, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -802,10 +795,9 @@ public function list($project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\SecurityPoliciesListPreconfiguredExpressionSetsResponse @@ -891,10 +883,9 @@ public function listPreconfiguredExpressionSets($project, array $optionalArgs = * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -969,10 +960,9 @@ public function patch($project, $securityPolicy, $securityPolicyResource, array * @type bool $validateOnly * If true, the request will not be committed. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1047,10 +1037,9 @@ public function patchRule($project, $securityPolicy, $securityPolicyRuleResource * @type int $priority * The priority of the rule to remove from the security policy. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/ServiceAttachmentsGapicClient.php b/Compute/src/V1/Gapic/ServiceAttachmentsGapicClient.php index 97b53e43c42d..30e2a19f8cec 100644 --- a/Compute/src/V1/Gapic/ServiceAttachmentsGapicClient.php +++ b/Compute/src/V1/Gapic/ServiceAttachmentsGapicClient.php @@ -310,10 +310,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -403,10 +402,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -455,10 +453,9 @@ public function delete($project, $region, $serviceAttachment, array $optionalArg * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\ServiceAttachment @@ -505,10 +502,9 @@ public function get($project, $region, $serviceAttachment, array $optionalArgs = * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -582,10 +578,9 @@ public function getIamPolicy($project, $region, $resource, array $optionalArgs = * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -656,10 +651,9 @@ public function insert($project, $region, $serviceAttachmentResource, array $opt * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -749,10 +743,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -804,10 +797,9 @@ public function patch($project, $region, $serviceAttachment, $serviceAttachmentR * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -855,10 +847,9 @@ public function setIamPolicy($project, $region, $regionSetPolicyRequestResource, * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/SnapshotsGapicClient.php b/Compute/src/V1/Gapic/SnapshotsGapicClient.php index e28d383bc23a..d4b448a41bd0 100644 --- a/Compute/src/V1/Gapic/SnapshotsGapicClient.php +++ b/Compute/src/V1/Gapic/SnapshotsGapicClient.php @@ -320,10 +320,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -368,10 +367,9 @@ public function delete($project, $snapshot, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Snapshot @@ -414,10 +412,9 @@ public function get($project, $snapshot, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -487,10 +484,9 @@ public function getIamPolicy($project, $resource, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -557,10 +553,9 @@ public function insert($project, $snapshotResource, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -621,10 +616,9 @@ public function list($project, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -691,10 +685,9 @@ public function setIamPolicy($globalSetPolicyRequestResource, $project, $resourc * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -738,10 +731,9 @@ public function setLabels($globalSetLabelsRequestResource, $project, $resource, * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/SslCertificatesGapicClient.php b/Compute/src/V1/Gapic/SslCertificatesGapicClient.php index ccbfb6cd1bc1..e848ea489ef0 100644 --- a/Compute/src/V1/Gapic/SslCertificatesGapicClient.php +++ b/Compute/src/V1/Gapic/SslCertificatesGapicClient.php @@ -301,10 +301,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -392,10 +391,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -440,10 +438,9 @@ public function delete($project, $sslCertificate, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\SslCertificate @@ -509,10 +506,9 @@ public function get($project, $sslCertificate, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -579,10 +575,9 @@ public function insert($project, $sslCertificateResource, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/SslPoliciesGapicClient.php b/Compute/src/V1/Gapic/SslPoliciesGapicClient.php index 6ebe64578624..320680781970 100644 --- a/Compute/src/V1/Gapic/SslPoliciesGapicClient.php +++ b/Compute/src/V1/Gapic/SslPoliciesGapicClient.php @@ -314,10 +314,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -362,10 +361,9 @@ public function delete($project, $sslPolicy, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\SslPolicy @@ -431,10 +429,9 @@ public function get($project, $sslPolicy, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -501,10 +498,9 @@ public function insert($project, $sslPolicyResource, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -571,10 +567,9 @@ public function list($project, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\SslPoliciesListAvailableFeaturesResponse @@ -660,10 +655,9 @@ public function listAvailableFeatures($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/SubnetworksGapicClient.php b/Compute/src/V1/Gapic/SubnetworksGapicClient.php index 8b9169831503..7bd5ca78d64a 100644 --- a/Compute/src/V1/Gapic/SubnetworksGapicClient.php +++ b/Compute/src/V1/Gapic/SubnetworksGapicClient.php @@ -316,10 +316,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -409,10 +408,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -488,10 +486,9 @@ public function delete($project, $region, $subnetwork, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -541,10 +538,9 @@ public function expandIpCidrRange($project, $region, $subnetwork, $subnetworksEx * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Subnetwork @@ -591,10 +587,9 @@ public function get($project, $region, $subnetwork, array $optionalArgs = []) * @type int $optionsRequestedPolicyVersion * Requested IAM Policy version. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -668,10 +663,9 @@ public function getIamPolicy($project, $region, $resource, array $optionalArgs = * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -742,10 +736,9 @@ public function insert($project, $region, $subnetworkResource, array $optionalAr * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -829,10 +822,9 @@ public function list($project, $region, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -922,10 +914,9 @@ public function listUsable($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -981,10 +972,9 @@ public function patch($project, $region, $subnetwork, $subnetworkResource, array * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Policy @@ -1057,10 +1047,9 @@ public function setIamPolicy($project, $region, $regionSetPolicyRequestResource, * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1112,10 +1101,9 @@ public function setPrivateIpGoogleAccess($project, $region, $subnetwork, $subnet * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/TargetGrpcProxiesGapicClient.php b/Compute/src/V1/Gapic/TargetGrpcProxiesGapicClient.php index 8630ae352466..40a73700d105 100644 --- a/Compute/src/V1/Gapic/TargetGrpcProxiesGapicClient.php +++ b/Compute/src/V1/Gapic/TargetGrpcProxiesGapicClient.php @@ -312,10 +312,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -360,10 +359,9 @@ public function delete($project, $targetGrpcProxy, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TargetGrpcProxy @@ -429,10 +427,9 @@ public function get($project, $targetGrpcProxy, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -499,10 +496,9 @@ public function insert($project, $targetGrpcProxyResource, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -588,10 +584,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/TargetHttpProxiesGapicClient.php b/Compute/src/V1/Gapic/TargetHttpProxiesGapicClient.php index df8deb136d14..096a6ff9f33a 100644 --- a/Compute/src/V1/Gapic/TargetHttpProxiesGapicClient.php +++ b/Compute/src/V1/Gapic/TargetHttpProxiesGapicClient.php @@ -304,10 +304,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -395,10 +394,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -443,10 +441,9 @@ public function delete($project, $targetHttpProxy, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TargetHttpProxy @@ -512,10 +509,9 @@ public function get($project, $targetHttpProxy, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -582,10 +578,9 @@ public function insert($project, $targetHttpProxyResource, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -671,10 +666,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -747,10 +741,9 @@ public function patch($project, $targetHttpProxy, $targetHttpProxyResource, arra * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/TargetHttpsProxiesGapicClient.php b/Compute/src/V1/Gapic/TargetHttpsProxiesGapicClient.php index b4b81c1660cf..be67377633f6 100644 --- a/Compute/src/V1/Gapic/TargetHttpsProxiesGapicClient.php +++ b/Compute/src/V1/Gapic/TargetHttpsProxiesGapicClient.php @@ -312,10 +312,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -403,10 +402,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -451,10 +449,9 @@ public function delete($project, $targetHttpsProxy, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TargetHttpsProxy @@ -520,10 +517,9 @@ public function get($project, $targetHttpsProxy, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -590,10 +586,9 @@ public function insert($project, $targetHttpsProxyResource, array $optionalArgs * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -679,10 +674,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -755,10 +749,9 @@ public function patch($project, $targetHttpsProxy, $targetHttpsProxyResource, ar * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -831,10 +824,9 @@ public function setCertificateMap($project, $targetHttpsProxiesSetCertificateMap * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -907,10 +899,9 @@ public function setQuicOverride($project, $targetHttpsProxiesSetQuicOverrideRequ * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -983,10 +974,9 @@ public function setSslCertificates($project, $targetHttpsProxiesSetSslCertificat * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1059,10 +1049,9 @@ public function setSslPolicy($project, $sslPolicyReferenceResource, $targetHttps * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/TargetInstancesGapicClient.php b/Compute/src/V1/Gapic/TargetInstancesGapicClient.php index b56c778fc406..35e8e947a889 100644 --- a/Compute/src/V1/Gapic/TargetInstancesGapicClient.php +++ b/Compute/src/V1/Gapic/TargetInstancesGapicClient.php @@ -302,10 +302,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -395,10 +394,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -447,10 +445,9 @@ public function delete($project, $targetInstance, $zone, array $optionalArgs = [ * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TargetInstance @@ -520,10 +517,9 @@ public function get($project, $targetInstance, $zone, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -594,10 +590,9 @@ public function insert($project, $targetInstanceResource, $zone, array $optional * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/TargetPoolsGapicClient.php b/Compute/src/V1/Gapic/TargetPoolsGapicClient.php index 932f036413ec..02309d74de3c 100644 --- a/Compute/src/V1/Gapic/TargetPoolsGapicClient.php +++ b/Compute/src/V1/Gapic/TargetPoolsGapicClient.php @@ -333,10 +333,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -413,10 +412,9 @@ public function addHealthCheck($project, $region, $targetPool, $targetPoolsAddHe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -489,10 +487,9 @@ public function addInstance($project, $region, $targetPool, $targetPoolsAddInsta * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -582,10 +579,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -634,10 +630,9 @@ public function delete($project, $region, $targetPool, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TargetPool @@ -684,10 +679,9 @@ public function get($project, $region, $targetPool, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TargetPoolInstanceHealth @@ -758,10 +752,9 @@ public function getHealth($instanceReferenceResource, $project, $region, $target * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -832,10 +825,9 @@ public function insert($project, $region, $targetPoolResource, array $optionalAr * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -925,10 +917,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1005,10 +996,9 @@ public function removeHealthCheck($project, $region, $targetPool, $targetPoolsRe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1087,10 +1077,9 @@ public function removeInstance($project, $region, $targetPool, $targetPoolsRemov * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/TargetSslProxiesGapicClient.php b/Compute/src/V1/Gapic/TargetSslProxiesGapicClient.php index 496d04c27d94..f16861ae2d7b 100644 --- a/Compute/src/V1/Gapic/TargetSslProxiesGapicClient.php +++ b/Compute/src/V1/Gapic/TargetSslProxiesGapicClient.php @@ -321,10 +321,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -369,10 +368,9 @@ public function delete($project, $targetSslProxy, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TargetSslProxy @@ -438,10 +436,9 @@ public function get($project, $targetSslProxy, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -508,10 +505,9 @@ public function insert($project, $targetSslProxyResource, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -597,10 +593,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -673,10 +668,9 @@ public function setBackendService($project, $targetSslProxiesSetBackendServiceRe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -749,10 +743,9 @@ public function setCertificateMap($project, $targetSslProxiesSetCertificateMapRe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -825,10 +818,9 @@ public function setProxyHeader($project, $targetSslProxiesSetProxyHeaderRequestR * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -901,10 +893,9 @@ public function setSslCertificates($project, $targetSslProxiesSetSslCertificates * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/TargetTcpProxiesGapicClient.php b/Compute/src/V1/Gapic/TargetTcpProxiesGapicClient.php index 9f7bb14d0897..7ad45d7fbce5 100644 --- a/Compute/src/V1/Gapic/TargetTcpProxiesGapicClient.php +++ b/Compute/src/V1/Gapic/TargetTcpProxiesGapicClient.php @@ -315,10 +315,9 @@ public function __construct(array $options = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -363,10 +362,9 @@ public function delete($project, $targetTcpProxy, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TargetTcpProxy @@ -432,10 +430,9 @@ public function get($project, $targetTcpProxy, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -502,10 +499,9 @@ public function insert($project, $targetTcpProxyResource, array $optionalArgs = * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -591,10 +587,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -667,10 +662,9 @@ public function setBackendService($project, $targetTcpProxiesSetBackendServiceRe * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse diff --git a/Compute/src/V1/Gapic/TargetVpnGatewaysGapicClient.php b/Compute/src/V1/Gapic/TargetVpnGatewaysGapicClient.php index 5533e5306228..247d359860db 100644 --- a/Compute/src/V1/Gapic/TargetVpnGatewaysGapicClient.php +++ b/Compute/src/V1/Gapic/TargetVpnGatewaysGapicClient.php @@ -302,10 +302,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -395,10 +394,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -447,10 +445,9 @@ public function delete($project, $region, $targetVpnGateway, array $optionalArgs * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TargetVpnGateway @@ -520,10 +517,9 @@ public function get($project, $region, $targetVpnGateway, array $optionalArgs = * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -594,10 +590,9 @@ public function insert($project, $region, $targetVpnGatewayResource, array $opti * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/UrlMapsGapicClient.php b/Compute/src/V1/Gapic/UrlMapsGapicClient.php index 3610696bc703..4e9b55ae3896 100644 --- a/Compute/src/V1/Gapic/UrlMapsGapicClient.php +++ b/Compute/src/V1/Gapic/UrlMapsGapicClient.php @@ -308,10 +308,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -399,10 +398,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -447,10 +445,9 @@ public function delete($project, $urlMap, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\UrlMap @@ -516,10 +513,9 @@ public function get($project, $urlMap, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -590,10 +586,9 @@ public function insert($project, $urlMapResource, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -662,10 +657,9 @@ public function invalidateCache($cacheInvalidationRuleResource, $project, $urlMa * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -751,10 +745,9 @@ public function list($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -827,10 +820,9 @@ public function patch($project, $urlMap, $urlMapResource, array $optionalArgs = * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -878,10 +870,9 @@ public function update($project, $urlMap, $urlMapResource, array $optionalArgs = * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\UrlMapsValidateResponse diff --git a/Compute/src/V1/Gapic/VpnGatewaysGapicClient.php b/Compute/src/V1/Gapic/VpnGatewaysGapicClient.php index dc1492a080c6..66d7be75938a 100644 --- a/Compute/src/V1/Gapic/VpnGatewaysGapicClient.php +++ b/Compute/src/V1/Gapic/VpnGatewaysGapicClient.php @@ -309,10 +309,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -402,10 +401,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -454,10 +452,9 @@ public function delete($project, $region, $vpnGateway, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\VpnGateway @@ -502,10 +499,9 @@ public function get($project, $region, $vpnGateway, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\VpnGatewaysGetStatusResponse @@ -575,10 +571,9 @@ public function getStatus($project, $region, $vpnGateway, array $optionalArgs = * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -649,10 +644,9 @@ public function insert($project, $region, $vpnGatewayResource, array $optionalAr * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -742,10 +736,9 @@ public function list($project, $region, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -797,10 +790,9 @@ public function setLabels($project, $region, $regionSetLabelsRequestResource, $r * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\TestPermissionsResponse diff --git a/Compute/src/V1/Gapic/VpnTunnelsGapicClient.php b/Compute/src/V1/Gapic/VpnTunnelsGapicClient.php index 20331a0cc274..c8e31c3d3d1c 100644 --- a/Compute/src/V1/Gapic/VpnTunnelsGapicClient.php +++ b/Compute/src/V1/Gapic/VpnTunnelsGapicClient.php @@ -302,10 +302,9 @@ public function __construct(array $options = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -395,10 +394,9 @@ public function aggregatedList($project, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -447,10 +445,9 @@ public function delete($project, $region, $vpnTunnel, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\VpnTunnel @@ -520,10 +517,9 @@ public function get($project, $region, $vpnTunnel, array $optionalArgs = []) * @type string $requestId * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -594,10 +590,9 @@ public function insert($project, $region, $vpnTunnelResource, array $optionalArg * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/Gapic/ZoneOperationsGapicClient.php b/Compute/src/V1/Gapic/ZoneOperationsGapicClient.php index 80a2cbd6cf0e..50cc61725c7a 100644 --- a/Compute/src/V1/Gapic/ZoneOperationsGapicClient.php +++ b/Compute/src/V1/Gapic/ZoneOperationsGapicClient.php @@ -211,10 +211,9 @@ public function __construct(array $options = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\DeleteZoneOperationResponse @@ -259,10 +258,9 @@ public function delete($operation, $project, $zone, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Operation @@ -330,10 +328,9 @@ public function get($operation, $project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -396,10 +393,9 @@ public function list($project, $zone, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Operation diff --git a/Compute/src/V1/Gapic/ZonesGapicClient.php b/Compute/src/V1/Gapic/ZonesGapicClient.php index 270c0caf1017..8a82a82d75e4 100644 --- a/Compute/src/V1/Gapic/ZonesGapicClient.php +++ b/Compute/src/V1/Gapic/ZonesGapicClient.php @@ -206,10 +206,9 @@ public function __construct(array $options = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\Compute\V1\Zone @@ -273,10 +272,9 @@ public function get($project, $zone, array $optionalArgs = []) * @type bool $returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse diff --git a/Compute/src/V1/GlobalNetworkEndpointGroupsAttachEndpointsRequest.php b/Compute/src/V1/GlobalNetworkEndpointGroupsAttachEndpointsRequest.php index e40d1458c6c0..ae1e9848eb99 100644 --- a/Compute/src/V1/GlobalNetworkEndpointGroupsAttachEndpointsRequest.php +++ b/Compute/src/V1/GlobalNetworkEndpointGroupsAttachEndpointsRequest.php @@ -27,7 +27,7 @@ class GlobalNetworkEndpointGroupsAttachEndpointsRequest extends \Google\Protobuf * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\NetworkEndpoint[]|\Google\Protobuf\Internal\RepeatedField $network_endpoints + * @type array<\Google\Cloud\Compute\V1\NetworkEndpoint>|\Google\Protobuf\Internal\RepeatedField $network_endpoints * The list of network endpoints to be attached. * } */ @@ -51,7 +51,7 @@ public function getNetworkEndpoints() * The list of network endpoints to be attached. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkEndpoint network_endpoints = 149850285; - * @param \Google\Cloud\Compute\V1\NetworkEndpoint[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkEndpoint>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNetworkEndpoints($var) diff --git a/Compute/src/V1/GlobalNetworkEndpointGroupsDetachEndpointsRequest.php b/Compute/src/V1/GlobalNetworkEndpointGroupsDetachEndpointsRequest.php index f5e01e28b74f..69291c67018c 100644 --- a/Compute/src/V1/GlobalNetworkEndpointGroupsDetachEndpointsRequest.php +++ b/Compute/src/V1/GlobalNetworkEndpointGroupsDetachEndpointsRequest.php @@ -27,7 +27,7 @@ class GlobalNetworkEndpointGroupsDetachEndpointsRequest extends \Google\Protobuf * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\NetworkEndpoint[]|\Google\Protobuf\Internal\RepeatedField $network_endpoints + * @type array<\Google\Cloud\Compute\V1\NetworkEndpoint>|\Google\Protobuf\Internal\RepeatedField $network_endpoints * The list of network endpoints to be detached. * } */ @@ -51,7 +51,7 @@ public function getNetworkEndpoints() * The list of network endpoints to be detached. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkEndpoint network_endpoints = 149850285; - * @param \Google\Cloud\Compute\V1\NetworkEndpoint[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkEndpoint>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNetworkEndpoints($var) diff --git a/Compute/src/V1/GlobalOrganizationSetPolicyRequest.php b/Compute/src/V1/GlobalOrganizationSetPolicyRequest.php index ada885e5300f..f433f4308252 100644 --- a/Compute/src/V1/GlobalOrganizationSetPolicyRequest.php +++ b/Compute/src/V1/GlobalOrganizationSetPolicyRequest.php @@ -39,7 +39,7 @@ class GlobalOrganizationSetPolicyRequest extends \Google\Protobuf\Internal\Messa * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $bindings + * @type array<\Google\Cloud\Compute\V1\Binding>|\Google\Protobuf\Internal\RepeatedField $bindings * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings. * @type string $etag * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. @@ -67,7 +67,7 @@ public function getBindings() * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings. * * Generated from protobuf field repeated .google.cloud.compute.v1.Binding bindings = 403251854; - * @param \Google\Cloud\Compute\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Binding>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBindings($var) diff --git a/Compute/src/V1/GlobalSetPolicyRequest.php b/Compute/src/V1/GlobalSetPolicyRequest.php index f3e0dc98ae01..c630b72954a5 100644 --- a/Compute/src/V1/GlobalSetPolicyRequest.php +++ b/Compute/src/V1/GlobalSetPolicyRequest.php @@ -39,7 +39,7 @@ class GlobalSetPolicyRequest extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $bindings + * @type array<\Google\Cloud\Compute\V1\Binding>|\Google\Protobuf\Internal\RepeatedField $bindings * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings. * @type string $etag * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. @@ -67,7 +67,7 @@ public function getBindings() * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings. * * Generated from protobuf field repeated .google.cloud.compute.v1.Binding bindings = 403251854; - * @param \Google\Cloud\Compute\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Binding>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBindings($var) diff --git a/Compute/src/V1/GuestAttributesValue.php b/Compute/src/V1/GuestAttributesValue.php index 8fc677f20619..387ad8102969 100644 --- a/Compute/src/V1/GuestAttributesValue.php +++ b/Compute/src/V1/GuestAttributesValue.php @@ -26,7 +26,7 @@ class GuestAttributesValue extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\GuestAttributesEntry[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\GuestAttributesEntry>|\Google\Protobuf\Internal\RepeatedField $items * } */ public function __construct($data = NULL) { @@ -45,7 +45,7 @@ public function getItems() /** * Generated from protobuf field repeated .google.cloud.compute.v1.GuestAttributesEntry items = 100526016; - * @param \Google\Cloud\Compute\V1\GuestAttributesEntry[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\GuestAttributesEntry>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/HealthCheckList.php b/Compute/src/V1/HealthCheckList.php index b3976189c4ef..e0caf40099f7 100644 --- a/Compute/src/V1/HealthCheckList.php +++ b/Compute/src/V1/HealthCheckList.php @@ -60,7 +60,7 @@ class HealthCheckList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\HealthCheck[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\HealthCheck>|\Google\Protobuf\Internal\RepeatedField $items * A list of HealthCheck resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of HealthCheck resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.HealthCheck items = 100526016; - * @param \Google\Cloud\Compute\V1\HealthCheck[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HealthCheck>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/HealthCheckService.php b/Compute/src/V1/HealthCheckService.php index 64fe8e8c903e..8e3fd95d4f17 100644 --- a/Compute/src/V1/HealthCheckService.php +++ b/Compute/src/V1/HealthCheckService.php @@ -101,7 +101,7 @@ class HealthCheckService extends \Google\Protobuf\Internal\Message * An optional description of this resource. Provide this property when you create the resource. * @type string $fingerprint * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a HealthCheckService. An up-to-date fingerprint must be provided in order to patch/update the HealthCheckService; Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the HealthCheckService. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $health_checks + * @type array|\Google\Protobuf\Internal\RepeatedField $health_checks * A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more than 10. HealthCheck resources must have portSpecification=USE_SERVING_PORT or portSpecification=USE_FIXED_PORT. For regional HealthCheckService, the HealthCheck must be regional and in the same region. For global HealthCheckService, HealthCheck must be global. Mix of regional and global HealthChecks is not supported. Multiple regional HealthChecks must belong to the same region. Regional HealthChecks must belong to the same region as zones of NEGs. * @type string $health_status_aggregation_policy * Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . @@ -112,9 +112,9 @@ class HealthCheckService extends \Google\Protobuf\Internal\Message * [Output only] Type of the resource. Always compute#healthCheckServicefor health check services. * @type string $name * Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $network_endpoint_groups + * @type array|\Google\Protobuf\Internal\RepeatedField $network_endpoint_groups * A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For regional HealthCheckService, NEGs must be in zones in the region of the HealthCheckService. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $notification_endpoints + * @type array|\Google\Protobuf\Internal\RepeatedField $notification_endpoints * A list of URLs to the NotificationEndpoint resources. Must not have more than 10. A list of endpoints for receiving notifications of change in health status. For regional HealthCheckService, NotificationEndpoint must be regional and in the same region. For global HealthCheckService, NotificationEndpoint must be global. * @type string $region * [Output Only] URL of the region where the health check service resides. This field is not applicable to global health check services. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. @@ -250,7 +250,7 @@ public function getHealthChecks() * A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more than 10. HealthCheck resources must have portSpecification=USE_SERVING_PORT or portSpecification=USE_FIXED_PORT. For regional HealthCheckService, the HealthCheck must be regional and in the same region. For global HealthCheckService, HealthCheck must be global. Mix of regional and global HealthChecks is not supported. Multiple regional HealthChecks must belong to the same region. Regional HealthChecks must belong to the same region as zones of NEGs. * * Generated from protobuf field repeated string health_checks = 448370606; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHealthChecks($var) @@ -422,7 +422,7 @@ public function getNetworkEndpointGroups() * A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For regional HealthCheckService, NEGs must be in zones in the region of the HealthCheckService. * * Generated from protobuf field repeated string network_endpoint_groups = 29346733; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNetworkEndpointGroups($var) @@ -448,7 +448,7 @@ public function getNotificationEndpoints() * A list of URLs to the NotificationEndpoint resources. Must not have more than 10. A list of endpoints for receiving notifications of change in health status. For regional HealthCheckService, NotificationEndpoint must be regional and in the same region. For global HealthCheckService, NotificationEndpoint must be global. * * Generated from protobuf field repeated string notification_endpoints = 406728490; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNotificationEndpoints($var) diff --git a/Compute/src/V1/HealthCheckService/HealthStatusAggregationPolicy.php b/Compute/src/V1/HealthCheckService/HealthStatusAggregationPolicy.php index be34ddc017e1..278cff434ff2 100644 --- a/Compute/src/V1/HealthCheckService/HealthStatusAggregationPolicy.php +++ b/Compute/src/V1/HealthCheckService/HealthStatusAggregationPolicy.php @@ -34,7 +34,7 @@ class HealthStatusAggregationPolicy private static $valueToName = [ self::UNDEFINED_HEALTH_STATUS_AGGREGATION_POLICY => 'UNDEFINED_HEALTH_STATUS_AGGREGATION_POLICY', - self::PBAND => 'PBAND', + self::PBAND => 'AND', self::NO_AGGREGATION => 'NO_AGGREGATION', ]; @@ -52,8 +52,12 @@ public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); } return constant($const); } diff --git a/Compute/src/V1/HealthCheckServicesList.php b/Compute/src/V1/HealthCheckServicesList.php index 6bf8958204fd..fbf4a586a5bc 100644 --- a/Compute/src/V1/HealthCheckServicesList.php +++ b/Compute/src/V1/HealthCheckServicesList.php @@ -59,7 +59,7 @@ class HealthCheckServicesList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\HealthCheckService[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\HealthCheckService>|\Google\Protobuf\Internal\RepeatedField $items * A list of HealthCheckService resources. * @type string $kind * [Output Only] Type of the resource. Always compute#healthCheckServicesList for lists of HealthCheckServices. @@ -127,7 +127,7 @@ public function getItems() * A list of HealthCheckService resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.HealthCheckService items = 100526016; - * @param \Google\Cloud\Compute\V1\HealthCheckService[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HealthCheckService>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/HealthChecksAggregatedList.php b/Compute/src/V1/HealthChecksAggregatedList.php index deffeae7e359..05983bbd8283 100644 --- a/Compute/src/V1/HealthChecksAggregatedList.php +++ b/Compute/src/V1/HealthChecksAggregatedList.php @@ -73,7 +73,7 @@ class HealthChecksAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/HealthChecksScopedList.php b/Compute/src/V1/HealthChecksScopedList.php index 7a1ccb1de9fc..c667e74ae625 100644 --- a/Compute/src/V1/HealthChecksScopedList.php +++ b/Compute/src/V1/HealthChecksScopedList.php @@ -33,7 +33,7 @@ class HealthChecksScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\HealthCheck[]|\Google\Protobuf\Internal\RepeatedField $health_checks + * @type array<\Google\Cloud\Compute\V1\HealthCheck>|\Google\Protobuf\Internal\RepeatedField $health_checks * A list of HealthChecks contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of backend services when the list is empty. @@ -59,7 +59,7 @@ public function getHealthChecks() * A list of HealthChecks contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.HealthCheck health_checks = 448370606; - * @param \Google\Cloud\Compute\V1\HealthCheck[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HealthCheck>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHealthChecks($var) diff --git a/Compute/src/V1/Help.php b/Compute/src/V1/Help.php new file mode 100644 index 000000000000..46ccdd08decd --- /dev/null +++ b/Compute/src/V1/Help.php @@ -0,0 +1,67 @@ +google.cloud.compute.v1.Help + */ +class Help extends \Google\Protobuf\Internal\Message +{ + /** + * URL(s) pointing to additional information on handling the current error. + * + * Generated from protobuf field repeated .google.cloud.compute.v1.HelpLink links = 102977465; + */ + private $links; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Compute\V1\HelpLink>|\Google\Protobuf\Internal\RepeatedField $links + * URL(s) pointing to additional information on handling the current error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce(); + parent::__construct($data); + } + + /** + * URL(s) pointing to additional information on handling the current error. + * + * Generated from protobuf field repeated .google.cloud.compute.v1.HelpLink links = 102977465; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLinks() + { + return $this->links; + } + + /** + * URL(s) pointing to additional information on handling the current error. + * + * Generated from protobuf field repeated .google.cloud.compute.v1.HelpLink links = 102977465; + * @param array<\Google\Cloud\Compute\V1\HelpLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\HelpLink::class); + $this->links = $arr; + + return $this; + } + +} + diff --git a/Compute/src/V1/HelpLink.php b/Compute/src/V1/HelpLink.php new file mode 100644 index 000000000000..b0f49741525a --- /dev/null +++ b/Compute/src/V1/HelpLink.php @@ -0,0 +1,121 @@ +google.cloud.compute.v1.HelpLink + */ +class HelpLink extends \Google\Protobuf\Internal\Message +{ + /** + * Describes what the link offers. + * + * Generated from protobuf field optional string description = 422937596; + */ + private $description = null; + /** + * The URL of the link. + * + * Generated from protobuf field optional string url = 116079; + */ + private $url = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * Describes what the link offers. + * @type string $url + * The URL of the link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce(); + parent::__construct($data); + } + + /** + * Describes what the link offers. + * + * Generated from protobuf field optional string description = 422937596; + * @return string + */ + public function getDescription() + { + return isset($this->description) ? $this->description : ''; + } + + public function hasDescription() + { + return isset($this->description); + } + + public function clearDescription() + { + unset($this->description); + } + + /** + * Describes what the link offers. + * + * Generated from protobuf field optional string description = 422937596; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * The URL of the link. + * + * Generated from protobuf field optional string url = 116079; + * @return string + */ + public function getUrl() + { + return isset($this->url) ? $this->url : ''; + } + + public function hasUrl() + { + return isset($this->url); + } + + public function clearUrl() + { + unset($this->url); + } + + /** + * The URL of the link. + * + * Generated from protobuf field optional string url = 116079; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + +} + diff --git a/Compute/src/V1/HostRule.php b/Compute/src/V1/HostRule.php index 2db594022e06..52928ff3b823 100644 --- a/Compute/src/V1/HostRule.php +++ b/Compute/src/V1/HostRule.php @@ -42,7 +42,7 @@ class HostRule extends \Google\Protobuf\Internal\Message * * @type string $description * An optional description of this resource. Provide this property when you create the resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $hosts + * @type array|\Google\Protobuf\Internal\RepeatedField $hosts * The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. * @type string $path_matcher * The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. @@ -104,7 +104,7 @@ public function getHosts() * The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. * * Generated from protobuf field repeated string hosts = 99467211; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHosts($var) diff --git a/Compute/src/V1/HttpHeaderAction.php b/Compute/src/V1/HttpHeaderAction.php index ad90b2e25b33..476f01d24097 100644 --- a/Compute/src/V1/HttpHeaderAction.php +++ b/Compute/src/V1/HttpHeaderAction.php @@ -46,13 +46,13 @@ class HttpHeaderAction extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\HttpHeaderOption[]|\Google\Protobuf\Internal\RepeatedField $request_headers_to_add + * @type array<\Google\Cloud\Compute\V1\HttpHeaderOption>|\Google\Protobuf\Internal\RepeatedField $request_headers_to_add * Headers to add to a matching request before forwarding the request to the backendService. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $request_headers_to_remove + * @type array|\Google\Protobuf\Internal\RepeatedField $request_headers_to_remove * A list of header names for headers that need to be removed from the request before forwarding the request to the backendService. - * @type \Google\Cloud\Compute\V1\HttpHeaderOption[]|\Google\Protobuf\Internal\RepeatedField $response_headers_to_add + * @type array<\Google\Cloud\Compute\V1\HttpHeaderOption>|\Google\Protobuf\Internal\RepeatedField $response_headers_to_add * Headers to add the response before sending the response back to the client. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $response_headers_to_remove + * @type array|\Google\Protobuf\Internal\RepeatedField $response_headers_to_remove * A list of header names for headers that need to be removed from the response before sending the response back to the client. * } */ @@ -76,7 +76,7 @@ public function getRequestHeadersToAdd() * Headers to add to a matching request before forwarding the request to the backendService. * * Generated from protobuf field repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974; - * @param \Google\Cloud\Compute\V1\HttpHeaderOption[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HttpHeaderOption>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRequestHeadersToAdd($var) @@ -102,7 +102,7 @@ public function getRequestHeadersToRemove() * A list of header names for headers that need to be removed from the request before forwarding the request to the backendService. * * Generated from protobuf field repeated string request_headers_to_remove = 218425247; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRequestHeadersToRemove($var) @@ -128,7 +128,7 @@ public function getResponseHeadersToAdd() * Headers to add the response before sending the response back to the client. * * Generated from protobuf field repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052; - * @param \Google\Cloud\Compute\V1\HttpHeaderOption[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HttpHeaderOption>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResponseHeadersToAdd($var) @@ -154,7 +154,7 @@ public function getResponseHeadersToRemove() * A list of header names for headers that need to be removed from the response before sending the response back to the client. * * Generated from protobuf field repeated string response_headers_to_remove = 75415761; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResponseHeadersToRemove($var) diff --git a/Compute/src/V1/HttpRetryPolicy.php b/Compute/src/V1/HttpRetryPolicy.php index 65e057b6843e..0a4064eeb15a 100644 --- a/Compute/src/V1/HttpRetryPolicy.php +++ b/Compute/src/V1/HttpRetryPolicy.php @@ -44,7 +44,7 @@ class HttpRetryPolicy extends \Google\Protobuf\Internal\Message * Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1. * @type \Google\Cloud\Compute\V1\Duration $per_try_timeout * Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in the HttpRouteAction field. If timeout in the HttpRouteAction field is not set, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $retry_conditions + * @type array|\Google\Protobuf\Internal\RepeatedField $retry_conditions * Specifies one or more conditions when this retry policy applies. Valid values are: - 5xx: retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. - connect-failure: a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts. - retriable-4xx: a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409. - refused-stream: a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: a retry is attempted if the gRPC status code in the response header is set to cancelled. - deadline-exceeded: a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded. - internal: a retry is attempted if the gRPC status code in the response header is set to internal. - resource-exhausted: a retry is attempted if the gRPC status code in the response header is set to resource-exhausted. - unavailable: a retry is attempted if the gRPC status code in the response header is set to unavailable. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. - cancelled - deadline-exceeded - internal - resource-exhausted - unavailable * } */ @@ -140,7 +140,7 @@ public function getRetryConditions() * Specifies one or more conditions when this retry policy applies. Valid values are: - 5xx: retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. - connect-failure: a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts. - retriable-4xx: a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409. - refused-stream: a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: a retry is attempted if the gRPC status code in the response header is set to cancelled. - deadline-exceeded: a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded. - internal: a retry is attempted if the gRPC status code in the response header is set to internal. - resource-exhausted: a retry is attempted if the gRPC status code in the response header is set to resource-exhausted. - unavailable: a retry is attempted if the gRPC status code in the response header is set to unavailable. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. - cancelled - deadline-exceeded - internal - resource-exhausted - unavailable * * Generated from protobuf field repeated string retry_conditions = 28815535; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRetryConditions($var) diff --git a/Compute/src/V1/HttpRouteAction.php b/Compute/src/V1/HttpRouteAction.php index 3424687c23f7..8a0c2d5da633 100644 --- a/Compute/src/V1/HttpRouteAction.php +++ b/Compute/src/V1/HttpRouteAction.php @@ -83,7 +83,7 @@ class HttpRouteAction extends \Google\Protobuf\Internal\Message * Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as *end-of-stream*) up until the response has been processed. Timeout includes all retries. If not specified, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. * @type \Google\Cloud\Compute\V1\UrlRewrite $url_rewrite * The spec to modify the URL of the request, before forwarding the request to the matched service. urlRewrite is the only action supported in UrlMaps for external HTTP(S) load balancers. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. - * @type \Google\Cloud\Compute\V1\WeightedBackendService[]|\Google\Protobuf\Internal\RepeatedField $weighted_backend_services + * @type array<\Google\Cloud\Compute\V1\WeightedBackendService>|\Google\Protobuf\Internal\RepeatedField $weighted_backend_services * A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. * } */ @@ -359,7 +359,7 @@ public function getWeightedBackendServices() * A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. * * Generated from protobuf field repeated .google.cloud.compute.v1.WeightedBackendService weighted_backend_services = 337028049; - * @param \Google\Cloud\Compute\V1\WeightedBackendService[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\WeightedBackendService>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setWeightedBackendServices($var) diff --git a/Compute/src/V1/HttpRouteRule.php b/Compute/src/V1/HttpRouteRule.php index 68195e1e6a2d..df0d51a98831 100644 --- a/Compute/src/V1/HttpRouteRule.php +++ b/Compute/src/V1/HttpRouteRule.php @@ -68,7 +68,7 @@ class HttpRouteRule extends \Google\Protobuf\Internal\Message * The short description conveying the intent of this routeRule. The description can have a maximum length of 1024 characters. * @type \Google\Cloud\Compute\V1\HttpHeaderAction $header_action * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction value specified here is applied before the matching pathMatchers[].headerAction and after pathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction HeaderAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. - * @type \Google\Cloud\Compute\V1\HttpRouteRuleMatch[]|\Google\Protobuf\Internal\RepeatedField $match_rules + * @type array<\Google\Cloud\Compute\V1\HttpRouteRuleMatch>|\Google\Protobuf\Internal\RepeatedField $match_rules * The list of criteria for matching attributes of a request to this routeRule. This list has OR semantics: the request matches this routeRule when any of the matchRules are satisfied. However predicates within a given matchRule have AND semantics. All predicates within a matchRule must match for the request to match the rule. * @type int $priority * For routeRules within a given pathMatcher, priority determines the order in which a load balancer interprets routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number from 0 to 2147483647 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules. @@ -172,7 +172,7 @@ public function getMatchRules() * The list of criteria for matching attributes of a request to this routeRule. This list has OR semantics: the request matches this routeRule when any of the matchRules are satisfied. However predicates within a given matchRule have AND semantics. All predicates within a matchRule must match for the request to match the rule. * * Generated from protobuf field repeated .google.cloud.compute.v1.HttpRouteRuleMatch match_rules = 376200701; - * @param \Google\Cloud\Compute\V1\HttpRouteRuleMatch[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HttpRouteRuleMatch>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMatchRules($var) diff --git a/Compute/src/V1/HttpRouteRuleMatch.php b/Compute/src/V1/HttpRouteRuleMatch.php index d1a34e5351ed..173f51041e81 100644 --- a/Compute/src/V1/HttpRouteRuleMatch.php +++ b/Compute/src/V1/HttpRouteRuleMatch.php @@ -66,15 +66,15 @@ class HttpRouteRuleMatch extends \Google\Protobuf\Internal\Message * * @type string $full_path_match * For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. fullPathMatch must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. - * @type \Google\Cloud\Compute\V1\HttpHeaderMatch[]|\Google\Protobuf\Internal\RepeatedField $header_matches + * @type array<\Google\Cloud\Compute\V1\HttpHeaderMatch>|\Google\Protobuf\Internal\RepeatedField $header_matches * Specifies a list of header match criteria, all of which must match corresponding headers in the request. * @type bool $ignore_case * Specifies that prefixMatch and fullPathMatch matches are case sensitive. The default value is false. ignoreCase must not be used with regexMatch. Not supported when the URL map is bound to a target gRPC proxy. - * @type \Google\Cloud\Compute\V1\MetadataFilter[]|\Google\Protobuf\Internal\RepeatedField $metadata_filters + * @type array<\Google\Cloud\Compute\V1\MetadataFilter>|\Google\Protobuf\Internal\RepeatedField $metadata_filters * Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadata filters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here is applied after those specified in ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to. metadataFilters only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. * @type string $prefix_match * For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. - * @type \Google\Cloud\Compute\V1\HttpQueryParameterMatch[]|\Google\Protobuf\Internal\RepeatedField $query_parameter_matches + * @type array<\Google\Cloud\Compute\V1\HttpQueryParameterMatch>|\Google\Protobuf\Internal\RepeatedField $query_parameter_matches * Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Not supported when the URL map is bound to a target gRPC proxy. * @type string $regex_match * For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For more information about regular expression syntax, see Syntax. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. regexMatch only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. @@ -136,7 +136,7 @@ public function getHeaderMatches() * Specifies a list of header match criteria, all of which must match corresponding headers in the request. * * Generated from protobuf field repeated .google.cloud.compute.v1.HttpHeaderMatch header_matches = 361903489; - * @param \Google\Cloud\Compute\V1\HttpHeaderMatch[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HttpHeaderMatch>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHeaderMatches($var) @@ -198,7 +198,7 @@ public function getMetadataFilters() * Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadata filters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here is applied after those specified in ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to. metadataFilters only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. * * Generated from protobuf field repeated .google.cloud.compute.v1.MetadataFilter metadata_filters = 464725739; - * @param \Google\Cloud\Compute\V1\MetadataFilter[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\MetadataFilter>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMetadataFilters($var) @@ -260,7 +260,7 @@ public function getQueryParameterMatches() * Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Not supported when the URL map is bound to a target gRPC proxy. * * Generated from protobuf field repeated .google.cloud.compute.v1.HttpQueryParameterMatch query_parameter_matches = 286231270; - * @param \Google\Cloud\Compute\V1\HttpQueryParameterMatch[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HttpQueryParameterMatch>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setQueryParameterMatches($var) diff --git a/Compute/src/V1/Image.php b/Compute/src/V1/Image.php index 2b28dee07e9c..18a97b6eccc9 100644 --- a/Compute/src/V1/Image.php +++ b/Compute/src/V1/Image.php @@ -15,6 +15,13 @@ */ class Image extends \Google\Protobuf\Internal\Message { + /** + * The architecture of the image. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + */ + private $architecture = null; /** * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). * @@ -210,6 +217,9 @@ class Image extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * + * @type string $architecture + * The architecture of the image. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. * @type int|string $archive_size_bytes * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). * @type string $creation_timestamp @@ -222,7 +232,7 @@ class Image extends \Google\Protobuf\Internal\Message * Size of the image when restored onto a persistent disk (in GB). * @type string $family * The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035. - * @type \Google\Cloud\Compute\V1\GuestOsFeature[]|\Google\Protobuf\Internal\RepeatedField $guest_os_features + * @type array<\Google\Cloud\Compute\V1\GuestOsFeature>|\Google\Protobuf\Internal\RepeatedField $guest_os_features * A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter. * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. @@ -234,9 +244,9 @@ class Image extends \Google\Protobuf\Internal\Message * A fingerprint for the labels being applied to this image, which is essentially a hash of the labels used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an image. * @type array|\Google\Protobuf\Internal\MapField $labels * Labels to apply to this image. These can be later modified by the setLabels method. - * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $license_codes + * @type array|array|\Google\Protobuf\Internal\RepeatedField $license_codes * Integer license codes indicating which licenses are attached to this image. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $licenses + * @type array|\Google\Protobuf\Internal\RepeatedField $licenses * Any applicable license URI. * @type string $name * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. @@ -272,7 +282,7 @@ class Image extends \Google\Protobuf\Internal\Message * @type string $status * [Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY. * Check the Status enum for the list of possible values. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $storage_locations + * @type array|\Google\Protobuf\Internal\RepeatedField $storage_locations * Cloud Storage bucket storage location of the image (regional or multi-regional). * } */ @@ -281,6 +291,44 @@ public function __construct($data = NULL) { parent::__construct($data); } + /** + * The architecture of the image. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @return string + */ + public function getArchitecture() + { + return isset($this->architecture) ? $this->architecture : ''; + } + + public function hasArchitecture() + { + return isset($this->architecture); + } + + public function clearArchitecture() + { + unset($this->architecture); + } + + /** + * The architecture of the image. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @param string $var + * @return $this + */ + public function setArchitecture($var) + { + GPBUtil::checkString($var, True); + $this->architecture = $var; + + return $this; + } + /** * Size of the image tar.gz archive stored in Google Cloud Storage (in bytes). * @@ -512,7 +560,7 @@ public function getGuestOsFeatures() * A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter. * * Generated from protobuf field repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545; - * @param \Google\Cloud\Compute\V1\GuestOsFeature[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\GuestOsFeature>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setGuestOsFeatures($var) @@ -708,7 +756,7 @@ public function getLicenseCodes() * Integer license codes indicating which licenses are attached to this image. * * Generated from protobuf field repeated int64 license_codes = 45482664; - * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLicenseCodes($var) @@ -734,7 +782,7 @@ public function getLicenses() * Any applicable license URI. * * Generated from protobuf field repeated string licenses = 337642578; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLicenses($var) @@ -1340,7 +1388,7 @@ public function getStorageLocations() * Cloud Storage bucket storage location of the image (regional or multi-regional). * * Generated from protobuf field repeated string storage_locations = 328005274; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setStorageLocations($var) diff --git a/Compute/src/V1/Image/Architecture.php b/Compute/src/V1/Image/Architecture.php new file mode 100644 index 000000000000..5ba599814021 --- /dev/null +++ b/Compute/src/V1/Image/Architecture.php @@ -0,0 +1,69 @@ +google.cloud.compute.v1.Image.Architecture + */ +class Architecture +{ + /** + * A value indicating that the enum field is not set. + * + * Generated from protobuf enum UNDEFINED_ARCHITECTURE = 0; + */ + const UNDEFINED_ARCHITECTURE = 0; + /** + * Default value indicating Architecture is not set. + * + * Generated from protobuf enum ARCHITECTURE_UNSPECIFIED = 394750507; + */ + const ARCHITECTURE_UNSPECIFIED = 394750507; + /** + * Machines with architecture ARM64 + * + * Generated from protobuf enum ARM64 = 62547450; + */ + const ARM64 = 62547450; + /** + * Machines with architecture X86_64 + * + * Generated from protobuf enum X86_64 = 425300551; + */ + const X86_64 = 425300551; + + private static $valueToName = [ + self::UNDEFINED_ARCHITECTURE => 'UNDEFINED_ARCHITECTURE', + self::ARCHITECTURE_UNSPECIFIED => 'ARCHITECTURE_UNSPECIFIED', + self::ARM64 => 'ARM64', + self::X86_64 => 'X86_64', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Compute/src/V1/ImageList.php b/Compute/src/V1/ImageList.php index f1da4ebd3da7..1f8fe892ca82 100644 --- a/Compute/src/V1/ImageList.php +++ b/Compute/src/V1/ImageList.php @@ -60,7 +60,7 @@ class ImageList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Image[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Image>|\Google\Protobuf\Internal\RepeatedField $items * A list of Image resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of Image resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Image items = 100526016; - * @param \Google\Cloud\Compute\V1\Image[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Image>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InitialStateConfig.php b/Compute/src/V1/InitialStateConfig.php index 652d38a652a7..e2922a4c4c94 100644 --- a/Compute/src/V1/InitialStateConfig.php +++ b/Compute/src/V1/InitialStateConfig.php @@ -46,11 +46,11 @@ class InitialStateConfig extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\FileContentBuffer[]|\Google\Protobuf\Internal\RepeatedField $dbs + * @type array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $dbs * The Key Database (db). - * @type \Google\Cloud\Compute\V1\FileContentBuffer[]|\Google\Protobuf\Internal\RepeatedField $dbxs + * @type array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $dbxs * The forbidden key database (dbx). - * @type \Google\Cloud\Compute\V1\FileContentBuffer[]|\Google\Protobuf\Internal\RepeatedField $keks + * @type array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $keks * The Key Exchange Key (KEK). * @type \Google\Cloud\Compute\V1\FileContentBuffer $pk * The Platform Key (PK). @@ -76,7 +76,7 @@ public function getDbs() * The Key Database (db). * * Generated from protobuf field repeated .google.cloud.compute.v1.FileContentBuffer dbs = 99253; - * @param \Google\Cloud\Compute\V1\FileContentBuffer[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDbs($var) @@ -102,7 +102,7 @@ public function getDbxs() * The forbidden key database (dbx). * * Generated from protobuf field repeated .google.cloud.compute.v1.FileContentBuffer dbxs = 3077113; - * @param \Google\Cloud\Compute\V1\FileContentBuffer[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDbxs($var) @@ -128,7 +128,7 @@ public function getKeks() * The Key Exchange Key (KEK). * * Generated from protobuf field repeated .google.cloud.compute.v1.FileContentBuffer keks = 3288130; - * @param \Google\Cloud\Compute\V1\FileContentBuffer[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FileContentBuffer>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setKeks($var) diff --git a/Compute/src/V1/Instance.php b/Compute/src/V1/Instance.php index 5cf40052e870..0a6478ac5d78 100644 --- a/Compute/src/V1/Instance.php +++ b/Compute/src/V1/Instance.php @@ -91,6 +91,13 @@ class Instance extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional uint64 id = 3355; */ private $id = null; + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. + * + * Generated from protobuf field optional string key_revocation_action_type = 235941474; + */ + private $key_revocation_action_type = null; /** * [Output Only] Type of the resource. Always compute#instance for instances. * @@ -281,18 +288,21 @@ class Instance extends \Google\Protobuf\Internal\Message * Whether the resource should be protected against deletion. * @type string $description * An optional description of this resource. Provide this property when you create the resource. - * @type \Google\Cloud\Compute\V1\AttachedDisk[]|\Google\Protobuf\Internal\RepeatedField $disks + * @type array<\Google\Cloud\Compute\V1\AttachedDisk>|\Google\Protobuf\Internal\RepeatedField $disks * Array of disks associated with this instance. Persistent disks must be created before you can assign them. * @type \Google\Cloud\Compute\V1\DisplayDevice $display_device * Enables display device for the instance. * @type string $fingerprint * Specifies a fingerprint for this resource, which is essentially a hash of the instance's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance. You must always provide an up-to-date fingerprint hash in order to update the instance. To see the latest fingerprint, make get() request to the instance. - * @type \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $guest_accelerators + * @type array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $guest_accelerators * A list of the type and count of accelerator cards attached to the instance. * @type string $hostname * Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS. * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. + * @type string $key_revocation_action_type + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. * @type string $kind * [Output Only] Type of the resource. Always compute#instance for instances. * @type string $label_fingerprint @@ -313,7 +323,7 @@ class Instance extends \Google\Protobuf\Internal\Message * Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". * @type string $name * The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - * @type \Google\Cloud\Compute\V1\NetworkInterface[]|\Google\Protobuf\Internal\RepeatedField $network_interfaces + * @type array<\Google\Cloud\Compute\V1\NetworkInterface>|\Google\Protobuf\Internal\RepeatedField $network_interfaces * An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. * @type \Google\Cloud\Compute\V1\NetworkPerformanceConfig $network_performance_config * @type \Google\Cloud\Compute\V1\InstanceParams $params @@ -323,7 +333,7 @@ class Instance extends \Google\Protobuf\Internal\Message * Check the PrivateIpv6GoogleAccess enum for the list of possible values. * @type \Google\Cloud\Compute\V1\ReservationAffinity $reservation_affinity * Specifies the reservations that this instance can consume from. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $resource_policies + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_policies * Resource policies applied to this instance. * @type bool $satisfies_pzs * [Output Only] Reserved for future use. @@ -331,7 +341,7 @@ class Instance extends \Google\Protobuf\Internal\Message * Sets the scheduling options for this instance. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type \Google\Cloud\Compute\V1\ServiceAccount[]|\Google\Protobuf\Internal\RepeatedField $service_accounts + * @type array<\Google\Cloud\Compute\V1\ServiceAccount>|\Google\Protobuf\Internal\RepeatedField $service_accounts * A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information. * @type \Google\Cloud\Compute\V1\ShieldedInstanceConfig $shielded_instance_config * @type \Google\Cloud\Compute\V1\ShieldedInstanceIntegrityPolicy $shielded_instance_integrity_policy @@ -620,7 +630,7 @@ public function getDisks() * Array of disks associated with this instance. Persistent disks must be created before you can assign them. * * Generated from protobuf field repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; - * @param \Google\Cloud\Compute\V1\AttachedDisk[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AttachedDisk>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDisks($var) @@ -718,7 +728,7 @@ public function getGuestAccelerators() * A list of the type and count of accelerator cards attached to the instance. * * Generated from protobuf field repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119; - * @param \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setGuestAccelerators($var) @@ -801,6 +811,44 @@ public function setId($var) return $this; } + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. + * + * Generated from protobuf field optional string key_revocation_action_type = 235941474; + * @return string + */ + public function getKeyRevocationActionType() + { + return isset($this->key_revocation_action_type) ? $this->key_revocation_action_type : ''; + } + + public function hasKeyRevocationActionType() + { + return isset($this->key_revocation_action_type); + } + + public function clearKeyRevocationActionType() + { + unset($this->key_revocation_action_type); + } + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. + * + * Generated from protobuf field optional string key_revocation_action_type = 235941474; + * @param string $var + * @return $this + */ + public function setKeyRevocationActionType($var) + { + GPBUtil::checkString($var, True); + $this->key_revocation_action_type = $var; + + return $this; + } + /** * [Output Only] Type of the resource. Always compute#instance for instances. * @@ -1166,7 +1214,7 @@ public function getNetworkInterfaces() * An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243; - * @param \Google\Cloud\Compute\V1\NetworkInterface[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkInterface>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNetworkInterfaces($var) @@ -1334,7 +1382,7 @@ public function getResourcePolicies() * Resource policies applied to this instance. * * Generated from protobuf field repeated string resource_policies = 22220385; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcePolicies($var) @@ -1468,7 +1516,7 @@ public function getServiceAccounts() * A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information. * * Generated from protobuf field repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328; - * @param \Google\Cloud\Compute\V1\ServiceAccount[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ServiceAccount>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setServiceAccounts($var) diff --git a/Compute/src/V1/Instance/KeyRevocationActionType.php b/Compute/src/V1/Instance/KeyRevocationActionType.php new file mode 100644 index 000000000000..3572da630e69 --- /dev/null +++ b/Compute/src/V1/Instance/KeyRevocationActionType.php @@ -0,0 +1,69 @@ +google.cloud.compute.v1.Instance.KeyRevocationActionType + */ +class KeyRevocationActionType +{ + /** + * A value indicating that the enum field is not set. + * + * Generated from protobuf enum UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; + */ + const UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; + /** + * Default value. This value is unused. + * + * Generated from protobuf enum KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106; + */ + const KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106; + /** + * Indicates user chose no operation. + * + * Generated from protobuf enum NONE = 2402104; + */ + const NONE = 2402104; + /** + * Indicates user chose to opt for VM shutdown on key revocation. + * + * Generated from protobuf enum STOP = 2555906; + */ + const STOP = 2555906; + + private static $valueToName = [ + self::UNDEFINED_KEY_REVOCATION_ACTION_TYPE => 'UNDEFINED_KEY_REVOCATION_ACTION_TYPE', + self::KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED => 'KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED', + self::NONE => 'NONE', + self::STOP => 'STOP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Compute/src/V1/InstanceAggregatedList.php b/Compute/src/V1/InstanceAggregatedList.php index e433142b5a16..f24fd275f71d 100644 --- a/Compute/src/V1/InstanceAggregatedList.php +++ b/Compute/src/V1/InstanceAggregatedList.php @@ -73,7 +73,7 @@ class InstanceAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/InstanceGroup.php b/Compute/src/V1/InstanceGroup.php index 01eae7711db6..f0ab1b848d92 100644 --- a/Compute/src/V1/InstanceGroup.php +++ b/Compute/src/V1/InstanceGroup.php @@ -112,7 +112,7 @@ class InstanceGroup extends \Google\Protobuf\Internal\Message * [Output Only] The resource type, which is always compute#instanceGroup for instance groups. * @type string $name * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. - * @type \Google\Cloud\Compute\V1\NamedPort[]|\Google\Protobuf\Internal\RepeatedField $named_ports + * @type array<\Google\Cloud\Compute\V1\NamedPort>|\Google\Protobuf\Internal\RepeatedField $named_ports * Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group. * @type string $network * [Output Only] The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). @@ -364,7 +364,7 @@ public function getNamedPorts() * Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; - * @param \Google\Cloud\Compute\V1\NamedPort[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NamedPort>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNamedPorts($var) diff --git a/Compute/src/V1/InstanceGroupAggregatedList.php b/Compute/src/V1/InstanceGroupAggregatedList.php index 63b042c058d4..1cf463594b2e 100644 --- a/Compute/src/V1/InstanceGroupAggregatedList.php +++ b/Compute/src/V1/InstanceGroupAggregatedList.php @@ -73,7 +73,7 @@ class InstanceGroupAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/InstanceGroupList.php b/Compute/src/V1/InstanceGroupList.php index 670d1b87532f..0a6c9e6209b4 100644 --- a/Compute/src/V1/InstanceGroupList.php +++ b/Compute/src/V1/InstanceGroupList.php @@ -60,7 +60,7 @@ class InstanceGroupList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\InstanceGroup[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\InstanceGroup>|\Google\Protobuf\Internal\RepeatedField $items * A list of InstanceGroup resources. * @type string $kind * [Output Only] The resource type, which is always compute#instanceGroupList for instance group lists. @@ -128,7 +128,7 @@ public function getItems() * A list of InstanceGroup resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceGroup items = 100526016; - * @param \Google\Cloud\Compute\V1\InstanceGroup[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceGroup>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InstanceGroupManager.php b/Compute/src/V1/InstanceGroupManager.php index 22deabc8925a..87de7f72ccea 100644 --- a/Compute/src/V1/InstanceGroupManager.php +++ b/Compute/src/V1/InstanceGroupManager.php @@ -154,7 +154,7 @@ class InstanceGroupManager extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InstanceGroupManagerAutoHealingPolicy[]|\Google\Protobuf\Internal\RepeatedField $auto_healing_policies + * @type array<\Google\Cloud\Compute\V1\InstanceGroupManagerAutoHealingPolicy>|\Google\Protobuf\Internal\RepeatedField $auto_healing_policies * The autohealing policy for this managed instance group. You can specify only one value. * @type string $base_instance_name * The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035. @@ -178,7 +178,7 @@ class InstanceGroupManager extends \Google\Protobuf\Internal\Message * [Output Only] The resource type, which is always compute#instanceGroupManager for managed instance groups. * @type string $name * The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035. - * @type \Google\Cloud\Compute\V1\NamedPort[]|\Google\Protobuf\Internal\RepeatedField $named_ports + * @type array<\Google\Cloud\Compute\V1\NamedPort>|\Google\Protobuf\Internal\RepeatedField $named_ports * Named ports configured for the Instance Groups complementary to this Instance Group Manager. * @type string $region * [Output Only] The URL of the region where the managed instance group resides (for regional resources). @@ -188,13 +188,13 @@ class InstanceGroupManager extends \Google\Protobuf\Internal\Message * Stateful configuration for this Instanced Group Manager * @type \Google\Cloud\Compute\V1\InstanceGroupManagerStatus $status * [Output Only] The status of this managed instance group. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $target_pools + * @type array|\Google\Protobuf\Internal\RepeatedField $target_pools * The URLs for all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. * @type int $target_size * The target number of running instances for this managed instance group. You can reduce this number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing the group also changes this number. * @type \Google\Cloud\Compute\V1\InstanceGroupManagerUpdatePolicy $update_policy * The update policy for this managed instance group. - * @type \Google\Cloud\Compute\V1\InstanceGroupManagerVersion[]|\Google\Protobuf\Internal\RepeatedField $versions + * @type array<\Google\Cloud\Compute\V1\InstanceGroupManagerVersion>|\Google\Protobuf\Internal\RepeatedField $versions * Specifies the instance templates used by this managed instance group to create instances. Each version is defined by an instanceTemplate and a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates. * @type string $zone * [Output Only] The URL of a zone where the managed instance group is located (for zonal resources). @@ -220,7 +220,7 @@ public function getAutoHealingPolicies() * The autohealing policy for this managed instance group. You can specify only one value. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109; - * @param \Google\Cloud\Compute\V1\InstanceGroupManagerAutoHealingPolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceGroupManagerAutoHealingPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAutoHealingPolicies($var) @@ -642,7 +642,7 @@ public function getNamedPorts() * Named ports configured for the Instance Groups complementary to this Instance Group Manager. * * Generated from protobuf field repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; - * @param \Google\Cloud\Compute\V1\NamedPort[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NamedPort>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNamedPorts($var) @@ -812,7 +812,7 @@ public function getTargetPools() * The URLs for all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. * * Generated from protobuf field repeated string target_pools = 336072617; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetPools($var) @@ -910,7 +910,7 @@ public function getVersions() * Specifies the instance templates used by this managed instance group to create instances. Each version is defined by an instanceTemplate and a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619; - * @param \Google\Cloud\Compute\V1\InstanceGroupManagerVersion[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceGroupManagerVersion>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setVersions($var) diff --git a/Compute/src/V1/InstanceGroupManagerAggregatedList.php b/Compute/src/V1/InstanceGroupManagerAggregatedList.php index 973b071b50bc..9a29737d2915 100644 --- a/Compute/src/V1/InstanceGroupManagerAggregatedList.php +++ b/Compute/src/V1/InstanceGroupManagerAggregatedList.php @@ -73,7 +73,7 @@ class InstanceGroupManagerAggregatedList extends \Google\Protobuf\Internal\Messa * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/InstanceGroupManagerList.php b/Compute/src/V1/InstanceGroupManagerList.php index cbf096eb8f8f..191d1c029f15 100644 --- a/Compute/src/V1/InstanceGroupManagerList.php +++ b/Compute/src/V1/InstanceGroupManagerList.php @@ -60,7 +60,7 @@ class InstanceGroupManagerList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\InstanceGroupManager[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\InstanceGroupManager>|\Google\Protobuf\Internal\RepeatedField $items * A list of InstanceGroupManager resources. * @type string $kind * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of managed instance groups. @@ -128,7 +128,7 @@ public function getItems() * A list of InstanceGroupManager resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceGroupManager items = 100526016; - * @param \Google\Cloud\Compute\V1\InstanceGroupManager[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceGroupManager>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InstanceGroupManagersAbandonInstancesRequest.php b/Compute/src/V1/InstanceGroupManagersAbandonInstancesRequest.php index 5c58db0c41f5..8f693f3e0eb6 100644 --- a/Compute/src/V1/InstanceGroupManagersAbandonInstancesRequest.php +++ b/Compute/src/V1/InstanceGroupManagersAbandonInstancesRequest.php @@ -27,7 +27,7 @@ class InstanceGroupManagersAbandonInstancesRequest extends \Google\Protobuf\Inte * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array|\Google\Protobuf\Internal\RepeatedField $instances * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * } */ @@ -51,7 +51,7 @@ public function getInstances() * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * * Generated from protobuf field repeated string instances = 29097598; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/InstanceGroupManagersApplyUpdatesRequest.php b/Compute/src/V1/InstanceGroupManagersApplyUpdatesRequest.php index dbb1e90d33e1..5ce98f775017 100644 --- a/Compute/src/V1/InstanceGroupManagersApplyUpdatesRequest.php +++ b/Compute/src/V1/InstanceGroupManagersApplyUpdatesRequest.php @@ -50,7 +50,7 @@ class InstanceGroupManagersApplyUpdatesRequest extends \Google\Protobuf\Internal * * @type bool $all_instances * Flag to update all instances instead of specified list of ���instances���. If the flag is set to true then the instances may not be specified in the request. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array|\Google\Protobuf\Internal\RepeatedField $instances * The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * @type string $minimal_action * The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. @@ -116,7 +116,7 @@ public function getInstances() * The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * * Generated from protobuf field repeated string instances = 29097598; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/InstanceGroupManagersCreateInstancesRequest.php b/Compute/src/V1/InstanceGroupManagersCreateInstancesRequest.php index ea2000023109..e9891bb22b1e 100644 --- a/Compute/src/V1/InstanceGroupManagersCreateInstancesRequest.php +++ b/Compute/src/V1/InstanceGroupManagersCreateInstancesRequest.php @@ -28,7 +28,7 @@ class InstanceGroupManagersCreateInstancesRequest extends \Google\Protobuf\Inter * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $instances * [Required] List of specifications of per-instance configs. * } */ @@ -52,7 +52,7 @@ public function getInstances() * [Required] List of specifications of per-instance configs. * * Generated from protobuf field repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598; - * @param \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/InstanceGroupManagersDeleteInstancesRequest.php b/Compute/src/V1/InstanceGroupManagersDeleteInstancesRequest.php index 91c1d535a7e9..cc823087bfe2 100644 --- a/Compute/src/V1/InstanceGroupManagersDeleteInstancesRequest.php +++ b/Compute/src/V1/InstanceGroupManagersDeleteInstancesRequest.php @@ -33,7 +33,7 @@ class InstanceGroupManagersDeleteInstancesRequest extends \Google\Protobuf\Inter * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array|\Google\Protobuf\Internal\RepeatedField $instances * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * @type bool $skip_instances_on_validation_error * Specifies whether the request should proceed despite the inclusion of instances that are not members of the group or that are already in the process of being deleted or abandoned. If this field is set to `false` and such an instance is specified in the request, the operation fails. The operation always fails if the request contains a malformed instance URL or a reference to an instance that exists in a zone or region other than the group's zone or region. @@ -59,7 +59,7 @@ public function getInstances() * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * * Generated from protobuf field repeated string instances = 29097598; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/InstanceGroupManagersDeletePerInstanceConfigsReq.php b/Compute/src/V1/InstanceGroupManagersDeletePerInstanceConfigsReq.php index 09009446c81f..6de7987fc49b 100644 --- a/Compute/src/V1/InstanceGroupManagersDeletePerInstanceConfigsReq.php +++ b/Compute/src/V1/InstanceGroupManagersDeletePerInstanceConfigsReq.php @@ -28,7 +28,7 @@ class InstanceGroupManagersDeletePerInstanceConfigsReq extends \Google\Protobuf\ * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $names + * @type array|\Google\Protobuf\Internal\RepeatedField $names * The list of instance names for which we want to delete per-instance configs on this managed instance group. * } */ @@ -52,7 +52,7 @@ public function getNames() * The list of instance names for which we want to delete per-instance configs on this managed instance group. * * Generated from protobuf field repeated string names = 104585032; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNames($var) diff --git a/Compute/src/V1/InstanceGroupManagersListErrorsResponse.php b/Compute/src/V1/InstanceGroupManagersListErrorsResponse.php index fa320d64cdcf..0bb1e54ee495 100644 --- a/Compute/src/V1/InstanceGroupManagersListErrorsResponse.php +++ b/Compute/src/V1/InstanceGroupManagersListErrorsResponse.php @@ -33,7 +33,7 @@ class InstanceGroupManagersListErrorsResponse extends \Google\Protobuf\Internal\ * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InstanceManagedByIgmError[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\InstanceManagedByIgmError>|\Google\Protobuf\Internal\RepeatedField $items * [Output Only] The list of errors of the managed instance group. * @type string $next_page_token * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -59,7 +59,7 @@ public function getItems() * [Output Only] The list of errors of the managed instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceManagedByIgmError items = 100526016; - * @param \Google\Cloud\Compute\V1\InstanceManagedByIgmError[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceManagedByIgmError>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InstanceGroupManagersListManagedInstancesResponse.php b/Compute/src/V1/InstanceGroupManagersListManagedInstancesResponse.php index a4b8824045c2..01836e45310a 100644 --- a/Compute/src/V1/InstanceGroupManagersListManagedInstancesResponse.php +++ b/Compute/src/V1/InstanceGroupManagersListManagedInstancesResponse.php @@ -33,7 +33,7 @@ class InstanceGroupManagersListManagedInstancesResponse extends \Google\Protobuf * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\ManagedInstance[]|\Google\Protobuf\Internal\RepeatedField $managed_instances + * @type array<\Google\Cloud\Compute\V1\ManagedInstance>|\Google\Protobuf\Internal\RepeatedField $managed_instances * [Output Only] The list of instances in the managed instance group. * @type string $next_page_token * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -59,7 +59,7 @@ public function getManagedInstances() * [Output Only] The list of instances in the managed instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.ManagedInstance managed_instances = 336219614; - * @param \Google\Cloud\Compute\V1\ManagedInstance[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ManagedInstance>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setManagedInstances($var) diff --git a/Compute/src/V1/InstanceGroupManagersListPerInstanceConfigsResp.php b/Compute/src/V1/InstanceGroupManagersListPerInstanceConfigsResp.php index 41983e9fa1c2..8b9bd9ab324a 100644 --- a/Compute/src/V1/InstanceGroupManagersListPerInstanceConfigsResp.php +++ b/Compute/src/V1/InstanceGroupManagersListPerInstanceConfigsResp.php @@ -39,7 +39,7 @@ class InstanceGroupManagersListPerInstanceConfigsResp extends \Google\Protobuf\I * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $items * [Output Only] The list of PerInstanceConfig. * @type string $next_page_token * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -67,7 +67,7 @@ public function getItems() * [Output Only] The list of PerInstanceConfig. * * Generated from protobuf field repeated .google.cloud.compute.v1.PerInstanceConfig items = 100526016; - * @param \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InstanceGroupManagersPatchPerInstanceConfigsReq.php b/Compute/src/V1/InstanceGroupManagersPatchPerInstanceConfigsReq.php index 2071781dc5e9..9daed3fbb2de 100644 --- a/Compute/src/V1/InstanceGroupManagersPatchPerInstanceConfigsReq.php +++ b/Compute/src/V1/InstanceGroupManagersPatchPerInstanceConfigsReq.php @@ -28,7 +28,7 @@ class InstanceGroupManagersPatchPerInstanceConfigsReq extends \Google\Protobuf\I * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $per_instance_configs + * @type array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $per_instance_configs * The list of per-instance configurations to insert or patch on this managed instance group. * } */ @@ -52,7 +52,7 @@ public function getPerInstanceConfigs() * The list of per-instance configurations to insert or patch on this managed instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.PerInstanceConfig per_instance_configs = 526265001; - * @param \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPerInstanceConfigs($var) diff --git a/Compute/src/V1/InstanceGroupManagersRecreateInstancesRequest.php b/Compute/src/V1/InstanceGroupManagersRecreateInstancesRequest.php index 5eb23264b218..4506198d1408 100644 --- a/Compute/src/V1/InstanceGroupManagersRecreateInstancesRequest.php +++ b/Compute/src/V1/InstanceGroupManagersRecreateInstancesRequest.php @@ -27,7 +27,7 @@ class InstanceGroupManagersRecreateInstancesRequest extends \Google\Protobuf\Int * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array|\Google\Protobuf\Internal\RepeatedField $instances * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * } */ @@ -51,7 +51,7 @@ public function getInstances() * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * * Generated from protobuf field repeated string instances = 29097598; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/InstanceGroupManagersScopedList.php b/Compute/src/V1/InstanceGroupManagersScopedList.php index 1199e3a84ec3..f09f817ce010 100644 --- a/Compute/src/V1/InstanceGroupManagersScopedList.php +++ b/Compute/src/V1/InstanceGroupManagersScopedList.php @@ -33,7 +33,7 @@ class InstanceGroupManagersScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InstanceGroupManager[]|\Google\Protobuf\Internal\RepeatedField $instance_group_managers + * @type array<\Google\Cloud\Compute\V1\InstanceGroupManager>|\Google\Protobuf\Internal\RepeatedField $instance_group_managers * [Output Only] The list of managed instance groups that are contained in the specified project and zone. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] The warning that replaces the list of managed instance groups when the list is empty. @@ -59,7 +59,7 @@ public function getInstanceGroupManagers() * [Output Only] The list of managed instance groups that are contained in the specified project and zone. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceGroupManager instance_group_managers = 214072592; - * @param \Google\Cloud\Compute\V1\InstanceGroupManager[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceGroupManager>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstanceGroupManagers($var) diff --git a/Compute/src/V1/InstanceGroupManagersSetTargetPoolsRequest.php b/Compute/src/V1/InstanceGroupManagersSetTargetPoolsRequest.php index 7fb65fe3623d..1a3926891ace 100644 --- a/Compute/src/V1/InstanceGroupManagersSetTargetPoolsRequest.php +++ b/Compute/src/V1/InstanceGroupManagersSetTargetPoolsRequest.php @@ -35,7 +35,7 @@ class InstanceGroupManagersSetTargetPoolsRequest extends \Google\Protobuf\Intern * * @type string $fingerprint * The fingerprint of the target pools information. Use this optional property to prevent conflicts when multiple users change the target pools settings concurrently. Obtain the fingerprint with the instanceGroupManagers.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $target_pools + * @type array|\Google\Protobuf\Internal\RepeatedField $target_pools * The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings. * } */ @@ -95,7 +95,7 @@ public function getTargetPools() * The list of target pool URLs that instances in this managed instance group belong to. The managed instance group applies these target pools to all of the instances in the group. Existing instances and new instances in the group all receive these target pool settings. * * Generated from protobuf field repeated string target_pools = 336072617; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetPools($var) diff --git a/Compute/src/V1/InstanceGroupManagersUpdatePerInstanceConfigsReq.php b/Compute/src/V1/InstanceGroupManagersUpdatePerInstanceConfigsReq.php index c5bdc4b90a95..62ca03bb95b0 100644 --- a/Compute/src/V1/InstanceGroupManagersUpdatePerInstanceConfigsReq.php +++ b/Compute/src/V1/InstanceGroupManagersUpdatePerInstanceConfigsReq.php @@ -28,7 +28,7 @@ class InstanceGroupManagersUpdatePerInstanceConfigsReq extends \Google\Protobuf\ * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $per_instance_configs + * @type array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $per_instance_configs * The list of per-instance configurations to insert or patch on this managed instance group. * } */ @@ -52,7 +52,7 @@ public function getPerInstanceConfigs() * The list of per-instance configurations to insert or patch on this managed instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.PerInstanceConfig per_instance_configs = 526265001; - * @param \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPerInstanceConfigs($var) diff --git a/Compute/src/V1/InstanceGroupsAddInstancesRequest.php b/Compute/src/V1/InstanceGroupsAddInstancesRequest.php index e454854069de..dc36329892d4 100644 --- a/Compute/src/V1/InstanceGroupsAddInstancesRequest.php +++ b/Compute/src/V1/InstanceGroupsAddInstancesRequest.php @@ -27,7 +27,7 @@ class InstanceGroupsAddInstancesRequest extends \Google\Protobuf\Internal\Messag * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InstanceReference[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array<\Google\Cloud\Compute\V1\InstanceReference>|\Google\Protobuf\Internal\RepeatedField $instances * The list of instances to add to the instance group. * } */ @@ -51,7 +51,7 @@ public function getInstances() * The list of instances to add to the instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceReference instances = 29097598; - * @param \Google\Cloud\Compute\V1\InstanceReference[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceReference>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/InstanceGroupsListInstances.php b/Compute/src/V1/InstanceGroupsListInstances.php index fc32b7790041..108ad959742c 100644 --- a/Compute/src/V1/InstanceGroupsListInstances.php +++ b/Compute/src/V1/InstanceGroupsListInstances.php @@ -59,7 +59,7 @@ class InstanceGroupsListInstances extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\InstanceWithNamedPorts[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\InstanceWithNamedPorts>|\Google\Protobuf\Internal\RepeatedField $items * A list of InstanceWithNamedPorts resources. * @type string $kind * [Output Only] The resource type, which is always compute#instanceGroupsListInstances for the list of instances in the specified instance group. @@ -127,7 +127,7 @@ public function getItems() * A list of InstanceWithNamedPorts resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceWithNamedPorts items = 100526016; - * @param \Google\Cloud\Compute\V1\InstanceWithNamedPorts[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceWithNamedPorts>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InstanceGroupsRemoveInstancesRequest.php b/Compute/src/V1/InstanceGroupsRemoveInstancesRequest.php index 311ab4e25482..4efb8df81531 100644 --- a/Compute/src/V1/InstanceGroupsRemoveInstancesRequest.php +++ b/Compute/src/V1/InstanceGroupsRemoveInstancesRequest.php @@ -27,7 +27,7 @@ class InstanceGroupsRemoveInstancesRequest extends \Google\Protobuf\Internal\Mes * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InstanceReference[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array<\Google\Cloud\Compute\V1\InstanceReference>|\Google\Protobuf\Internal\RepeatedField $instances * The list of instances to remove from the instance group. * } */ @@ -51,7 +51,7 @@ public function getInstances() * The list of instances to remove from the instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceReference instances = 29097598; - * @param \Google\Cloud\Compute\V1\InstanceReference[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceReference>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/InstanceGroupsScopedList.php b/Compute/src/V1/InstanceGroupsScopedList.php index 46a1ff428424..867443bceb7b 100644 --- a/Compute/src/V1/InstanceGroupsScopedList.php +++ b/Compute/src/V1/InstanceGroupsScopedList.php @@ -33,7 +33,7 @@ class InstanceGroupsScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InstanceGroup[]|\Google\Protobuf\Internal\RepeatedField $instance_groups + * @type array<\Google\Cloud\Compute\V1\InstanceGroup>|\Google\Protobuf\Internal\RepeatedField $instance_groups * [Output Only] The list of instance groups that are contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] An informational warning that replaces the list of instance groups when the list is empty. @@ -59,7 +59,7 @@ public function getInstanceGroups() * [Output Only] The list of instance groups that are contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceGroup instance_groups = 366469310; - * @param \Google\Cloud\Compute\V1\InstanceGroup[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceGroup>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstanceGroups($var) diff --git a/Compute/src/V1/InstanceGroupsSetNamedPortsRequest.php b/Compute/src/V1/InstanceGroupsSetNamedPortsRequest.php index ea58f8cde318..cbc80cb6a1fd 100644 --- a/Compute/src/V1/InstanceGroupsSetNamedPortsRequest.php +++ b/Compute/src/V1/InstanceGroupsSetNamedPortsRequest.php @@ -35,7 +35,7 @@ class InstanceGroupsSetNamedPortsRequest extends \Google\Protobuf\Internal\Messa * * @type string $fingerprint * The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. A request with an incorrect fingerprint will fail with error 412 conditionNotMet. - * @type \Google\Cloud\Compute\V1\NamedPort[]|\Google\Protobuf\Internal\RepeatedField $named_ports + * @type array<\Google\Cloud\Compute\V1\NamedPort>|\Google\Protobuf\Internal\RepeatedField $named_ports * The list of named ports to set for this instance group. * } */ @@ -95,7 +95,7 @@ public function getNamedPorts() * The list of named ports to set for this instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; - * @param \Google\Cloud\Compute\V1\NamedPort[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NamedPort>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNamedPorts($var) diff --git a/Compute/src/V1/InstanceList.php b/Compute/src/V1/InstanceList.php index 97ef959748da..76c29dcf52a3 100644 --- a/Compute/src/V1/InstanceList.php +++ b/Compute/src/V1/InstanceList.php @@ -60,7 +60,7 @@ class InstanceList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Instance[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $items * A list of Instance resources. * @type string $kind * [Output Only] Type of resource. Always compute#instanceList for lists of Instance resources. @@ -128,7 +128,7 @@ public function getItems() * A list of Instance resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Instance items = 100526016; - * @param \Google\Cloud\Compute\V1\Instance[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InstanceListReferrers.php b/Compute/src/V1/InstanceListReferrers.php index cc3adf0aeb29..ea499787d3b3 100644 --- a/Compute/src/V1/InstanceListReferrers.php +++ b/Compute/src/V1/InstanceListReferrers.php @@ -60,7 +60,7 @@ class InstanceListReferrers extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Reference[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Reference>|\Google\Protobuf\Internal\RepeatedField $items * A list of Reference resources. * @type string $kind * [Output Only] Type of resource. Always compute#instanceListReferrers for lists of Instance referrers. @@ -128,7 +128,7 @@ public function getItems() * A list of Reference resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Reference items = 100526016; - * @param \Google\Cloud\Compute\V1\Reference[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Reference>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InstanceProperties.php b/Compute/src/V1/InstanceProperties.php index e7cdcc312cea..e22b719f268b 100644 --- a/Compute/src/V1/InstanceProperties.php +++ b/Compute/src/V1/InstanceProperties.php @@ -50,6 +50,13 @@ class InstanceProperties extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119; */ private $guest_accelerators; + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. + * + * Generated from protobuf field optional string key_revocation_action_type = 235941474; + */ + private $key_revocation_action_type = null; /** * Labels to apply to instances that are created from these properties. * @@ -150,10 +157,13 @@ class InstanceProperties extends \Google\Protobuf\Internal\Message * Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet. * @type string $description * An optional text description for the instances that are created from these properties. - * @type \Google\Cloud\Compute\V1\AttachedDisk[]|\Google\Protobuf\Internal\RepeatedField $disks + * @type array<\Google\Cloud\Compute\V1\AttachedDisk>|\Google\Protobuf\Internal\RepeatedField $disks * An array of disks that are associated with the instances that are created from these properties. - * @type \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $guest_accelerators + * @type array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $guest_accelerators * A list of guest accelerator cards' type and count to use for instances created from these properties. + * @type string $key_revocation_action_type + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. * @type array|\Google\Protobuf\Internal\MapField $labels * Labels to apply to instances that are created from these properties. * @type string $machine_type @@ -162,7 +172,7 @@ class InstanceProperties extends \Google\Protobuf\Internal\Message * The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information. * @type string $min_cpu_platform * Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform. - * @type \Google\Cloud\Compute\V1\NetworkInterface[]|\Google\Protobuf\Internal\RepeatedField $network_interfaces + * @type array<\Google\Cloud\Compute\V1\NetworkInterface>|\Google\Protobuf\Internal\RepeatedField $network_interfaces * An array of network access configurations for this interface. * @type \Google\Cloud\Compute\V1\NetworkPerformanceConfig $network_performance_config * Note that for MachineImage, this is not supported yet. @@ -173,11 +183,11 @@ class InstanceProperties extends \Google\Protobuf\Internal\Message * Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet. * @type array|\Google\Protobuf\Internal\MapField $resource_manager_tags * Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $resource_policies + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_policies * Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet. * @type \Google\Cloud\Compute\V1\Scheduling $scheduling * Specifies the scheduling options for the instances that are created from these properties. - * @type \Google\Cloud\Compute\V1\ServiceAccount[]|\Google\Protobuf\Internal\RepeatedField $service_accounts + * @type array<\Google\Cloud\Compute\V1\ServiceAccount>|\Google\Protobuf\Internal\RepeatedField $service_accounts * A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances. * @type \Google\Cloud\Compute\V1\ShieldedInstanceConfig $shielded_instance_config * Note that for MachineImage, this is not supported yet. @@ -349,7 +359,7 @@ public function getDisks() * An array of disks that are associated with the instances that are created from these properties. * * Generated from protobuf field repeated .google.cloud.compute.v1.AttachedDisk disks = 95594102; - * @param \Google\Cloud\Compute\V1\AttachedDisk[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AttachedDisk>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDisks($var) @@ -375,7 +385,7 @@ public function getGuestAccelerators() * A list of guest accelerator cards' type and count to use for instances created from these properties. * * Generated from protobuf field repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119; - * @param \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setGuestAccelerators($var) @@ -386,6 +396,44 @@ public function setGuestAccelerators($var) return $this; } + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. + * + * Generated from protobuf field optional string key_revocation_action_type = 235941474; + * @return string + */ + public function getKeyRevocationActionType() + { + return isset($this->key_revocation_action_type) ? $this->key_revocation_action_type : ''; + } + + public function hasKeyRevocationActionType() + { + return isset($this->key_revocation_action_type); + } + + public function clearKeyRevocationActionType() + { + unset($this->key_revocation_action_type); + } + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. + * + * Generated from protobuf field optional string key_revocation_action_type = 235941474; + * @param string $var + * @return $this + */ + public function setKeyRevocationActionType($var) + { + GPBUtil::checkString($var, True); + $this->key_revocation_action_type = $var; + + return $this; + } + /** * Labels to apply to instances that are created from these properties. * @@ -535,7 +583,7 @@ public function getNetworkInterfaces() * An array of network access configurations for this interface. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243; - * @param \Google\Cloud\Compute\V1\NetworkInterface[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkInterface>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNetworkInterfaces($var) @@ -697,7 +745,7 @@ public function getResourcePolicies() * Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet. * * Generated from protobuf field repeated string resource_policies = 22220385; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcePolicies($var) @@ -759,7 +807,7 @@ public function getServiceAccounts() * A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances. * * Generated from protobuf field repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328; - * @param \Google\Cloud\Compute\V1\ServiceAccount[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ServiceAccount>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setServiceAccounts($var) diff --git a/Compute/src/V1/InstanceProperties/KeyRevocationActionType.php b/Compute/src/V1/InstanceProperties/KeyRevocationActionType.php new file mode 100644 index 000000000000..8bad4c437828 --- /dev/null +++ b/Compute/src/V1/InstanceProperties/KeyRevocationActionType.php @@ -0,0 +1,69 @@ +google.cloud.compute.v1.InstanceProperties.KeyRevocationActionType + */ +class KeyRevocationActionType +{ + /** + * A value indicating that the enum field is not set. + * + * Generated from protobuf enum UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; + */ + const UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; + /** + * Default value. This value is unused. + * + * Generated from protobuf enum KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106; + */ + const KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106; + /** + * Indicates user chose no operation. + * + * Generated from protobuf enum NONE = 2402104; + */ + const NONE = 2402104; + /** + * Indicates user chose to opt for VM shutdown on key revocation. + * + * Generated from protobuf enum STOP = 2555906; + */ + const STOP = 2555906; + + private static $valueToName = [ + self::UNDEFINED_KEY_REVOCATION_ACTION_TYPE => 'UNDEFINED_KEY_REVOCATION_ACTION_TYPE', + self::KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED => 'KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED', + self::NONE => 'NONE', + self::STOP => 'STOP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Compute/src/V1/InstanceTemplateList.php b/Compute/src/V1/InstanceTemplateList.php index 78f1b9150644..b746679dd622 100644 --- a/Compute/src/V1/InstanceTemplateList.php +++ b/Compute/src/V1/InstanceTemplateList.php @@ -60,7 +60,7 @@ class InstanceTemplateList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\InstanceTemplate[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\InstanceTemplate>|\Google\Protobuf\Internal\RepeatedField $items * A list of InstanceTemplate resources. * @type string $kind * [Output Only] The resource type, which is always compute#instanceTemplatesListResponse for instance template lists. @@ -128,7 +128,7 @@ public function getItems() * A list of InstanceTemplate resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceTemplate items = 100526016; - * @param \Google\Cloud\Compute\V1\InstanceTemplate[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceTemplate>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InstanceWithNamedPorts.php b/Compute/src/V1/InstanceWithNamedPorts.php index abb750d8e229..9c11c67a68bc 100644 --- a/Compute/src/V1/InstanceWithNamedPorts.php +++ b/Compute/src/V1/InstanceWithNamedPorts.php @@ -42,7 +42,7 @@ class InstanceWithNamedPorts extends \Google\Protobuf\Internal\Message * * @type string $instance * [Output Only] The URL of the instance. - * @type \Google\Cloud\Compute\V1\NamedPort[]|\Google\Protobuf\Internal\RepeatedField $named_ports + * @type array<\Google\Cloud\Compute\V1\NamedPort>|\Google\Protobuf\Internal\RepeatedField $named_ports * [Output Only] The named ports that belong to this instance group. * @type string $status * [Output Only] The status of the instance. @@ -105,7 +105,7 @@ public function getNamedPorts() * [Output Only] The named ports that belong to this instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; - * @param \Google\Cloud\Compute\V1\NamedPort[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NamedPort>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNamedPorts($var) diff --git a/Compute/src/V1/InstancesAddResourcePoliciesRequest.php b/Compute/src/V1/InstancesAddResourcePoliciesRequest.php index 505052dfef37..dbab597c0535 100644 --- a/Compute/src/V1/InstancesAddResourcePoliciesRequest.php +++ b/Compute/src/V1/InstancesAddResourcePoliciesRequest.php @@ -27,7 +27,7 @@ class InstancesAddResourcePoliciesRequest extends \Google\Protobuf\Internal\Mess * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $resource_policies + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_policies * Resource policies to be added to this instance. * } */ @@ -51,7 +51,7 @@ public function getResourcePolicies() * Resource policies to be added to this instance. * * Generated from protobuf field repeated string resource_policies = 22220385; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcePolicies($var) diff --git a/Compute/src/V1/InstancesGetEffectiveFirewallsResponse.php b/Compute/src/V1/InstancesGetEffectiveFirewallsResponse.php index 3a215d81cacf..b564751eab7a 100644 --- a/Compute/src/V1/InstancesGetEffectiveFirewallsResponse.php +++ b/Compute/src/V1/InstancesGetEffectiveFirewallsResponse.php @@ -33,9 +33,9 @@ class InstancesGetEffectiveFirewallsResponse extends \Google\Protobuf\Internal\M * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy[]|\Google\Protobuf\Internal\RepeatedField $firewall_policys + * @type array<\Google\Cloud\Compute\V1\InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy>|\Google\Protobuf\Internal\RepeatedField $firewall_policys * Effective firewalls from firewall policies. - * @type \Google\Cloud\Compute\V1\Firewall[]|\Google\Protobuf\Internal\RepeatedField $firewalls + * @type array<\Google\Cloud\Compute\V1\Firewall>|\Google\Protobuf\Internal\RepeatedField $firewalls * Effective firewalls on the instance. * } */ @@ -59,7 +59,7 @@ public function getFirewallPolicys() * Effective firewalls from firewall policies. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy firewall_policys = 410985794; - * @param \Google\Cloud\Compute\V1\InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFirewallPolicys($var) @@ -85,7 +85,7 @@ public function getFirewalls() * Effective firewalls on the instance. * * Generated from protobuf field repeated .google.cloud.compute.v1.Firewall firewalls = 272245619; - * @param \Google\Cloud\Compute\V1\Firewall[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Firewall>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFirewalls($var) diff --git a/Compute/src/V1/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php b/Compute/src/V1/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php index 5be020a5fa53..4c5b0e0efb72 100644 --- a/Compute/src/V1/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php +++ b/Compute/src/V1/InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php @@ -56,7 +56,7 @@ class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends \Goo * [Output Only] Deprecated, please use short name instead. The display name of the firewall policy. * @type string $name * [Output Only] The name of the firewall policy. - * @type \Google\Cloud\Compute\V1\FirewallPolicyRule[]|\Google\Protobuf\Internal\RepeatedField $rules + * @type array<\Google\Cloud\Compute\V1\FirewallPolicyRule>|\Google\Protobuf\Internal\RepeatedField $rules * The rules that apply to the network. * @type string $short_name * [Output Only] The short name of the firewall policy. @@ -157,7 +157,7 @@ public function getRules() * The rules that apply to the network. * * Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975; - * @param \Google\Cloud\Compute\V1\FirewallPolicyRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FirewallPolicyRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) diff --git a/Compute/src/V1/InstancesRemoveResourcePoliciesRequest.php b/Compute/src/V1/InstancesRemoveResourcePoliciesRequest.php index 6add52f0e06d..c223d8fb8495 100644 --- a/Compute/src/V1/InstancesRemoveResourcePoliciesRequest.php +++ b/Compute/src/V1/InstancesRemoveResourcePoliciesRequest.php @@ -27,7 +27,7 @@ class InstancesRemoveResourcePoliciesRequest extends \Google\Protobuf\Internal\M * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $resource_policies + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_policies * Resource policies to be removed from this instance. * } */ @@ -51,7 +51,7 @@ public function getResourcePolicies() * Resource policies to be removed from this instance. * * Generated from protobuf field repeated string resource_policies = 22220385; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcePolicies($var) diff --git a/Compute/src/V1/InstancesScopedList.php b/Compute/src/V1/InstancesScopedList.php index eaf66c61b614..689b54a62b0c 100644 --- a/Compute/src/V1/InstancesScopedList.php +++ b/Compute/src/V1/InstancesScopedList.php @@ -33,7 +33,7 @@ class InstancesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Instance[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array<\Google\Cloud\Compute\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $instances * [Output Only] A list of instances contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning which replaces the list of instances when the list is empty. @@ -59,7 +59,7 @@ public function getInstances() * [Output Only] A list of instances contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.Instance instances = 29097598; - * @param \Google\Cloud\Compute\V1\Instance[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/InstancesSetMachineResourcesRequest.php b/Compute/src/V1/InstancesSetMachineResourcesRequest.php index 2dd13a662415..5a232374b252 100644 --- a/Compute/src/V1/InstancesSetMachineResourcesRequest.php +++ b/Compute/src/V1/InstancesSetMachineResourcesRequest.php @@ -27,7 +27,7 @@ class InstancesSetMachineResourcesRequest extends \Google\Protobuf\Internal\Mess * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $guest_accelerators + * @type array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $guest_accelerators * A list of the type and count of accelerator cards attached to the instance. * } */ @@ -51,7 +51,7 @@ public function getGuestAccelerators() * A list of the type and count of accelerator cards attached to the instance. * * Generated from protobuf field repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119; - * @param \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setGuestAccelerators($var) diff --git a/Compute/src/V1/InstancesSetServiceAccountRequest.php b/Compute/src/V1/InstancesSetServiceAccountRequest.php index 5777a2960208..79ef66b5c640 100644 --- a/Compute/src/V1/InstancesSetServiceAccountRequest.php +++ b/Compute/src/V1/InstancesSetServiceAccountRequest.php @@ -35,7 +35,7 @@ class InstancesSetServiceAccountRequest extends \Google\Protobuf\Internal\Messag * * @type string $email * Email address of the service account. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $scopes + * @type array|\Google\Protobuf\Internal\RepeatedField $scopes * The list of scopes to be made available for this service account. * } */ @@ -95,7 +95,7 @@ public function getScopes() * The list of scopes to be made available for this service account. * * Generated from protobuf field repeated string scopes = 165973151; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setScopes($var) diff --git a/Compute/src/V1/InstancesStartWithEncryptionKeyRequest.php b/Compute/src/V1/InstancesStartWithEncryptionKeyRequest.php index b35f78a58ba9..c4d11b251c8e 100644 --- a/Compute/src/V1/InstancesStartWithEncryptionKeyRequest.php +++ b/Compute/src/V1/InstancesStartWithEncryptionKeyRequest.php @@ -27,7 +27,7 @@ class InstancesStartWithEncryptionKeyRequest extends \Google\Protobuf\Internal\M * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\CustomerEncryptionKeyProtectedDisk[]|\Google\Protobuf\Internal\RepeatedField $disks + * @type array<\Google\Cloud\Compute\V1\CustomerEncryptionKeyProtectedDisk>|\Google\Protobuf\Internal\RepeatedField $disks * Array of disks associated with this instance that are protected with a customer-supplied encryption key. In order to start the instance, the disk url and its corresponding key must be provided. If the disk is not protected with a customer-supplied encryption key it should not be specified. * } */ @@ -51,7 +51,7 @@ public function getDisks() * Array of disks associated with this instance that are protected with a customer-supplied encryption key. In order to start the instance, the disk url and its corresponding key must be provided. If the disk is not protected with a customer-supplied encryption key it should not be specified. * * Generated from protobuf field repeated .google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk disks = 95594102; - * @param \Google\Cloud\Compute\V1\CustomerEncryptionKeyProtectedDisk[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\CustomerEncryptionKeyProtectedDisk>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDisks($var) diff --git a/Compute/src/V1/Interconnect.php b/Compute/src/V1/Interconnect.php index 056bef0bea62..55eca0975269 100644 --- a/Compute/src/V1/Interconnect.php +++ b/Compute/src/V1/Interconnect.php @@ -166,7 +166,7 @@ class Interconnect extends \Google\Protobuf\Internal\Message * * @type bool $admin_enabled * Administrative status of the interconnect. When this is set to true, the Interconnect is functional and can carry traffic. When set to false, no packets can be carried over the interconnect and no BGP routes are exchanged over it. By default, the status is set to true. - * @type \Google\Cloud\Compute\V1\InterconnectCircuitInfo[]|\Google\Protobuf\Internal\RepeatedField $circuit_infos + * @type array<\Google\Cloud\Compute\V1\InterconnectCircuitInfo>|\Google\Protobuf\Internal\RepeatedField $circuit_infos * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. @@ -174,7 +174,7 @@ class Interconnect extends \Google\Protobuf\Internal\Message * Customer name, to put in the Letter of Authorization as the party authorized to request a crossconnect. * @type string $description * An optional description of this resource. Provide this property when you create the resource. - * @type \Google\Cloud\Compute\V1\InterconnectOutageNotification[]|\Google\Protobuf\Internal\RepeatedField $expected_outages + * @type array<\Google\Cloud\Compute\V1\InterconnectOutageNotification>|\Google\Protobuf\Internal\RepeatedField $expected_outages * [Output Only] A list of outages expected for this Interconnect. * @type string $google_ip_address * [Output Only] IP address configured on the Google side of the Interconnect link. This can be used only for ping tests. @@ -182,7 +182,7 @@ class Interconnect extends \Google\Protobuf\Internal\Message * [Output Only] Google reference ID to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $interconnect_attachments + * @type array|\Google\Protobuf\Internal\RepeatedField $interconnect_attachments * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. * @type string $interconnect_type * Type of interconnect, which can take one of the following values: - PARTNER: A partner-managed interconnection shared between customers though a partner. - DEDICATED: A dedicated physical interconnection with the customer. Note that a value IT_PRIVATE has been deprecated in favor of DEDICATED. @@ -272,7 +272,7 @@ public function getCircuitInfos() * [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. * * Generated from protobuf field repeated .google.cloud.compute.v1.InterconnectCircuitInfo circuit_infos = 164839855; - * @param \Google\Cloud\Compute\V1\InterconnectCircuitInfo[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InterconnectCircuitInfo>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCircuitInfos($var) @@ -406,7 +406,7 @@ public function getExpectedOutages() * [Output Only] A list of outages expected for this Interconnect. * * Generated from protobuf field repeated .google.cloud.compute.v1.InterconnectOutageNotification expected_outages = 264484123; - * @param \Google\Cloud\Compute\V1\InterconnectOutageNotification[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InterconnectOutageNotification>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExpectedOutages($var) @@ -540,7 +540,7 @@ public function getInterconnectAttachments() * [Output Only] A list of the URLs of all InterconnectAttachments configured to use this Interconnect. * * Generated from protobuf field repeated string interconnect_attachments = 425388415; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInterconnectAttachments($var) diff --git a/Compute/src/V1/InterconnectAttachment.php b/Compute/src/V1/InterconnectAttachment.php index f18ea462c924..16bd773574f8 100644 --- a/Compute/src/V1/InterconnectAttachment.php +++ b/Compute/src/V1/InterconnectAttachment.php @@ -244,9 +244,9 @@ class InterconnectAttachment extends \Google\Protobuf\Internal\Message * @type string $bandwidth * Provisioned bandwidth capacity for the interconnect attachment. For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, and can take one of the following values: - BPS_50M: 50 Mbit/s - BPS_100M: 100 Mbit/s - BPS_200M: 200 Mbit/s - BPS_300M: 300 Mbit/s - BPS_400M: 400 Mbit/s - BPS_500M: 500 Mbit/s - BPS_1G: 1 Gbit/s - BPS_2G: 2 Gbit/s - BPS_5G: 5 Gbit/s - BPS_10G: 10 Gbit/s - BPS_20G: 20 Gbit/s - BPS_50G: 50 Gbit/s * Check the Bandwidth enum for the list of possible values. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $candidate_ipv6_subnets + * @type array|\Google\Protobuf\Internal\RepeatedField $candidate_ipv6_subnets * This field is not available. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $candidate_subnets + * @type array|\Google\Protobuf\Internal\RepeatedField $candidate_subnets * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space. * @type string $cloud_router_ip_address * [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment. @@ -278,7 +278,7 @@ class InterconnectAttachment extends \Google\Protobuf\Internal\Message * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * @type string $interconnect * URL of the underlying Interconnect object that this attachment's traffic will traverse through. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $ipsec_internal_addresses + * @type array|\Google\Protobuf\Internal\RepeatedField $ipsec_internal_addresses * A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the VLAN attachment that has the encryption option as IPSEC. The addresses must be regional internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the attachment is configured to use a regional internal IP address, then the VPN gateway's IP address is allocated from the IP address range specified here. For example, if the HA VPN gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN attachment. If this field is not specified when creating the VLAN attachment, then later on when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is allocated from the regional external IP address pool. Not currently available publicly. * @type string $kind * [Output Only] Type of the resource. Always compute#interconnectAttachment for interconnect attachments. @@ -412,7 +412,7 @@ public function getCandidateIpv6Subnets() * This field is not available. * * Generated from protobuf field repeated string candidate_ipv6_subnets = 70682522; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCandidateIpv6Subnets($var) @@ -438,7 +438,7 @@ public function getCandidateSubnets() * Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space. * * Generated from protobuf field repeated string candidate_subnets = 237842938; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCandidateSubnets($var) @@ -972,7 +972,7 @@ public function getIpsecInternalAddresses() * A list of URLs of addresses that have been reserved for the VLAN attachment. Used only for the VLAN attachment that has the encryption option as IPSEC. The addresses must be regional internal IP address ranges. When creating an HA VPN gateway over the VLAN attachment, if the attachment is configured to use a regional internal IP address, then the VPN gateway's IP address is allocated from the IP address range specified here. For example, if the HA VPN gateway's interface 0 is paired to this VLAN attachment, then a regional internal IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this VLAN attachment. If this field is not specified when creating the VLAN attachment, then later on when creating an HA VPN gateway on this VLAN attachment, the HA VPN gateway's IP address is allocated from the regional external IP address pool. Not currently available publicly. * * Generated from protobuf field repeated string ipsec_internal_addresses = 407648565; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIpsecInternalAddresses($var) diff --git a/Compute/src/V1/InterconnectAttachmentAggregatedList.php b/Compute/src/V1/InterconnectAttachmentAggregatedList.php index dfd04cab353d..4a4df297133c 100644 --- a/Compute/src/V1/InterconnectAttachmentAggregatedList.php +++ b/Compute/src/V1/InterconnectAttachmentAggregatedList.php @@ -73,7 +73,7 @@ class InterconnectAttachmentAggregatedList extends \Google\Protobuf\Internal\Mes * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/InterconnectAttachmentList.php b/Compute/src/V1/InterconnectAttachmentList.php index 15b5ba7aea76..d189022c1149 100644 --- a/Compute/src/V1/InterconnectAttachmentList.php +++ b/Compute/src/V1/InterconnectAttachmentList.php @@ -60,7 +60,7 @@ class InterconnectAttachmentList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\InterconnectAttachment[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\InterconnectAttachment>|\Google\Protobuf\Internal\RepeatedField $items * A list of InterconnectAttachment resources. * @type string $kind * [Output Only] Type of resource. Always compute#interconnectAttachmentList for lists of interconnect attachments. @@ -128,7 +128,7 @@ public function getItems() * A list of InterconnectAttachment resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.InterconnectAttachment items = 100526016; - * @param \Google\Cloud\Compute\V1\InterconnectAttachment[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InterconnectAttachment>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InterconnectAttachmentsScopedList.php b/Compute/src/V1/InterconnectAttachmentsScopedList.php index c9a2413dc25d..7cc9ec5c6c39 100644 --- a/Compute/src/V1/InterconnectAttachmentsScopedList.php +++ b/Compute/src/V1/InterconnectAttachmentsScopedList.php @@ -33,7 +33,7 @@ class InterconnectAttachmentsScopedList extends \Google\Protobuf\Internal\Messag * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InterconnectAttachment[]|\Google\Protobuf\Internal\RepeatedField $interconnect_attachments + * @type array<\Google\Cloud\Compute\V1\InterconnectAttachment>|\Google\Protobuf\Internal\RepeatedField $interconnect_attachments * A list of interconnect attachments contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of addresses when the list is empty. @@ -59,7 +59,7 @@ public function getInterconnectAttachments() * A list of interconnect attachments contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.InterconnectAttachment interconnect_attachments = 425388415; - * @param \Google\Cloud\Compute\V1\InterconnectAttachment[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InterconnectAttachment>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInterconnectAttachments($var) diff --git a/Compute/src/V1/InterconnectDiagnostics.php b/Compute/src/V1/InterconnectDiagnostics.php index 06e3c26fc4e7..e235d888c65c 100644 --- a/Compute/src/V1/InterconnectDiagnostics.php +++ b/Compute/src/V1/InterconnectDiagnostics.php @@ -40,9 +40,9 @@ class InterconnectDiagnostics extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InterconnectDiagnosticsARPEntry[]|\Google\Protobuf\Internal\RepeatedField $arp_caches + * @type array<\Google\Cloud\Compute\V1\InterconnectDiagnosticsARPEntry>|\Google\Protobuf\Internal\RepeatedField $arp_caches * A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently seen by the Google router in the ARP cache for the Interconnect. This will be empty when the Interconnect is not bundled. - * @type \Google\Cloud\Compute\V1\InterconnectDiagnosticsLinkStatus[]|\Google\Protobuf\Internal\RepeatedField $links + * @type array<\Google\Cloud\Compute\V1\InterconnectDiagnosticsLinkStatus>|\Google\Protobuf\Internal\RepeatedField $links * A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on the Interconnect. * @type string $mac_address * The MAC address of the Interconnect's bundle interface. @@ -68,7 +68,7 @@ public function getArpCaches() * A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently seen by the Google router in the ARP cache for the Interconnect. This will be empty when the Interconnect is not bundled. * * Generated from protobuf field repeated .google.cloud.compute.v1.InterconnectDiagnosticsARPEntry arp_caches = 414591761; - * @param \Google\Cloud\Compute\V1\InterconnectDiagnosticsARPEntry[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InterconnectDiagnosticsARPEntry>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setArpCaches($var) @@ -94,7 +94,7 @@ public function getLinks() * A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on the Interconnect. * * Generated from protobuf field repeated .google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus links = 102977465; - * @param \Google\Cloud\Compute\V1\InterconnectDiagnosticsLinkStatus[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InterconnectDiagnosticsLinkStatus>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLinks($var) diff --git a/Compute/src/V1/InterconnectDiagnosticsLinkStatus.php b/Compute/src/V1/InterconnectDiagnosticsLinkStatus.php index f17f9a033c84..4396ef0783a3 100644 --- a/Compute/src/V1/InterconnectDiagnosticsLinkStatus.php +++ b/Compute/src/V1/InterconnectDiagnosticsLinkStatus.php @@ -55,7 +55,7 @@ class InterconnectDiagnosticsLinkStatus extends \Google\Protobuf\Internal\Messag * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InterconnectDiagnosticsARPEntry[]|\Google\Protobuf\Internal\RepeatedField $arp_caches + * @type array<\Google\Cloud\Compute\V1\InterconnectDiagnosticsARPEntry>|\Google\Protobuf\Internal\RepeatedField $arp_caches * A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on this link. This will be empty if the link is bundled * @type string $circuit_id * The unique ID for this link assigned during turn up by Google. @@ -88,7 +88,7 @@ public function getArpCaches() * A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on this link. This will be empty if the link is bundled * * Generated from protobuf field repeated .google.cloud.compute.v1.InterconnectDiagnosticsARPEntry arp_caches = 414591761; - * @param \Google\Cloud\Compute\V1\InterconnectDiagnosticsARPEntry[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InterconnectDiagnosticsARPEntry>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setArpCaches($var) diff --git a/Compute/src/V1/InterconnectList.php b/Compute/src/V1/InterconnectList.php index d542c96ff74c..3f9770ce20de 100644 --- a/Compute/src/V1/InterconnectList.php +++ b/Compute/src/V1/InterconnectList.php @@ -60,7 +60,7 @@ class InterconnectList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Interconnect[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Interconnect>|\Google\Protobuf\Internal\RepeatedField $items * A list of Interconnect resources. * @type string $kind * [Output Only] Type of resource. Always compute#interconnectList for lists of interconnects. @@ -128,7 +128,7 @@ public function getItems() * A list of Interconnect resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Interconnect items = 100526016; - * @param \Google\Cloud\Compute\V1\Interconnect[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Interconnect>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InterconnectLocation.php b/Compute/src/V1/InterconnectLocation.php index 8b253f2c01cf..dbf2bc13b2b3 100644 --- a/Compute/src/V1/InterconnectLocation.php +++ b/Compute/src/V1/InterconnectLocation.php @@ -145,7 +145,7 @@ class InterconnectLocation extends \Google\Protobuf\Internal\Message * [Output Only] Name of the resource. * @type string $peeringdb_facility_id * [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb). - * @type \Google\Cloud\Compute\V1\InterconnectLocationRegionInfo[]|\Google\Protobuf\Internal\RepeatedField $region_infos + * @type array<\Google\Cloud\Compute\V1\InterconnectLocationRegionInfo>|\Google\Protobuf\Internal\RepeatedField $region_infos * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions. * @type string $self_link * [Output Only] Server-defined URL for the resource. @@ -610,7 +610,7 @@ public function getRegionInfos() * [Output Only] A list of InterconnectLocation.RegionInfo objects, that describe parameters pertaining to the relation between this InterconnectLocation and various Google Cloud regions. * * Generated from protobuf field repeated .google.cloud.compute.v1.InterconnectLocationRegionInfo region_infos = 312194170; - * @param \Google\Cloud\Compute\V1\InterconnectLocationRegionInfo[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InterconnectLocationRegionInfo>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRegionInfos($var) diff --git a/Compute/src/V1/InterconnectLocationList.php b/Compute/src/V1/InterconnectLocationList.php index e1fad4c4340e..6c0e52200a9c 100644 --- a/Compute/src/V1/InterconnectLocationList.php +++ b/Compute/src/V1/InterconnectLocationList.php @@ -60,7 +60,7 @@ class InterconnectLocationList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\InterconnectLocation[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\InterconnectLocation>|\Google\Protobuf\Internal\RepeatedField $items * A list of InterconnectLocation resources. * @type string $kind * [Output Only] Type of resource. Always compute#interconnectLocationList for lists of interconnect locations. @@ -128,7 +128,7 @@ public function getItems() * A list of InterconnectLocation resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.InterconnectLocation items = 100526016; - * @param \Google\Cloud\Compute\V1\InterconnectLocation[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InterconnectLocation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/InterconnectLocationRegionInfo/LocationPresence.php b/Compute/src/V1/InterconnectLocationRegionInfo/LocationPresence.php index 8cedb94fd40d..3f102965888b 100644 --- a/Compute/src/V1/InterconnectLocationRegionInfo/LocationPresence.php +++ b/Compute/src/V1/InterconnectLocationRegionInfo/LocationPresence.php @@ -46,7 +46,7 @@ class LocationPresence private static $valueToName = [ self::UNDEFINED_LOCATION_PRESENCE => 'UNDEFINED_LOCATION_PRESENCE', - self::PBGLOBAL => 'PBGLOBAL', + self::PBGLOBAL => 'GLOBAL', self::LOCAL_REGION => 'LOCAL_REGION', self::LP_GLOBAL => 'LP_GLOBAL', self::LP_LOCAL_REGION => 'LP_LOCAL_REGION', @@ -66,8 +66,12 @@ public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); } return constant($const); } diff --git a/Compute/src/V1/InterconnectOutageNotification.php b/Compute/src/V1/InterconnectOutageNotification.php index a24334f824e5..a5f04f04f375 100644 --- a/Compute/src/V1/InterconnectOutageNotification.php +++ b/Compute/src/V1/InterconnectOutageNotification.php @@ -73,7 +73,7 @@ class InterconnectOutageNotification extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $affected_circuits + * @type array|\Google\Protobuf\Internal\RepeatedField $affected_circuits * If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be affected. * @type string $description * A description about the purpose of the outage. @@ -114,7 +114,7 @@ public function getAffectedCircuits() * If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs that will be affected. * * Generated from protobuf field repeated string affected_circuits = 177717013; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAffectedCircuits($var) diff --git a/Compute/src/V1/LicenseCode.php b/Compute/src/V1/LicenseCode.php index 77f68db04986..152a702a9ac1 100644 --- a/Compute/src/V1/LicenseCode.php +++ b/Compute/src/V1/LicenseCode.php @@ -85,7 +85,7 @@ class LicenseCode extends \Google\Protobuf\Internal\Message * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * @type string $kind * [Output Only] Type of resource. Always compute#licenseCode for licenses. - * @type \Google\Cloud\Compute\V1\LicenseCodeLicenseAlias[]|\Google\Protobuf\Internal\RepeatedField $license_alias + * @type array<\Google\Cloud\Compute\V1\LicenseCodeLicenseAlias>|\Google\Protobuf\Internal\RepeatedField $license_alias * [Output Only] URL and description aliases of Licenses with the same License Code. * @type string $name * [Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit integer. @@ -262,7 +262,7 @@ public function getLicenseAlias() * [Output Only] URL and description aliases of Licenses with the same License Code. * * Generated from protobuf field repeated .google.cloud.compute.v1.LicenseCodeLicenseAlias license_alias = 43550930; - * @param \Google\Cloud\Compute\V1\LicenseCodeLicenseAlias[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\LicenseCodeLicenseAlias>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLicenseAlias($var) diff --git a/Compute/src/V1/LicensesListResponse.php b/Compute/src/V1/LicensesListResponse.php index b6e349f014b8..ad53ed2f2b03 100644 --- a/Compute/src/V1/LicensesListResponse.php +++ b/Compute/src/V1/LicensesListResponse.php @@ -53,7 +53,7 @@ class LicensesListResponse extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\License[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\License>|\Google\Protobuf\Internal\RepeatedField $items * A list of License resources. * @type string $next_page_token * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -119,7 +119,7 @@ public function getItems() * A list of License resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.License items = 100526016; - * @param \Google\Cloud\Compute\V1\License[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\License>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/LocalizedMessage.php b/Compute/src/V1/LocalizedMessage.php new file mode 100644 index 000000000000..092bab057004 --- /dev/null +++ b/Compute/src/V1/LocalizedMessage.php @@ -0,0 +1,121 @@ +google.cloud.compute.v1.LocalizedMessage + */ +class LocalizedMessage extends \Google\Protobuf\Internal\Message +{ + /** + * The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" + * + * Generated from protobuf field optional string locale = 513150554; + */ + private $locale = null; + /** + * The localized error message in the above locale. + * + * Generated from protobuf field optional string message = 418054151; + */ + private $message = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $locale + * The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" + * @type string $message + * The localized error message in the above locale. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce(); + parent::__construct($data); + } + + /** + * The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" + * + * Generated from protobuf field optional string locale = 513150554; + * @return string + */ + public function getLocale() + { + return isset($this->locale) ? $this->locale : ''; + } + + public function hasLocale() + { + return isset($this->locale); + } + + public function clearLocale() + { + unset($this->locale); + } + + /** + * The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" + * + * Generated from protobuf field optional string locale = 513150554; + * @param string $var + * @return $this + */ + public function setLocale($var) + { + GPBUtil::checkString($var, True); + $this->locale = $var; + + return $this; + } + + /** + * The localized error message in the above locale. + * + * Generated from protobuf field optional string message = 418054151; + * @return string + */ + public function getMessage() + { + return isset($this->message) ? $this->message : ''; + } + + public function hasMessage() + { + return isset($this->message); + } + + public function clearMessage() + { + unset($this->message); + } + + /** + * The localized error message in the above locale. + * + * Generated from protobuf field optional string message = 418054151; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/Compute/src/V1/LocationPolicyLocation.php b/Compute/src/V1/LocationPolicyLocation.php index 760b647812b8..802af7d33ff3 100644 --- a/Compute/src/V1/LocationPolicyLocation.php +++ b/Compute/src/V1/LocationPolicyLocation.php @@ -15,7 +15,13 @@ class LocationPolicyLocation extends \Google\Protobuf\Internal\Message { /** - * Preference for a given location. + * Constraints that the caller requires on the result distribution in this zone. + * + * Generated from protobuf field optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174; + */ + private $constraints = null; + /** + * Preference for a given location. Set to either ALLOW or DENY. * Check the Preference enum for the list of possible values. * * Generated from protobuf field optional string preference = 150781147; @@ -28,8 +34,10 @@ class LocationPolicyLocation extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * + * @type \Google\Cloud\Compute\V1\LocationPolicyLocationConstraints $constraints + * Constraints that the caller requires on the result distribution in this zone. * @type string $preference - * Preference for a given location. + * Preference for a given location. Set to either ALLOW or DENY. * Check the Preference enum for the list of possible values. * } */ @@ -39,7 +47,43 @@ public function __construct($data = NULL) { } /** - * Preference for a given location. + * Constraints that the caller requires on the result distribution in this zone. + * + * Generated from protobuf field optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174; + * @return \Google\Cloud\Compute\V1\LocationPolicyLocationConstraints|null + */ + public function getConstraints() + { + return $this->constraints; + } + + public function hasConstraints() + { + return isset($this->constraints); + } + + public function clearConstraints() + { + unset($this->constraints); + } + + /** + * Constraints that the caller requires on the result distribution in this zone. + * + * Generated from protobuf field optional .google.cloud.compute.v1.LocationPolicyLocationConstraints constraints = 3909174; + * @param \Google\Cloud\Compute\V1\LocationPolicyLocationConstraints $var + * @return $this + */ + public function setConstraints($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\LocationPolicyLocationConstraints::class); + $this->constraints = $var; + + return $this; + } + + /** + * Preference for a given location. Set to either ALLOW or DENY. * Check the Preference enum for the list of possible values. * * Generated from protobuf field optional string preference = 150781147; @@ -61,7 +105,7 @@ public function clearPreference() } /** - * Preference for a given location. + * Preference for a given location. Set to either ALLOW or DENY. * Check the Preference enum for the list of possible values. * * Generated from protobuf field optional string preference = 150781147; diff --git a/Compute/src/V1/LocationPolicyLocation/Preference.php b/Compute/src/V1/LocationPolicyLocation/Preference.php index 6af61dbd29b0..f4ece3b590f7 100644 --- a/Compute/src/V1/LocationPolicyLocation/Preference.php +++ b/Compute/src/V1/LocationPolicyLocation/Preference.php @@ -7,7 +7,7 @@ use UnexpectedValueException; /** - * Preference for a given location. + * Preference for a given location. Set to either ALLOW or DENY. * * Protobuf type google.cloud.compute.v1.LocationPolicyLocation.Preference */ diff --git a/Compute/src/V1/LocationPolicyLocationConstraints.php b/Compute/src/V1/LocationPolicyLocationConstraints.php new file mode 100644 index 000000000000..3e9e3d0c05e8 --- /dev/null +++ b/Compute/src/V1/LocationPolicyLocationConstraints.php @@ -0,0 +1,77 @@ +google.cloud.compute.v1.LocationPolicyLocationConstraints + */ +class LocationPolicyLocationConstraints extends \Google\Protobuf\Internal\Message +{ + /** + * Maximum number of items that are allowed to be placed in this zone. The value must be non-negative. + * + * Generated from protobuf field optional int32 max_count = 287620724; + */ + private $max_count = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $max_count + * Maximum number of items that are allowed to be placed in this zone. The value must be non-negative. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce(); + parent::__construct($data); + } + + /** + * Maximum number of items that are allowed to be placed in this zone. The value must be non-negative. + * + * Generated from protobuf field optional int32 max_count = 287620724; + * @return int + */ + public function getMaxCount() + { + return isset($this->max_count) ? $this->max_count : 0; + } + + public function hasMaxCount() + { + return isset($this->max_count); + } + + public function clearMaxCount() + { + unset($this->max_count); + } + + /** + * Maximum number of items that are allowed to be placed in this zone. The value must be non-negative. + * + * Generated from protobuf field optional int32 max_count = 287620724; + * @param int $var + * @return $this + */ + public function setMaxCount($var) + { + GPBUtil::checkInt32($var); + $this->max_count = $var; + + return $this; + } + +} + diff --git a/Compute/src/V1/LogConfigCounterOptions.php b/Compute/src/V1/LogConfigCounterOptions.php index 2ca5d49ca39e..d349e5b0fa00 100644 --- a/Compute/src/V1/LogConfigCounterOptions.php +++ b/Compute/src/V1/LogConfigCounterOptions.php @@ -40,7 +40,7 @@ class LogConfigCounterOptions extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\LogConfigCounterOptionsCustomField[]|\Google\Protobuf\Internal\RepeatedField $custom_fields + * @type array<\Google\Cloud\Compute\V1\LogConfigCounterOptionsCustomField>|\Google\Protobuf\Internal\RepeatedField $custom_fields * This is deprecated and has no effect. Do not use. * @type string $field * This is deprecated and has no effect. Do not use. @@ -68,7 +68,7 @@ public function getCustomFields() * This is deprecated and has no effect. Do not use. * * Generated from protobuf field repeated .google.cloud.compute.v1.LogConfigCounterOptionsCustomField custom_fields = 249651015; - * @param \Google\Cloud\Compute\V1\LogConfigCounterOptionsCustomField[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\LogConfigCounterOptionsCustomField>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCustomFields($var) diff --git a/Compute/src/V1/MachineImage.php b/Compute/src/V1/MachineImage.php index f77f28076358..139d951a7f9d 100644 --- a/Compute/src/V1/MachineImage.php +++ b/Compute/src/V1/MachineImage.php @@ -143,11 +143,11 @@ class MachineImage extends \Google\Protobuf\Internal\Message * Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. * @type bool $satisfies_pzs * [Output Only] Reserved for future use. - * @type \Google\Cloud\Compute\V1\SavedDisk[]|\Google\Protobuf\Internal\RepeatedField $saved_disks + * @type array<\Google\Cloud\Compute\V1\SavedDisk>|\Google\Protobuf\Internal\RepeatedField $saved_disks * An array of Machine Image specific properties for disks attached to the source instance * @type string $self_link * [Output Only] The URL for this machine image. The server defines this URL. - * @type \Google\Cloud\Compute\V1\SourceDiskEncryptionKey[]|\Google\Protobuf\Internal\RepeatedField $source_disk_encryption_keys + * @type array<\Google\Cloud\Compute\V1\SourceDiskEncryptionKey>|\Google\Protobuf\Internal\RepeatedField $source_disk_encryption_keys * [Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key. * @type string $source_instance * The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance @@ -156,7 +156,7 @@ class MachineImage extends \Google\Protobuf\Internal\Message * @type string $status * [Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. * Check the Status enum for the list of possible values. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $storage_locations + * @type array|\Google\Protobuf\Internal\RepeatedField $storage_locations * The regional or multi-regional Cloud Storage bucket location where the machine image is stored. * @type int|string $total_storage_bytes * [Output Only] Total size of the storage used by the machine image. @@ -506,7 +506,7 @@ public function getSavedDisks() * An array of Machine Image specific properties for disks attached to the source instance * * Generated from protobuf field repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; - * @param \Google\Cloud\Compute\V1\SavedDisk[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SavedDisk>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSavedDisks($var) @@ -568,7 +568,7 @@ public function getSourceDiskEncryptionKeys() * [Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key. * * Generated from protobuf field repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498; - * @param \Google\Cloud\Compute\V1\SourceDiskEncryptionKey[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SourceDiskEncryptionKey>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSourceDiskEncryptionKeys($var) @@ -704,7 +704,7 @@ public function getStorageLocations() * The regional or multi-regional Cloud Storage bucket location where the machine image is stored. * * Generated from protobuf field repeated string storage_locations = 328005274; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setStorageLocations($var) diff --git a/Compute/src/V1/MachineImageList.php b/Compute/src/V1/MachineImageList.php index 96d4cf1819f1..d35873185580 100644 --- a/Compute/src/V1/MachineImageList.php +++ b/Compute/src/V1/MachineImageList.php @@ -60,7 +60,7 @@ class MachineImageList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\MachineImage[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\MachineImage>|\Google\Protobuf\Internal\RepeatedField $items * A list of MachineImage resources. * @type string $kind * [Output Only] The resource type, which is always compute#machineImagesListResponse for machine image lists. @@ -128,7 +128,7 @@ public function getItems() * A list of MachineImage resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.MachineImage items = 100526016; - * @param \Google\Cloud\Compute\V1\MachineImage[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\MachineImage>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/MachineType.php b/Compute/src/V1/MachineType.php index a0854af951fa..b7376043f2c5 100644 --- a/Compute/src/V1/MachineType.php +++ b/Compute/src/V1/MachineType.php @@ -118,7 +118,7 @@ class MachineType extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Accelerators[]|\Google\Protobuf\Internal\RepeatedField $accelerators + * @type array<\Google\Cloud\Compute\V1\Accelerators>|\Google\Protobuf\Internal\RepeatedField $accelerators * [Output Only] A list of accelerator configurations assigned to this machine type. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. @@ -144,7 +144,7 @@ class MachineType extends \Google\Protobuf\Internal\Message * [Output Only] The amount of physical memory available to the instance, defined in MB. * @type string $name * [Output Only] Name of the resource. - * @type \Google\Cloud\Compute\V1\ScratchDisks[]|\Google\Protobuf\Internal\RepeatedField $scratch_disks + * @type array<\Google\Cloud\Compute\V1\ScratchDisks>|\Google\Protobuf\Internal\RepeatedField $scratch_disks * [Output Only] A list of extended scratch disks assigned to the instance. * @type string $self_link * [Output Only] Server-defined URL for the resource. @@ -172,7 +172,7 @@ public function getAccelerators() * [Output Only] A list of accelerator configurations assigned to this machine type. * * Generated from protobuf field repeated .google.cloud.compute.v1.Accelerators accelerators = 269577064; - * @param \Google\Cloud\Compute\V1\Accelerators[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Accelerators>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAccelerators($var) @@ -630,7 +630,7 @@ public function getScratchDisks() * [Output Only] A list of extended scratch disks assigned to the instance. * * Generated from protobuf field repeated .google.cloud.compute.v1.ScratchDisks scratch_disks = 480778481; - * @param \Google\Cloud\Compute\V1\ScratchDisks[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ScratchDisks>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setScratchDisks($var) diff --git a/Compute/src/V1/MachineTypeAggregatedList.php b/Compute/src/V1/MachineTypeAggregatedList.php index 3d586f40b818..c9186edc39f8 100644 --- a/Compute/src/V1/MachineTypeAggregatedList.php +++ b/Compute/src/V1/MachineTypeAggregatedList.php @@ -73,7 +73,7 @@ class MachineTypeAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/MachineTypeList.php b/Compute/src/V1/MachineTypeList.php index 2bc397925651..53a56c87410b 100644 --- a/Compute/src/V1/MachineTypeList.php +++ b/Compute/src/V1/MachineTypeList.php @@ -60,7 +60,7 @@ class MachineTypeList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\MachineType[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\MachineType>|\Google\Protobuf\Internal\RepeatedField $items * A list of MachineType resources. * @type string $kind * [Output Only] Type of resource. Always compute#machineTypeList for lists of machine types. @@ -128,7 +128,7 @@ public function getItems() * A list of MachineType resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.MachineType items = 100526016; - * @param \Google\Cloud\Compute\V1\MachineType[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\MachineType>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/MachineTypesScopedList.php b/Compute/src/V1/MachineTypesScopedList.php index cb9d7ef2ccda..b0de28d9045d 100644 --- a/Compute/src/V1/MachineTypesScopedList.php +++ b/Compute/src/V1/MachineTypesScopedList.php @@ -33,7 +33,7 @@ class MachineTypesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\MachineType[]|\Google\Protobuf\Internal\RepeatedField $machine_types + * @type array<\Google\Cloud\Compute\V1\MachineType>|\Google\Protobuf\Internal\RepeatedField $machine_types * [Output Only] A list of machine types contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] An informational warning that appears when the machine types list is empty. @@ -59,7 +59,7 @@ public function getMachineTypes() * [Output Only] A list of machine types contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.MachineType machine_types = 79720065; - * @param \Google\Cloud\Compute\V1\MachineType[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\MachineType>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMachineTypes($var) diff --git a/Compute/src/V1/ManagedInstance.php b/Compute/src/V1/ManagedInstance.php index 5c85888813af..794be27de36e 100644 --- a/Compute/src/V1/ManagedInstance.php +++ b/Compute/src/V1/ManagedInstance.php @@ -85,7 +85,7 @@ class ManagedInstance extends \Google\Protobuf\Internal\Message * [Output only] The unique identifier for this resource. This field is empty when instance does not exist. * @type string $instance * [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created. - * @type \Google\Cloud\Compute\V1\ManagedInstanceInstanceHealth[]|\Google\Protobuf\Internal\RepeatedField $instance_health + * @type array<\Google\Cloud\Compute\V1\ManagedInstanceInstanceHealth>|\Google\Protobuf\Internal\RepeatedField $instance_health * [Output Only] Health state of the instance per health-check. * @type string $instance_status * [Output Only] The status of the instance. This field is empty when the instance does not exist. @@ -230,7 +230,7 @@ public function getInstanceHealth() * [Output Only] Health state of the instance per health-check. * * Generated from protobuf field repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078; - * @param \Google\Cloud\Compute\V1\ManagedInstanceInstanceHealth[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ManagedInstanceInstanceHealth>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstanceHealth($var) diff --git a/Compute/src/V1/Metadata.php b/Compute/src/V1/Metadata.php index acb4632db639..a4ac5a7b4d5a 100644 --- a/Compute/src/V1/Metadata.php +++ b/Compute/src/V1/Metadata.php @@ -42,7 +42,7 @@ class Metadata extends \Google\Protobuf\Internal\Message * * @type string $fingerprint * Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource. - * @type \Google\Cloud\Compute\V1\Items[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Items>|\Google\Protobuf\Internal\RepeatedField $items * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. * @type string $kind * [Output Only] Type of the resource. Always compute#metadata for metadata. @@ -104,7 +104,7 @@ public function getItems() * Array of key/value pairs. The total size of all keys and values must be less than 512 KB. * * Generated from protobuf field repeated .google.cloud.compute.v1.Items items = 100526016; - * @param \Google\Cloud\Compute\V1\Items[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Items>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/MetadataFilter.php b/Compute/src/V1/MetadataFilter.php index 1c15985c9dab..95441defe3f6 100644 --- a/Compute/src/V1/MetadataFilter.php +++ b/Compute/src/V1/MetadataFilter.php @@ -35,7 +35,7 @@ class MetadataFilter extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\MetadataFilterLabelMatch[]|\Google\Protobuf\Internal\RepeatedField $filter_labels + * @type array<\Google\Cloud\Compute\V1\MetadataFilterLabelMatch>|\Google\Protobuf\Internal\RepeatedField $filter_labels * The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. * @type string $filter_match_criteria * Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata. @@ -62,7 +62,7 @@ public function getFilterLabels() * The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. * * Generated from protobuf field repeated .google.cloud.compute.v1.MetadataFilterLabelMatch filter_labels = 307903142; - * @param \Google\Cloud\Compute\V1\MetadataFilterLabelMatch[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\MetadataFilterLabelMatch>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFilterLabels($var) diff --git a/Compute/src/V1/Network.php b/Compute/src/V1/Network.php index 47cc517da279..371d4980658a 100644 --- a/Compute/src/V1/Network.php +++ b/Compute/src/V1/Network.php @@ -45,6 +45,12 @@ class Network extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional bool enable_ula_internal_ipv6 = 423757720; */ private $enable_ula_internal_ipv6 = null; + /** + * [Output Only] URL of the firewall policy the network is associated with. + * + * Generated from protobuf field optional string firewall_policy = 498173265; + */ + private $firewall_policy = null; /** * [Output Only] The gateway address for default routing out of the network, selected by GCP. * @@ -135,6 +141,8 @@ class Network extends \Google\Protobuf\Internal\Message * An optional description of this resource. Provide this field when you create the resource. * @type bool $enable_ula_internal_ipv6 * Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20. . + * @type string $firewall_policy + * [Output Only] URL of the firewall policy the network is associated with. * @type string $gateway_i_pv4 * [Output Only] The gateway address for default routing out of the network, selected by GCP. * @type int|string $id @@ -150,7 +158,7 @@ class Network extends \Google\Protobuf\Internal\Message * @type string $network_firewall_policy_enforcement_order * The network firewall policy enforcement order. Can be either AFTER_CLASSIC_FIREWALL or BEFORE_CLASSIC_FIREWALL. Defaults to AFTER_CLASSIC_FIREWALL if the field is not specified. * Check the NetworkFirewallPolicyEnforcementOrder enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\NetworkPeering[]|\Google\Protobuf\Internal\RepeatedField $peerings + * @type array<\Google\Cloud\Compute\V1\NetworkPeering>|\Google\Protobuf\Internal\RepeatedField $peerings * [Output Only] A list of network peerings for the resource. * @type \Google\Cloud\Compute\V1\NetworkRoutingConfig $routing_config * The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. @@ -158,7 +166,7 @@ class Network extends \Google\Protobuf\Internal\Message * [Output Only] Server-defined URL for the resource. * @type string $self_link_with_id * [Output Only] Server-defined URL for this resource with the resource id. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $subnetworks + * @type array|\Google\Protobuf\Internal\RepeatedField $subnetworks * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. * } */ @@ -347,6 +355,42 @@ public function setEnableUlaInternalIpv6($var) return $this; } + /** + * [Output Only] URL of the firewall policy the network is associated with. + * + * Generated from protobuf field optional string firewall_policy = 498173265; + * @return string + */ + public function getFirewallPolicy() + { + return isset($this->firewall_policy) ? $this->firewall_policy : ''; + } + + public function hasFirewallPolicy() + { + return isset($this->firewall_policy); + } + + public function clearFirewallPolicy() + { + unset($this->firewall_policy); + } + + /** + * [Output Only] URL of the firewall policy the network is associated with. + * + * Generated from protobuf field optional string firewall_policy = 498173265; + * @param string $var + * @return $this + */ + public function setFirewallPolicy($var) + { + GPBUtil::checkString($var, True); + $this->firewall_policy = $var; + + return $this; + } + /** * [Output Only] The gateway address for default routing out of the network, selected by GCP. * @@ -616,7 +660,7 @@ public function getPeerings() * [Output Only] A list of network peerings for the resource. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkPeering peerings = 69883187; - * @param \Google\Cloud\Compute\V1\NetworkPeering[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkPeering>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPeerings($var) @@ -750,7 +794,7 @@ public function getSubnetworks() * [Output Only] Server-defined fully-qualified URLs for all subnetworks in this VPC network. * * Generated from protobuf field repeated string subnetworks = 415853125; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSubnetworks($var) diff --git a/Compute/src/V1/NetworkEdgeSecurityServiceAggregatedList.php b/Compute/src/V1/NetworkEdgeSecurityServiceAggregatedList.php index 9f645df30e6a..0fd0ce79c4ce 100644 --- a/Compute/src/V1/NetworkEdgeSecurityServiceAggregatedList.php +++ b/Compute/src/V1/NetworkEdgeSecurityServiceAggregatedList.php @@ -78,7 +78,7 @@ class NetworkEdgeSecurityServiceAggregatedList extends \Google\Protobuf\Internal * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -306,7 +306,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/NetworkEdgeSecurityServicesScopedList.php b/Compute/src/V1/NetworkEdgeSecurityServicesScopedList.php index 4a73c42d8c5f..54b168fe0836 100644 --- a/Compute/src/V1/NetworkEdgeSecurityServicesScopedList.php +++ b/Compute/src/V1/NetworkEdgeSecurityServicesScopedList.php @@ -33,7 +33,7 @@ class NetworkEdgeSecurityServicesScopedList extends \Google\Protobuf\Internal\Me * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\NetworkEdgeSecurityService[]|\Google\Protobuf\Internal\RepeatedField $network_edge_security_services + * @type array<\Google\Cloud\Compute\V1\NetworkEdgeSecurityService>|\Google\Protobuf\Internal\RepeatedField $network_edge_security_services * A list of NetworkEdgeSecurityServices contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of security policies when the list is empty. @@ -59,7 +59,7 @@ public function getNetworkEdgeSecurityServices() * A list of NetworkEdgeSecurityServices contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkEdgeSecurityService network_edge_security_services = 35530156; - * @param \Google\Cloud\Compute\V1\NetworkEdgeSecurityService[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkEdgeSecurityService>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNetworkEdgeSecurityServices($var) diff --git a/Compute/src/V1/NetworkEndpointGroupAggregatedList.php b/Compute/src/V1/NetworkEndpointGroupAggregatedList.php index 7d9d9c7bd7da..67a15a5eb049 100644 --- a/Compute/src/V1/NetworkEndpointGroupAggregatedList.php +++ b/Compute/src/V1/NetworkEndpointGroupAggregatedList.php @@ -73,7 +73,7 @@ class NetworkEndpointGroupAggregatedList extends \Google\Protobuf\Internal\Messa * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/NetworkEndpointGroupAppEngine.php b/Compute/src/V1/NetworkEndpointGroupAppEngine.php index 855b61e28587..2a6e0e3063dc 100644 --- a/Compute/src/V1/NetworkEndpointGroupAppEngine.php +++ b/Compute/src/V1/NetworkEndpointGroupAppEngine.php @@ -22,7 +22,7 @@ class NetworkEndpointGroupAppEngine extends \Google\Protobuf\Internal\Message */ private $service = null; /** - * A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. + * A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. * * Generated from protobuf field optional string url_mask = 103352252; */ @@ -43,7 +43,7 @@ class NetworkEndpointGroupAppEngine extends \Google\Protobuf\Internal\Message * @type string $service * Optional serving service. The service name is case-sensitive and must be 1-63 characters long. Example value: "default", "my-service". * @type string $url_mask - * A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. + * A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. * @type string $version * Optional serving version. The version name is case-sensitive and must be 1-100 characters long. Example value: "v1", "v2". * } @@ -90,7 +90,7 @@ public function setService($var) } /** - * A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. + * A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. * * Generated from protobuf field optional string url_mask = 103352252; * @return string @@ -111,7 +111,7 @@ public function clearUrlMask() } /** - * A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. + * A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. * * Generated from protobuf field optional string url_mask = 103352252; * @param string $var diff --git a/Compute/src/V1/NetworkEndpointGroupCloudFunction.php b/Compute/src/V1/NetworkEndpointGroupCloudFunction.php index e67bc7c952dc..1e697b5b4f8a 100644 --- a/Compute/src/V1/NetworkEndpointGroupCloudFunction.php +++ b/Compute/src/V1/NetworkEndpointGroupCloudFunction.php @@ -22,7 +22,7 @@ class NetworkEndpointGroupCloudFunction extends \Google\Protobuf\Internal\Messag */ private $function = null; /** - * A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. + * A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. * * Generated from protobuf field optional string url_mask = 103352252; */ @@ -37,7 +37,7 @@ class NetworkEndpointGroupCloudFunction extends \Google\Protobuf\Internal\Messag * @type string $function * A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1". * @type string $url_mask - * A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. + * A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. * } */ public function __construct($data = NULL) { @@ -82,7 +82,7 @@ public function setFunction($var) } /** - * A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. + * A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. * * Generated from protobuf field optional string url_mask = 103352252; * @return string @@ -103,7 +103,7 @@ public function clearUrlMask() } /** - * A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. + * A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. * * Generated from protobuf field optional string url_mask = 103352252; * @param string $var diff --git a/Compute/src/V1/NetworkEndpointGroupList.php b/Compute/src/V1/NetworkEndpointGroupList.php index c1afada2a6be..96d2f46ae677 100644 --- a/Compute/src/V1/NetworkEndpointGroupList.php +++ b/Compute/src/V1/NetworkEndpointGroupList.php @@ -59,7 +59,7 @@ class NetworkEndpointGroupList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\NetworkEndpointGroup[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\NetworkEndpointGroup>|\Google\Protobuf\Internal\RepeatedField $items * A list of NetworkEndpointGroup resources. * @type string $kind * [Output Only] The resource type, which is always compute#networkEndpointGroupList for network endpoint group lists. @@ -127,7 +127,7 @@ public function getItems() * A list of NetworkEndpointGroup resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkEndpointGroup items = 100526016; - * @param \Google\Cloud\Compute\V1\NetworkEndpointGroup[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkEndpointGroup>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/NetworkEndpointGroupsAttachEndpointsRequest.php b/Compute/src/V1/NetworkEndpointGroupsAttachEndpointsRequest.php index 113140678f10..b641de91f126 100644 --- a/Compute/src/V1/NetworkEndpointGroupsAttachEndpointsRequest.php +++ b/Compute/src/V1/NetworkEndpointGroupsAttachEndpointsRequest.php @@ -27,7 +27,7 @@ class NetworkEndpointGroupsAttachEndpointsRequest extends \Google\Protobuf\Inter * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\NetworkEndpoint[]|\Google\Protobuf\Internal\RepeatedField $network_endpoints + * @type array<\Google\Cloud\Compute\V1\NetworkEndpoint>|\Google\Protobuf\Internal\RepeatedField $network_endpoints * The list of network endpoints to be attached. * } */ @@ -51,7 +51,7 @@ public function getNetworkEndpoints() * The list of network endpoints to be attached. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkEndpoint network_endpoints = 149850285; - * @param \Google\Cloud\Compute\V1\NetworkEndpoint[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkEndpoint>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNetworkEndpoints($var) diff --git a/Compute/src/V1/NetworkEndpointGroupsDetachEndpointsRequest.php b/Compute/src/V1/NetworkEndpointGroupsDetachEndpointsRequest.php index c4bc3e852358..a3ef886614e1 100644 --- a/Compute/src/V1/NetworkEndpointGroupsDetachEndpointsRequest.php +++ b/Compute/src/V1/NetworkEndpointGroupsDetachEndpointsRequest.php @@ -27,7 +27,7 @@ class NetworkEndpointGroupsDetachEndpointsRequest extends \Google\Protobuf\Inter * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\NetworkEndpoint[]|\Google\Protobuf\Internal\RepeatedField $network_endpoints + * @type array<\Google\Cloud\Compute\V1\NetworkEndpoint>|\Google\Protobuf\Internal\RepeatedField $network_endpoints * The list of network endpoints to be detached. * } */ @@ -51,7 +51,7 @@ public function getNetworkEndpoints() * The list of network endpoints to be detached. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkEndpoint network_endpoints = 149850285; - * @param \Google\Cloud\Compute\V1\NetworkEndpoint[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkEndpoint>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNetworkEndpoints($var) diff --git a/Compute/src/V1/NetworkEndpointGroupsListNetworkEndpoints.php b/Compute/src/V1/NetworkEndpointGroupsListNetworkEndpoints.php index 4045a3c85f45..70d01bb0eb08 100644 --- a/Compute/src/V1/NetworkEndpointGroupsListNetworkEndpoints.php +++ b/Compute/src/V1/NetworkEndpointGroupsListNetworkEndpoints.php @@ -53,7 +53,7 @@ class NetworkEndpointGroupsListNetworkEndpoints extends \Google\Protobuf\Interna * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\NetworkEndpointWithHealthStatus[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\NetworkEndpointWithHealthStatus>|\Google\Protobuf\Internal\RepeatedField $items * A list of NetworkEndpointWithHealthStatus resources. * @type string $kind * [Output Only] The resource type, which is always compute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in the specified network endpoint group. @@ -119,7 +119,7 @@ public function getItems() * A list of NetworkEndpointWithHealthStatus resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkEndpointWithHealthStatus items = 100526016; - * @param \Google\Cloud\Compute\V1\NetworkEndpointWithHealthStatus[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkEndpointWithHealthStatus>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/NetworkEndpointGroupsScopedList.php b/Compute/src/V1/NetworkEndpointGroupsScopedList.php index 9c079d633714..efc77959120c 100644 --- a/Compute/src/V1/NetworkEndpointGroupsScopedList.php +++ b/Compute/src/V1/NetworkEndpointGroupsScopedList.php @@ -33,7 +33,7 @@ class NetworkEndpointGroupsScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\NetworkEndpointGroup[]|\Google\Protobuf\Internal\RepeatedField $network_endpoint_groups + * @type array<\Google\Cloud\Compute\V1\NetworkEndpointGroup>|\Google\Protobuf\Internal\RepeatedField $network_endpoint_groups * [Output Only] The list of network endpoint groups that are contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] An informational warning that replaces the list of network endpoint groups when the list is empty. @@ -59,7 +59,7 @@ public function getNetworkEndpointGroups() * [Output Only] The list of network endpoint groups that are contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkEndpointGroup network_endpoint_groups = 29346733; - * @param \Google\Cloud\Compute\V1\NetworkEndpointGroup[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkEndpointGroup>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNetworkEndpointGroups($var) diff --git a/Compute/src/V1/NetworkEndpointWithHealthStatus.php b/Compute/src/V1/NetworkEndpointWithHealthStatus.php index ff5856264d4b..f148221cc87c 100644 --- a/Compute/src/V1/NetworkEndpointWithHealthStatus.php +++ b/Compute/src/V1/NetworkEndpointWithHealthStatus.php @@ -33,7 +33,7 @@ class NetworkEndpointWithHealthStatus extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\HealthStatusForNetworkEndpoint[]|\Google\Protobuf\Internal\RepeatedField $healths + * @type array<\Google\Cloud\Compute\V1\HealthStatusForNetworkEndpoint>|\Google\Protobuf\Internal\RepeatedField $healths * [Output only] The health status of network endpoint; * @type \Google\Cloud\Compute\V1\NetworkEndpoint $network_endpoint * [Output only] The network endpoint; @@ -59,7 +59,7 @@ public function getHealths() * [Output only] The health status of network endpoint; * * Generated from protobuf field repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431; - * @param \Google\Cloud\Compute\V1\HealthStatusForNetworkEndpoint[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HealthStatusForNetworkEndpoint>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHealths($var) diff --git a/Compute/src/V1/NetworkInterface.php b/Compute/src/V1/NetworkInterface.php index 83e6e5634bbe..486312a6ba7c 100644 --- a/Compute/src/V1/NetworkInterface.php +++ b/Compute/src/V1/NetworkInterface.php @@ -115,15 +115,15 @@ class NetworkInterface extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\AccessConfig[]|\Google\Protobuf\Internal\RepeatedField $access_configs + * @type array<\Google\Cloud\Compute\V1\AccessConfig>|\Google\Protobuf\Internal\RepeatedField $access_configs * An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access. - * @type \Google\Cloud\Compute\V1\AliasIpRange[]|\Google\Protobuf\Internal\RepeatedField $alias_ip_ranges + * @type array<\Google\Cloud\Compute\V1\AliasIpRange>|\Google\Protobuf\Internal\RepeatedField $alias_ip_ranges * An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks. * @type string $fingerprint * Fingerprint hash of contents stored in this network interface. This field will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface. The request will fail with error 400 Bad Request if the fingerprint is not provided, or 412 Precondition Failed if the fingerprint is out of date. * @type int $internal_ipv6_prefix_length * The prefix length of the primary internal IPv6 range. - * @type \Google\Cloud\Compute\V1\AccessConfig[]|\Google\Protobuf\Internal\RepeatedField $ipv6_access_configs + * @type array<\Google\Cloud\Compute\V1\AccessConfig>|\Google\Protobuf\Internal\RepeatedField $ipv6_access_configs * An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access. * @type string $ipv6_access_type * [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork. Valid only if stackType is IPV4_IPV6. @@ -170,7 +170,7 @@ public function getAccessConfigs() * An array of configurations for this interface. Currently, only one access config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs specified, then this instance will have no external internet access. * * Generated from protobuf field repeated .google.cloud.compute.v1.AccessConfig access_configs = 111058326; - * @param \Google\Cloud\Compute\V1\AccessConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AccessConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAccessConfigs($var) @@ -196,7 +196,7 @@ public function getAliasIpRanges() * An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks. * * Generated from protobuf field repeated .google.cloud.compute.v1.AliasIpRange alias_ip_ranges = 165085631; - * @param \Google\Cloud\Compute\V1\AliasIpRange[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AliasIpRange>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAliasIpRanges($var) @@ -294,7 +294,7 @@ public function getIpv6AccessConfigs() * An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access. * * Generated from protobuf field repeated .google.cloud.compute.v1.AccessConfig ipv6_access_configs = 483472110; - * @param \Google\Cloud\Compute\V1\AccessConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AccessConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIpv6AccessConfigs($var) diff --git a/Compute/src/V1/NetworkList.php b/Compute/src/V1/NetworkList.php index addc125112ad..6e94e965e215 100644 --- a/Compute/src/V1/NetworkList.php +++ b/Compute/src/V1/NetworkList.php @@ -60,7 +60,7 @@ class NetworkList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Network[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Network>|\Google\Protobuf\Internal\RepeatedField $items * A list of Network resources. * @type string $kind * [Output Only] Type of resource. Always compute#networkList for lists of networks. @@ -128,7 +128,7 @@ public function getItems() * A list of Network resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Network items = 100526016; - * @param \Google\Cloud\Compute\V1\Network[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Network>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/NetworkPerformanceConfig/TotalEgressBandwidthTier.php b/Compute/src/V1/NetworkPerformanceConfig/TotalEgressBandwidthTier.php index 7e50b622068d..e41d29890326 100644 --- a/Compute/src/V1/NetworkPerformanceConfig/TotalEgressBandwidthTier.php +++ b/Compute/src/V1/NetworkPerformanceConfig/TotalEgressBandwidthTier.php @@ -29,7 +29,7 @@ class TotalEgressBandwidthTier private static $valueToName = [ self::UNDEFINED_TOTAL_EGRESS_BANDWIDTH_TIER => 'UNDEFINED_TOTAL_EGRESS_BANDWIDTH_TIER', - self::PBDEFAULT => 'PBDEFAULT', + self::PBDEFAULT => 'DEFAULT', self::TIER_1 => 'TIER_1', ]; @@ -47,8 +47,12 @@ public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); } return constant($const); } diff --git a/Compute/src/V1/NetworkRoutingConfig/RoutingMode.php b/Compute/src/V1/NetworkRoutingConfig/RoutingMode.php index 07b139c57b8e..f666e351c9c4 100644 --- a/Compute/src/V1/NetworkRoutingConfig/RoutingMode.php +++ b/Compute/src/V1/NetworkRoutingConfig/RoutingMode.php @@ -30,7 +30,7 @@ class RoutingMode private static $valueToName = [ self::UNDEFINED_ROUTING_MODE => 'UNDEFINED_ROUTING_MODE', - self::PBGLOBAL => 'PBGLOBAL', + self::PBGLOBAL => 'GLOBAL', self::REGIONAL => 'REGIONAL', ]; @@ -48,8 +48,12 @@ public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); } return constant($const); } diff --git a/Compute/src/V1/NetworksGetEffectiveFirewallsResponse.php b/Compute/src/V1/NetworksGetEffectiveFirewallsResponse.php index 2cdaa8aa1330..a478968c2216 100644 --- a/Compute/src/V1/NetworksGetEffectiveFirewallsResponse.php +++ b/Compute/src/V1/NetworksGetEffectiveFirewallsResponse.php @@ -33,9 +33,9 @@ class NetworksGetEffectiveFirewallsResponse extends \Google\Protobuf\Internal\Me * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy[]|\Google\Protobuf\Internal\RepeatedField $firewall_policys + * @type array<\Google\Cloud\Compute\V1\NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy>|\Google\Protobuf\Internal\RepeatedField $firewall_policys * Effective firewalls from firewall policy. - * @type \Google\Cloud\Compute\V1\Firewall[]|\Google\Protobuf\Internal\RepeatedField $firewalls + * @type array<\Google\Cloud\Compute\V1\Firewall>|\Google\Protobuf\Internal\RepeatedField $firewalls * Effective firewalls on the network. * } */ @@ -59,7 +59,7 @@ public function getFirewallPolicys() * Effective firewalls from firewall policy. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy firewall_policys = 410985794; - * @param \Google\Cloud\Compute\V1\NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFirewallPolicys($var) @@ -85,7 +85,7 @@ public function getFirewalls() * Effective firewalls on the network. * * Generated from protobuf field repeated .google.cloud.compute.v1.Firewall firewalls = 272245619; - * @param \Google\Cloud\Compute\V1\Firewall[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Firewall>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFirewalls($var) diff --git a/Compute/src/V1/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php b/Compute/src/V1/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php index 915cbd1fda24..dcde2feb9600 100644 --- a/Compute/src/V1/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php +++ b/Compute/src/V1/NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php @@ -56,7 +56,7 @@ class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy extends \Goog * [Output Only] Deprecated, please use short name instead. The display name of the firewall policy. * @type string $name * [Output Only] The name of the firewall policy. - * @type \Google\Cloud\Compute\V1\FirewallPolicyRule[]|\Google\Protobuf\Internal\RepeatedField $rules + * @type array<\Google\Cloud\Compute\V1\FirewallPolicyRule>|\Google\Protobuf\Internal\RepeatedField $rules * The rules that apply to the network. * @type string $short_name * [Output Only] The short name of the firewall policy. @@ -157,7 +157,7 @@ public function getRules() * The rules that apply to the network. * * Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975; - * @param \Google\Cloud\Compute\V1\FirewallPolicyRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FirewallPolicyRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) diff --git a/Compute/src/V1/NodeGroup/MaintenancePolicy.php b/Compute/src/V1/NodeGroup/MaintenancePolicy.php index b2bbf42324a6..44d431630064 100644 --- a/Compute/src/V1/NodeGroup/MaintenancePolicy.php +++ b/Compute/src/V1/NodeGroup/MaintenancePolicy.php @@ -44,7 +44,7 @@ class MaintenancePolicy private static $valueToName = [ self::UNDEFINED_MAINTENANCE_POLICY => 'UNDEFINED_MAINTENANCE_POLICY', - self::PBDEFAULT => 'PBDEFAULT', + self::PBDEFAULT => 'DEFAULT', self::MAINTENANCE_POLICY_UNSPECIFIED => 'MAINTENANCE_POLICY_UNSPECIFIED', self::MIGRATE_WITHIN_NODE_GROUP => 'MIGRATE_WITHIN_NODE_GROUP', self::RESTART_IN_PLACE => 'RESTART_IN_PLACE', @@ -64,8 +64,12 @@ public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); } return constant($const); } diff --git a/Compute/src/V1/NodeGroupAggregatedList.php b/Compute/src/V1/NodeGroupAggregatedList.php index 5c9658e838cf..2b2c6f021d38 100644 --- a/Compute/src/V1/NodeGroupAggregatedList.php +++ b/Compute/src/V1/NodeGroupAggregatedList.php @@ -73,7 +73,7 @@ class NodeGroupAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/NodeGroupList.php b/Compute/src/V1/NodeGroupList.php index 020f9dd5bb2a..e288240e4ac6 100644 --- a/Compute/src/V1/NodeGroupList.php +++ b/Compute/src/V1/NodeGroupList.php @@ -60,7 +60,7 @@ class NodeGroupList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\NodeGroup[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\NodeGroup>|\Google\Protobuf\Internal\RepeatedField $items * A list of NodeGroup resources. * @type string $kind * [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. @@ -128,7 +128,7 @@ public function getItems() * A list of NodeGroup resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.NodeGroup items = 100526016; - * @param \Google\Cloud\Compute\V1\NodeGroup[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NodeGroup>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/NodeGroupNode.php b/Compute/src/V1/NodeGroupNode.php index 65807af05bdf..c594b7c27b44 100644 --- a/Compute/src/V1/NodeGroupNode.php +++ b/Compute/src/V1/NodeGroupNode.php @@ -83,14 +83,14 @@ class NodeGroupNode extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $accelerators + * @type array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $accelerators * Accelerators for this node. * @type string $cpu_overcommit_type * CPU overcommit. * Check the CpuOvercommitType enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\LocalDisk[]|\Google\Protobuf\Internal\RepeatedField $disks + * @type array<\Google\Cloud\Compute\V1\LocalDisk>|\Google\Protobuf\Internal\RepeatedField $disks * Local disk configurations. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array|\Google\Protobuf\Internal\RepeatedField $instances * Instances scheduled on this node. * @type string $name * The name of the node. @@ -127,7 +127,7 @@ public function getAccelerators() * Accelerators for this node. * * Generated from protobuf field repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; - * @param \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAccelerators($var) @@ -191,7 +191,7 @@ public function getDisks() * Local disk configurations. * * Generated from protobuf field repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; - * @param \Google\Cloud\Compute\V1\LocalDisk[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\LocalDisk>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDisks($var) @@ -217,7 +217,7 @@ public function getInstances() * Instances scheduled on this node. * * Generated from protobuf field repeated string instances = 29097598; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/NodeGroupsDeleteNodesRequest.php b/Compute/src/V1/NodeGroupsDeleteNodesRequest.php index 6eeda07cfaa0..be18a89eacd5 100644 --- a/Compute/src/V1/NodeGroupsDeleteNodesRequest.php +++ b/Compute/src/V1/NodeGroupsDeleteNodesRequest.php @@ -27,7 +27,7 @@ class NodeGroupsDeleteNodesRequest extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $nodes + * @type array|\Google\Protobuf\Internal\RepeatedField $nodes * Names of the nodes to delete. * } */ @@ -51,7 +51,7 @@ public function getNodes() * Names of the nodes to delete. * * Generated from protobuf field repeated string nodes = 104993457; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNodes($var) diff --git a/Compute/src/V1/NodeGroupsListNodes.php b/Compute/src/V1/NodeGroupsListNodes.php index 4b047448d24c..8d0858eb1732 100644 --- a/Compute/src/V1/NodeGroupsListNodes.php +++ b/Compute/src/V1/NodeGroupsListNodes.php @@ -59,7 +59,7 @@ class NodeGroupsListNodes extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\NodeGroupNode[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\NodeGroupNode>|\Google\Protobuf\Internal\RepeatedField $items * A list of Node resources. * @type string $kind * [Output Only] The resource type, which is always compute.nodeGroupsListNodes for the list of nodes in the specified node group. @@ -127,7 +127,7 @@ public function getItems() * A list of Node resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.NodeGroupNode items = 100526016; - * @param \Google\Cloud\Compute\V1\NodeGroupNode[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NodeGroupNode>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/NodeGroupsScopedList.php b/Compute/src/V1/NodeGroupsScopedList.php index 3ea83d4a9d19..97d500793e4f 100644 --- a/Compute/src/V1/NodeGroupsScopedList.php +++ b/Compute/src/V1/NodeGroupsScopedList.php @@ -33,7 +33,7 @@ class NodeGroupsScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\NodeGroup[]|\Google\Protobuf\Internal\RepeatedField $node_groups + * @type array<\Google\Cloud\Compute\V1\NodeGroup>|\Google\Protobuf\Internal\RepeatedField $node_groups * [Output Only] A list of node groups contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] An informational warning that appears when the nodeGroup list is empty. @@ -59,7 +59,7 @@ public function getNodeGroups() * [Output Only] A list of node groups contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.NodeGroup node_groups = 73188017; - * @param \Google\Cloud\Compute\V1\NodeGroup[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NodeGroup>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNodeGroups($var) diff --git a/Compute/src/V1/NodeTemplate.php b/Compute/src/V1/NodeTemplate.php index 0f4dbb929e89..17277dd43c44 100644 --- a/Compute/src/V1/NodeTemplate.php +++ b/Compute/src/V1/NodeTemplate.php @@ -116,7 +116,7 @@ class NodeTemplate extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $accelerators + * @type array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $accelerators * @type string $cpu_overcommit_type * CPU overcommit. * Check the CpuOvercommitType enum for the list of possible values. @@ -124,7 +124,7 @@ class NodeTemplate extends \Google\Protobuf\Internal\Message * [Output Only] Creation timestamp in RFC3339 text format. * @type string $description * An optional description of this resource. Provide this property when you create the resource. - * @type \Google\Cloud\Compute\V1\LocalDisk[]|\Google\Protobuf\Internal\RepeatedField $disks + * @type array<\Google\Cloud\Compute\V1\LocalDisk>|\Google\Protobuf\Internal\RepeatedField $disks * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. * @type string $kind @@ -166,7 +166,7 @@ public function getAccelerators() /** * Generated from protobuf field repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; - * @param \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAccelerators($var) @@ -298,7 +298,7 @@ public function getDisks() /** * Generated from protobuf field repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; - * @param \Google\Cloud\Compute\V1\LocalDisk[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\LocalDisk>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDisks($var) diff --git a/Compute/src/V1/NodeTemplateAggregatedList.php b/Compute/src/V1/NodeTemplateAggregatedList.php index 25f07b4f1045..2fcf9912948f 100644 --- a/Compute/src/V1/NodeTemplateAggregatedList.php +++ b/Compute/src/V1/NodeTemplateAggregatedList.php @@ -73,7 +73,7 @@ class NodeTemplateAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/NodeTemplateList.php b/Compute/src/V1/NodeTemplateList.php index 04e954e7dfe4..9fba86b4b326 100644 --- a/Compute/src/V1/NodeTemplateList.php +++ b/Compute/src/V1/NodeTemplateList.php @@ -60,7 +60,7 @@ class NodeTemplateList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\NodeTemplate[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\NodeTemplate>|\Google\Protobuf\Internal\RepeatedField $items * A list of NodeTemplate resources. * @type string $kind * [Output Only] Type of resource.Always compute#nodeTemplateList for lists of node templates. @@ -128,7 +128,7 @@ public function getItems() * A list of NodeTemplate resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.NodeTemplate items = 100526016; - * @param \Google\Cloud\Compute\V1\NodeTemplate[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NodeTemplate>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/NodeTemplatesScopedList.php b/Compute/src/V1/NodeTemplatesScopedList.php index 9c327b1ddf50..6bc55f1ea0e6 100644 --- a/Compute/src/V1/NodeTemplatesScopedList.php +++ b/Compute/src/V1/NodeTemplatesScopedList.php @@ -33,7 +33,7 @@ class NodeTemplatesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\NodeTemplate[]|\Google\Protobuf\Internal\RepeatedField $node_templates + * @type array<\Google\Cloud\Compute\V1\NodeTemplate>|\Google\Protobuf\Internal\RepeatedField $node_templates * [Output Only] A list of node templates contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] An informational warning that appears when the node templates list is empty. @@ -59,7 +59,7 @@ public function getNodeTemplates() * [Output Only] A list of node templates contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.NodeTemplate node_templates = 354111804; - * @param \Google\Cloud\Compute\V1\NodeTemplate[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NodeTemplate>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNodeTemplates($var) diff --git a/Compute/src/V1/NodeTypeAggregatedList.php b/Compute/src/V1/NodeTypeAggregatedList.php index 86b63a556098..99bbd77c97ec 100644 --- a/Compute/src/V1/NodeTypeAggregatedList.php +++ b/Compute/src/V1/NodeTypeAggregatedList.php @@ -73,7 +73,7 @@ class NodeTypeAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/NodeTypeList.php b/Compute/src/V1/NodeTypeList.php index e066b7fe42ee..2449dd99a05f 100644 --- a/Compute/src/V1/NodeTypeList.php +++ b/Compute/src/V1/NodeTypeList.php @@ -60,7 +60,7 @@ class NodeTypeList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\NodeType[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\NodeType>|\Google\Protobuf\Internal\RepeatedField $items * A list of NodeType resources. * @type string $kind * [Output Only] Type of resource.Always compute#nodeTypeList for lists of node types. @@ -128,7 +128,7 @@ public function getItems() * A list of NodeType resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.NodeType items = 100526016; - * @param \Google\Cloud\Compute\V1\NodeType[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NodeType>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/NodeTypesScopedList.php b/Compute/src/V1/NodeTypesScopedList.php index 53723c343115..62b20fc2b154 100644 --- a/Compute/src/V1/NodeTypesScopedList.php +++ b/Compute/src/V1/NodeTypesScopedList.php @@ -33,7 +33,7 @@ class NodeTypesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\NodeType[]|\Google\Protobuf\Internal\RepeatedField $node_types + * @type array<\Google\Cloud\Compute\V1\NodeType>|\Google\Protobuf\Internal\RepeatedField $node_types * [Output Only] A list of node types contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] An informational warning that appears when the node types list is empty. @@ -59,7 +59,7 @@ public function getNodeTypes() * [Output Only] A list of node types contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.NodeType node_types = 482172924; - * @param \Google\Cloud\Compute\V1\NodeType[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NodeType>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNodeTypes($var) diff --git a/Compute/src/V1/NotificationEndpointList.php b/Compute/src/V1/NotificationEndpointList.php index d1490de2e121..7e7fb5089db2 100644 --- a/Compute/src/V1/NotificationEndpointList.php +++ b/Compute/src/V1/NotificationEndpointList.php @@ -59,7 +59,7 @@ class NotificationEndpointList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\NotificationEndpoint[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\NotificationEndpoint>|\Google\Protobuf\Internal\RepeatedField $items * A list of NotificationEndpoint resources. * @type string $kind * [Output Only] Type of the resource. Always compute#notificationEndpoint for notification endpoints. @@ -127,7 +127,7 @@ public function getItems() * A list of NotificationEndpoint resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.NotificationEndpoint items = 100526016; - * @param \Google\Cloud\Compute\V1\NotificationEndpoint[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NotificationEndpoint>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/Operation.php b/Compute/src/V1/Operation.php index b3a9101ef914..d20340e94e4e 100644 --- a/Compute/src/V1/Operation.php +++ b/Compute/src/V1/Operation.php @@ -210,7 +210,7 @@ class Operation extends \Google\Protobuf\Internal\Message * [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. * @type string $user * [Output Only] User who requested the operation, for example: `user@example.com`. - * @type \Google\Cloud\Compute\V1\Warnings[]|\Google\Protobuf\Internal\RepeatedField $warnings + * @type array<\Google\Cloud\Compute\V1\Warnings>|\Google\Protobuf\Internal\RepeatedField $warnings * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. * @type string $zone * [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. @@ -1028,7 +1028,7 @@ public function getWarnings() * [Output Only] If warning messages are generated during processing of the operation, this field will be populated. * * Generated from protobuf field repeated .google.cloud.compute.v1.Warnings warnings = 498091095; - * @param \Google\Cloud\Compute\V1\Warnings[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Warnings>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setWarnings($var) diff --git a/Compute/src/V1/OperationAggregatedList.php b/Compute/src/V1/OperationAggregatedList.php index 06f79f142916..154473153f36 100644 --- a/Compute/src/V1/OperationAggregatedList.php +++ b/Compute/src/V1/OperationAggregatedList.php @@ -73,7 +73,7 @@ class OperationAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than `maxResults`, use the `nextPageToken` as a value for the query parameter `pageToken` in the next list request. Subsequent list requests will have their own `nextPageToken` to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/OperationList.php b/Compute/src/V1/OperationList.php index e1eb051d158f..5a166f1d844b 100644 --- a/Compute/src/V1/OperationList.php +++ b/Compute/src/V1/OperationList.php @@ -60,7 +60,7 @@ class OperationList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @type \Google\Cloud\Compute\V1\Operation[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $items * [Output Only] A list of Operation resources. * @type string $kind * [Output Only] Type of resource. Always `compute#operations` for Operations resource. @@ -128,7 +128,7 @@ public function getItems() * [Output Only] A list of Operation resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Operation items = 100526016; - * @param \Google\Cloud\Compute\V1\Operation[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/OperationsScopedList.php b/Compute/src/V1/OperationsScopedList.php index 3efd8da5e81d..07103f622ee1 100644 --- a/Compute/src/V1/OperationsScopedList.php +++ b/Compute/src/V1/OperationsScopedList.php @@ -33,7 +33,7 @@ class OperationsScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Operation[]|\Google\Protobuf\Internal\RepeatedField $operations + * @type array<\Google\Cloud\Compute\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $operations * [Output Only] A list of operations contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning which replaces the list of operations when the list is empty. @@ -59,7 +59,7 @@ public function getOperations() * [Output Only] A list of operations contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.Operation operations = 4184044; - * @param \Google\Cloud\Compute\V1\Operation[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setOperations($var) diff --git a/Compute/src/V1/PacketMirroringAggregatedList.php b/Compute/src/V1/PacketMirroringAggregatedList.php index b348c220cc2f..d29c8348b1de 100644 --- a/Compute/src/V1/PacketMirroringAggregatedList.php +++ b/Compute/src/V1/PacketMirroringAggregatedList.php @@ -74,7 +74,7 @@ class PacketMirroringAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -270,7 +270,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/PacketMirroringFilter.php b/Compute/src/V1/PacketMirroringFilter.php index b0f70010b867..219be032a433 100644 --- a/Compute/src/V1/PacketMirroringFilter.php +++ b/Compute/src/V1/PacketMirroringFilter.php @@ -40,9 +40,9 @@ class PacketMirroringFilter extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $I_p_protocols + * @type array|\Google\Protobuf\Internal\RepeatedField $I_p_protocols * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $cidr_ranges + * @type array|\Google\Protobuf\Internal\RepeatedField $cidr_ranges * IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. * @type string $direction * Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. @@ -69,7 +69,7 @@ public function getIPProtocols() * Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. * * Generated from protobuf field repeated string I_p_protocols = 98544854; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIPProtocols($var) @@ -95,7 +95,7 @@ public function getCidrRanges() * IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. * * Generated from protobuf field repeated string cidr_ranges = 487901697; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCidrRanges($var) diff --git a/Compute/src/V1/PacketMirroringList.php b/Compute/src/V1/PacketMirroringList.php index f4a6d4347b2b..f031940063a9 100644 --- a/Compute/src/V1/PacketMirroringList.php +++ b/Compute/src/V1/PacketMirroringList.php @@ -60,7 +60,7 @@ class PacketMirroringList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\PacketMirroring[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\PacketMirroring>|\Google\Protobuf\Internal\RepeatedField $items * A list of PacketMirroring resources. * @type string $kind * [Output Only] Type of resource. Always compute#packetMirroring for packetMirrorings. @@ -128,7 +128,7 @@ public function getItems() * A list of PacketMirroring resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.PacketMirroring items = 100526016; - * @param \Google\Cloud\Compute\V1\PacketMirroring[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PacketMirroring>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/PacketMirroringMirroredResourceInfo.php b/Compute/src/V1/PacketMirroringMirroredResourceInfo.php index 31c6b22d66ec..c94629ae85de 100644 --- a/Compute/src/V1/PacketMirroringMirroredResourceInfo.php +++ b/Compute/src/V1/PacketMirroringMirroredResourceInfo.php @@ -39,11 +39,11 @@ class PacketMirroringMirroredResourceInfo extends \Google\Protobuf\Internal\Mess * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoInstanceInfo[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array<\Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoInstanceInfo>|\Google\Protobuf\Internal\RepeatedField $instances * A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. You may specify a maximum of 50 Instances. - * @type \Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoSubnetInfo[]|\Google\Protobuf\Internal\RepeatedField $subnetworks + * @type array<\Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoSubnetInfo>|\Google\Protobuf\Internal\RepeatedField $subnetworks * A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in the same region as this packetMirroring. You may specify a maximum of 5 subnetworks. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $tags + * @type array|\Google\Protobuf\Internal\RepeatedField $tags * A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored. * } */ @@ -67,7 +67,7 @@ public function getInstances() * A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring. Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring. You may specify a maximum of 50 Instances. * * Generated from protobuf field repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoInstanceInfo instances = 29097598; - * @param \Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoInstanceInfo[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoInstanceInfo>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) @@ -93,7 +93,7 @@ public function getSubnetworks() * A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in the same region as this packetMirroring. You may specify a maximum of 5 subnetworks. * * Generated from protobuf field repeated .google.cloud.compute.v1.PacketMirroringMirroredResourceInfoSubnetInfo subnetworks = 415853125; - * @param \Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoSubnetInfo[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PacketMirroringMirroredResourceInfoSubnetInfo>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSubnetworks($var) @@ -119,7 +119,7 @@ public function getTags() * A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored. * * Generated from protobuf field repeated string tags = 3552281; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTags($var) diff --git a/Compute/src/V1/PacketMirroringsScopedList.php b/Compute/src/V1/PacketMirroringsScopedList.php index b7019f2bd932..f6c67aac7d2e 100644 --- a/Compute/src/V1/PacketMirroringsScopedList.php +++ b/Compute/src/V1/PacketMirroringsScopedList.php @@ -33,7 +33,7 @@ class PacketMirroringsScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\PacketMirroring[]|\Google\Protobuf\Internal\RepeatedField $packet_mirrorings + * @type array<\Google\Cloud\Compute\V1\PacketMirroring>|\Google\Protobuf\Internal\RepeatedField $packet_mirrorings * A list of packetMirrorings contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of packetMirrorings when the list is empty. @@ -59,7 +59,7 @@ public function getPacketMirrorings() * A list of packetMirrorings contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.PacketMirroring packet_mirrorings = 154615079; - * @param \Google\Cloud\Compute\V1\PacketMirroring[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PacketMirroring>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPacketMirrorings($var) diff --git a/Compute/src/V1/PathMatcher.php b/Compute/src/V1/PathMatcher.php index 8a462e616079..5916215e1eb3 100644 --- a/Compute/src/V1/PathMatcher.php +++ b/Compute/src/V1/PathMatcher.php @@ -82,9 +82,9 @@ class PathMatcher extends \Google\Protobuf\Internal\Message * Specifies changes to request and response headers that need to take effect for the selected backend service. HeaderAction specified here are applied after the matching HttpRouteRule HeaderAction and before the HeaderAction in the UrlMap HeaderAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. * @type string $name * The name to which this PathMatcher is referred by the HostRule. - * @type \Google\Cloud\Compute\V1\PathRule[]|\Google\Protobuf\Internal\RepeatedField $path_rules + * @type array<\Google\Cloud\Compute\V1\PathRule>|\Google\Protobuf\Internal\RepeatedField $path_rules * The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that's required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/* irrespective of the order in which those paths appear in this list. Within a given pathMatcher, only one of pathRules or routeRules must be set. - * @type \Google\Cloud\Compute\V1\HttpRouteRule[]|\Google\Protobuf\Internal\RepeatedField $route_rules + * @type array<\Google\Cloud\Compute\V1\HttpRouteRule>|\Google\Protobuf\Internal\RepeatedField $route_rules * The list of HTTP route rules. Use this list instead of pathRules when advanced route matching and routing actions are desired. routeRules are evaluated in order of priority, from the lowest to highest number. Within a given pathMatcher, you can set only one of pathRules or routeRules. * } */ @@ -324,7 +324,7 @@ public function getPathRules() * The list of path rules. Use this list instead of routeRules when routing based on simple path matching is all that's required. The order by which path rules are specified does not matter. Matches are always done on the longest-path-first basis. For example: a pathRule with a path /a/b/c/* will match before /a/b/* irrespective of the order in which those paths appear in this list. Within a given pathMatcher, only one of pathRules or routeRules must be set. * * Generated from protobuf field repeated .google.cloud.compute.v1.PathRule path_rules = 104439901; - * @param \Google\Cloud\Compute\V1\PathRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PathRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPathRules($var) @@ -350,7 +350,7 @@ public function getRouteRules() * The list of HTTP route rules. Use this list instead of pathRules when advanced route matching and routing actions are desired. routeRules are evaluated in order of priority, from the lowest to highest number. Within a given pathMatcher, you can set only one of pathRules or routeRules. * * Generated from protobuf field repeated .google.cloud.compute.v1.HttpRouteRule route_rules = 376292225; - * @param \Google\Cloud\Compute\V1\HttpRouteRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HttpRouteRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRouteRules($var) diff --git a/Compute/src/V1/PathRule.php b/Compute/src/V1/PathRule.php index 0b2f408b2351..052d3280da2b 100644 --- a/Compute/src/V1/PathRule.php +++ b/Compute/src/V1/PathRule.php @@ -46,7 +46,7 @@ class PathRule extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $paths + * @type array|\Google\Protobuf\Internal\RepeatedField $paths * The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. * @type \Google\Cloud\Compute\V1\HttpRouteAction $route_action * In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for external HTTP(S) load balancers support only the urlRewrite action within a path rule's routeAction. @@ -76,7 +76,7 @@ public function getPaths() * The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. * * Generated from protobuf field repeated string paths = 106438894; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPaths($var) diff --git a/Compute/src/V1/Policy.php b/Compute/src/V1/Policy.php index edb2f72ca056..a6201b0ff03d 100644 --- a/Compute/src/V1/Policy.php +++ b/Compute/src/V1/Policy.php @@ -56,14 +56,14 @@ class Policy extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\AuditConfig[]|\Google\Protobuf\Internal\RepeatedField $audit_configs + * @type array<\Google\Cloud\Compute\V1\AuditConfig>|\Google\Protobuf\Internal\RepeatedField $audit_configs * Specifies cloud audit logging configuration for this policy. - * @type \Google\Cloud\Compute\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $bindings + * @type array<\Google\Cloud\Compute\V1\Binding>|\Google\Protobuf\Internal\RepeatedField $bindings * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. * @type string $etag * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. * @type bool $iam_owned - * @type \Google\Cloud\Compute\V1\Rule[]|\Google\Protobuf\Internal\RepeatedField $rules + * @type array<\Google\Cloud\Compute\V1\Rule>|\Google\Protobuf\Internal\RepeatedField $rules * This is deprecated and has no effect. Do not use. * @type int $version * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). @@ -89,7 +89,7 @@ public function getAuditConfigs() * Specifies cloud audit logging configuration for this policy. * * Generated from protobuf field repeated .google.cloud.compute.v1.AuditConfig audit_configs = 328080653; - * @param \Google\Cloud\Compute\V1\AuditConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AuditConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAuditConfigs($var) @@ -115,7 +115,7 @@ public function getBindings() * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. * * Generated from protobuf field repeated .google.cloud.compute.v1.Binding bindings = 403251854; - * @param \Google\Cloud\Compute\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Binding>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBindings($var) @@ -209,7 +209,7 @@ public function getRules() * This is deprecated and has no effect. Do not use. * * Generated from protobuf field repeated .google.cloud.compute.v1.Rule rules = 108873975; - * @param \Google\Cloud\Compute\V1\Rule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Rule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) diff --git a/Compute/src/V1/PreconfiguredWafSet.php b/Compute/src/V1/PreconfiguredWafSet.php index 52eec3dbe7eb..e486d783a340 100644 --- a/Compute/src/V1/PreconfiguredWafSet.php +++ b/Compute/src/V1/PreconfiguredWafSet.php @@ -27,7 +27,7 @@ class PreconfiguredWafSet extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\WafExpressionSet[]|\Google\Protobuf\Internal\RepeatedField $expression_sets + * @type array<\Google\Cloud\Compute\V1\WafExpressionSet>|\Google\Protobuf\Internal\RepeatedField $expression_sets * List of entities that are currently supported for WAF rules. * } */ @@ -51,7 +51,7 @@ public function getExpressionSets() * List of entities that are currently supported for WAF rules. * * Generated from protobuf field repeated .google.cloud.compute.v1.WafExpressionSet expression_sets = 474011032; - * @param \Google\Cloud\Compute\V1\WafExpressionSet[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\WafExpressionSet>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExpressionSets($var) diff --git a/Compute/src/V1/Project.php b/Compute/src/V1/Project.php index c42219f2e1e8..0762dc98c1f4 100644 --- a/Compute/src/V1/Project.php +++ b/Compute/src/V1/Project.php @@ -113,7 +113,7 @@ class Project extends \Google\Protobuf\Internal\Message * [Output Only] Default service account used by VMs running in this project. * @type string $description * An optional textual description of the resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $enabled_features + * @type array|\Google\Protobuf\Internal\RepeatedField $enabled_features * Restricted features enabled for use on this project. * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. This is *not* the project ID, and is just a unique ID used by Compute Engine to identify resources. @@ -121,7 +121,7 @@ class Project extends \Google\Protobuf\Internal\Message * [Output Only] Type of the resource. Always compute#project for projects. * @type string $name * The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine. - * @type \Google\Cloud\Compute\V1\Quota[]|\Google\Protobuf\Internal\RepeatedField $quotas + * @type array<\Google\Cloud\Compute\V1\Quota>|\Google\Protobuf\Internal\RepeatedField $quotas * [Output Only] Quotas assigned to this project. * @type string $self_link * [Output Only] Server-defined URL for the resource. @@ -334,7 +334,7 @@ public function getEnabledFeatures() * Restricted features enabled for use on this project. * * Generated from protobuf field repeated string enabled_features = 469017467; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEnabledFeatures($var) @@ -468,7 +468,7 @@ public function getQuotas() * [Output Only] Quotas assigned to this project. * * Generated from protobuf field repeated .google.cloud.compute.v1.Quota quotas = 125341947; - * @param \Google\Cloud\Compute\V1\Quota[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Quota>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setQuotas($var) diff --git a/Compute/src/V1/ProjectsGetXpnResources.php b/Compute/src/V1/ProjectsGetXpnResources.php index 9b0b7cce9143..76b4f8f40d52 100644 --- a/Compute/src/V1/ProjectsGetXpnResources.php +++ b/Compute/src/V1/ProjectsGetXpnResources.php @@ -43,7 +43,7 @@ class ProjectsGetXpnResources extends \Google\Protobuf\Internal\Message * [Output Only] Type of resource. Always compute#projectsGetXpnResources for lists of service resources (a.k.a service projects) * @type string $next_page_token * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. - * @type \Google\Cloud\Compute\V1\XpnResourceId[]|\Google\Protobuf\Internal\RepeatedField $resources + * @type array<\Google\Cloud\Compute\V1\XpnResourceId>|\Google\Protobuf\Internal\RepeatedField $resources * Service resources (a.k.a service projects) attached to this project as their shared VPC host. * } */ @@ -139,7 +139,7 @@ public function getResources() * Service resources (a.k.a service projects) attached to this project as their shared VPC host. * * Generated from protobuf field repeated .google.cloud.compute.v1.XpnResourceId resources = 164412965; - * @param \Google\Cloud\Compute\V1\XpnResourceId[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\XpnResourceId>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResources($var) diff --git a/Compute/src/V1/PublicAdvertisedPrefix.php b/Compute/src/V1/PublicAdvertisedPrefix.php index 178d903bdd15..66bff8e267b1 100644 --- a/Compute/src/V1/PublicAdvertisedPrefix.php +++ b/Compute/src/V1/PublicAdvertisedPrefix.php @@ -111,7 +111,7 @@ class PublicAdvertisedPrefix extends \Google\Protobuf\Internal\Message * [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. * @type string $name * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - * @type \Google\Cloud\Compute\V1\PublicAdvertisedPrefixPublicDelegatedPrefix[]|\Google\Protobuf\Internal\RepeatedField $public_delegated_prefixs + * @type array<\Google\Cloud\Compute\V1\PublicAdvertisedPrefixPublicDelegatedPrefix>|\Google\Protobuf\Internal\RepeatedField $public_delegated_prefixs * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. * @type string $self_link * [Output Only] Server-defined URL for the resource. @@ -430,7 +430,7 @@ public function getPublicDelegatedPrefixs() * [Output Only] The list of public delegated prefixes that exist for this public advertised prefix. * * Generated from protobuf field repeated .google.cloud.compute.v1.PublicAdvertisedPrefixPublicDelegatedPrefix public_delegated_prefixs = 425811723; - * @param \Google\Cloud\Compute\V1\PublicAdvertisedPrefixPublicDelegatedPrefix[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PublicAdvertisedPrefixPublicDelegatedPrefix>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPublicDelegatedPrefixs($var) diff --git a/Compute/src/V1/PublicAdvertisedPrefixList.php b/Compute/src/V1/PublicAdvertisedPrefixList.php index 9e9f896eb443..1025c652f127 100644 --- a/Compute/src/V1/PublicAdvertisedPrefixList.php +++ b/Compute/src/V1/PublicAdvertisedPrefixList.php @@ -59,7 +59,7 @@ class PublicAdvertisedPrefixList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\PublicAdvertisedPrefix[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\PublicAdvertisedPrefix>|\Google\Protobuf\Internal\RepeatedField $items * A list of PublicAdvertisedPrefix resources. * @type string $kind * [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. @@ -127,7 +127,7 @@ public function getItems() * A list of PublicAdvertisedPrefix resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.PublicAdvertisedPrefix items = 100526016; - * @param \Google\Cloud\Compute\V1\PublicAdvertisedPrefix[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PublicAdvertisedPrefix>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/PublicDelegatedPrefix.php b/Compute/src/V1/PublicDelegatedPrefix.php index b55ea14601c0..b8a94b880f9d 100644 --- a/Compute/src/V1/PublicDelegatedPrefix.php +++ b/Compute/src/V1/PublicDelegatedPrefix.php @@ -119,7 +119,7 @@ class PublicDelegatedPrefix extends \Google\Protobuf\Internal\Message * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. * @type string $parent_prefix * The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix. - * @type \Google\Cloud\Compute\V1\PublicDelegatedPrefixPublicDelegatedSubPrefix[]|\Google\Protobuf\Internal\RepeatedField $public_delegated_sub_prefixs + * @type array<\Google\Cloud\Compute\V1\PublicDelegatedPrefixPublicDelegatedSubPrefix>|\Google\Protobuf\Internal\RepeatedField $public_delegated_sub_prefixs * The list of sub public delegated prefixes that exist for this public delegated prefix. * @type string $region * [Output Only] URL of the region where the public delegated prefix resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. @@ -474,7 +474,7 @@ public function getPublicDelegatedSubPrefixs() * The list of sub public delegated prefixes that exist for this public delegated prefix. * * Generated from protobuf field repeated .google.cloud.compute.v1.PublicDelegatedPrefixPublicDelegatedSubPrefix public_delegated_sub_prefixs = 188940044; - * @param \Google\Cloud\Compute\V1\PublicDelegatedPrefixPublicDelegatedSubPrefix[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PublicDelegatedPrefixPublicDelegatedSubPrefix>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPublicDelegatedSubPrefixs($var) diff --git a/Compute/src/V1/PublicDelegatedPrefixAggregatedList.php b/Compute/src/V1/PublicDelegatedPrefixAggregatedList.php index 87aea96d9292..f0d2418fe310 100644 --- a/Compute/src/V1/PublicDelegatedPrefixAggregatedList.php +++ b/Compute/src/V1/PublicDelegatedPrefixAggregatedList.php @@ -73,7 +73,7 @@ class PublicDelegatedPrefixAggregatedList extends \Google\Protobuf\Internal\Mess * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/PublicDelegatedPrefixList.php b/Compute/src/V1/PublicDelegatedPrefixList.php index 88c4d51259ea..616f52149dda 100644 --- a/Compute/src/V1/PublicDelegatedPrefixList.php +++ b/Compute/src/V1/PublicDelegatedPrefixList.php @@ -59,7 +59,7 @@ class PublicDelegatedPrefixList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\PublicDelegatedPrefix[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\PublicDelegatedPrefix>|\Google\Protobuf\Internal\RepeatedField $items * A list of PublicDelegatedPrefix resources. * @type string $kind * [Output Only] Type of the resource. Always compute#publicDelegatedPrefixList for public delegated prefixes. @@ -127,7 +127,7 @@ public function getItems() * A list of PublicDelegatedPrefix resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.PublicDelegatedPrefix items = 100526016; - * @param \Google\Cloud\Compute\V1\PublicDelegatedPrefix[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PublicDelegatedPrefix>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/PublicDelegatedPrefixesScopedList.php b/Compute/src/V1/PublicDelegatedPrefixesScopedList.php index 466e1dc1aa8c..d01dda168f58 100644 --- a/Compute/src/V1/PublicDelegatedPrefixesScopedList.php +++ b/Compute/src/V1/PublicDelegatedPrefixesScopedList.php @@ -33,7 +33,7 @@ class PublicDelegatedPrefixesScopedList extends \Google\Protobuf\Internal\Messag * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\PublicDelegatedPrefix[]|\Google\Protobuf\Internal\RepeatedField $public_delegated_prefixes + * @type array<\Google\Cloud\Compute\V1\PublicDelegatedPrefix>|\Google\Protobuf\Internal\RepeatedField $public_delegated_prefixes * [Output Only] A list of PublicDelegatedPrefixes contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning which replaces the list of public delegated prefixes when the list is empty. @@ -59,7 +59,7 @@ public function getPublicDelegatedPrefixes() * [Output Only] A list of PublicDelegatedPrefixes contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.PublicDelegatedPrefix public_delegated_prefixes = 315261206; - * @param \Google\Cloud\Compute\V1\PublicDelegatedPrefix[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PublicDelegatedPrefix>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPublicDelegatedPrefixes($var) diff --git a/Compute/src/V1/Region.php b/Compute/src/V1/Region.php index e39e55a68eeb..d4aef5c2b4c3 100644 --- a/Compute/src/V1/Region.php +++ b/Compute/src/V1/Region.php @@ -101,7 +101,7 @@ class Region extends \Google\Protobuf\Internal\Message * [Output Only] Type of the resource. Always compute#region for regions. * @type string $name * [Output Only] Name of the resource. - * @type \Google\Cloud\Compute\V1\Quota[]|\Google\Protobuf\Internal\RepeatedField $quotas + * @type array<\Google\Cloud\Compute\V1\Quota>|\Google\Protobuf\Internal\RepeatedField $quotas * [Output Only] Quotas assigned to this region. * @type string $self_link * [Output Only] Server-defined URL for the resource. @@ -110,7 +110,7 @@ class Region extends \Google\Protobuf\Internal\Message * Check the Status enum for the list of possible values. * @type bool $supports_pzs * [Output Only] Reserved for future use. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $zones + * @type array|\Google\Protobuf\Internal\RepeatedField $zones * [Output Only] A list of zones available in this region, in the form of resource URLs. * } */ @@ -350,7 +350,7 @@ public function getQuotas() * [Output Only] Quotas assigned to this region. * * Generated from protobuf field repeated .google.cloud.compute.v1.Quota quotas = 125341947; - * @param \Google\Cloud\Compute\V1\Quota[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Quota>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setQuotas($var) @@ -486,7 +486,7 @@ public function getZones() * [Output Only] A list of zones available in this region, in the form of resource URLs. * * Generated from protobuf field repeated string zones = 116085319; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setZones($var) diff --git a/Compute/src/V1/RegionAutoscalerList.php b/Compute/src/V1/RegionAutoscalerList.php index f9ec0efbd0a5..fcf448bdd826 100644 --- a/Compute/src/V1/RegionAutoscalerList.php +++ b/Compute/src/V1/RegionAutoscalerList.php @@ -60,7 +60,7 @@ class RegionAutoscalerList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Autoscaler[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Autoscaler>|\Google\Protobuf\Internal\RepeatedField $items * A list of Autoscaler resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of Autoscaler resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Autoscaler items = 100526016; - * @param \Google\Cloud\Compute\V1\Autoscaler[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Autoscaler>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/RegionDiskTypeList.php b/Compute/src/V1/RegionDiskTypeList.php index baf02b29b134..3ac03c22cb2f 100644 --- a/Compute/src/V1/RegionDiskTypeList.php +++ b/Compute/src/V1/RegionDiskTypeList.php @@ -59,7 +59,7 @@ class RegionDiskTypeList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\DiskType[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\DiskType>|\Google\Protobuf\Internal\RepeatedField $items * A list of DiskType resources. * @type string $kind * [Output Only] Type of resource. Always compute#regionDiskTypeList for region disk types. @@ -127,7 +127,7 @@ public function getItems() * A list of DiskType resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.DiskType items = 100526016; - * @param \Google\Cloud\Compute\V1\DiskType[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\DiskType>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/RegionDisksAddResourcePoliciesRequest.php b/Compute/src/V1/RegionDisksAddResourcePoliciesRequest.php index a7b249660f36..527496e09312 100644 --- a/Compute/src/V1/RegionDisksAddResourcePoliciesRequest.php +++ b/Compute/src/V1/RegionDisksAddResourcePoliciesRequest.php @@ -27,7 +27,7 @@ class RegionDisksAddResourcePoliciesRequest extends \Google\Protobuf\Internal\Me * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $resource_policies + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_policies * Resource policies to be added to this disk. * } */ @@ -51,7 +51,7 @@ public function getResourcePolicies() * Resource policies to be added to this disk. * * Generated from protobuf field repeated string resource_policies = 22220385; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcePolicies($var) diff --git a/Compute/src/V1/RegionDisksRemoveResourcePoliciesRequest.php b/Compute/src/V1/RegionDisksRemoveResourcePoliciesRequest.php index 264f6fbf6ed0..b1602347adb1 100644 --- a/Compute/src/V1/RegionDisksRemoveResourcePoliciesRequest.php +++ b/Compute/src/V1/RegionDisksRemoveResourcePoliciesRequest.php @@ -27,7 +27,7 @@ class RegionDisksRemoveResourcePoliciesRequest extends \Google\Protobuf\Internal * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $resource_policies + * @type array|\Google\Protobuf\Internal\RepeatedField $resource_policies * Resource policies to be removed from this disk. * } */ @@ -51,7 +51,7 @@ public function getResourcePolicies() * Resource policies to be removed from this disk. * * Generated from protobuf field repeated string resource_policies = 22220385; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcePolicies($var) diff --git a/Compute/src/V1/RegionInstanceGroupList.php b/Compute/src/V1/RegionInstanceGroupList.php index 1c666afdcddd..1ee022a0c069 100644 --- a/Compute/src/V1/RegionInstanceGroupList.php +++ b/Compute/src/V1/RegionInstanceGroupList.php @@ -60,7 +60,7 @@ class RegionInstanceGroupList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\InstanceGroup[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\InstanceGroup>|\Google\Protobuf\Internal\RepeatedField $items * A list of InstanceGroup resources. * @type string $kind * The resource type. @@ -128,7 +128,7 @@ public function getItems() * A list of InstanceGroup resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceGroup items = 100526016; - * @param \Google\Cloud\Compute\V1\InstanceGroup[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceGroup>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagerDeleteInstanceConfigReq.php b/Compute/src/V1/RegionInstanceGroupManagerDeleteInstanceConfigReq.php index 2653b0ed203d..bc3f9495aa28 100644 --- a/Compute/src/V1/RegionInstanceGroupManagerDeleteInstanceConfigReq.php +++ b/Compute/src/V1/RegionInstanceGroupManagerDeleteInstanceConfigReq.php @@ -28,7 +28,7 @@ class RegionInstanceGroupManagerDeleteInstanceConfigReq extends \Google\Protobuf * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $names + * @type array|\Google\Protobuf\Internal\RepeatedField $names * The list of instance names for which we want to delete per-instance configs on this managed instance group. * } */ @@ -52,7 +52,7 @@ public function getNames() * The list of instance names for which we want to delete per-instance configs on this managed instance group. * * Generated from protobuf field repeated string names = 104585032; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNames($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagerList.php b/Compute/src/V1/RegionInstanceGroupManagerList.php index 806285706d75..a38ac463eb53 100644 --- a/Compute/src/V1/RegionInstanceGroupManagerList.php +++ b/Compute/src/V1/RegionInstanceGroupManagerList.php @@ -60,7 +60,7 @@ class RegionInstanceGroupManagerList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\InstanceGroupManager[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\InstanceGroupManager>|\Google\Protobuf\Internal\RepeatedField $items * A list of InstanceGroupManager resources. * @type string $kind * [Output Only] The resource type, which is always compute#instanceGroupManagerList for a list of managed instance groups that exist in th regional scope. @@ -128,7 +128,7 @@ public function getItems() * A list of InstanceGroupManager resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceGroupManager items = 100526016; - * @param \Google\Cloud\Compute\V1\InstanceGroupManager[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceGroupManager>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagerPatchInstanceConfigReq.php b/Compute/src/V1/RegionInstanceGroupManagerPatchInstanceConfigReq.php index 43ceaabcc451..76d33d674b8f 100644 --- a/Compute/src/V1/RegionInstanceGroupManagerPatchInstanceConfigReq.php +++ b/Compute/src/V1/RegionInstanceGroupManagerPatchInstanceConfigReq.php @@ -28,7 +28,7 @@ class RegionInstanceGroupManagerPatchInstanceConfigReq extends \Google\Protobuf\ * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $per_instance_configs + * @type array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $per_instance_configs * The list of per-instance configurations to insert or patch on this managed instance group. * } */ @@ -52,7 +52,7 @@ public function getPerInstanceConfigs() * The list of per-instance configurations to insert or patch on this managed instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.PerInstanceConfig per_instance_configs = 526265001; - * @param \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPerInstanceConfigs($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagerUpdateInstanceConfigReq.php b/Compute/src/V1/RegionInstanceGroupManagerUpdateInstanceConfigReq.php index 7ed72c60898d..c49aa6fb803d 100644 --- a/Compute/src/V1/RegionInstanceGroupManagerUpdateInstanceConfigReq.php +++ b/Compute/src/V1/RegionInstanceGroupManagerUpdateInstanceConfigReq.php @@ -28,7 +28,7 @@ class RegionInstanceGroupManagerUpdateInstanceConfigReq extends \Google\Protobuf * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $per_instance_configs + * @type array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $per_instance_configs * The list of per-instance configurations to insert or patch on this managed instance group. * } */ @@ -52,7 +52,7 @@ public function getPerInstanceConfigs() * The list of per-instance configurations to insert or patch on this managed instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.PerInstanceConfig per_instance_configs = 526265001; - * @param \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPerInstanceConfigs($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagersAbandonInstancesRequest.php b/Compute/src/V1/RegionInstanceGroupManagersAbandonInstancesRequest.php index d284e30f32c7..1b2ed19a5c8b 100644 --- a/Compute/src/V1/RegionInstanceGroupManagersAbandonInstancesRequest.php +++ b/Compute/src/V1/RegionInstanceGroupManagersAbandonInstancesRequest.php @@ -27,7 +27,7 @@ class RegionInstanceGroupManagersAbandonInstancesRequest extends \Google\Protobu * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array|\Google\Protobuf\Internal\RepeatedField $instances * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * } */ @@ -51,7 +51,7 @@ public function getInstances() * The URLs of one or more instances to abandon. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * * Generated from protobuf field repeated string instances = 29097598; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagersApplyUpdatesRequest.php b/Compute/src/V1/RegionInstanceGroupManagersApplyUpdatesRequest.php index 0e7dc48d0258..fedae02750b5 100644 --- a/Compute/src/V1/RegionInstanceGroupManagersApplyUpdatesRequest.php +++ b/Compute/src/V1/RegionInstanceGroupManagersApplyUpdatesRequest.php @@ -50,7 +50,7 @@ class RegionInstanceGroupManagersApplyUpdatesRequest extends \Google\Protobuf\In * * @type bool $all_instances * Flag to update all instances instead of specified list of ���instances���. If the flag is set to true then the instances may not be specified in the request. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array|\Google\Protobuf\Internal\RepeatedField $instances * The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * @type string $minimal_action * The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update. @@ -116,7 +116,7 @@ public function getInstances() * The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * * Generated from protobuf field repeated string instances = 29097598; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagersCreateInstancesRequest.php b/Compute/src/V1/RegionInstanceGroupManagersCreateInstancesRequest.php index ddba07e66f91..14260e85da7b 100644 --- a/Compute/src/V1/RegionInstanceGroupManagersCreateInstancesRequest.php +++ b/Compute/src/V1/RegionInstanceGroupManagersCreateInstancesRequest.php @@ -28,7 +28,7 @@ class RegionInstanceGroupManagersCreateInstancesRequest extends \Google\Protobuf * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $instances * [Required] List of specifications of per-instance configs. * } */ @@ -52,7 +52,7 @@ public function getInstances() * [Required] List of specifications of per-instance configs. * * Generated from protobuf field repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598; - * @param \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagersDeleteInstancesRequest.php b/Compute/src/V1/RegionInstanceGroupManagersDeleteInstancesRequest.php index 415387889715..f2e2faf7fb80 100644 --- a/Compute/src/V1/RegionInstanceGroupManagersDeleteInstancesRequest.php +++ b/Compute/src/V1/RegionInstanceGroupManagersDeleteInstancesRequest.php @@ -33,7 +33,7 @@ class RegionInstanceGroupManagersDeleteInstancesRequest extends \Google\Protobuf * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array|\Google\Protobuf\Internal\RepeatedField $instances * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * @type bool $skip_instances_on_validation_error * Specifies whether the request should proceed despite the inclusion of instances that are not members of the group or that are already in the process of being deleted or abandoned. If this field is set to `false` and such an instance is specified in the request, the operation fails. The operation always fails if the request contains a malformed instance URL or a reference to an instance that exists in a zone or region other than the group's zone or region. @@ -59,7 +59,7 @@ public function getInstances() * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * * Generated from protobuf field repeated string instances = 29097598; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagersListErrorsResponse.php b/Compute/src/V1/RegionInstanceGroupManagersListErrorsResponse.php index ac492cdbfa96..2919c170aeca 100644 --- a/Compute/src/V1/RegionInstanceGroupManagersListErrorsResponse.php +++ b/Compute/src/V1/RegionInstanceGroupManagersListErrorsResponse.php @@ -33,7 +33,7 @@ class RegionInstanceGroupManagersListErrorsResponse extends \Google\Protobuf\Int * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InstanceManagedByIgmError[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\InstanceManagedByIgmError>|\Google\Protobuf\Internal\RepeatedField $items * [Output Only] The list of errors of the managed instance group. * @type string $next_page_token * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -59,7 +59,7 @@ public function getItems() * [Output Only] The list of errors of the managed instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceManagedByIgmError items = 100526016; - * @param \Google\Cloud\Compute\V1\InstanceManagedByIgmError[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceManagedByIgmError>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagersListInstanceConfigsResp.php b/Compute/src/V1/RegionInstanceGroupManagersListInstanceConfigsResp.php index 9faad8f50036..b8d1f15624e9 100644 --- a/Compute/src/V1/RegionInstanceGroupManagersListInstanceConfigsResp.php +++ b/Compute/src/V1/RegionInstanceGroupManagersListInstanceConfigsResp.php @@ -39,7 +39,7 @@ class RegionInstanceGroupManagersListInstanceConfigsResp extends \Google\Protobu * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $items * [Output Only] The list of PerInstanceConfig. * @type string $next_page_token * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -67,7 +67,7 @@ public function getItems() * [Output Only] The list of PerInstanceConfig. * * Generated from protobuf field repeated .google.cloud.compute.v1.PerInstanceConfig items = 100526016; - * @param \Google\Cloud\Compute\V1\PerInstanceConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PerInstanceConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagersListInstancesResponse.php b/Compute/src/V1/RegionInstanceGroupManagersListInstancesResponse.php index d25745f6becb..8d06193f7ace 100644 --- a/Compute/src/V1/RegionInstanceGroupManagersListInstancesResponse.php +++ b/Compute/src/V1/RegionInstanceGroupManagersListInstancesResponse.php @@ -33,7 +33,7 @@ class RegionInstanceGroupManagersListInstancesResponse extends \Google\Protobuf\ * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\ManagedInstance[]|\Google\Protobuf\Internal\RepeatedField $managed_instances + * @type array<\Google\Cloud\Compute\V1\ManagedInstance>|\Google\Protobuf\Internal\RepeatedField $managed_instances * A list of managed instances. * @type string $next_page_token * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. @@ -59,7 +59,7 @@ public function getManagedInstances() * A list of managed instances. * * Generated from protobuf field repeated .google.cloud.compute.v1.ManagedInstance managed_instances = 336219614; - * @param \Google\Cloud\Compute\V1\ManagedInstance[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ManagedInstance>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setManagedInstances($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagersRecreateRequest.php b/Compute/src/V1/RegionInstanceGroupManagersRecreateRequest.php index 90d405e01355..b6aa209696d5 100644 --- a/Compute/src/V1/RegionInstanceGroupManagersRecreateRequest.php +++ b/Compute/src/V1/RegionInstanceGroupManagersRecreateRequest.php @@ -27,7 +27,7 @@ class RegionInstanceGroupManagersRecreateRequest extends \Google\Protobuf\Intern * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array|\Google\Protobuf\Internal\RepeatedField $instances * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * } */ @@ -51,7 +51,7 @@ public function getInstances() * The URLs of one or more instances to recreate. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. * * Generated from protobuf field repeated string instances = 29097598; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/RegionInstanceGroupManagersSetTargetPoolsRequest.php b/Compute/src/V1/RegionInstanceGroupManagersSetTargetPoolsRequest.php index 821dd500501d..0821cd162f66 100644 --- a/Compute/src/V1/RegionInstanceGroupManagersSetTargetPoolsRequest.php +++ b/Compute/src/V1/RegionInstanceGroupManagersSetTargetPoolsRequest.php @@ -35,7 +35,7 @@ class RegionInstanceGroupManagersSetTargetPoolsRequest extends \Google\Protobuf\ * * @type string $fingerprint * Fingerprint of the target pools information, which is a hash of the contents. This field is used for optimistic locking when you update the target pool entries. This field is optional. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $target_pools + * @type array|\Google\Protobuf\Internal\RepeatedField $target_pools * The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. * } */ @@ -95,7 +95,7 @@ public function getTargetPools() * The URL of all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. * * Generated from protobuf field repeated string target_pools = 336072617; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetPools($var) diff --git a/Compute/src/V1/RegionInstanceGroupsListInstances.php b/Compute/src/V1/RegionInstanceGroupsListInstances.php index 7883a28f5f04..3349c826fdbd 100644 --- a/Compute/src/V1/RegionInstanceGroupsListInstances.php +++ b/Compute/src/V1/RegionInstanceGroupsListInstances.php @@ -59,7 +59,7 @@ class RegionInstanceGroupsListInstances extends \Google\Protobuf\Internal\Messag * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\InstanceWithNamedPorts[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\InstanceWithNamedPorts>|\Google\Protobuf\Internal\RepeatedField $items * A list of InstanceWithNamedPorts resources. * @type string $kind * The resource type. @@ -127,7 +127,7 @@ public function getItems() * A list of InstanceWithNamedPorts resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceWithNamedPorts items = 100526016; - * @param \Google\Cloud\Compute\V1\InstanceWithNamedPorts[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceWithNamedPorts>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/RegionInstanceGroupsSetNamedPortsRequest.php b/Compute/src/V1/RegionInstanceGroupsSetNamedPortsRequest.php index 23abc697cad3..bcbcdcfeaff7 100644 --- a/Compute/src/V1/RegionInstanceGroupsSetNamedPortsRequest.php +++ b/Compute/src/V1/RegionInstanceGroupsSetNamedPortsRequest.php @@ -35,7 +35,7 @@ class RegionInstanceGroupsSetNamedPortsRequest extends \Google\Protobuf\Internal * * @type string $fingerprint * The fingerprint of the named ports information for this instance group. Use this optional property to prevent conflicts when multiple users change the named ports settings concurrently. Obtain the fingerprint with the instanceGroups.get method. Then, include the fingerprint in your request to ensure that you do not overwrite changes that were applied from another concurrent request. - * @type \Google\Cloud\Compute\V1\NamedPort[]|\Google\Protobuf\Internal\RepeatedField $named_ports + * @type array<\Google\Cloud\Compute\V1\NamedPort>|\Google\Protobuf\Internal\RepeatedField $named_ports * The list of named ports to set for this instance group. * } */ @@ -95,7 +95,7 @@ public function getNamedPorts() * The list of named ports to set for this instance group. * * Generated from protobuf field repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732; - * @param \Google\Cloud\Compute\V1\NamedPort[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NamedPort>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNamedPorts($var) diff --git a/Compute/src/V1/RegionList.php b/Compute/src/V1/RegionList.php index 655d512eb606..1bb1d6ecce45 100644 --- a/Compute/src/V1/RegionList.php +++ b/Compute/src/V1/RegionList.php @@ -60,7 +60,7 @@ class RegionList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Region[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Region>|\Google\Protobuf\Internal\RepeatedField $items * A list of Region resources. * @type string $kind * [Output Only] Type of resource. Always compute#regionList for lists of regions. @@ -128,7 +128,7 @@ public function getItems() * A list of Region resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Region items = 100526016; - * @param \Google\Cloud\Compute\V1\Region[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Region>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.php b/Compute/src/V1/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.php index 0e2fb03d4b4c..bc85f35dc197 100644 --- a/Compute/src/V1/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.php +++ b/Compute/src/V1/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.php @@ -33,9 +33,9 @@ class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse extends \Google * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy[]|\Google\Protobuf\Internal\RepeatedField $firewall_policys + * @type array<\Google\Cloud\Compute\V1\RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy>|\Google\Protobuf\Internal\RepeatedField $firewall_policys * Effective firewalls from firewall policy. - * @type \Google\Cloud\Compute\V1\Firewall[]|\Google\Protobuf\Internal\RepeatedField $firewalls + * @type array<\Google\Cloud\Compute\V1\Firewall>|\Google\Protobuf\Internal\RepeatedField $firewalls * Effective firewalls on the network. * } */ @@ -59,7 +59,7 @@ public function getFirewallPolicys() * Effective firewalls from firewall policy. * * Generated from protobuf field repeated .google.cloud.compute.v1.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy firewall_policys = 410985794; - * @param \Google\Cloud\Compute\V1\RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFirewallPolicys($var) @@ -85,7 +85,7 @@ public function getFirewalls() * Effective firewalls on the network. * * Generated from protobuf field repeated .google.cloud.compute.v1.Firewall firewalls = 272245619; - * @param \Google\Cloud\Compute\V1\Firewall[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Firewall>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFirewalls($var) diff --git a/Compute/src/V1/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php b/Compute/src/V1/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php index 55d93068881e..7c739c69a609 100644 --- a/Compute/src/V1/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php +++ b/Compute/src/V1/RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.php @@ -50,7 +50,7 @@ class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewal * [Output Only] The display name of the firewall policy. * @type string $name * [Output Only] The name of the firewall policy. - * @type \Google\Cloud\Compute\V1\FirewallPolicyRule[]|\Google\Protobuf\Internal\RepeatedField $rules + * @type array<\Google\Cloud\Compute\V1\FirewallPolicyRule>|\Google\Protobuf\Internal\RepeatedField $rules * The rules that apply to the network. * @type string $type * [Output Only] The type of the firewall policy. Can be one of HIERARCHY, NETWORK, NETWORK_REGIONAL. @@ -149,7 +149,7 @@ public function getRules() * The rules that apply to the network. * * Generated from protobuf field repeated .google.cloud.compute.v1.FirewallPolicyRule rules = 108873975; - * @param \Google\Cloud\Compute\V1\FirewallPolicyRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\FirewallPolicyRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) diff --git a/Compute/src/V1/RegionSetPolicyRequest.php b/Compute/src/V1/RegionSetPolicyRequest.php index 3b8aae4d4bbd..4b725b536205 100644 --- a/Compute/src/V1/RegionSetPolicyRequest.php +++ b/Compute/src/V1/RegionSetPolicyRequest.php @@ -39,7 +39,7 @@ class RegionSetPolicyRequest extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $bindings + * @type array<\Google\Cloud\Compute\V1\Binding>|\Google\Protobuf\Internal\RepeatedField $bindings * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings. * @type string $etag * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. @@ -67,7 +67,7 @@ public function getBindings() * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings. * * Generated from protobuf field repeated .google.cloud.compute.v1.Binding bindings = 403251854; - * @param \Google\Cloud\Compute\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Binding>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBindings($var) diff --git a/Compute/src/V1/RegionTargetHttpsProxiesSetSslCertificatesRequest.php b/Compute/src/V1/RegionTargetHttpsProxiesSetSslCertificatesRequest.php index 9d079dc76def..82f363bf881e 100644 --- a/Compute/src/V1/RegionTargetHttpsProxiesSetSslCertificatesRequest.php +++ b/Compute/src/V1/RegionTargetHttpsProxiesSetSslCertificatesRequest.php @@ -15,7 +15,7 @@ class RegionTargetHttpsProxiesSetSslCertificatesRequest extends \Google\Protobuf\Internal\Message { /** - * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. Currently exactly one SslCertificate resource must be specified. + * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. * * Generated from protobuf field repeated string ssl_certificates = 366006543; */ @@ -27,8 +27,8 @@ class RegionTargetHttpsProxiesSetSslCertificatesRequest extends \Google\Protobuf * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $ssl_certificates - * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. Currently exactly one SslCertificate resource must be specified. + * @type array|\Google\Protobuf\Internal\RepeatedField $ssl_certificates + * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. * } */ public function __construct($data = NULL) { @@ -37,7 +37,7 @@ public function __construct($data = NULL) { } /** - * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. Currently exactly one SslCertificate resource must be specified. + * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. * * Generated from protobuf field repeated string ssl_certificates = 366006543; * @return \Google\Protobuf\Internal\RepeatedField @@ -48,10 +48,10 @@ public function getSslCertificates() } /** - * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. Currently exactly one SslCertificate resource must be specified. + * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. * * Generated from protobuf field repeated string ssl_certificates = 366006543; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSslCertificates($var) diff --git a/Compute/src/V1/RequestMirrorPolicy.php b/Compute/src/V1/RequestMirrorPolicy.php index e6dc15120451..e1548502c202 100644 --- a/Compute/src/V1/RequestMirrorPolicy.php +++ b/Compute/src/V1/RequestMirrorPolicy.php @@ -16,7 +16,7 @@ class RequestMirrorPolicy extends \Google\Protobuf\Internal\Message { /** - * The full or partial URL to the BackendService resource being mirrored to. + * The full or partial URL to the BackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service. * * Generated from protobuf field optional string backend_service = 306946058; */ @@ -29,7 +29,7 @@ class RequestMirrorPolicy extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $backend_service - * The full or partial URL to the BackendService resource being mirrored to. + * The full or partial URL to the BackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service. * } */ public function __construct($data = NULL) { @@ -38,7 +38,7 @@ public function __construct($data = NULL) { } /** - * The full or partial URL to the BackendService resource being mirrored to. + * The full or partial URL to the BackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service. * * Generated from protobuf field optional string backend_service = 306946058; * @return string @@ -59,7 +59,7 @@ public function clearBackendService() } /** - * The full or partial URL to the BackendService resource being mirrored to. + * The full or partial URL to the BackendService resource being mirrored to. The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map. Serverless NEG backends are not currently supported as a mirrored backend service. * * Generated from protobuf field optional string backend_service = 306946058; * @param string $var diff --git a/Compute/src/V1/ReservationAffinity.php b/Compute/src/V1/ReservationAffinity.php index 77e88daceb0f..c986ac7911b6 100644 --- a/Compute/src/V1/ReservationAffinity.php +++ b/Compute/src/V1/ReservationAffinity.php @@ -46,7 +46,7 @@ class ReservationAffinity extends \Google\Protobuf\Internal\Message * Check the ConsumeReservationType enum for the list of possible values. * @type string $key * Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $values + * @type array|\Google\Protobuf\Internal\RepeatedField $values * Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project. * } */ @@ -144,7 +144,7 @@ public function getValues() * Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project. * * Generated from protobuf field repeated string values = 249928994; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setValues($var) diff --git a/Compute/src/V1/ReservationAggregatedList.php b/Compute/src/V1/ReservationAggregatedList.php index 48abf164866a..5213208bff3c 100644 --- a/Compute/src/V1/ReservationAggregatedList.php +++ b/Compute/src/V1/ReservationAggregatedList.php @@ -74,7 +74,7 @@ class ReservationAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -270,7 +270,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/ReservationList.php b/Compute/src/V1/ReservationList.php index bbc1bd1d191d..0de337d1d58d 100644 --- a/Compute/src/V1/ReservationList.php +++ b/Compute/src/V1/ReservationList.php @@ -59,7 +59,7 @@ class ReservationList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @type \Google\Cloud\Compute\V1\Reservation[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Reservation>|\Google\Protobuf\Internal\RepeatedField $items * [Output Only] A list of Allocation resources. * @type string $kind * [Output Only] Type of resource.Always compute#reservationsList for listsof reservations @@ -127,7 +127,7 @@ public function getItems() * [Output Only] A list of Allocation resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Reservation items = 100526016; - * @param \Google\Cloud\Compute\V1\Reservation[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Reservation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/ReservationsScopedList.php b/Compute/src/V1/ReservationsScopedList.php index 2d770401c93a..436ca7cfab6a 100644 --- a/Compute/src/V1/ReservationsScopedList.php +++ b/Compute/src/V1/ReservationsScopedList.php @@ -33,7 +33,7 @@ class ReservationsScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Reservation[]|\Google\Protobuf\Internal\RepeatedField $reservations + * @type array<\Google\Cloud\Compute\V1\Reservation>|\Google\Protobuf\Internal\RepeatedField $reservations * A list of reservations contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of reservations when the list is empty. @@ -59,7 +59,7 @@ public function getReservations() * A list of reservations contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.Reservation reservations = 399717927; - * @param \Google\Cloud\Compute\V1\Reservation[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Reservation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setReservations($var) diff --git a/Compute/src/V1/ResourcePoliciesScopedList.php b/Compute/src/V1/ResourcePoliciesScopedList.php index 8fe7c741775f..12c28b46f8d3 100644 --- a/Compute/src/V1/ResourcePoliciesScopedList.php +++ b/Compute/src/V1/ResourcePoliciesScopedList.php @@ -33,7 +33,7 @@ class ResourcePoliciesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\ResourcePolicy[]|\Google\Protobuf\Internal\RepeatedField $resource_policies + * @type array<\Google\Cloud\Compute\V1\ResourcePolicy>|\Google\Protobuf\Internal\RepeatedField $resource_policies * A list of resourcePolicies contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of resourcePolicies when the list is empty. @@ -59,7 +59,7 @@ public function getResourcePolicies() * A list of resourcePolicies contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.ResourcePolicy resource_policies = 22220385; - * @param \Google\Cloud\Compute\V1\ResourcePolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ResourcePolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResourcePolicies($var) diff --git a/Compute/src/V1/ResourcePolicyAggregatedList.php b/Compute/src/V1/ResourcePolicyAggregatedList.php index 032f4dcdb904..28d47e9d5fb3 100644 --- a/Compute/src/V1/ResourcePolicyAggregatedList.php +++ b/Compute/src/V1/ResourcePolicyAggregatedList.php @@ -79,7 +79,7 @@ class ResourcePolicyAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -307,7 +307,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/ResourcePolicyList.php b/Compute/src/V1/ResourcePolicyList.php index e4b00f76b915..d5342c95d8d0 100644 --- a/Compute/src/V1/ResourcePolicyList.php +++ b/Compute/src/V1/ResourcePolicyList.php @@ -64,7 +64,7 @@ class ResourcePolicyList extends \Google\Protobuf\Internal\Message * @type string $etag * @type string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @type \Google\Cloud\Compute\V1\ResourcePolicy[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\ResourcePolicy>|\Google\Protobuf\Internal\RepeatedField $items * [Output Only] A list of ResourcePolicy resources. * @type string $kind * [Output Only] Type of resource.Always compute#resourcePoliciesList for listsof resourcePolicies @@ -164,7 +164,7 @@ public function getItems() * [Output Only] A list of ResourcePolicy resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.ResourcePolicy items = 100526016; - * @param \Google\Cloud\Compute\V1\ResourcePolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ResourcePolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/ResourcePolicySnapshotSchedulePolicySnapshotProperties.php b/Compute/src/V1/ResourcePolicySnapshotSchedulePolicySnapshotProperties.php index 1a4b79a52d1c..0f970ce9b4fe 100644 --- a/Compute/src/V1/ResourcePolicySnapshotSchedulePolicySnapshotProperties.php +++ b/Compute/src/V1/ResourcePolicySnapshotSchedulePolicySnapshotProperties.php @@ -52,7 +52,7 @@ class ResourcePolicySnapshotSchedulePolicySnapshotProperties extends \Google\Pro * Indication to perform a 'guest aware' snapshot. * @type array|\Google\Protobuf\Internal\MapField $labels * Labels to apply to scheduled snapshots. These can be later modified by the setLabels method. Label values may be empty. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $storage_locations + * @type array|\Google\Protobuf\Internal\RepeatedField $storage_locations * Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional). * } */ @@ -174,7 +174,7 @@ public function getStorageLocations() * Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional). * * Generated from protobuf field repeated string storage_locations = 328005274; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setStorageLocations($var) diff --git a/Compute/src/V1/ResourcePolicyWeeklyCycle.php b/Compute/src/V1/ResourcePolicyWeeklyCycle.php index 9d618ca370e8..41e10105ea3e 100644 --- a/Compute/src/V1/ResourcePolicyWeeklyCycle.php +++ b/Compute/src/V1/ResourcePolicyWeeklyCycle.php @@ -28,7 +28,7 @@ class ResourcePolicyWeeklyCycle extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\ResourcePolicyWeeklyCycleDayOfWeek[]|\Google\Protobuf\Internal\RepeatedField $day_of_weeks + * @type array<\Google\Cloud\Compute\V1\ResourcePolicyWeeklyCycleDayOfWeek>|\Google\Protobuf\Internal\RepeatedField $day_of_weeks * Up to 7 intervals/windows, one for each day of the week. * } */ @@ -52,7 +52,7 @@ public function getDayOfWeeks() * Up to 7 intervals/windows, one for each day of the week. * * Generated from protobuf field repeated .google.cloud.compute.v1.ResourcePolicyWeeklyCycleDayOfWeek day_of_weeks = 257871834; - * @param \Google\Cloud\Compute\V1\ResourcePolicyWeeklyCycleDayOfWeek[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ResourcePolicyWeeklyCycleDayOfWeek>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDayOfWeeks($var) diff --git a/Compute/src/V1/Route.php b/Compute/src/V1/Route.php index 795440120d08..8dc325716c41 100644 --- a/Compute/src/V1/Route.php +++ b/Compute/src/V1/Route.php @@ -150,7 +150,7 @@ class Route extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\RouteAsPath[]|\Google\Protobuf\Internal\RepeatedField $as_paths + * @type array<\Google\Cloud\Compute\V1\RouteAsPath>|\Google\Protobuf\Internal\RepeatedField $as_paths * [Output Only] AS path. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. @@ -190,9 +190,9 @@ class Route extends \Google\Protobuf\Internal\Message * Check the RouteType enum for the list of possible values. * @type string $self_link * [Output Only] Server-defined fully-qualified URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $tags + * @type array|\Google\Protobuf\Internal\RepeatedField $tags * A list of instance tags to which this route applies. - * @type \Google\Cloud\Compute\V1\Warnings[]|\Google\Protobuf\Internal\RepeatedField $warnings + * @type array<\Google\Cloud\Compute\V1\Warnings>|\Google\Protobuf\Internal\RepeatedField $warnings * [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. * } */ @@ -216,7 +216,7 @@ public function getAsPaths() * [Output Only] AS path. * * Generated from protobuf field repeated .google.cloud.compute.v1.RouteAsPath as_paths = 137568929; - * @param \Google\Cloud\Compute\V1\RouteAsPath[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RouteAsPath>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAsPaths($var) @@ -894,7 +894,7 @@ public function getTags() * A list of instance tags to which this route applies. * * Generated from protobuf field repeated string tags = 3552281; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTags($var) @@ -920,7 +920,7 @@ public function getWarnings() * [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. * * Generated from protobuf field repeated .google.cloud.compute.v1.Warnings warnings = 498091095; - * @param \Google\Cloud\Compute\V1\Warnings[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Warnings>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setWarnings($var) diff --git a/Compute/src/V1/Route/RouteType.php b/Compute/src/V1/Route/RouteType.php index edec7d448b8c..22ec38846616 100644 --- a/Compute/src/V1/Route/RouteType.php +++ b/Compute/src/V1/Route/RouteType.php @@ -39,7 +39,7 @@ class RouteType private static $valueToName = [ self::UNDEFINED_ROUTE_TYPE => 'UNDEFINED_ROUTE_TYPE', self::BGP => 'BGP', - self::PBSTATIC => 'PBSTATIC', + self::PBSTATIC => 'STATIC', self::SUBNET => 'SUBNET', self::TRANSIT => 'TRANSIT', ]; @@ -58,8 +58,12 @@ public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); } return constant($const); } diff --git a/Compute/src/V1/RouteAsPath.php b/Compute/src/V1/RouteAsPath.php index 8ed79a491b47..a74623d1707b 100644 --- a/Compute/src/V1/RouteAsPath.php +++ b/Compute/src/V1/RouteAsPath.php @@ -34,7 +34,7 @@ class RouteAsPath extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type int[]|\Google\Protobuf\Internal\RepeatedField $as_lists + * @type array|\Google\Protobuf\Internal\RepeatedField $as_lists * [Output Only] The AS numbers of the AS Path. * @type string $path_segment_type * [Output Only] The type of the AS Path, which can be one of the following values: - 'AS_SET': unordered set of autonomous systems that the route in has traversed - 'AS_SEQUENCE': ordered set of autonomous systems that the route has traversed - 'AS_CONFED_SEQUENCE': ordered set of Member Autonomous Systems in the local confederation that the route has traversed - 'AS_CONFED_SET': unordered set of Member Autonomous Systems in the local confederation that the route has traversed @@ -61,7 +61,7 @@ public function getAsLists() * [Output Only] The AS numbers of the AS Path. * * Generated from protobuf field repeated uint32 as_lists = 134112584; - * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAsLists($var) diff --git a/Compute/src/V1/RouteList.php b/Compute/src/V1/RouteList.php index 2455c0a1967e..b28a4efa78de 100644 --- a/Compute/src/V1/RouteList.php +++ b/Compute/src/V1/RouteList.php @@ -60,7 +60,7 @@ class RouteList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Route[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Route>|\Google\Protobuf\Internal\RepeatedField $items * A list of Route resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of Route resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Route items = 100526016; - * @param \Google\Cloud\Compute\V1\Route[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Route>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/Router.php b/Compute/src/V1/Router.php index a69306c9ee40..647737d83c0b 100644 --- a/Compute/src/V1/Router.php +++ b/Compute/src/V1/Router.php @@ -102,7 +102,7 @@ class Router extends \Google\Protobuf\Internal\Message * * @type \Google\Cloud\Compute\V1\RouterBgp $bgp * BGP information specific to this router. - * @type \Google\Cloud\Compute\V1\RouterBgpPeer[]|\Google\Protobuf\Internal\RepeatedField $bgp_peers + * @type array<\Google\Cloud\Compute\V1\RouterBgpPeer>|\Google\Protobuf\Internal\RepeatedField $bgp_peers * BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer to RFC4273. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. @@ -112,13 +112,13 @@ class Router extends \Google\Protobuf\Internal\Message * Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments). Not currently available publicly. * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @type \Google\Cloud\Compute\V1\RouterInterface[]|\Google\Protobuf\Internal\RepeatedField $interfaces + * @type array<\Google\Cloud\Compute\V1\RouterInterface>|\Google\Protobuf\Internal\RepeatedField $interfaces * Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both. * @type string $kind * [Output Only] Type of resource. Always compute#router for routers. * @type string $name * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - * @type \Google\Cloud\Compute\V1\RouterNat[]|\Google\Protobuf\Internal\RepeatedField $nats + * @type array<\Google\Cloud\Compute\V1\RouterNat>|\Google\Protobuf\Internal\RepeatedField $nats * A list of NAT services created in this router. * @type string $network * URI of the network to which this router belongs. @@ -184,7 +184,7 @@ public function getBgpPeers() * BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer to RFC4273. * * Generated from protobuf field repeated .google.cloud.compute.v1.RouterBgpPeer bgp_peers = 452695773; - * @param \Google\Cloud\Compute\V1\RouterBgpPeer[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RouterBgpPeer>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBgpPeers($var) @@ -354,7 +354,7 @@ public function getInterfaces() * Router interfaces. Each interface requires either one linked resource, (for example, linkedVpnTunnel), or IP address and IP address range (for example, ipRange), or both. * * Generated from protobuf field repeated .google.cloud.compute.v1.RouterInterface interfaces = 12073562; - * @param \Google\Cloud\Compute\V1\RouterInterface[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RouterInterface>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInterfaces($var) @@ -452,7 +452,7 @@ public function getNats() * A list of NAT services created in this router. * * Generated from protobuf field repeated .google.cloud.compute.v1.RouterNat nats = 3373938; - * @param \Google\Cloud\Compute\V1\RouterNat[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RouterNat>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNats($var) diff --git a/Compute/src/V1/RouterAggregatedList.php b/Compute/src/V1/RouterAggregatedList.php index 0d0ac9969d77..65843ecbb094 100644 --- a/Compute/src/V1/RouterAggregatedList.php +++ b/Compute/src/V1/RouterAggregatedList.php @@ -74,7 +74,7 @@ class RouterAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -270,7 +270,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/RouterBgp.php b/Compute/src/V1/RouterBgp.php index 7cde022e3d27..2a230a527095 100644 --- a/Compute/src/V1/RouterBgp.php +++ b/Compute/src/V1/RouterBgp.php @@ -56,10 +56,10 @@ class RouterBgp extends \Google\Protobuf\Internal\Message * @type string $advertise_mode * User-specified flag to indicate which mode to use for advertisement. The options are DEFAULT or CUSTOM. * Check the AdvertiseMode enum for the list of possible values. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $advertised_groups + * @type array|\Google\Protobuf\Internal\RepeatedField $advertised_groups * User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. * Check the AdvertisedGroups enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\RouterAdvertisedIpRange[]|\Google\Protobuf\Internal\RepeatedField $advertised_ip_ranges + * @type array<\Google\Cloud\Compute\V1\RouterAdvertisedIpRange>|\Google\Protobuf\Internal\RepeatedField $advertised_ip_ranges * User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. * @type int $asn * Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. @@ -127,7 +127,7 @@ public function getAdvertisedGroups() * Check the AdvertisedGroups enum for the list of possible values. * * Generated from protobuf field repeated string advertised_groups = 21065526; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAdvertisedGroups($var) @@ -153,7 +153,7 @@ public function getAdvertisedIpRanges() * User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. * * Generated from protobuf field repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932; - * @param \Google\Cloud\Compute\V1\RouterAdvertisedIpRange[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RouterAdvertisedIpRange>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAdvertisedIpRanges($var) diff --git a/Compute/src/V1/RouterBgp/AdvertiseMode.php b/Compute/src/V1/RouterBgp/AdvertiseMode.php index 942180809f6d..2cd7664d77fa 100644 --- a/Compute/src/V1/RouterBgp/AdvertiseMode.php +++ b/Compute/src/V1/RouterBgp/AdvertiseMode.php @@ -31,7 +31,7 @@ class AdvertiseMode private static $valueToName = [ self::UNDEFINED_ADVERTISE_MODE => 'UNDEFINED_ADVERTISE_MODE', self::CUSTOM => 'CUSTOM', - self::PBDEFAULT => 'PBDEFAULT', + self::PBDEFAULT => 'DEFAULT', ]; public static function name($value) @@ -48,8 +48,12 @@ public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); } return constant($const); } diff --git a/Compute/src/V1/RouterBgpPeer.php b/Compute/src/V1/RouterBgpPeer.php index 32897dc1d615..a8261629f7db 100644 --- a/Compute/src/V1/RouterBgpPeer.php +++ b/Compute/src/V1/RouterBgpPeer.php @@ -124,10 +124,10 @@ class RouterBgpPeer extends \Google\Protobuf\Internal\Message * @type string $advertise_mode * User-specified flag to indicate which mode to use for advertisement. * Check the AdvertiseMode enum for the list of possible values. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $advertised_groups + * @type array|\Google\Protobuf\Internal\RepeatedField $advertised_groups * User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: - ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. - ALL_VPC_SUBNETS: Advertises the router's own VPC subnets. Note that this field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These groups are advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. * Check the AdvertisedGroups enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\RouterAdvertisedIpRange[]|\Google\Protobuf\Internal\RepeatedField $advertised_ip_ranges + * @type array<\Google\Cloud\Compute\V1\RouterAdvertisedIpRange>|\Google\Protobuf\Internal\RepeatedField $advertised_ip_ranges * User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. * @type int $advertised_route_priority * The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win. @@ -219,7 +219,7 @@ public function getAdvertisedGroups() * Check the AdvertisedGroups enum for the list of possible values. * * Generated from protobuf field repeated string advertised_groups = 21065526; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAdvertisedGroups($var) @@ -245,7 +245,7 @@ public function getAdvertisedIpRanges() * User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in the "bgp" message). These IP ranges are advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. * * Generated from protobuf field repeated .google.cloud.compute.v1.RouterAdvertisedIpRange advertised_ip_ranges = 35449932; - * @param \Google\Cloud\Compute\V1\RouterAdvertisedIpRange[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RouterAdvertisedIpRange>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAdvertisedIpRanges($var) diff --git a/Compute/src/V1/RouterBgpPeer/AdvertiseMode.php b/Compute/src/V1/RouterBgpPeer/AdvertiseMode.php index db9286002f3a..67f0df9fcdca 100644 --- a/Compute/src/V1/RouterBgpPeer/AdvertiseMode.php +++ b/Compute/src/V1/RouterBgpPeer/AdvertiseMode.php @@ -31,7 +31,7 @@ class AdvertiseMode private static $valueToName = [ self::UNDEFINED_ADVERTISE_MODE => 'UNDEFINED_ADVERTISE_MODE', self::CUSTOM => 'CUSTOM', - self::PBDEFAULT => 'PBDEFAULT', + self::PBDEFAULT => 'DEFAULT', ]; public static function name($value) @@ -48,8 +48,12 @@ public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); } return constant($const); } diff --git a/Compute/src/V1/RouterList.php b/Compute/src/V1/RouterList.php index d63ba93f0562..ad5843a0982f 100644 --- a/Compute/src/V1/RouterList.php +++ b/Compute/src/V1/RouterList.php @@ -60,7 +60,7 @@ class RouterList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Router[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Router>|\Google\Protobuf\Internal\RepeatedField $items * A list of Router resources. * @type string $kind * [Output Only] Type of resource. Always compute#router for routers. @@ -128,7 +128,7 @@ public function getItems() * A list of Router resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Router items = 100526016; - * @param \Google\Cloud\Compute\V1\Router[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Router>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/RouterNat.php b/Compute/src/V1/RouterNat.php index 1a26cf8fb4fa..d16d63066e78 100644 --- a/Compute/src/V1/RouterNat.php +++ b/Compute/src/V1/RouterNat.php @@ -131,12 +131,12 @@ class RouterNat extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $drain_nat_ips + * @type array|\Google\Protobuf\Internal\RepeatedField $drain_nat_ips * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. * @type bool $enable_dynamic_port_allocation * Enable Dynamic Port Allocation. If not specified, it is disabled by default. If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a minimum of 32 ports will be allocated to a VM from this NAT config. * @type bool $enable_endpoint_independent_mapping - * @type string[]|\Google\Protobuf\Internal\RepeatedField $endpoint_types + * @type array|\Google\Protobuf\Internal\RepeatedField $endpoint_types * List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM * Check the EndpointTypes enum for the list of possible values. * @type int $icmp_idle_timeout_sec @@ -152,14 +152,14 @@ class RouterNat extends \Google\Protobuf\Internal\Message * @type string $nat_ip_allocate_option * Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. * Check the NatIpAllocateOption enum for the list of possible values. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $nat_ips + * @type array|\Google\Protobuf\Internal\RepeatedField $nat_ips * A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. - * @type \Google\Cloud\Compute\V1\RouterNatRule[]|\Google\Protobuf\Internal\RepeatedField $rules + * @type array<\Google\Cloud\Compute\V1\RouterNatRule>|\Google\Protobuf\Internal\RepeatedField $rules * A list of rules associated with this NAT. * @type string $source_subnetwork_ip_ranges_to_nat * Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. * Check the SourceSubnetworkIpRangesToNat enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\RouterNatSubnetworkToNat[]|\Google\Protobuf\Internal\RepeatedField $subnetworks + * @type array<\Google\Cloud\Compute\V1\RouterNatSubnetworkToNat>|\Google\Protobuf\Internal\RepeatedField $subnetworks * A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. * @type int $tcp_established_idle_timeout_sec * Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set. @@ -191,7 +191,7 @@ public function getDrainNatIps() * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. * * Generated from protobuf field repeated string drain_nat_ips = 504078535; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDrainNatIps($var) @@ -287,7 +287,7 @@ public function getEndpointTypes() * Check the EndpointTypes enum for the list of possible values. * * Generated from protobuf field repeated string endpoint_types = 502633807; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEndpointTypes($var) @@ -531,7 +531,7 @@ public function getNatIps() * A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project. * * Generated from protobuf field repeated string nat_ips = 117635086; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNatIps($var) @@ -557,7 +557,7 @@ public function getRules() * A list of rules associated with this NAT. * * Generated from protobuf field repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; - * @param \Google\Cloud\Compute\V1\RouterNatRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RouterNatRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) @@ -621,7 +621,7 @@ public function getSubnetworks() * A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above. * * Generated from protobuf field repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125; - * @param \Google\Cloud\Compute\V1\RouterNatSubnetworkToNat[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RouterNatSubnetworkToNat>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSubnetworks($var) diff --git a/Compute/src/V1/RouterNatRuleAction.php b/Compute/src/V1/RouterNatRuleAction.php index 04c49c3dc4da..97075b4a441b 100644 --- a/Compute/src/V1/RouterNatRuleAction.php +++ b/Compute/src/V1/RouterNatRuleAction.php @@ -33,9 +33,9 @@ class RouterNatRuleAction extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $source_nat_active_ips + * @type array|\Google\Protobuf\Internal\RepeatedField $source_nat_active_ips * A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $source_nat_drain_ips + * @type array|\Google\Protobuf\Internal\RepeatedField $source_nat_drain_ips * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT. * } */ @@ -59,7 +59,7 @@ public function getSourceNatActiveIps() * A list of URLs of the IP resources used for this NAT rule. These IP addresses must be valid static external IP addresses assigned to the project. This field is used for public NAT. * * Generated from protobuf field repeated string source_nat_active_ips = 210378229; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSourceNatActiveIps($var) @@ -85,7 +85,7 @@ public function getSourceNatDrainIps() * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT rule only. This field is used for public NAT. * * Generated from protobuf field repeated string source_nat_drain_ips = 340812451; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSourceNatDrainIps($var) diff --git a/Compute/src/V1/RouterNatSubnetworkToNat.php b/Compute/src/V1/RouterNatSubnetworkToNat.php index 62eb8740b5cf..31fe6b5a481a 100644 --- a/Compute/src/V1/RouterNatSubnetworkToNat.php +++ b/Compute/src/V1/RouterNatSubnetworkToNat.php @@ -43,9 +43,9 @@ class RouterNatSubnetworkToNat extends \Google\Protobuf\Internal\Message * * @type string $name * URL for the subnetwork resource that will use NAT. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $secondary_ip_range_names + * @type array|\Google\Protobuf\Internal\RepeatedField $secondary_ip_range_names * A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $source_ip_ranges_to_nat + * @type array|\Google\Protobuf\Internal\RepeatedField $source_ip_ranges_to_nat * Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] * Check the SourceIpRangesToNat enum for the list of possible values. * } @@ -106,7 +106,7 @@ public function getSecondaryIpRangeNames() * A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat. * * Generated from protobuf field repeated string secondary_ip_range_names = 264315097; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSecondaryIpRangeNames($var) @@ -134,7 +134,7 @@ public function getSourceIpRangesToNat() * Check the SourceIpRangesToNat enum for the list of possible values. * * Generated from protobuf field repeated string source_ip_ranges_to_nat = 388310386; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSourceIpRangesToNat($var) diff --git a/Compute/src/V1/RouterStatus.php b/Compute/src/V1/RouterStatus.php index d4f0a1deaa1f..babc3337f708 100644 --- a/Compute/src/V1/RouterStatus.php +++ b/Compute/src/V1/RouterStatus.php @@ -47,12 +47,12 @@ class RouterStatus extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Route[]|\Google\Protobuf\Internal\RepeatedField $best_routes + * @type array<\Google\Cloud\Compute\V1\Route>|\Google\Protobuf\Internal\RepeatedField $best_routes * Best routes for this router's network. - * @type \Google\Cloud\Compute\V1\Route[]|\Google\Protobuf\Internal\RepeatedField $best_routes_for_router + * @type array<\Google\Cloud\Compute\V1\Route>|\Google\Protobuf\Internal\RepeatedField $best_routes_for_router * Best routes learned by this router. - * @type \Google\Cloud\Compute\V1\RouterStatusBgpPeerStatus[]|\Google\Protobuf\Internal\RepeatedField $bgp_peer_status - * @type \Google\Cloud\Compute\V1\RouterStatusNatStatus[]|\Google\Protobuf\Internal\RepeatedField $nat_status + * @type array<\Google\Cloud\Compute\V1\RouterStatusBgpPeerStatus>|\Google\Protobuf\Internal\RepeatedField $bgp_peer_status + * @type array<\Google\Cloud\Compute\V1\RouterStatusNatStatus>|\Google\Protobuf\Internal\RepeatedField $nat_status * @type string $network * URI of the network to which this router belongs. * } @@ -77,7 +77,7 @@ public function getBestRoutes() * Best routes for this router's network. * * Generated from protobuf field repeated .google.cloud.compute.v1.Route best_routes = 395826693; - * @param \Google\Cloud\Compute\V1\Route[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Route>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBestRoutes($var) @@ -103,7 +103,7 @@ public function getBestRoutesForRouter() * Best routes learned by this router. * * Generated from protobuf field repeated .google.cloud.compute.v1.Route best_routes_for_router = 119389689; - * @param \Google\Cloud\Compute\V1\Route[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Route>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBestRoutesForRouter($var) @@ -125,7 +125,7 @@ public function getBgpPeerStatus() /** * Generated from protobuf field repeated .google.cloud.compute.v1.RouterStatusBgpPeerStatus bgp_peer_status = 218459131; - * @param \Google\Cloud\Compute\V1\RouterStatusBgpPeerStatus[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RouterStatusBgpPeerStatus>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBgpPeerStatus($var) @@ -147,7 +147,7 @@ public function getNatStatus() /** * Generated from protobuf field repeated .google.cloud.compute.v1.RouterStatusNatStatus nat_status = 63098064; - * @param \Google\Cloud\Compute\V1\RouterStatusNatStatus[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RouterStatusNatStatus>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNatStatus($var) diff --git a/Compute/src/V1/RouterStatusBgpPeerStatus.php b/Compute/src/V1/RouterStatusBgpPeerStatus.php index 5798de3e0753..7ff6b3646752 100644 --- a/Compute/src/V1/RouterStatusBgpPeerStatus.php +++ b/Compute/src/V1/RouterStatusBgpPeerStatus.php @@ -92,7 +92,7 @@ class RouterStatusBgpPeerStatus extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Route[]|\Google\Protobuf\Internal\RepeatedField $advertised_routes + * @type array<\Google\Cloud\Compute\V1\Route>|\Google\Protobuf\Internal\RepeatedField $advertised_routes * Routes that were advertised to the remote BGP peer * @type \Google\Cloud\Compute\V1\BfdStatus $bfd_status * @type string $ip_address @@ -138,7 +138,7 @@ public function getAdvertisedRoutes() * Routes that were advertised to the remote BGP peer * * Generated from protobuf field repeated .google.cloud.compute.v1.Route advertised_routes = 333393068; - * @param \Google\Cloud\Compute\V1\Route[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Route>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAdvertisedRoutes($var) diff --git a/Compute/src/V1/RouterStatusNatStatus.php b/Compute/src/V1/RouterStatusNatStatus.php index c83bddb9be8a..583aeb24dec9 100644 --- a/Compute/src/V1/RouterStatusNatStatus.php +++ b/Compute/src/V1/RouterStatusNatStatus.php @@ -76,11 +76,11 @@ class RouterStatusNatStatus extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $auto_allocated_nat_ips + * @type array|\Google\Protobuf\Internal\RepeatedField $auto_allocated_nat_ips * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] - * @type string[]|\Google\Protobuf\Internal\RepeatedField $drain_auto_allocated_nat_ips + * @type array|\Google\Protobuf\Internal\RepeatedField $drain_auto_allocated_nat_ips * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $drain_user_allocated_nat_ips + * @type array|\Google\Protobuf\Internal\RepeatedField $drain_user_allocated_nat_ips * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. * @type int $min_extra_nat_ips_needed * The number of extra IPs to allocate. This will be greater than 0 only if user-specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful only when auto-allocation of NAT IPs is *not* used. @@ -88,11 +88,11 @@ class RouterStatusNatStatus extends \Google\Protobuf\Internal\Message * Unique name of this NAT. * @type int $num_vm_endpoints_with_nat_mappings * Number of VM endpoints (i.e., Nics) that can use NAT. - * @type \Google\Cloud\Compute\V1\RouterStatusNatStatusNatRuleStatus[]|\Google\Protobuf\Internal\RepeatedField $rule_status + * @type array<\Google\Cloud\Compute\V1\RouterStatusNatStatusNatRuleStatus>|\Google\Protobuf\Internal\RepeatedField $rule_status * Status of rules in this NAT. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $user_allocated_nat_ip_resources + * @type array|\Google\Protobuf\Internal\RepeatedField $user_allocated_nat_ip_resources * A list of fully qualified URLs of reserved IP address resources. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $user_allocated_nat_ips + * @type array|\Google\Protobuf\Internal\RepeatedField $user_allocated_nat_ips * A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". * } */ @@ -116,7 +116,7 @@ public function getAutoAllocatedNatIps() * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"] * * Generated from protobuf field repeated string auto_allocated_nat_ips = 510794246; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAutoAllocatedNatIps($var) @@ -142,7 +142,7 @@ public function getDrainAutoAllocatedNatIps() * A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. * * Generated from protobuf field repeated string drain_auto_allocated_nat_ips = 309184557; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDrainAutoAllocatedNatIps($var) @@ -168,7 +168,7 @@ public function getDrainUserAllocatedNatIps() * A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. * * Generated from protobuf field repeated string drain_user_allocated_nat_ips = 305268553; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDrainUserAllocatedNatIps($var) @@ -302,7 +302,7 @@ public function getRuleStatus() * Status of rules in this NAT. * * Generated from protobuf field repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125; - * @param \Google\Cloud\Compute\V1\RouterStatusNatStatusNatRuleStatus[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\RouterStatusNatStatusNatRuleStatus>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRuleStatus($var) @@ -328,7 +328,7 @@ public function getUserAllocatedNatIpResources() * A list of fully qualified URLs of reserved IP address resources. * * Generated from protobuf field repeated string user_allocated_nat_ip_resources = 212776151; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUserAllocatedNatIpResources($var) @@ -354,7 +354,7 @@ public function getUserAllocatedNatIps() * A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133". * * Generated from protobuf field repeated string user_allocated_nat_ips = 506878242; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUserAllocatedNatIps($var) diff --git a/Compute/src/V1/RouterStatusNatStatusNatRuleStatus.php b/Compute/src/V1/RouterStatusNatStatusNatRuleStatus.php index 8655e6548fc2..94ebf79a2d0e 100644 --- a/Compute/src/V1/RouterStatusNatStatusNatRuleStatus.php +++ b/Compute/src/V1/RouterStatusNatStatusNatRuleStatus.php @@ -52,9 +52,9 @@ class RouterStatusNatStatusNatRuleStatus extends \Google\Protobuf\Internal\Messa * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $active_nat_ips + * @type array|\Google\Protobuf\Internal\RepeatedField $active_nat_ips * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $drain_nat_ips + * @type array|\Google\Protobuf\Internal\RepeatedField $drain_nat_ips * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. * @type int $min_extra_ips_needed * The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT. @@ -84,7 +84,7 @@ public function getActiveNatIps() * A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"]. * * Generated from protobuf field repeated string active_nat_ips = 208517077; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setActiveNatIps($var) @@ -110,7 +110,7 @@ public function getDrainNatIps() * A list of IPs for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. * * Generated from protobuf field repeated string drain_nat_ips = 504078535; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDrainNatIps($var) diff --git a/Compute/src/V1/RoutersScopedList.php b/Compute/src/V1/RoutersScopedList.php index cda77e4512d4..7a7f477d2d73 100644 --- a/Compute/src/V1/RoutersScopedList.php +++ b/Compute/src/V1/RoutersScopedList.php @@ -33,7 +33,7 @@ class RoutersScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Router[]|\Google\Protobuf\Internal\RepeatedField $routers + * @type array<\Google\Cloud\Compute\V1\Router>|\Google\Protobuf\Internal\RepeatedField $routers * A list of routers contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of routers when the list is empty. @@ -59,7 +59,7 @@ public function getRouters() * A list of routers contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.Router routers = 311906890; - * @param \Google\Cloud\Compute\V1\Router[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Router>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRouters($var) diff --git a/Compute/src/V1/Rule.php b/Compute/src/V1/Rule.php index 36a346753025..1e417c82428a 100644 --- a/Compute/src/V1/Rule.php +++ b/Compute/src/V1/Rule.php @@ -68,17 +68,17 @@ class Rule extends \Google\Protobuf\Internal\Message * @type string $action * This is deprecated and has no effect. Do not use. * Check the Action enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\Condition[]|\Google\Protobuf\Internal\RepeatedField $conditions + * @type array<\Google\Cloud\Compute\V1\Condition>|\Google\Protobuf\Internal\RepeatedField $conditions * This is deprecated and has no effect. Do not use. * @type string $description * This is deprecated and has no effect. Do not use. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $ins + * @type array|\Google\Protobuf\Internal\RepeatedField $ins * This is deprecated and has no effect. Do not use. - * @type \Google\Cloud\Compute\V1\LogConfig[]|\Google\Protobuf\Internal\RepeatedField $log_configs + * @type array<\Google\Cloud\Compute\V1\LogConfig>|\Google\Protobuf\Internal\RepeatedField $log_configs * This is deprecated and has no effect. Do not use. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $not_ins + * @type array|\Google\Protobuf\Internal\RepeatedField $not_ins * This is deprecated and has no effect. Do not use. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $permissions + * @type array|\Google\Protobuf\Internal\RepeatedField $permissions * This is deprecated and has no effect. Do not use. * } */ @@ -140,7 +140,7 @@ public function getConditions() * This is deprecated and has no effect. Do not use. * * Generated from protobuf field repeated .google.cloud.compute.v1.Condition conditions = 142882488; - * @param \Google\Cloud\Compute\V1\Condition[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Condition>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setConditions($var) @@ -202,7 +202,7 @@ public function getIns() * This is deprecated and has no effect. Do not use. * * Generated from protobuf field repeated string ins = 104430; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIns($var) @@ -228,7 +228,7 @@ public function getLogConfigs() * This is deprecated and has no effect. Do not use. * * Generated from protobuf field repeated .google.cloud.compute.v1.LogConfig log_configs = 152873846; - * @param \Google\Cloud\Compute\V1\LogConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\LogConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLogConfigs($var) @@ -254,7 +254,7 @@ public function getNotIns() * This is deprecated and has no effect. Do not use. * * Generated from protobuf field repeated string not_ins = 518443138; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNotIns($var) @@ -280,7 +280,7 @@ public function getPermissions() * This is deprecated and has no effect. Do not use. * * Generated from protobuf field repeated string permissions = 59962500; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPermissions($var) diff --git a/Compute/src/V1/SavedAttachedDisk.php b/Compute/src/V1/SavedAttachedDisk.php index 6573175d94ef..667471f56759 100644 --- a/Compute/src/V1/SavedAttachedDisk.php +++ b/Compute/src/V1/SavedAttachedDisk.php @@ -134,7 +134,7 @@ class SavedAttachedDisk extends \Google\Protobuf\Internal\Message * The size of the disk in base-2 GB. * @type string $disk_type * [Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd - * @type \Google\Cloud\Compute\V1\GuestOsFeature[]|\Google\Protobuf\Internal\RepeatedField $guest_os_features + * @type array<\Google\Cloud\Compute\V1\GuestOsFeature>|\Google\Protobuf\Internal\RepeatedField $guest_os_features * A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. * @type int $index * Specifies zero-based index of the disk that is attached to the source instance. @@ -143,7 +143,7 @@ class SavedAttachedDisk extends \Google\Protobuf\Internal\Message * Check the Interface enum for the list of possible values. * @type string $kind * [Output Only] Type of the resource. Always compute#attachedDisk for attached disks. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $licenses + * @type array|\Google\Protobuf\Internal\RepeatedField $licenses * [Output Only] Any valid publicly visible licenses. * @type string $mode * The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. @@ -396,7 +396,7 @@ public function getGuestOsFeatures() * A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. * * Generated from protobuf field repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545; - * @param \Google\Cloud\Compute\V1\GuestOsFeature[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\GuestOsFeature>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setGuestOsFeatures($var) @@ -532,7 +532,7 @@ public function getLicenses() * [Output Only] Any valid publicly visible licenses. * * Generated from protobuf field repeated string licenses = 337642578; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLicenses($var) diff --git a/Compute/src/V1/SavedDisk.php b/Compute/src/V1/SavedDisk.php index 29eac665452b..b4a4880fb7e1 100644 --- a/Compute/src/V1/SavedDisk.php +++ b/Compute/src/V1/SavedDisk.php @@ -15,6 +15,13 @@ */ class SavedDisk extends \Google\Protobuf\Internal\Message { + /** + * [Output Only] The architecture of the attached disk. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + */ + private $architecture = null; /** * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. * @@ -47,6 +54,9 @@ class SavedDisk extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * + * @type string $architecture + * [Output Only] The architecture of the attached disk. + * Check the Architecture enum for the list of possible values. * @type string $kind * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. * @type string $source_disk @@ -63,6 +73,44 @@ public function __construct($data = NULL) { parent::__construct($data); } + /** + * [Output Only] The architecture of the attached disk. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @return string + */ + public function getArchitecture() + { + return isset($this->architecture) ? $this->architecture : ''; + } + + public function hasArchitecture() + { + return isset($this->architecture); + } + + public function clearArchitecture() + { + unset($this->architecture); + } + + /** + * [Output Only] The architecture of the attached disk. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @param string $var + * @return $this + */ + public function setArchitecture($var) + { + GPBUtil::checkString($var, True); + $this->architecture = $var; + + return $this; + } + /** * [Output Only] Type of the resource. Always compute#savedDisk for attached disks. * diff --git a/Compute/src/V1/SavedDisk/Architecture.php b/Compute/src/V1/SavedDisk/Architecture.php new file mode 100644 index 000000000000..ae413a08f86a --- /dev/null +++ b/Compute/src/V1/SavedDisk/Architecture.php @@ -0,0 +1,69 @@ +google.cloud.compute.v1.SavedDisk.Architecture + */ +class Architecture +{ + /** + * A value indicating that the enum field is not set. + * + * Generated from protobuf enum UNDEFINED_ARCHITECTURE = 0; + */ + const UNDEFINED_ARCHITECTURE = 0; + /** + * Default value indicating Architecture is not set. + * + * Generated from protobuf enum ARCHITECTURE_UNSPECIFIED = 394750507; + */ + const ARCHITECTURE_UNSPECIFIED = 394750507; + /** + * Machines with architecture ARM64 + * + * Generated from protobuf enum ARM64 = 62547450; + */ + const ARM64 = 62547450; + /** + * Machines with architecture X86_64 + * + * Generated from protobuf enum X86_64 = 425300551; + */ + const X86_64 = 425300551; + + private static $valueToName = [ + self::UNDEFINED_ARCHITECTURE => 'UNDEFINED_ARCHITECTURE', + self::ARCHITECTURE_UNSPECIFIED => 'ARCHITECTURE_UNSPECIFIED', + self::ARM64 => 'ARM64', + self::X86_64 => 'X86_64', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Compute/src/V1/Scheduling.php b/Compute/src/V1/Scheduling.php index 13e779690ffc..2edbd675c887 100644 --- a/Compute/src/V1/Scheduling.php +++ b/Compute/src/V1/Scheduling.php @@ -9,7 +9,7 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Sets the scheduling options for an Instance. NextID: 21 + * Sets the scheduling options for an Instance. * * Generated from protobuf message google.cloud.compute.v1.Scheduling */ @@ -82,7 +82,7 @@ class Scheduling extends \Google\Protobuf\Internal\Message * An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API. * @type int $min_node_cpus * The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. - * @type \Google\Cloud\Compute\V1\SchedulingNodeAffinity[]|\Google\Protobuf\Internal\RepeatedField $node_affinities + * @type array<\Google\Cloud\Compute\V1\SchedulingNodeAffinity>|\Google\Protobuf\Internal\RepeatedField $node_affinities * A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity. * @type string $on_host_maintenance * Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy. @@ -260,7 +260,7 @@ public function getNodeAffinities() * A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity. * * Generated from protobuf field repeated .google.cloud.compute.v1.SchedulingNodeAffinity node_affinities = 461799971; - * @param \Google\Cloud\Compute\V1\SchedulingNodeAffinity[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SchedulingNodeAffinity>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNodeAffinities($var) diff --git a/Compute/src/V1/SchedulingNodeAffinity.php b/Compute/src/V1/SchedulingNodeAffinity.php index 93882ccd5c78..2ca0c2aa39e8 100644 --- a/Compute/src/V1/SchedulingNodeAffinity.php +++ b/Compute/src/V1/SchedulingNodeAffinity.php @@ -46,7 +46,7 @@ class SchedulingNodeAffinity extends \Google\Protobuf\Internal\Message * @type string $operator * Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. * Check the Operator enum for the list of possible values. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $values + * @type array|\Google\Protobuf\Internal\RepeatedField $values * Corresponds to the label values of Node resource. * } */ @@ -144,7 +144,7 @@ public function getValues() * Corresponds to the label values of Node resource. * * Generated from protobuf field repeated string values = 249928994; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setValues($var) diff --git a/Compute/src/V1/SecurityPoliciesAggregatedList.php b/Compute/src/V1/SecurityPoliciesAggregatedList.php index 940af961a19a..98a3b5f5b3b6 100644 --- a/Compute/src/V1/SecurityPoliciesAggregatedList.php +++ b/Compute/src/V1/SecurityPoliciesAggregatedList.php @@ -78,7 +78,7 @@ class SecurityPoliciesAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -306,7 +306,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/SecurityPoliciesScopedList.php b/Compute/src/V1/SecurityPoliciesScopedList.php index 2bc61e3aa0f3..e8754fbd8f34 100644 --- a/Compute/src/V1/SecurityPoliciesScopedList.php +++ b/Compute/src/V1/SecurityPoliciesScopedList.php @@ -33,7 +33,7 @@ class SecurityPoliciesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\SecurityPolicy[]|\Google\Protobuf\Internal\RepeatedField $security_policies + * @type array<\Google\Cloud\Compute\V1\SecurityPolicy>|\Google\Protobuf\Internal\RepeatedField $security_policies * A list of SecurityPolicies contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of security policies when the list is empty. @@ -59,7 +59,7 @@ public function getSecurityPolicies() * A list of SecurityPolicies contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.SecurityPolicy security_policies = 127783791; - * @param \Google\Cloud\Compute\V1\SecurityPolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SecurityPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSecurityPolicies($var) diff --git a/Compute/src/V1/SecurityPolicy.php b/Compute/src/V1/SecurityPolicy.php index b692d7b41b39..20c7a0929ead 100644 --- a/Compute/src/V1/SecurityPolicy.php +++ b/Compute/src/V1/SecurityPolicy.php @@ -117,7 +117,7 @@ class SecurityPolicy extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Compute\V1\SecurityPolicyRecaptchaOptionsConfig $recaptcha_options_config * @type string $region * [Output Only] URL of the region where the regional security policy resides. This field is not applicable to global security policies. - * @type \Google\Cloud\Compute\V1\SecurityPolicyRule[]|\Google\Protobuf\Internal\RepeatedField $rules + * @type array<\Google\Cloud\Compute\V1\SecurityPolicyRule>|\Google\Protobuf\Internal\RepeatedField $rules * A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a security policy, a default rule with action "allow" will be added. * @type string $self_link * [Output Only] Server-defined URL for the resource. @@ -526,7 +526,7 @@ public function getRules() * A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a security policy, a default rule with action "allow" will be added. * * Generated from protobuf field repeated .google.cloud.compute.v1.SecurityPolicyRule rules = 108873975; - * @param \Google\Cloud\Compute\V1\SecurityPolicyRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SecurityPolicyRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) diff --git a/Compute/src/V1/SecurityPolicyList.php b/Compute/src/V1/SecurityPolicyList.php index ffd66d8b8398..91024497a948 100644 --- a/Compute/src/V1/SecurityPolicyList.php +++ b/Compute/src/V1/SecurityPolicyList.php @@ -53,7 +53,7 @@ class SecurityPolicyList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\SecurityPolicy[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\SecurityPolicy>|\Google\Protobuf\Internal\RepeatedField $items * A list of SecurityPolicy resources. * @type string $kind * [Output Only] Type of resource. Always compute#securityPolicyList for listsof securityPolicies @@ -119,7 +119,7 @@ public function getItems() * A list of SecurityPolicy resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.SecurityPolicy items = 100526016; - * @param \Google\Cloud\Compute\V1\SecurityPolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SecurityPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/SecurityPolicyRuleHttpHeaderAction.php b/Compute/src/V1/SecurityPolicyRuleHttpHeaderAction.php index 927477dd82d0..20b2789d1421 100644 --- a/Compute/src/V1/SecurityPolicyRuleHttpHeaderAction.php +++ b/Compute/src/V1/SecurityPolicyRuleHttpHeaderAction.php @@ -27,7 +27,7 @@ class SecurityPolicyRuleHttpHeaderAction extends \Google\Protobuf\Internal\Messa * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\SecurityPolicyRuleHttpHeaderActionHttpHeaderOption[]|\Google\Protobuf\Internal\RepeatedField $request_headers_to_adds + * @type array<\Google\Cloud\Compute\V1\SecurityPolicyRuleHttpHeaderActionHttpHeaderOption>|\Google\Protobuf\Internal\RepeatedField $request_headers_to_adds * The list of request headers to add or overwrite if they're already present. * } */ @@ -51,7 +51,7 @@ public function getRequestHeadersToAdds() * The list of request headers to add or overwrite if they're already present. * * Generated from protobuf field repeated .google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption request_headers_to_adds = 87987661; - * @param \Google\Cloud\Compute\V1\SecurityPolicyRuleHttpHeaderActionHttpHeaderOption[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SecurityPolicyRuleHttpHeaderActionHttpHeaderOption>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRequestHeadersToAdds($var) diff --git a/Compute/src/V1/SecurityPolicyRuleMatcherConfig.php b/Compute/src/V1/SecurityPolicyRuleMatcherConfig.php index 85b5e8243ec2..fac622505928 100644 --- a/Compute/src/V1/SecurityPolicyRuleMatcherConfig.php +++ b/Compute/src/V1/SecurityPolicyRuleMatcherConfig.php @@ -27,7 +27,7 @@ class SecurityPolicyRuleMatcherConfig extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $src_ip_ranges + * @type array|\Google\Protobuf\Internal\RepeatedField $src_ip_ranges * CIDR IP address range. Maximum number of src_ip_ranges allowed is 10. * } */ @@ -51,7 +51,7 @@ public function getSrcIpRanges() * CIDR IP address range. Maximum number of src_ip_ranges allowed is 10. * * Generated from protobuf field repeated string src_ip_ranges = 432128083; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSrcIpRanges($var) diff --git a/Compute/src/V1/SecuritySettings.php b/Compute/src/V1/SecuritySettings.php index dfe35d06d50d..b27e82195a05 100644 --- a/Compute/src/V1/SecuritySettings.php +++ b/Compute/src/V1/SecuritySettings.php @@ -36,7 +36,7 @@ class SecuritySettings extends \Google\Protobuf\Internal\Message * * @type string $client_tls_policy * Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted. Note: This field currently has no impact. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $subject_alt_names + * @type array|\Google\Protobuf\Internal\RepeatedField $subject_alt_names * Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode). Note: This field currently has no impact. * } */ @@ -96,7 +96,7 @@ public function getSubjectAltNames() * Optional. A list of Subject Alternative Names (SANs) that the client verifies during a mutual TLS handshake with an server/endpoint for this BackendService. When the server presents its X.509 certificate to the client, the client inspects the certificate's subjectAltName field. If the field contains one of the specified values, the communication continues. Otherwise, it fails. This additional check enables the client to verify that the server is authorized to run the requested service. Note that the contents of the server certificate's subjectAltName field are configured by the Public Key Infrastructure which provisions server identities. Only applies to a global BackendService with loadBalancingScheme set to INTERNAL_SELF_MANAGED. Only applies when BackendService has an attached clientTlsPolicy with clientCertificate (mTLS mode). Note: This field currently has no impact. * * Generated from protobuf field repeated string subject_alt_names = 330029535; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSubjectAltNames($var) diff --git a/Compute/src/V1/ServiceAccount.php b/Compute/src/V1/ServiceAccount.php index b51fadb06105..3d3e30918ef2 100644 --- a/Compute/src/V1/ServiceAccount.php +++ b/Compute/src/V1/ServiceAccount.php @@ -36,7 +36,7 @@ class ServiceAccount extends \Google\Protobuf\Internal\Message * * @type string $email * Email address of the service account. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $scopes + * @type array|\Google\Protobuf\Internal\RepeatedField $scopes * The list of scopes to be made available for this service account. * } */ @@ -96,7 +96,7 @@ public function getScopes() * The list of scopes to be made available for this service account. * * Generated from protobuf field repeated string scopes = 165973151; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setScopes($var) diff --git a/Compute/src/V1/ServiceAttachment.php b/Compute/src/V1/ServiceAttachment.php index 1ab2f0eca936..c90968e54db0 100644 --- a/Compute/src/V1/ServiceAttachment.php +++ b/Compute/src/V1/ServiceAttachment.php @@ -131,20 +131,20 @@ class ServiceAttachment extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\ServiceAttachmentConnectedEndpoint[]|\Google\Protobuf\Internal\RepeatedField $connected_endpoints + * @type array<\Google\Cloud\Compute\V1\ServiceAttachmentConnectedEndpoint>|\Google\Protobuf\Internal\RepeatedField $connected_endpoints * [Output Only] An array of connections for all the consumers connected to this service attachment. * @type string $connection_preference * The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. * Check the ConnectionPreference enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\ServiceAttachmentConsumerProjectLimit[]|\Google\Protobuf\Internal\RepeatedField $consumer_accept_lists + * @type array<\Google\Cloud\Compute\V1\ServiceAttachmentConsumerProjectLimit>|\Google\Protobuf\Internal\RepeatedField $consumer_accept_lists * Projects that are allowed to connect to this service attachment. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $consumer_reject_lists + * @type array|\Google\Protobuf\Internal\RepeatedField $consumer_reject_lists * Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. * @type string $description * An optional description of this resource. Provide this property when you create the resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $domain_names + * @type array|\Google\Protobuf\Internal\RepeatedField $domain_names * If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1. * @type bool $enable_proxy_protocol * If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers. @@ -156,7 +156,7 @@ class ServiceAttachment extends \Google\Protobuf\Internal\Message * [Output Only] Type of the resource. Always compute#serviceAttachment for service attachments. * @type string $name * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $nat_subnets + * @type array|\Google\Protobuf\Internal\RepeatedField $nat_subnets * An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment. * @type string $producer_forwarding_rule * The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment. @@ -190,7 +190,7 @@ public function getConnectedEndpoints() * [Output Only] An array of connections for all the consumers connected to this service attachment. * * Generated from protobuf field repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688; - * @param \Google\Cloud\Compute\V1\ServiceAttachmentConnectedEndpoint[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ServiceAttachmentConnectedEndpoint>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setConnectedEndpoints($var) @@ -254,7 +254,7 @@ public function getConsumerAcceptLists() * Projects that are allowed to connect to this service attachment. * * Generated from protobuf field repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703; - * @param \Google\Cloud\Compute\V1\ServiceAttachmentConsumerProjectLimit[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ServiceAttachmentConsumerProjectLimit>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setConsumerAcceptLists($var) @@ -280,7 +280,7 @@ public function getConsumerRejectLists() * Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number. * * Generated from protobuf field repeated string consumer_reject_lists = 204033182; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setConsumerRejectLists($var) @@ -378,7 +378,7 @@ public function getDomainNames() * If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1. * * Generated from protobuf field repeated string domain_names = 6450189; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDomainNames($var) @@ -584,7 +584,7 @@ public function getNatSubnets() * An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment. * * Generated from protobuf field repeated string nat_subnets = 374785944; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNatSubnets($var) diff --git a/Compute/src/V1/ServiceAttachmentAggregatedList.php b/Compute/src/V1/ServiceAttachmentAggregatedList.php index 2579464e4a5d..ca3bd0fd8572 100644 --- a/Compute/src/V1/ServiceAttachmentAggregatedList.php +++ b/Compute/src/V1/ServiceAttachmentAggregatedList.php @@ -74,7 +74,7 @@ class ServiceAttachmentAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -270,7 +270,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/ServiceAttachmentConnectedEndpoint/Status.php b/Compute/src/V1/ServiceAttachmentConnectedEndpoint/Status.php index dd2afa66e662..d48a2efbc6a3 100644 --- a/Compute/src/V1/ServiceAttachmentConnectedEndpoint/Status.php +++ b/Compute/src/V1/ServiceAttachmentConnectedEndpoint/Status.php @@ -31,6 +31,12 @@ class Status * Generated from protobuf enum CLOSED = 380163436; */ const CLOSED = 380163436; + /** + * The connection has been accepted by the producer, but the producer needs to take further action before the forwarding rule can serve traffic. + * + * Generated from protobuf enum NEEDS_ATTENTION = 344491452; + */ + const NEEDS_ATTENTION = 344491452; /** * The connection is pending acceptance by the producer. * @@ -52,6 +58,7 @@ class Status self::UNDEFINED_STATUS => 'UNDEFINED_STATUS', self::ACCEPTED => 'ACCEPTED', self::CLOSED => 'CLOSED', + self::NEEDS_ATTENTION => 'NEEDS_ATTENTION', self::PENDING => 'PENDING', self::REJECTED => 'REJECTED', self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', diff --git a/Compute/src/V1/ServiceAttachmentList.php b/Compute/src/V1/ServiceAttachmentList.php index 8c303da24a27..970c518eceab 100644 --- a/Compute/src/V1/ServiceAttachmentList.php +++ b/Compute/src/V1/ServiceAttachmentList.php @@ -59,7 +59,7 @@ class ServiceAttachmentList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\ServiceAttachment[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\ServiceAttachment>|\Google\Protobuf\Internal\RepeatedField $items * A list of ServiceAttachment resources. * @type string $kind * [Output Only] Type of the resource. Always compute#serviceAttachment for service attachments. @@ -127,7 +127,7 @@ public function getItems() * A list of ServiceAttachment resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.ServiceAttachment items = 100526016; - * @param \Google\Cloud\Compute\V1\ServiceAttachment[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ServiceAttachment>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/ServiceAttachmentsScopedList.php b/Compute/src/V1/ServiceAttachmentsScopedList.php index df600fe4b324..696a79a7c0d9 100644 --- a/Compute/src/V1/ServiceAttachmentsScopedList.php +++ b/Compute/src/V1/ServiceAttachmentsScopedList.php @@ -33,7 +33,7 @@ class ServiceAttachmentsScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\ServiceAttachment[]|\Google\Protobuf\Internal\RepeatedField $service_attachments + * @type array<\Google\Cloud\Compute\V1\ServiceAttachment>|\Google\Protobuf\Internal\RepeatedField $service_attachments * A list of ServiceAttachments contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of service attachments when the list is empty. @@ -59,7 +59,7 @@ public function getServiceAttachments() * A list of ServiceAttachments contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.ServiceAttachment service_attachments = 307136806; - * @param \Google\Cloud\Compute\V1\ServiceAttachment[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ServiceAttachment>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setServiceAttachments($var) diff --git a/Compute/src/V1/Snapshot.php b/Compute/src/V1/Snapshot.php index 579722a1b52e..8191561a5880 100644 --- a/Compute/src/V1/Snapshot.php +++ b/Compute/src/V1/Snapshot.php @@ -15,6 +15,13 @@ */ class Snapshot extends \Google\Protobuf\Internal\Message { + /** + * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + */ + private $architecture = null; /** * [Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk. * @@ -27,6 +34,12 @@ class Snapshot extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional string chain_name = 68644169; */ private $chain_name = null; + /** + * [Output Only] Size in bytes of the snapshot at creation time. + * + * Generated from protobuf field optional int64 creation_size_bytes = 125400077; + */ + private $creation_size_bytes = null; /** * [Output Only] Creation timestamp in RFC3339 text format. * @@ -117,6 +130,13 @@ class Snapshot extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional .google.cloud.compute.v1.CustomerEncryptionKey snapshot_encryption_key = 43334526; */ private $snapshot_encryption_key = null; + /** + * Indicates the type of the snapshot. + * Check the SnapshotType enum for the list of possible values. + * + * Generated from protobuf field optional string snapshot_type = 124349653; + */ + private $snapshot_type = null; /** * The source disk used to create this snapshot. * @@ -135,6 +155,18 @@ class Snapshot extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional string source_disk_id = 454190809; */ private $source_disk_id = null; + /** + * [Output Only] URL of the resource policy which created this scheduled snapshot. + * + * Generated from protobuf field optional string source_snapshot_schedule_policy = 235756291; + */ + private $source_snapshot_schedule_policy = null; + /** + * [Output Only] ID of the resource policy which created this scheduled snapshot. + * + * Generated from protobuf field optional string source_snapshot_schedule_policy_id = 70489047; + */ + private $source_snapshot_schedule_policy_id = null; /** * [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. * Check the Status enum for the list of possible values. @@ -168,10 +200,15 @@ class Snapshot extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * + * @type string $architecture + * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. * @type bool $auto_created * [Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk. * @type string $chain_name * Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035. This is an uncommon option only for advanced service owners who needs to create separate snapshot chains, for example, for chargeback tracking. When you describe your snapshot resource, this field is visible only if it has a non-empty value. + * @type int|string $creation_size_bytes + * [Output Only] Size in bytes of the snapshot at creation time. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. * @type string $description @@ -188,9 +225,9 @@ class Snapshot extends \Google\Protobuf\Internal\Message * A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a snapshot. * @type array|\Google\Protobuf\Internal\MapField $labels * Labels to apply to this snapshot. These can be later modified by the setLabels method. Label values may be empty. - * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $license_codes + * @type array|array|\Google\Protobuf\Internal\RepeatedField $license_codes * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $licenses + * @type array|\Google\Protobuf\Internal\RepeatedField $licenses * [Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image). * @type string $location_hint * An opaque location hint used to place the snapshot close to other resources. This field is for use by internal tools that use the public API. @@ -202,12 +239,19 @@ class Snapshot extends \Google\Protobuf\Internal\Message * [Output Only] Server-defined URL for the resource. * @type \Google\Cloud\Compute\V1\CustomerEncryptionKey $snapshot_encryption_key * Encrypts the snapshot using a customer-supplied encryption key. After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the snapshot later. For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request. Customer-supplied encryption keys do not protect access to metadata of the snapshot. If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later. + * @type string $snapshot_type + * Indicates the type of the snapshot. + * Check the SnapshotType enum for the list of possible values. * @type string $source_disk * The source disk used to create this snapshot. * @type \Google\Cloud\Compute\V1\CustomerEncryptionKey $source_disk_encryption_key * The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. * @type string $source_disk_id * [Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name. + * @type string $source_snapshot_schedule_policy + * [Output Only] URL of the resource policy which created this scheduled snapshot. + * @type string $source_snapshot_schedule_policy_id + * [Output Only] ID of the resource policy which created this scheduled snapshot. * @type string $status * [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. * Check the Status enum for the list of possible values. @@ -216,7 +260,7 @@ class Snapshot extends \Google\Protobuf\Internal\Message * @type string $storage_bytes_status * [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. * Check the StorageBytesStatus enum for the list of possible values. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $storage_locations + * @type array|\Google\Protobuf\Internal\RepeatedField $storage_locations * Cloud Storage bucket storage location of the snapshot (regional or multi-regional). * } */ @@ -225,6 +269,44 @@ public function __construct($data = NULL) { parent::__construct($data); } + /** + * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @return string + */ + public function getArchitecture() + { + return isset($this->architecture) ? $this->architecture : ''; + } + + public function hasArchitecture() + { + return isset($this->architecture); + } + + public function clearArchitecture() + { + unset($this->architecture); + } + + /** + * [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64. + * Check the Architecture enum for the list of possible values. + * + * Generated from protobuf field optional string architecture = 302803283; + * @param string $var + * @return $this + */ + public function setArchitecture($var) + { + GPBUtil::checkString($var, True); + $this->architecture = $var; + + return $this; + } + /** * [Output Only] Set to true if snapshots are automatically created by applying resource policy on the target disk. * @@ -297,6 +379,42 @@ public function setChainName($var) return $this; } + /** + * [Output Only] Size in bytes of the snapshot at creation time. + * + * Generated from protobuf field optional int64 creation_size_bytes = 125400077; + * @return int|string + */ + public function getCreationSizeBytes() + { + return isset($this->creation_size_bytes) ? $this->creation_size_bytes : 0; + } + + public function hasCreationSizeBytes() + { + return isset($this->creation_size_bytes); + } + + public function clearCreationSizeBytes() + { + unset($this->creation_size_bytes); + } + + /** + * [Output Only] Size in bytes of the snapshot at creation time. + * + * Generated from protobuf field optional int64 creation_size_bytes = 125400077; + * @param int|string $var + * @return $this + */ + public function setCreationSizeBytes($var) + { + GPBUtil::checkInt64($var); + $this->creation_size_bytes = $var; + + return $this; + } + /** * [Output Only] Creation timestamp in RFC3339 text format. * @@ -590,7 +708,7 @@ public function getLicenseCodes() * [Output Only] Integer license codes indicating which licenses are attached to this snapshot. * * Generated from protobuf field repeated int64 license_codes = 45482664; - * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLicenseCodes($var) @@ -616,7 +734,7 @@ public function getLicenses() * [Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image). * * Generated from protobuf field repeated string licenses = 337642578; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLicenses($var) @@ -807,6 +925,44 @@ public function setSnapshotEncryptionKey($var) return $this; } + /** + * Indicates the type of the snapshot. + * Check the SnapshotType enum for the list of possible values. + * + * Generated from protobuf field optional string snapshot_type = 124349653; + * @return string + */ + public function getSnapshotType() + { + return isset($this->snapshot_type) ? $this->snapshot_type : ''; + } + + public function hasSnapshotType() + { + return isset($this->snapshot_type); + } + + public function clearSnapshotType() + { + unset($this->snapshot_type); + } + + /** + * Indicates the type of the snapshot. + * Check the SnapshotType enum for the list of possible values. + * + * Generated from protobuf field optional string snapshot_type = 124349653; + * @param string $var + * @return $this + */ + public function setSnapshotType($var) + { + GPBUtil::checkString($var, True); + $this->snapshot_type = $var; + + return $this; + } + /** * The source disk used to create this snapshot. * @@ -915,6 +1071,78 @@ public function setSourceDiskId($var) return $this; } + /** + * [Output Only] URL of the resource policy which created this scheduled snapshot. + * + * Generated from protobuf field optional string source_snapshot_schedule_policy = 235756291; + * @return string + */ + public function getSourceSnapshotSchedulePolicy() + { + return isset($this->source_snapshot_schedule_policy) ? $this->source_snapshot_schedule_policy : ''; + } + + public function hasSourceSnapshotSchedulePolicy() + { + return isset($this->source_snapshot_schedule_policy); + } + + public function clearSourceSnapshotSchedulePolicy() + { + unset($this->source_snapshot_schedule_policy); + } + + /** + * [Output Only] URL of the resource policy which created this scheduled snapshot. + * + * Generated from protobuf field optional string source_snapshot_schedule_policy = 235756291; + * @param string $var + * @return $this + */ + public function setSourceSnapshotSchedulePolicy($var) + { + GPBUtil::checkString($var, True); + $this->source_snapshot_schedule_policy = $var; + + return $this; + } + + /** + * [Output Only] ID of the resource policy which created this scheduled snapshot. + * + * Generated from protobuf field optional string source_snapshot_schedule_policy_id = 70489047; + * @return string + */ + public function getSourceSnapshotSchedulePolicyId() + { + return isset($this->source_snapshot_schedule_policy_id) ? $this->source_snapshot_schedule_policy_id : ''; + } + + public function hasSourceSnapshotSchedulePolicyId() + { + return isset($this->source_snapshot_schedule_policy_id); + } + + public function clearSourceSnapshotSchedulePolicyId() + { + unset($this->source_snapshot_schedule_policy_id); + } + + /** + * [Output Only] ID of the resource policy which created this scheduled snapshot. + * + * Generated from protobuf field optional string source_snapshot_schedule_policy_id = 70489047; + * @param string $var + * @return $this + */ + public function setSourceSnapshotSchedulePolicyId($var) + { + GPBUtil::checkString($var, True); + $this->source_snapshot_schedule_policy_id = $var; + + return $this; + } + /** * [Output Only] The status of the snapshot. This can be CREATING, DELETING, FAILED, READY, or UPLOADING. * Check the Status enum for the list of possible values. @@ -1042,7 +1270,7 @@ public function getStorageLocations() * Cloud Storage bucket storage location of the snapshot (regional or multi-regional). * * Generated from protobuf field repeated string storage_locations = 328005274; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setStorageLocations($var) diff --git a/Compute/src/V1/Snapshot/Architecture.php b/Compute/src/V1/Snapshot/Architecture.php new file mode 100644 index 000000000000..4199844e4f8d --- /dev/null +++ b/Compute/src/V1/Snapshot/Architecture.php @@ -0,0 +1,69 @@ +google.cloud.compute.v1.Snapshot.Architecture + */ +class Architecture +{ + /** + * A value indicating that the enum field is not set. + * + * Generated from protobuf enum UNDEFINED_ARCHITECTURE = 0; + */ + const UNDEFINED_ARCHITECTURE = 0; + /** + * Default value indicating Architecture is not set. + * + * Generated from protobuf enum ARCHITECTURE_UNSPECIFIED = 394750507; + */ + const ARCHITECTURE_UNSPECIFIED = 394750507; + /** + * Machines with architecture ARM64 + * + * Generated from protobuf enum ARM64 = 62547450; + */ + const ARM64 = 62547450; + /** + * Machines with architecture X86_64 + * + * Generated from protobuf enum X86_64 = 425300551; + */ + const X86_64 = 425300551; + + private static $valueToName = [ + self::UNDEFINED_ARCHITECTURE => 'UNDEFINED_ARCHITECTURE', + self::ARCHITECTURE_UNSPECIFIED => 'ARCHITECTURE_UNSPECIFIED', + self::ARM64 => 'ARM64', + self::X86_64 => 'X86_64', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Compute/src/V1/Snapshot/SnapshotType.php b/Compute/src/V1/Snapshot/SnapshotType.php new file mode 100644 index 000000000000..090bdc706af4 --- /dev/null +++ b/Compute/src/V1/Snapshot/SnapshotType.php @@ -0,0 +1,58 @@ +google.cloud.compute.v1.Snapshot.SnapshotType + */ +class SnapshotType +{ + /** + * A value indicating that the enum field is not set. + * + * Generated from protobuf enum UNDEFINED_SNAPSHOT_TYPE = 0; + */ + const UNDEFINED_SNAPSHOT_TYPE = 0; + /** + * Generated from protobuf enum ARCHIVE = 506752162; + */ + const ARCHIVE = 506752162; + /** + * Generated from protobuf enum STANDARD = 484642493; + */ + const STANDARD = 484642493; + + private static $valueToName = [ + self::UNDEFINED_SNAPSHOT_TYPE => 'UNDEFINED_SNAPSHOT_TYPE', + self::ARCHIVE => 'ARCHIVE', + self::STANDARD => 'STANDARD', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Compute/src/V1/SnapshotList.php b/Compute/src/V1/SnapshotList.php index 77618d893b82..73ac9b8d786a 100644 --- a/Compute/src/V1/SnapshotList.php +++ b/Compute/src/V1/SnapshotList.php @@ -60,7 +60,7 @@ class SnapshotList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Snapshot[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Snapshot>|\Google\Protobuf\Internal\RepeatedField $items * A list of Snapshot resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of Snapshot resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Snapshot items = 100526016; - * @param \Google\Cloud\Compute\V1\Snapshot[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Snapshot>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/SourceInstanceParams.php b/Compute/src/V1/SourceInstanceParams.php index 8554bc14c916..342f1101133e 100644 --- a/Compute/src/V1/SourceInstanceParams.php +++ b/Compute/src/V1/SourceInstanceParams.php @@ -28,7 +28,7 @@ class SourceInstanceParams extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\DiskInstantiationConfig[]|\Google\Protobuf\Internal\RepeatedField $disk_configs + * @type array<\Google\Cloud\Compute\V1\DiskInstantiationConfig>|\Google\Protobuf\Internal\RepeatedField $disk_configs * Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes. * } */ @@ -52,7 +52,7 @@ public function getDiskConfigs() * Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes. * * Generated from protobuf field repeated .google.cloud.compute.v1.DiskInstantiationConfig disk_configs = 235580623; - * @param \Google\Cloud\Compute\V1\DiskInstantiationConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\DiskInstantiationConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDiskConfigs($var) diff --git a/Compute/src/V1/SourceInstanceProperties.php b/Compute/src/V1/SourceInstanceProperties.php index 348b095df96c..0a03a4b01d6a 100644 --- a/Compute/src/V1/SourceInstanceProperties.php +++ b/Compute/src/V1/SourceInstanceProperties.php @@ -45,6 +45,13 @@ class SourceInstanceProperties extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119; */ private $guest_accelerators; + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. + * + * Generated from protobuf field optional string key_revocation_action_type = 235941474; + */ + private $key_revocation_action_type = null; /** * Labels to apply to instances that are created from this machine image. * @@ -106,10 +113,13 @@ class SourceInstanceProperties extends \Google\Protobuf\Internal\Message * Whether the instance created from this machine image should be protected against deletion. * @type string $description * An optional text description for the instances that are created from this machine image. - * @type \Google\Cloud\Compute\V1\SavedAttachedDisk[]|\Google\Protobuf\Internal\RepeatedField $disks + * @type array<\Google\Cloud\Compute\V1\SavedAttachedDisk>|\Google\Protobuf\Internal\RepeatedField $disks * An array of disks that are associated with the instances that are created from this machine image. - * @type \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $guest_accelerators + * @type array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $guest_accelerators * A list of guest accelerator cards' type and count to use for instances created from this machine image. + * @type string $key_revocation_action_type + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. * @type array|\Google\Protobuf\Internal\MapField $labels * Labels to apply to instances that are created from this machine image. * @type string $machine_type @@ -118,11 +128,11 @@ class SourceInstanceProperties extends \Google\Protobuf\Internal\Message * The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information. * @type string $min_cpu_platform * Minimum cpu/platform to be used by instances created from this machine image. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform. - * @type \Google\Cloud\Compute\V1\NetworkInterface[]|\Google\Protobuf\Internal\RepeatedField $network_interfaces + * @type array<\Google\Cloud\Compute\V1\NetworkInterface>|\Google\Protobuf\Internal\RepeatedField $network_interfaces * An array of network access configurations for this interface. * @type \Google\Cloud\Compute\V1\Scheduling $scheduling * Specifies the scheduling options for the instances that are created from this machine image. - * @type \Google\Cloud\Compute\V1\ServiceAccount[]|\Google\Protobuf\Internal\RepeatedField $service_accounts + * @type array<\Google\Cloud\Compute\V1\ServiceAccount>|\Google\Protobuf\Internal\RepeatedField $service_accounts * A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances. * @type \Google\Cloud\Compute\V1\Tags $tags * A list of tags to apply to the instances that are created from this machine image. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035. @@ -256,7 +266,7 @@ public function getDisks() * An array of disks that are associated with the instances that are created from this machine image. * * Generated from protobuf field repeated .google.cloud.compute.v1.SavedAttachedDisk disks = 95594102; - * @param \Google\Cloud\Compute\V1\SavedAttachedDisk[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SavedAttachedDisk>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDisks($var) @@ -282,7 +292,7 @@ public function getGuestAccelerators() * A list of guest accelerator cards' type and count to use for instances created from this machine image. * * Generated from protobuf field repeated .google.cloud.compute.v1.AcceleratorConfig guest_accelerators = 463595119; - * @param \Google\Cloud\Compute\V1\AcceleratorConfig[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setGuestAccelerators($var) @@ -293,6 +303,44 @@ public function setGuestAccelerators($var) return $this; } + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. + * + * Generated from protobuf field optional string key_revocation_action_type = 235941474; + * @return string + */ + public function getKeyRevocationActionType() + { + return isset($this->key_revocation_action_type) ? $this->key_revocation_action_type : ''; + } + + public function hasKeyRevocationActionType() + { + return isset($this->key_revocation_action_type); + } + + public function clearKeyRevocationActionType() + { + unset($this->key_revocation_action_type); + } + + /** + * KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. + * Check the KeyRevocationActionType enum for the list of possible values. + * + * Generated from protobuf field optional string key_revocation_action_type = 235941474; + * @param string $var + * @return $this + */ + public function setKeyRevocationActionType($var) + { + GPBUtil::checkString($var, True); + $this->key_revocation_action_type = $var; + + return $this; + } + /** * Labels to apply to instances that are created from this machine image. * @@ -442,7 +490,7 @@ public function getNetworkInterfaces() * An array of network access configurations for this interface. * * Generated from protobuf field repeated .google.cloud.compute.v1.NetworkInterface network_interfaces = 52735243; - * @param \Google\Cloud\Compute\V1\NetworkInterface[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\NetworkInterface>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNetworkInterfaces($var) @@ -504,7 +552,7 @@ public function getServiceAccounts() * A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances. * * Generated from protobuf field repeated .google.cloud.compute.v1.ServiceAccount service_accounts = 277537328; - * @param \Google\Cloud\Compute\V1\ServiceAccount[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\ServiceAccount>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setServiceAccounts($var) diff --git a/Compute/src/V1/SourceInstanceProperties/KeyRevocationActionType.php b/Compute/src/V1/SourceInstanceProperties/KeyRevocationActionType.php new file mode 100644 index 000000000000..f084242b0425 --- /dev/null +++ b/Compute/src/V1/SourceInstanceProperties/KeyRevocationActionType.php @@ -0,0 +1,69 @@ +google.cloud.compute.v1.SourceInstanceProperties.KeyRevocationActionType + */ +class KeyRevocationActionType +{ + /** + * A value indicating that the enum field is not set. + * + * Generated from protobuf enum UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; + */ + const UNDEFINED_KEY_REVOCATION_ACTION_TYPE = 0; + /** + * Default value. This value is unused. + * + * Generated from protobuf enum KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106; + */ + const KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED = 467110106; + /** + * Indicates user chose no operation. + * + * Generated from protobuf enum NONE = 2402104; + */ + const NONE = 2402104; + /** + * Indicates user chose to opt for VM shutdown on key revocation. + * + * Generated from protobuf enum STOP = 2555906; + */ + const STOP = 2555906; + + private static $valueToName = [ + self::UNDEFINED_KEY_REVOCATION_ACTION_TYPE => 'UNDEFINED_KEY_REVOCATION_ACTION_TYPE', + self::KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED => 'KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED', + self::NONE => 'NONE', + self::STOP => 'STOP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Compute/src/V1/SslCertificate.php b/Compute/src/V1/SslCertificate.php index 5fc27ec72864..a8edc6d11a78 100644 --- a/Compute/src/V1/SslCertificate.php +++ b/Compute/src/V1/SslCertificate.php @@ -131,7 +131,7 @@ class SslCertificate extends \Google\Protobuf\Internal\Message * [Output only] Server-defined URL for the resource. * @type \Google\Cloud\Compute\V1\SslCertificateSelfManagedSslCertificate $self_managed * Configuration and status of a self-managed SSL certificate. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $subject_alternative_names + * @type array|\Google\Protobuf\Internal\RepeatedField $subject_alternative_names * [Output Only] Domains associated with the certificate via Subject Alternative Name. * @type string $type * (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the certificate is self-managed and the fields certificate and private_key are used. @@ -590,7 +590,7 @@ public function getSubjectAlternativeNames() * [Output Only] Domains associated with the certificate via Subject Alternative Name. * * Generated from protobuf field repeated string subject_alternative_names = 528807907; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSubjectAlternativeNames($var) diff --git a/Compute/src/V1/SslCertificateAggregatedList.php b/Compute/src/V1/SslCertificateAggregatedList.php index a6d0d08d226d..72f509a24329 100644 --- a/Compute/src/V1/SslCertificateAggregatedList.php +++ b/Compute/src/V1/SslCertificateAggregatedList.php @@ -73,7 +73,7 @@ class SslCertificateAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/SslCertificateList.php b/Compute/src/V1/SslCertificateList.php index 8a3369155ee6..fff5daa70d37 100644 --- a/Compute/src/V1/SslCertificateList.php +++ b/Compute/src/V1/SslCertificateList.php @@ -60,7 +60,7 @@ class SslCertificateList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\SslCertificate[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\SslCertificate>|\Google\Protobuf\Internal\RepeatedField $items * A list of SslCertificate resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of SslCertificate resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.SslCertificate items = 100526016; - * @param \Google\Cloud\Compute\V1\SslCertificate[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SslCertificate>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/SslCertificateManagedSslCertificate.php b/Compute/src/V1/SslCertificateManagedSslCertificate.php index 1c2d919e770f..0b2102fb782d 100644 --- a/Compute/src/V1/SslCertificateManagedSslCertificate.php +++ b/Compute/src/V1/SslCertificateManagedSslCertificate.php @@ -43,7 +43,7 @@ class SslCertificateManagedSslCertificate extends \Google\Protobuf\Internal\Mess * * @type array|\Google\Protobuf\Internal\MapField $domain_status * [Output only] Detailed statuses of the domains specified for managed certificate resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $domains + * @type array|\Google\Protobuf\Internal\RepeatedField $domains * The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](https://cloud.google.com/load-balancing/docs/quotas#ssl_certificates). * @type string $status * [Output only] Status of the managed certificate resource. @@ -96,7 +96,7 @@ public function getDomains() * The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](https://cloud.google.com/load-balancing/docs/quotas#ssl_certificates). * * Generated from protobuf field repeated string domains = 226935855; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDomains($var) diff --git a/Compute/src/V1/SslCertificatesScopedList.php b/Compute/src/V1/SslCertificatesScopedList.php index d2ecd04e227b..48fb56f56144 100644 --- a/Compute/src/V1/SslCertificatesScopedList.php +++ b/Compute/src/V1/SslCertificatesScopedList.php @@ -33,7 +33,7 @@ class SslCertificatesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\SslCertificate[]|\Google\Protobuf\Internal\RepeatedField $ssl_certificates + * @type array<\Google\Cloud\Compute\V1\SslCertificate>|\Google\Protobuf\Internal\RepeatedField $ssl_certificates * List of SslCertificates contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of backend services when the list is empty. @@ -59,7 +59,7 @@ public function getSslCertificates() * List of SslCertificates contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.SslCertificate ssl_certificates = 366006543; - * @param \Google\Cloud\Compute\V1\SslCertificate[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SslCertificate>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSslCertificates($var) diff --git a/Compute/src/V1/SslPoliciesList.php b/Compute/src/V1/SslPoliciesList.php index 1fd094fd1513..f08a51bc41dd 100644 --- a/Compute/src/V1/SslPoliciesList.php +++ b/Compute/src/V1/SslPoliciesList.php @@ -59,7 +59,7 @@ class SslPoliciesList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\SslPolicy[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\SslPolicy>|\Google\Protobuf\Internal\RepeatedField $items * A list of SslPolicy resources. * @type string $kind * [Output Only] Type of the resource. Always compute#sslPoliciesList for lists of sslPolicies. @@ -127,7 +127,7 @@ public function getItems() * A list of SslPolicy resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.SslPolicy items = 100526016; - * @param \Google\Cloud\Compute\V1\SslPolicy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SslPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/SslPoliciesListAvailableFeaturesResponse.php b/Compute/src/V1/SslPoliciesListAvailableFeaturesResponse.php index 35a43adf24a5..c7ec42b186fc 100644 --- a/Compute/src/V1/SslPoliciesListAvailableFeaturesResponse.php +++ b/Compute/src/V1/SslPoliciesListAvailableFeaturesResponse.php @@ -25,7 +25,7 @@ class SslPoliciesListAvailableFeaturesResponse extends \Google\Protobuf\Internal * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $features + * @type array|\Google\Protobuf\Internal\RepeatedField $features * } */ public function __construct($data = NULL) { @@ -44,7 +44,7 @@ public function getFeatures() /** * Generated from protobuf field repeated string features = 246211645; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFeatures($var) diff --git a/Compute/src/V1/SslPolicy.php b/Compute/src/V1/SslPolicy.php index ec2be3ff09f2..ba4bb9bd821a 100644 --- a/Compute/src/V1/SslPolicy.php +++ b/Compute/src/V1/SslPolicy.php @@ -98,11 +98,11 @@ class SslPolicy extends \Google\Protobuf\Internal\Message * * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $custom_features + * @type array|\Google\Protobuf\Internal\RepeatedField $custom_features * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. * @type string $description * An optional description of this resource. Provide this property when you create the resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $enabled_features + * @type array|\Google\Protobuf\Internal\RepeatedField $enabled_features * [Output Only] The list of features enabled in the SSL policy. * @type string $fingerprint * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a SslPolicy. An up-to-date fingerprint must be provided in order to update the SslPolicy, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an SslPolicy. @@ -120,7 +120,7 @@ class SslPolicy extends \Google\Protobuf\Internal\Message * Check the Profile enum for the list of possible values. * @type string $self_link * [Output Only] Server-defined URL for the resource. - * @type \Google\Cloud\Compute\V1\Warnings[]|\Google\Protobuf\Internal\RepeatedField $warnings + * @type array<\Google\Cloud\Compute\V1\Warnings>|\Google\Protobuf\Internal\RepeatedField $warnings * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. * } */ @@ -180,7 +180,7 @@ public function getCustomFeatures() * A list of features enabled when the selected profile is CUSTOM. The method returns the set of features that can be specified in this list. This field must be empty if the profile is not CUSTOM. * * Generated from protobuf field repeated string custom_features = 34789707; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCustomFeatures($var) @@ -242,7 +242,7 @@ public function getEnabledFeatures() * [Output Only] The list of features enabled in the SSL policy. * * Generated from protobuf field repeated string enabled_features = 469017467; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEnabledFeatures($var) @@ -524,7 +524,7 @@ public function getWarnings() * [Output Only] If potential misconfigurations are detected for this SSL policy, this field will be populated with warning messages. * * Generated from protobuf field repeated .google.cloud.compute.v1.Warnings warnings = 498091095; - * @param \Google\Cloud\Compute\V1\Warnings[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Warnings>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setWarnings($var) diff --git a/Compute/src/V1/Subnetwork.php b/Compute/src/V1/Subnetwork.php index d87314f2a5b5..4d8fd5736436 100644 --- a/Compute/src/V1/Subnetwork.php +++ b/Compute/src/V1/Subnetwork.php @@ -216,7 +216,7 @@ class Subnetwork extends \Google\Protobuf\Internal\Message * @type string $role * The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. * Check the Role enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\SubnetworkSecondaryRange[]|\Google\Protobuf\Internal\RepeatedField $secondary_ip_ranges + * @type array<\Google\Cloud\Compute\V1\SubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $secondary_ip_ranges * An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request. * @type string $self_link * [Output Only] Server-defined URL for the resource. @@ -976,7 +976,7 @@ public function getSecondaryIpRanges() * An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. This field can be updated with a patch request. * * Generated from protobuf field repeated .google.cloud.compute.v1.SubnetworkSecondaryRange secondary_ip_ranges = 136658915; - * @param \Google\Cloud\Compute\V1\SubnetworkSecondaryRange[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\SubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSecondaryIpRanges($var) diff --git a/Compute/src/V1/Subnetwork/Purpose.php b/Compute/src/V1/Subnetwork/Purpose.php index 7fbf1c1064e3..47a8c82636c5 100644 --- a/Compute/src/V1/Subnetwork/Purpose.php +++ b/Compute/src/V1/Subnetwork/Purpose.php @@ -53,7 +53,7 @@ class Purpose private static $valueToName = [ self::UNDEFINED_PURPOSE => 'UNDEFINED_PURPOSE', self::INTERNAL_HTTPS_LOAD_BALANCER => 'INTERNAL_HTTPS_LOAD_BALANCER', - self::PBPRIVATE => 'PBPRIVATE', + self::PBPRIVATE => 'PRIVATE', self::PRIVATE_RFC_1918 => 'PRIVATE_RFC_1918', self::PRIVATE_SERVICE_CONNECT => 'PRIVATE_SERVICE_CONNECT', self::REGIONAL_MANAGED_PROXY => 'REGIONAL_MANAGED_PROXY', @@ -73,8 +73,12 @@ public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); } return constant($const); } diff --git a/Compute/src/V1/SubnetworkAggregatedList.php b/Compute/src/V1/SubnetworkAggregatedList.php index 7a058cf80301..474592f7e8c9 100644 --- a/Compute/src/V1/SubnetworkAggregatedList.php +++ b/Compute/src/V1/SubnetworkAggregatedList.php @@ -73,7 +73,7 @@ class SubnetworkAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/SubnetworkList.php b/Compute/src/V1/SubnetworkList.php index 11a92430d6c5..7d056f8d2bb9 100644 --- a/Compute/src/V1/SubnetworkList.php +++ b/Compute/src/V1/SubnetworkList.php @@ -60,7 +60,7 @@ class SubnetworkList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Subnetwork[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Subnetwork>|\Google\Protobuf\Internal\RepeatedField $items * A list of Subnetwork resources. * @type string $kind * [Output Only] Type of resource. Always compute#subnetworkList for lists of subnetworks. @@ -128,7 +128,7 @@ public function getItems() * A list of Subnetwork resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Subnetwork items = 100526016; - * @param \Google\Cloud\Compute\V1\Subnetwork[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Subnetwork>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/SubnetworkLogConfig.php b/Compute/src/V1/SubnetworkLogConfig.php index 9c8dcd59851b..c5b3655e625b 100644 --- a/Compute/src/V1/SubnetworkLogConfig.php +++ b/Compute/src/V1/SubnetworkLogConfig.php @@ -72,7 +72,7 @@ class SubnetworkLogConfig extends \Google\Protobuf\Internal\Message * @type string $metadata * Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA. * Check the Metadata enum for the list of possible values. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $metadata_fields + * @type array|\Google\Protobuf\Internal\RepeatedField $metadata_fields * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA. * } */ @@ -280,7 +280,7 @@ public function getMetadataFields() * Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA. * * Generated from protobuf field repeated string metadata_fields = 378461641; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMetadataFields($var) diff --git a/Compute/src/V1/SubnetworksScopedList.php b/Compute/src/V1/SubnetworksScopedList.php index 6d0db0e48406..10cc5e591b0f 100644 --- a/Compute/src/V1/SubnetworksScopedList.php +++ b/Compute/src/V1/SubnetworksScopedList.php @@ -33,7 +33,7 @@ class SubnetworksScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Subnetwork[]|\Google\Protobuf\Internal\RepeatedField $subnetworks + * @type array<\Google\Cloud\Compute\V1\Subnetwork>|\Google\Protobuf\Internal\RepeatedField $subnetworks * A list of subnetworks contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * An informational warning that appears when the list of addresses is empty. @@ -59,7 +59,7 @@ public function getSubnetworks() * A list of subnetworks contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.Subnetwork subnetworks = 415853125; - * @param \Google\Cloud\Compute\V1\Subnetwork[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Subnetwork>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSubnetworks($var) diff --git a/Compute/src/V1/Tags.php b/Compute/src/V1/Tags.php index 60ca50168f5d..2a1bdabba017 100644 --- a/Compute/src/V1/Tags.php +++ b/Compute/src/V1/Tags.php @@ -36,7 +36,7 @@ class Tags extends \Google\Protobuf\Internal\Message * * @type string $fingerprint * Specifies a fingerprint for this request, which is essentially a hash of the tags' contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update tags. You must always provide an up-to-date fingerprint hash in order to update or change tags. To see the latest fingerprint, make get() request to the instance. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array|\Google\Protobuf\Internal\RepeatedField $items * An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. * } */ @@ -96,7 +96,7 @@ public function getItems() * An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035. * * Generated from protobuf field repeated string items = 100526016; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/TargetGrpcProxyList.php b/Compute/src/V1/TargetGrpcProxyList.php index ebe1a059599f..43ee54da8ae3 100644 --- a/Compute/src/V1/TargetGrpcProxyList.php +++ b/Compute/src/V1/TargetGrpcProxyList.php @@ -59,7 +59,7 @@ class TargetGrpcProxyList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\TargetGrpcProxy[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\TargetGrpcProxy>|\Google\Protobuf\Internal\RepeatedField $items * A list of TargetGrpcProxy resources. * @type string $kind * [Output Only] Type of the resource. Always compute#targetGrpcProxy for target grpc proxies. @@ -127,7 +127,7 @@ public function getItems() * A list of TargetGrpcProxy resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetGrpcProxy items = 100526016; - * @param \Google\Cloud\Compute\V1\TargetGrpcProxy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetGrpcProxy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/TargetHttpProxiesScopedList.php b/Compute/src/V1/TargetHttpProxiesScopedList.php index 8b0aa89dc263..69a1605a3275 100644 --- a/Compute/src/V1/TargetHttpProxiesScopedList.php +++ b/Compute/src/V1/TargetHttpProxiesScopedList.php @@ -33,7 +33,7 @@ class TargetHttpProxiesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\TargetHttpProxy[]|\Google\Protobuf\Internal\RepeatedField $target_http_proxies + * @type array<\Google\Cloud\Compute\V1\TargetHttpProxy>|\Google\Protobuf\Internal\RepeatedField $target_http_proxies * A list of TargetHttpProxies contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of backend services when the list is empty. @@ -59,7 +59,7 @@ public function getTargetHttpProxies() * A list of TargetHttpProxies contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetHttpProxy target_http_proxies = 162147011; - * @param \Google\Cloud\Compute\V1\TargetHttpProxy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetHttpProxy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetHttpProxies($var) diff --git a/Compute/src/V1/TargetHttpProxyAggregatedList.php b/Compute/src/V1/TargetHttpProxyAggregatedList.php index cbc2a5ed84a5..d3622adbc6d9 100644 --- a/Compute/src/V1/TargetHttpProxyAggregatedList.php +++ b/Compute/src/V1/TargetHttpProxyAggregatedList.php @@ -67,7 +67,7 @@ class TargetHttpProxyAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * } */ @@ -261,7 +261,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/TargetHttpProxyList.php b/Compute/src/V1/TargetHttpProxyList.php index 735afb405f9d..468773053dfc 100644 --- a/Compute/src/V1/TargetHttpProxyList.php +++ b/Compute/src/V1/TargetHttpProxyList.php @@ -60,7 +60,7 @@ class TargetHttpProxyList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\TargetHttpProxy[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\TargetHttpProxy>|\Google\Protobuf\Internal\RepeatedField $items * A list of TargetHttpProxy resources. * @type string $kind * Type of resource. Always compute#targetHttpProxyList for lists of target HTTP proxies. @@ -128,7 +128,7 @@ public function getItems() * A list of TargetHttpProxy resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetHttpProxy items = 100526016; - * @param \Google\Cloud\Compute\V1\TargetHttpProxy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetHttpProxy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/TargetHttpsProxiesScopedList.php b/Compute/src/V1/TargetHttpsProxiesScopedList.php index aa937ff02f0b..0b6a7cb8fc05 100644 --- a/Compute/src/V1/TargetHttpsProxiesScopedList.php +++ b/Compute/src/V1/TargetHttpsProxiesScopedList.php @@ -33,7 +33,7 @@ class TargetHttpsProxiesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\TargetHttpsProxy[]|\Google\Protobuf\Internal\RepeatedField $target_https_proxies + * @type array<\Google\Cloud\Compute\V1\TargetHttpsProxy>|\Google\Protobuf\Internal\RepeatedField $target_https_proxies * A list of TargetHttpsProxies contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of backend services when the list is empty. @@ -59,7 +59,7 @@ public function getTargetHttpsProxies() * A list of TargetHttpsProxies contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetHttpsProxy target_https_proxies = 366607882; - * @param \Google\Cloud\Compute\V1\TargetHttpsProxy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetHttpsProxy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetHttpsProxies($var) diff --git a/Compute/src/V1/TargetHttpsProxiesSetSslCertificatesRequest.php b/Compute/src/V1/TargetHttpsProxiesSetSslCertificatesRequest.php index 0c4610526489..dde534610011 100644 --- a/Compute/src/V1/TargetHttpsProxiesSetSslCertificatesRequest.php +++ b/Compute/src/V1/TargetHttpsProxiesSetSslCertificatesRequest.php @@ -27,7 +27,7 @@ class TargetHttpsProxiesSetSslCertificatesRequest extends \Google\Protobuf\Inter * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $ssl_certificates + * @type array|\Google\Protobuf\Internal\RepeatedField $ssl_certificates * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. * } */ @@ -51,7 +51,7 @@ public function getSslCertificates() * New set of SslCertificate resources to associate with this TargetHttpsProxy resource. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. * * Generated from protobuf field repeated string ssl_certificates = 366006543; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSslCertificates($var) diff --git a/Compute/src/V1/TargetHttpsProxy.php b/Compute/src/V1/TargetHttpsProxy.php index 5304f86b8897..0c802ae2ef4c 100644 --- a/Compute/src/V1/TargetHttpsProxy.php +++ b/Compute/src/V1/TargetHttpsProxy.php @@ -146,7 +146,7 @@ class TargetHttpsProxy extends \Google\Protobuf\Internal\Message * [Output Only] Server-defined URL for the resource. * @type string $server_tls_policy * Optional. A URL referring to a networksecurity.ServerTlsPolicy resource that describes how the proxy should authenticate inbound traffic. serverTlsPolicy only applies to a global TargetHttpsProxy attached to globalForwardingRules with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted. Note: This field currently has no impact. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $ssl_certificates + * @type array|\Google\Protobuf\Internal\RepeatedField $ssl_certificates * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. * @type string $ssl_policy * URL of SslPolicy resource that will be associated with the TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource has no SSL policy configured. @@ -644,7 +644,7 @@ public function getSslCertificates() * URLs to SslCertificate resources that are used to authenticate connections between users and the load balancer. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. * * Generated from protobuf field repeated string ssl_certificates = 366006543; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSslCertificates($var) diff --git a/Compute/src/V1/TargetHttpsProxyAggregatedList.php b/Compute/src/V1/TargetHttpsProxyAggregatedList.php index 0f6b7a286219..1bb32d0cf691 100644 --- a/Compute/src/V1/TargetHttpsProxyAggregatedList.php +++ b/Compute/src/V1/TargetHttpsProxyAggregatedList.php @@ -73,7 +73,7 @@ class TargetHttpsProxyAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/TargetHttpsProxyList.php b/Compute/src/V1/TargetHttpsProxyList.php index cf645da58ea6..f04bdffec719 100644 --- a/Compute/src/V1/TargetHttpsProxyList.php +++ b/Compute/src/V1/TargetHttpsProxyList.php @@ -60,7 +60,7 @@ class TargetHttpsProxyList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\TargetHttpsProxy[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\TargetHttpsProxy>|\Google\Protobuf\Internal\RepeatedField $items * A list of TargetHttpsProxy resources. * @type string $kind * Type of resource. Always compute#targetHttpsProxyList for lists of target HTTPS proxies. @@ -128,7 +128,7 @@ public function getItems() * A list of TargetHttpsProxy resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetHttpsProxy items = 100526016; - * @param \Google\Cloud\Compute\V1\TargetHttpsProxy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetHttpsProxy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/TargetInstance.php b/Compute/src/V1/TargetInstance.php index 9495da4afdb8..3b59b79d0756 100644 --- a/Compute/src/V1/TargetInstance.php +++ b/Compute/src/V1/TargetInstance.php @@ -52,7 +52,7 @@ class TargetInstance extends \Google\Protobuf\Internal\Message */ private $name = null; /** - * NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. + * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. * Check the NatPolicy enum for the list of possible values. * * Generated from protobuf field optional string nat_policy = 509780496; @@ -96,7 +96,7 @@ class TargetInstance extends \Google\Protobuf\Internal\Message * @type string $name * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. * @type string $nat_policy - * NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. + * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. * Check the NatPolicy enum for the list of possible values. * @type string $network * The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. @@ -328,7 +328,7 @@ public function setName($var) } /** - * NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. + * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. * Check the NatPolicy enum for the list of possible values. * * Generated from protobuf field optional string nat_policy = 509780496; @@ -350,7 +350,7 @@ public function clearNatPolicy() } /** - * NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. + * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. * Check the NatPolicy enum for the list of possible values. * * Generated from protobuf field optional string nat_policy = 509780496; diff --git a/Compute/src/V1/TargetInstance/NatPolicy.php b/Compute/src/V1/TargetInstance/NatPolicy.php index 0e949cbf016a..d4d843ae623d 100644 --- a/Compute/src/V1/TargetInstance/NatPolicy.php +++ b/Compute/src/V1/TargetInstance/NatPolicy.php @@ -7,7 +7,7 @@ use UnexpectedValueException; /** - * NAT option controlling how IPs are NAT'ed to the instance. Currently only NO_NAT (default value) is supported. + * Must have a value of NO_NAT. Protocol forwarding delivers packets while preserving the destination IP address of the forwarding rule referencing the target instance. * * Protobuf type google.cloud.compute.v1.TargetInstance.NatPolicy */ diff --git a/Compute/src/V1/TargetInstanceAggregatedList.php b/Compute/src/V1/TargetInstanceAggregatedList.php index 33ff48740bfb..9dee5a0a4f24 100644 --- a/Compute/src/V1/TargetInstanceAggregatedList.php +++ b/Compute/src/V1/TargetInstanceAggregatedList.php @@ -73,7 +73,7 @@ class TargetInstanceAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/TargetInstanceList.php b/Compute/src/V1/TargetInstanceList.php index 08ca332974dc..4f51b73a9a6e 100644 --- a/Compute/src/V1/TargetInstanceList.php +++ b/Compute/src/V1/TargetInstanceList.php @@ -60,7 +60,7 @@ class TargetInstanceList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\TargetInstance[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\TargetInstance>|\Google\Protobuf\Internal\RepeatedField $items * A list of TargetInstance resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of TargetInstance resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetInstance items = 100526016; - * @param \Google\Cloud\Compute\V1\TargetInstance[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetInstance>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/TargetInstancesScopedList.php b/Compute/src/V1/TargetInstancesScopedList.php index 618560fd3cce..9dbd91b57e21 100644 --- a/Compute/src/V1/TargetInstancesScopedList.php +++ b/Compute/src/V1/TargetInstancesScopedList.php @@ -33,7 +33,7 @@ class TargetInstancesScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\TargetInstance[]|\Google\Protobuf\Internal\RepeatedField $target_instances + * @type array<\Google\Cloud\Compute\V1\TargetInstance>|\Google\Protobuf\Internal\RepeatedField $target_instances * A list of target instances contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of addresses when the list is empty. @@ -59,7 +59,7 @@ public function getTargetInstances() * A list of target instances contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetInstance target_instances = 392915280; - * @param \Google\Cloud\Compute\V1\TargetInstance[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetInstance>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetInstances($var) diff --git a/Compute/src/V1/TargetPool.php b/Compute/src/V1/TargetPool.php index 31c7ef51b196..90986f23d790 100644 --- a/Compute/src/V1/TargetPool.php +++ b/Compute/src/V1/TargetPool.php @@ -103,11 +103,11 @@ class TargetPool extends \Google\Protobuf\Internal\Message * An optional description of this resource. Provide this property when you create the resource. * @type float $failover_ratio * This field is applicable only when the containing target pool is serving a forwarding rule as the primary pool (i.e., not as a backup pool to some other target pool). The value of the field must be in [0, 1]. If set, backupPool must also be set. They together define the fallback behavior of the primary target pool: if the ratio of the healthy instances in the primary pool is at or below this number, traffic arriving at the load-balanced IP will be directed to the backup pool. In case where failoverRatio is not set or all the instances in the backup pool are unhealthy, the traffic will be directed back to the primary pool in the "force" mode, where traffic will be spread to the healthy instances with the best effort, or to all instances when no instance is healthy. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $health_checks + * @type array|\Google\Protobuf\Internal\RepeatedField $health_checks * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified. * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array|\Google\Protobuf\Internal\RepeatedField $instances * A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool. * @type string $kind * [Output Only] Type of the resource. Always compute#targetPool for target pools. @@ -286,7 +286,7 @@ public function getHealthChecks() * The URL of the HttpHealthCheck resource. A member instance in this pool is considered healthy if and only if the health checks pass. Only legacy HttpHealthChecks are supported. Only one health check may be specified. * * Generated from protobuf field repeated string health_checks = 448370606; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHealthChecks($var) @@ -348,7 +348,7 @@ public function getInstances() * A list of resource URLs to the virtual machine instances serving this pool. They must live in zones contained in the same region as this pool. * * Generated from protobuf field repeated string instances = 29097598; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/TargetPoolAggregatedList.php b/Compute/src/V1/TargetPoolAggregatedList.php index 17ca50132e76..38c5a2d6976e 100644 --- a/Compute/src/V1/TargetPoolAggregatedList.php +++ b/Compute/src/V1/TargetPoolAggregatedList.php @@ -73,7 +73,7 @@ class TargetPoolAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/TargetPoolInstanceHealth.php b/Compute/src/V1/TargetPoolInstanceHealth.php index 0bd8280cf147..9c02d242eb8b 100644 --- a/Compute/src/V1/TargetPoolInstanceHealth.php +++ b/Compute/src/V1/TargetPoolInstanceHealth.php @@ -31,7 +31,7 @@ class TargetPoolInstanceHealth extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\HealthStatus[]|\Google\Protobuf\Internal\RepeatedField $health_status + * @type array<\Google\Cloud\Compute\V1\HealthStatus>|\Google\Protobuf\Internal\RepeatedField $health_status * @type string $kind * [Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance. * } @@ -52,7 +52,7 @@ public function getHealthStatus() /** * Generated from protobuf field repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845; - * @param \Google\Cloud\Compute\V1\HealthStatus[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HealthStatus>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHealthStatus($var) diff --git a/Compute/src/V1/TargetPoolList.php b/Compute/src/V1/TargetPoolList.php index 73ef97339869..a626995128cf 100644 --- a/Compute/src/V1/TargetPoolList.php +++ b/Compute/src/V1/TargetPoolList.php @@ -60,7 +60,7 @@ class TargetPoolList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\TargetPool[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\TargetPool>|\Google\Protobuf\Internal\RepeatedField $items * A list of TargetPool resources. * @type string $kind * [Output Only] Type of resource. Always compute#targetPoolList for lists of target pools. @@ -128,7 +128,7 @@ public function getItems() * A list of TargetPool resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetPool items = 100526016; - * @param \Google\Cloud\Compute\V1\TargetPool[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetPool>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/TargetPoolsAddHealthCheckRequest.php b/Compute/src/V1/TargetPoolsAddHealthCheckRequest.php index 9ab809e33932..d7339b1e8f96 100644 --- a/Compute/src/V1/TargetPoolsAddHealthCheckRequest.php +++ b/Compute/src/V1/TargetPoolsAddHealthCheckRequest.php @@ -27,7 +27,7 @@ class TargetPoolsAddHealthCheckRequest extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\HealthCheckReference[]|\Google\Protobuf\Internal\RepeatedField $health_checks + * @type array<\Google\Cloud\Compute\V1\HealthCheckReference>|\Google\Protobuf\Internal\RepeatedField $health_checks * The HttpHealthCheck to add to the target pool. * } */ @@ -51,7 +51,7 @@ public function getHealthChecks() * The HttpHealthCheck to add to the target pool. * * Generated from protobuf field repeated .google.cloud.compute.v1.HealthCheckReference health_checks = 448370606; - * @param \Google\Cloud\Compute\V1\HealthCheckReference[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HealthCheckReference>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHealthChecks($var) diff --git a/Compute/src/V1/TargetPoolsAddInstanceRequest.php b/Compute/src/V1/TargetPoolsAddInstanceRequest.php index b48b4b66e2ca..4835aa9b40e8 100644 --- a/Compute/src/V1/TargetPoolsAddInstanceRequest.php +++ b/Compute/src/V1/TargetPoolsAddInstanceRequest.php @@ -27,7 +27,7 @@ class TargetPoolsAddInstanceRequest extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InstanceReference[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array<\Google\Cloud\Compute\V1\InstanceReference>|\Google\Protobuf\Internal\RepeatedField $instances * A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name * } */ @@ -51,7 +51,7 @@ public function getInstances() * A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs: - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone /instances/instance-name - projects/project-id/zones/zone/instances/instance-name - zones/zone/instances/instance-name * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceReference instances = 29097598; - * @param \Google\Cloud\Compute\V1\InstanceReference[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceReference>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/TargetPoolsRemoveHealthCheckRequest.php b/Compute/src/V1/TargetPoolsRemoveHealthCheckRequest.php index 7acd436dec7e..e6c120a5c3e3 100644 --- a/Compute/src/V1/TargetPoolsRemoveHealthCheckRequest.php +++ b/Compute/src/V1/TargetPoolsRemoveHealthCheckRequest.php @@ -27,7 +27,7 @@ class TargetPoolsRemoveHealthCheckRequest extends \Google\Protobuf\Internal\Mess * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\HealthCheckReference[]|\Google\Protobuf\Internal\RepeatedField $health_checks + * @type array<\Google\Cloud\Compute\V1\HealthCheckReference>|\Google\Protobuf\Internal\RepeatedField $health_checks * Health check URL to be removed. This can be a full or valid partial URL. For example, the following are valid URLs: - https://www.googleapis.com/compute/beta/projects/project /global/httpHealthChecks/health-check - projects/project/global/httpHealthChecks/health-check - global/httpHealthChecks/health-check * } */ @@ -51,7 +51,7 @@ public function getHealthChecks() * Health check URL to be removed. This can be a full or valid partial URL. For example, the following are valid URLs: - https://www.googleapis.com/compute/beta/projects/project /global/httpHealthChecks/health-check - projects/project/global/httpHealthChecks/health-check - global/httpHealthChecks/health-check * * Generated from protobuf field repeated .google.cloud.compute.v1.HealthCheckReference health_checks = 448370606; - * @param \Google\Cloud\Compute\V1\HealthCheckReference[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HealthCheckReference>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHealthChecks($var) diff --git a/Compute/src/V1/TargetPoolsRemoveInstanceRequest.php b/Compute/src/V1/TargetPoolsRemoveInstanceRequest.php index 2183be18211f..a34aee94a0ff 100644 --- a/Compute/src/V1/TargetPoolsRemoveInstanceRequest.php +++ b/Compute/src/V1/TargetPoolsRemoveInstanceRequest.php @@ -27,7 +27,7 @@ class TargetPoolsRemoveInstanceRequest extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\InstanceReference[]|\Google\Protobuf\Internal\RepeatedField $instances + * @type array<\Google\Cloud\Compute\V1\InstanceReference>|\Google\Protobuf\Internal\RepeatedField $instances * URLs of the instances to be removed from target pool. * } */ @@ -51,7 +51,7 @@ public function getInstances() * URLs of the instances to be removed from target pool. * * Generated from protobuf field repeated .google.cloud.compute.v1.InstanceReference instances = 29097598; - * @param \Google\Cloud\Compute\V1\InstanceReference[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\InstanceReference>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInstances($var) diff --git a/Compute/src/V1/TargetPoolsScopedList.php b/Compute/src/V1/TargetPoolsScopedList.php index 0b10cc80af8f..030c91540210 100644 --- a/Compute/src/V1/TargetPoolsScopedList.php +++ b/Compute/src/V1/TargetPoolsScopedList.php @@ -33,7 +33,7 @@ class TargetPoolsScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\TargetPool[]|\Google\Protobuf\Internal\RepeatedField $target_pools + * @type array<\Google\Cloud\Compute\V1\TargetPool>|\Google\Protobuf\Internal\RepeatedField $target_pools * A list of target pools contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of addresses when the list is empty. @@ -59,7 +59,7 @@ public function getTargetPools() * A list of target pools contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetPool target_pools = 336072617; - * @param \Google\Cloud\Compute\V1\TargetPool[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetPool>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetPools($var) diff --git a/Compute/src/V1/TargetSslProxiesSetSslCertificatesRequest.php b/Compute/src/V1/TargetSslProxiesSetSslCertificatesRequest.php index d5d1c95a9521..7586dd6479fe 100644 --- a/Compute/src/V1/TargetSslProxiesSetSslCertificatesRequest.php +++ b/Compute/src/V1/TargetSslProxiesSetSslCertificatesRequest.php @@ -27,7 +27,7 @@ class TargetSslProxiesSetSslCertificatesRequest extends \Google\Protobuf\Interna * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $ssl_certificates + * @type array|\Google\Protobuf\Internal\RepeatedField $ssl_certificates * New set of URLs to SslCertificate resources to associate with this TargetSslProxy. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. * } */ @@ -51,7 +51,7 @@ public function getSslCertificates() * New set of URLs to SslCertificate resources to associate with this TargetSslProxy. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. * * Generated from protobuf field repeated string ssl_certificates = 366006543; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSslCertificates($var) diff --git a/Compute/src/V1/TargetSslProxy.php b/Compute/src/V1/TargetSslProxy.php index e79b389f357e..e4230a723326 100644 --- a/Compute/src/V1/TargetSslProxy.php +++ b/Compute/src/V1/TargetSslProxy.php @@ -108,7 +108,7 @@ class TargetSslProxy extends \Google\Protobuf\Internal\Message * [Output Only] Server-defined URL for the resource. * @type string $service * URL to the BackendService resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $ssl_certificates + * @type array|\Google\Protobuf\Internal\RepeatedField $ssl_certificates * URLs to SslCertificate resources that are used to authenticate connections to Backends. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. * @type string $ssl_policy * URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, the TargetSslProxy resource will not have any SSL policy configured. @@ -460,7 +460,7 @@ public function getSslCertificates() * URLs to SslCertificate resources that are used to authenticate connections to Backends. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED. * * Generated from protobuf field repeated string ssl_certificates = 366006543; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSslCertificates($var) diff --git a/Compute/src/V1/TargetSslProxyList.php b/Compute/src/V1/TargetSslProxyList.php index 6dbc0d45340f..415668fe0ea4 100644 --- a/Compute/src/V1/TargetSslProxyList.php +++ b/Compute/src/V1/TargetSslProxyList.php @@ -60,7 +60,7 @@ class TargetSslProxyList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\TargetSslProxy[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\TargetSslProxy>|\Google\Protobuf\Internal\RepeatedField $items * A list of TargetSslProxy resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of TargetSslProxy resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetSslProxy items = 100526016; - * @param \Google\Cloud\Compute\V1\TargetSslProxy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetSslProxy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/TargetTcpProxyList.php b/Compute/src/V1/TargetTcpProxyList.php index 74a4d3098c16..1ea01e89d3c1 100644 --- a/Compute/src/V1/TargetTcpProxyList.php +++ b/Compute/src/V1/TargetTcpProxyList.php @@ -60,7 +60,7 @@ class TargetTcpProxyList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\TargetTcpProxy[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\TargetTcpProxy>|\Google\Protobuf\Internal\RepeatedField $items * A list of TargetTcpProxy resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of TargetTcpProxy resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetTcpProxy items = 100526016; - * @param \Google\Cloud\Compute\V1\TargetTcpProxy[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetTcpProxy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/TargetVpnGateway.php b/Compute/src/V1/TargetVpnGateway.php index 4df3b3672307..1b250147dfa1 100644 --- a/Compute/src/V1/TargetVpnGateway.php +++ b/Compute/src/V1/TargetVpnGateway.php @@ -93,7 +93,7 @@ class TargetVpnGateway extends \Google\Protobuf\Internal\Message * [Output Only] Creation timestamp in RFC3339 text format. * @type string $description * An optional description of this resource. Provide this property when you create the resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $forwarding_rules + * @type array|\Google\Protobuf\Internal\RepeatedField $forwarding_rules * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created using compute.forwardingRules.insert and associated with a VPN gateway. * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. @@ -110,7 +110,7 @@ class TargetVpnGateway extends \Google\Protobuf\Internal\Message * @type string $status * [Output Only] The status of the VPN gateway, which can be one of the following: CREATING, READY, FAILED, or DELETING. * Check the Status enum for the list of possible values. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $tunnels + * @type array|\Google\Protobuf\Internal\RepeatedField $tunnels * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the compute.vpntunnels.insert method and associated with a VPN gateway. * } */ @@ -206,7 +206,7 @@ public function getForwardingRules() * [Output Only] A list of URLs to the ForwardingRule resources. ForwardingRules are created using compute.forwardingRules.insert and associated with a VPN gateway. * * Generated from protobuf field repeated string forwarding_rules = 315821365; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setForwardingRules($var) @@ -486,7 +486,7 @@ public function getTunnels() * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created using the compute.vpntunnels.insert method and associated with a VPN gateway. * * Generated from protobuf field repeated string tunnels = 104561931; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTunnels($var) diff --git a/Compute/src/V1/TargetVpnGatewayAggregatedList.php b/Compute/src/V1/TargetVpnGatewayAggregatedList.php index 8ee894657474..6ee8f2a61516 100644 --- a/Compute/src/V1/TargetVpnGatewayAggregatedList.php +++ b/Compute/src/V1/TargetVpnGatewayAggregatedList.php @@ -73,7 +73,7 @@ class TargetVpnGatewayAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/TargetVpnGatewayList.php b/Compute/src/V1/TargetVpnGatewayList.php index 6d2518370bb6..da9d4d9c961a 100644 --- a/Compute/src/V1/TargetVpnGatewayList.php +++ b/Compute/src/V1/TargetVpnGatewayList.php @@ -60,7 +60,7 @@ class TargetVpnGatewayList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\TargetVpnGateway[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\TargetVpnGateway>|\Google\Protobuf\Internal\RepeatedField $items * A list of TargetVpnGateway resources. * @type string $kind * [Output Only] Type of resource. Always compute#targetVpnGateway for target VPN gateways. @@ -128,7 +128,7 @@ public function getItems() * A list of TargetVpnGateway resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetVpnGateway items = 100526016; - * @param \Google\Cloud\Compute\V1\TargetVpnGateway[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetVpnGateway>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/TargetVpnGatewaysScopedList.php b/Compute/src/V1/TargetVpnGatewaysScopedList.php index 7d1b1b5ffa9c..7078be5df5f8 100644 --- a/Compute/src/V1/TargetVpnGatewaysScopedList.php +++ b/Compute/src/V1/TargetVpnGatewaysScopedList.php @@ -33,7 +33,7 @@ class TargetVpnGatewaysScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\TargetVpnGateway[]|\Google\Protobuf\Internal\RepeatedField $target_vpn_gateways + * @type array<\Google\Cloud\Compute\V1\TargetVpnGateway>|\Google\Protobuf\Internal\RepeatedField $target_vpn_gateways * [Output Only] A list of target VPN gateways contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning which replaces the list of addresses when the list is empty. @@ -59,7 +59,7 @@ public function getTargetVpnGateways() * [Output Only] A list of target VPN gateways contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.TargetVpnGateway target_vpn_gateways = 401770888; - * @param \Google\Cloud\Compute\V1\TargetVpnGateway[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TargetVpnGateway>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTargetVpnGateways($var) diff --git a/Compute/src/V1/TestFailure.php b/Compute/src/V1/TestFailure.php index 00c76798cccf..acda691f4aea 100644 --- a/Compute/src/V1/TestFailure.php +++ b/Compute/src/V1/TestFailure.php @@ -87,7 +87,7 @@ class TestFailure extends \Google\Protobuf\Internal\Message * Expected HTTP status code for rule with `urlRedirect` calculated by load balancer * @type string $expected_service * Expected BackendService or BackendBucket resource the given URL should be mapped to. - * @type \Google\Cloud\Compute\V1\UrlMapTestHeader[]|\Google\Protobuf\Internal\RepeatedField $headers + * @type array<\Google\Cloud\Compute\V1\UrlMapTestHeader>|\Google\Protobuf\Internal\RepeatedField $headers * HTTP headers of the request. * @type string $host * Host portion of the URL. @@ -331,7 +331,7 @@ public function getHeaders() * HTTP headers of the request. * * Generated from protobuf field repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998; - * @param \Google\Cloud\Compute\V1\UrlMapTestHeader[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\UrlMapTestHeader>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHeaders($var) diff --git a/Compute/src/V1/TestPermissionsRequest.php b/Compute/src/V1/TestPermissionsRequest.php index def2537886e4..34b53d9f6d43 100644 --- a/Compute/src/V1/TestPermissionsRequest.php +++ b/Compute/src/V1/TestPermissionsRequest.php @@ -27,7 +27,7 @@ class TestPermissionsRequest extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $permissions + * @type array|\Google\Protobuf\Internal\RepeatedField $permissions * The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. * } */ @@ -51,7 +51,7 @@ public function getPermissions() * The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. * * Generated from protobuf field repeated string permissions = 59962500; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPermissions($var) diff --git a/Compute/src/V1/TestPermissionsResponse.php b/Compute/src/V1/TestPermissionsResponse.php index a0c0982bbbef..0a2f4a8947a5 100644 --- a/Compute/src/V1/TestPermissionsResponse.php +++ b/Compute/src/V1/TestPermissionsResponse.php @@ -27,7 +27,7 @@ class TestPermissionsResponse extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $permissions + * @type array|\Google\Protobuf\Internal\RepeatedField $permissions * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. * } */ @@ -51,7 +51,7 @@ public function getPermissions() * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. * * Generated from protobuf field repeated string permissions = 59962500; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPermissions($var) diff --git a/Compute/src/V1/UrlMap.php b/Compute/src/V1/UrlMap.php index 1089bf342fa9..2702436661d9 100644 --- a/Compute/src/V1/UrlMap.php +++ b/Compute/src/V1/UrlMap.php @@ -126,7 +126,7 @@ class UrlMap extends \Google\Protobuf\Internal\Message * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap. * @type \Google\Cloud\Compute\V1\HttpHeaderAction $header_action * Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. - * @type \Google\Cloud\Compute\V1\HostRule[]|\Google\Protobuf\Internal\RepeatedField $host_rules + * @type array<\Google\Cloud\Compute\V1\HostRule>|\Google\Protobuf\Internal\RepeatedField $host_rules * The list of host rules to use against the URL. * @type int|string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. @@ -134,13 +134,13 @@ class UrlMap extends \Google\Protobuf\Internal\Message * [Output Only] Type of the resource. Always compute#urlMaps for url maps. * @type string $name * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - * @type \Google\Cloud\Compute\V1\PathMatcher[]|\Google\Protobuf\Internal\RepeatedField $path_matchers + * @type array<\Google\Cloud\Compute\V1\PathMatcher>|\Google\Protobuf\Internal\RepeatedField $path_matchers * The list of named PathMatchers to use against the URL. * @type string $region * [Output Only] URL of the region where the regional URL map resides. This field is not applicable to global URL maps. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. * @type string $self_link * [Output Only] Server-defined URL for the resource. - * @type \Google\Cloud\Compute\V1\UrlMapTest[]|\Google\Protobuf\Internal\RepeatedField $tests + * @type array<\Google\Cloud\Compute\V1\UrlMapTest>|\Google\Protobuf\Internal\RepeatedField $tests * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. * } */ @@ -416,7 +416,7 @@ public function getHostRules() * The list of host rules to use against the URL. * * Generated from protobuf field repeated .google.cloud.compute.v1.HostRule host_rules = 311804832; - * @param \Google\Cloud\Compute\V1\HostRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\HostRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHostRules($var) @@ -550,7 +550,7 @@ public function getPathMatchers() * The list of named PathMatchers to use against the URL. * * Generated from protobuf field repeated .google.cloud.compute.v1.PathMatcher path_matchers = 271664219; - * @param \Google\Cloud\Compute\V1\PathMatcher[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\PathMatcher>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPathMatchers($var) @@ -648,7 +648,7 @@ public function getTests() * The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. * * Generated from protobuf field repeated .google.cloud.compute.v1.UrlMapTest tests = 110251553; - * @param \Google\Cloud\Compute\V1\UrlMapTest[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\UrlMapTest>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTests($var) diff --git a/Compute/src/V1/UrlMapList.php b/Compute/src/V1/UrlMapList.php index 27d896562367..53a8aa8adadc 100644 --- a/Compute/src/V1/UrlMapList.php +++ b/Compute/src/V1/UrlMapList.php @@ -60,7 +60,7 @@ class UrlMapList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\UrlMap[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\UrlMap>|\Google\Protobuf\Internal\RepeatedField $items * A list of UrlMap resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of UrlMap resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.UrlMap items = 100526016; - * @param \Google\Cloud\Compute\V1\UrlMap[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\UrlMap>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/UrlMapTest.php b/Compute/src/V1/UrlMapTest.php index aad84462b9df..07046a1e37e6 100644 --- a/Compute/src/V1/UrlMapTest.php +++ b/Compute/src/V1/UrlMapTest.php @@ -70,7 +70,7 @@ class UrlMapTest extends \Google\Protobuf\Internal\Message * The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified. * @type int $expected_redirect_response_code * For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set. - * @type \Google\Cloud\Compute\V1\UrlMapTestHeader[]|\Google\Protobuf\Internal\RepeatedField $headers + * @type array<\Google\Cloud\Compute\V1\UrlMapTestHeader>|\Google\Protobuf\Internal\RepeatedField $headers * HTTP headers for this request. If headers contains a host header, then host must also match the header value. * @type string $host * Host portion of the URL. If headers contains a host header, then host must also match the header value. @@ -208,7 +208,7 @@ public function getHeaders() * HTTP headers for this request. If headers contains a host header, then host must also match the header value. * * Generated from protobuf field repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998; - * @param \Google\Cloud\Compute\V1\UrlMapTestHeader[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\UrlMapTestHeader>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHeaders($var) diff --git a/Compute/src/V1/UrlMapValidationResult.php b/Compute/src/V1/UrlMapValidationResult.php index 5a38ad0b2d94..066ca59d7796 100644 --- a/Compute/src/V1/UrlMapValidationResult.php +++ b/Compute/src/V1/UrlMapValidationResult.php @@ -42,10 +42,10 @@ class UrlMapValidationResult extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $load_errors + * @type array|\Google\Protobuf\Internal\RepeatedField $load_errors * @type bool $load_succeeded * Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons. - * @type \Google\Cloud\Compute\V1\TestFailure[]|\Google\Protobuf\Internal\RepeatedField $test_failures + * @type array<\Google\Cloud\Compute\V1\TestFailure>|\Google\Protobuf\Internal\RepeatedField $test_failures * @type bool $test_passed * If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure. * } @@ -66,7 +66,7 @@ public function getLoadErrors() /** * Generated from protobuf field repeated string load_errors = 310147300; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLoadErrors($var) @@ -124,7 +124,7 @@ public function getTestFailures() /** * Generated from protobuf field repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134; - * @param \Google\Cloud\Compute\V1\TestFailure[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\TestFailure>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTestFailures($var) diff --git a/Compute/src/V1/UrlMapsAggregatedList.php b/Compute/src/V1/UrlMapsAggregatedList.php index dfdf680ac9a1..120e8e4995df 100644 --- a/Compute/src/V1/UrlMapsAggregatedList.php +++ b/Compute/src/V1/UrlMapsAggregatedList.php @@ -73,7 +73,7 @@ class UrlMapsAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/UrlMapsScopedList.php b/Compute/src/V1/UrlMapsScopedList.php index cac1b01958f9..5ea0938350ef 100644 --- a/Compute/src/V1/UrlMapsScopedList.php +++ b/Compute/src/V1/UrlMapsScopedList.php @@ -33,7 +33,7 @@ class UrlMapsScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\UrlMap[]|\Google\Protobuf\Internal\RepeatedField $url_maps + * @type array<\Google\Cloud\Compute\V1\UrlMap>|\Google\Protobuf\Internal\RepeatedField $url_maps * A list of UrlMaps contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of backend services when the list is empty. @@ -59,7 +59,7 @@ public function getUrlMaps() * A list of UrlMaps contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.UrlMap url_maps = 103352167; - * @param \Google\Cloud\Compute\V1\UrlMap[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\UrlMap>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUrlMaps($var) diff --git a/Compute/src/V1/UrlMapsValidateRequest.php b/Compute/src/V1/UrlMapsValidateRequest.php index 057b9c4f57c0..fbb8285e97f9 100644 --- a/Compute/src/V1/UrlMapsValidateRequest.php +++ b/Compute/src/V1/UrlMapsValidateRequest.php @@ -34,7 +34,7 @@ class UrlMapsValidateRequest extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $load_balancing_schemes + * @type array|\Google\Protobuf\Internal\RepeatedField $load_balancing_schemes * Specifies the load balancer type(s) this validation request is for. Use EXTERNAL_MANAGED for HTTP/HTTPS External Global Load Balancer with Advanced Traffic Management. Use EXTERNAL for Classic HTTP/HTTPS External Global Load Balancer. Other load balancer types are not supported. For more information, refer to Choosing a load balancer. If unspecified, the load balancing scheme will be inferred from the backend service resources this URL map references. If that can not be inferred (for example, this URL map only references backend buckets, or this Url map is for rewrites and redirects only and doesn't reference any backends), EXTERNAL will be used as the default type. If specified, the scheme(s) must not conflict with the load balancing scheme of the backend service resources this Url map references. * Check the LoadBalancingSchemes enum for the list of possible values. * @type \Google\Cloud\Compute\V1\UrlMap $resource @@ -63,7 +63,7 @@ public function getLoadBalancingSchemes() * Check the LoadBalancingSchemes enum for the list of possible values. * * Generated from protobuf field repeated string load_balancing_schemes = 6308527; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLoadBalancingSchemes($var) diff --git a/Compute/src/V1/UsableSubnetwork.php b/Compute/src/V1/UsableSubnetwork.php index 601b09cbbcfc..7030e794ed84 100644 --- a/Compute/src/V1/UsableSubnetwork.php +++ b/Compute/src/V1/UsableSubnetwork.php @@ -103,7 +103,7 @@ class UsableSubnetwork extends \Google\Protobuf\Internal\Message * @type string $role * The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. * Check the Role enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\UsableSubnetworkSecondaryRange[]|\Google\Protobuf\Internal\RepeatedField $secondary_ip_ranges + * @type array<\Google\Cloud\Compute\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $secondary_ip_ranges * Secondary IP ranges. * @type string $stack_type * The stack type for the subnet. If set to IPV4_ONLY, new VMs in the subnet are assigned IPv4 addresses only. If set to IPV4_IPV6, new VMs in the subnet can be assigned both IPv4 and IPv6 addresses. If not specified, IPV4_ONLY is used. This field can be both set at resource creation time and updated using patch. @@ -390,7 +390,7 @@ public function getSecondaryIpRanges() * Secondary IP ranges. * * Generated from protobuf field repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915; - * @param \Google\Cloud\Compute\V1\UsableSubnetworkSecondaryRange[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSecondaryIpRanges($var) diff --git a/Compute/src/V1/UsableSubnetwork/Purpose.php b/Compute/src/V1/UsableSubnetwork/Purpose.php index fc69251420b7..f7dc309df30b 100644 --- a/Compute/src/V1/UsableSubnetwork/Purpose.php +++ b/Compute/src/V1/UsableSubnetwork/Purpose.php @@ -53,7 +53,7 @@ class Purpose private static $valueToName = [ self::UNDEFINED_PURPOSE => 'UNDEFINED_PURPOSE', self::INTERNAL_HTTPS_LOAD_BALANCER => 'INTERNAL_HTTPS_LOAD_BALANCER', - self::PBPRIVATE => 'PBPRIVATE', + self::PBPRIVATE => 'PRIVATE', self::PRIVATE_RFC_1918 => 'PRIVATE_RFC_1918', self::PRIVATE_SERVICE_CONNECT => 'PRIVATE_SERVICE_CONNECT', self::REGIONAL_MANAGED_PROXY => 'REGIONAL_MANAGED_PROXY', @@ -73,8 +73,12 @@ public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); } return constant($const); } diff --git a/Compute/src/V1/UsableSubnetworksAggregatedList.php b/Compute/src/V1/UsableSubnetworksAggregatedList.php index 9e3bec07dbbd..c34b073295f0 100644 --- a/Compute/src/V1/UsableSubnetworksAggregatedList.php +++ b/Compute/src/V1/UsableSubnetworksAggregatedList.php @@ -59,7 +59,7 @@ class UsableSubnetworksAggregatedList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] The unique identifier for the resource. This identifier is defined by the server. - * @type \Google\Cloud\Compute\V1\UsableSubnetwork[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $items * [Output] A list of usable subnetwork URLs. * @type string $kind * [Output Only] Type of resource. Always compute#usableSubnetworksAggregatedList for aggregated lists of usable subnetworks. @@ -127,7 +127,7 @@ public function getItems() * [Output] A list of usable subnetwork URLs. * * Generated from protobuf field repeated .google.cloud.compute.v1.UsableSubnetwork items = 100526016; - * @param \Google\Cloud\Compute\V1\UsableSubnetwork[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/VmEndpointNatMappings.php b/Compute/src/V1/VmEndpointNatMappings.php index 0ff19101975a..c7f5db0b6d42 100644 --- a/Compute/src/V1/VmEndpointNatMappings.php +++ b/Compute/src/V1/VmEndpointNatMappings.php @@ -34,7 +34,7 @@ class VmEndpointNatMappings extends \Google\Protobuf\Internal\Message * * @type string $instance_name * Name of the VM instance which the endpoint belongs to - * @type \Google\Cloud\Compute\V1\VmEndpointNatMappingsInterfaceNatMappings[]|\Google\Protobuf\Internal\RepeatedField $interface_nat_mappings + * @type array<\Google\Cloud\Compute\V1\VmEndpointNatMappingsInterfaceNatMappings>|\Google\Protobuf\Internal\RepeatedField $interface_nat_mappings * } */ public function __construct($data = NULL) { @@ -89,7 +89,7 @@ public function getInterfaceNatMappings() /** * Generated from protobuf field repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappings interface_nat_mappings = 256196617; - * @param \Google\Cloud\Compute\V1\VmEndpointNatMappingsInterfaceNatMappings[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\VmEndpointNatMappingsInterfaceNatMappings>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setInterfaceNatMappings($var) diff --git a/Compute/src/V1/VmEndpointNatMappingsInterfaceNatMappings.php b/Compute/src/V1/VmEndpointNatMappingsInterfaceNatMappings.php index bfe1855b2784..0d91383e1198 100644 --- a/Compute/src/V1/VmEndpointNatMappingsInterfaceNatMappings.php +++ b/Compute/src/V1/VmEndpointNatMappingsInterfaceNatMappings.php @@ -39,6 +39,12 @@ class VmEndpointNatMappingsInterfaceNatMappings extends \Google\Protobuf\Interna * Generated from protobuf field optional int32 num_total_nat_ports = 299904384; */ private $num_total_nat_ports = null; + /** + * Information about mappings provided by rules in this NAT. + * + * Generated from protobuf field repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968; + */ + private $rule_mappings; /** * Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24". * @@ -58,14 +64,16 @@ class VmEndpointNatMappingsInterfaceNatMappings extends \Google\Protobuf\Interna * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $drain_nat_ip_port_ranges + * @type array|\Google\Protobuf\Internal\RepeatedField $drain_nat_ip_port_ranges * List of all drain IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $nat_ip_port_ranges + * @type array|\Google\Protobuf\Internal\RepeatedField $nat_ip_port_ranges * A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * @type int $num_total_drain_nat_ports * Total number of drain ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field drain_nat_ip_port_ranges. * @type int $num_total_nat_ports * Total number of ports across all NAT IPs allocated to this interface. It equals to the aggregated port number in the field nat_ip_port_ranges. + * @type array<\Google\Cloud\Compute\V1\VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>|\Google\Protobuf\Internal\RepeatedField $rule_mappings + * Information about mappings provided by rules in this NAT. * @type string $source_alias_ip_range * Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24". * @type string $source_virtual_ip @@ -92,7 +100,7 @@ public function getDrainNatIpPortRanges() * List of all drain IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * * Generated from protobuf field repeated string drain_nat_ip_port_ranges = 395440577; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDrainNatIpPortRanges($var) @@ -118,7 +126,7 @@ public function getNatIpPortRanges() * A list of all IP:port-range mappings assigned to this interface. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. * * Generated from protobuf field repeated string nat_ip_port_ranges = 531830810; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setNatIpPortRanges($var) @@ -201,6 +209,32 @@ public function setNumTotalNatPorts($var) return $this; } + /** + * Information about mappings provided by rules in this NAT. + * + * Generated from protobuf field repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRuleMappings() + { + return $this->rule_mappings; + } + + /** + * Information about mappings provided by rules in this NAT. + * + * Generated from protobuf field repeated .google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings rule_mappings = 486192968; + * @param array<\Google\Cloud\Compute\V1\VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRuleMappings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings::class); + $this->rule_mappings = $arr; + + return $this; + } + /** * Alias IP range for this interface endpoint. It will be a private (RFC 1918) IP range. Examples: "10.33.4.55/32", or "192.168.5.0/24". * diff --git a/Compute/src/V1/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.php b/Compute/src/V1/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.php new file mode 100644 index 000000000000..aa1d26da7772 --- /dev/null +++ b/Compute/src/V1/VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings.php @@ -0,0 +1,233 @@ +google.cloud.compute.v1.VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings + */ +class VmEndpointNatMappingsInterfaceNatMappingsNatRuleMappings extends \Google\Protobuf\Internal\Message +{ + /** + * List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * + * Generated from protobuf field repeated string drain_nat_ip_port_ranges = 395440577; + */ + private $drain_nat_ip_port_ranges; + /** + * A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * + * Generated from protobuf field repeated string nat_ip_port_ranges = 531830810; + */ + private $nat_ip_port_ranges; + /** + * Total number of drain ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. + * + * Generated from protobuf field optional int32 num_total_drain_nat_ports = 335532793; + */ + private $num_total_drain_nat_ports = null; + /** + * Total number of ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field nat_ip_port_ranges. + * + * Generated from protobuf field optional int32 num_total_nat_ports = 299904384; + */ + private $num_total_nat_ports = null; + /** + * Rule number of the NAT Rule. + * + * Generated from protobuf field optional int32 rule_number = 535211500; + */ + private $rule_number = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $drain_nat_ip_port_ranges + * List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * @type array|\Google\Protobuf\Internal\RepeatedField $nat_ip_port_ranges + * A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * @type int $num_total_drain_nat_ports + * Total number of drain ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. + * @type int $num_total_nat_ports + * Total number of ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field nat_ip_port_ranges. + * @type int $rule_number + * Rule number of the NAT Rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce(); + parent::__construct($data); + } + + /** + * List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * + * Generated from protobuf field repeated string drain_nat_ip_port_ranges = 395440577; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDrainNatIpPortRanges() + { + return $this->drain_nat_ip_port_ranges; + } + + /** + * List of all drain IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * + * Generated from protobuf field repeated string drain_nat_ip_port_ranges = 395440577; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDrainNatIpPortRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->drain_nat_ip_port_ranges = $arr; + + return $this; + } + + /** + * A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * + * Generated from protobuf field repeated string nat_ip_port_ranges = 531830810; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getNatIpPortRanges() + { + return $this->nat_ip_port_ranges; + } + + /** + * A list of all IP:port-range mappings assigned to this interface by this rule. These ranges are inclusive, that is, both the first and the last ports can be used for NAT. Example: ["2.2.2.2:12345-12355", "1.1.1.1:2234-2234"]. + * + * Generated from protobuf field repeated string nat_ip_port_ranges = 531830810; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setNatIpPortRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->nat_ip_port_ranges = $arr; + + return $this; + } + + /** + * Total number of drain ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. + * + * Generated from protobuf field optional int32 num_total_drain_nat_ports = 335532793; + * @return int + */ + public function getNumTotalDrainNatPorts() + { + return isset($this->num_total_drain_nat_ports) ? $this->num_total_drain_nat_ports : 0; + } + + public function hasNumTotalDrainNatPorts() + { + return isset($this->num_total_drain_nat_ports); + } + + public function clearNumTotalDrainNatPorts() + { + unset($this->num_total_drain_nat_ports); + } + + /** + * Total number of drain ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field drain_nat_ip_port_ranges. + * + * Generated from protobuf field optional int32 num_total_drain_nat_ports = 335532793; + * @param int $var + * @return $this + */ + public function setNumTotalDrainNatPorts($var) + { + GPBUtil::checkInt32($var); + $this->num_total_drain_nat_ports = $var; + + return $this; + } + + /** + * Total number of ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field nat_ip_port_ranges. + * + * Generated from protobuf field optional int32 num_total_nat_ports = 299904384; + * @return int + */ + public function getNumTotalNatPorts() + { + return isset($this->num_total_nat_ports) ? $this->num_total_nat_ports : 0; + } + + public function hasNumTotalNatPorts() + { + return isset($this->num_total_nat_ports); + } + + public function clearNumTotalNatPorts() + { + unset($this->num_total_nat_ports); + } + + /** + * Total number of ports across all NAT IPs allocated to this interface by this rule. It equals the aggregated port number in the field nat_ip_port_ranges. + * + * Generated from protobuf field optional int32 num_total_nat_ports = 299904384; + * @param int $var + * @return $this + */ + public function setNumTotalNatPorts($var) + { + GPBUtil::checkInt32($var); + $this->num_total_nat_ports = $var; + + return $this; + } + + /** + * Rule number of the NAT Rule. + * + * Generated from protobuf field optional int32 rule_number = 535211500; + * @return int + */ + public function getRuleNumber() + { + return isset($this->rule_number) ? $this->rule_number : 0; + } + + public function hasRuleNumber() + { + return isset($this->rule_number); + } + + public function clearRuleNumber() + { + unset($this->rule_number); + } + + /** + * Rule number of the NAT Rule. + * + * Generated from protobuf field optional int32 rule_number = 535211500; + * @param int $var + * @return $this + */ + public function setRuleNumber($var) + { + GPBUtil::checkInt32($var); + $this->rule_number = $var; + + return $this; + } + +} + diff --git a/Compute/src/V1/VmEndpointNatMappingsList.php b/Compute/src/V1/VmEndpointNatMappingsList.php index 8fd386ef9917..5808c96206da 100644 --- a/Compute/src/V1/VmEndpointNatMappingsList.php +++ b/Compute/src/V1/VmEndpointNatMappingsList.php @@ -64,7 +64,7 @@ class VmEndpointNatMappingsList extends \Google\Protobuf\Internal\Message * [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints. * @type string $next_page_token * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. - * @type \Google\Cloud\Compute\V1\VmEndpointNatMappings[]|\Google\Protobuf\Internal\RepeatedField $result + * @type array<\Google\Cloud\Compute\V1\VmEndpointNatMappings>|\Google\Protobuf\Internal\RepeatedField $result * [Output Only] A list of Nat mapping information of VM endpoints. * @type string $self_link * [Output Only] Server-defined URL for this resource. @@ -200,7 +200,7 @@ public function getResult() * [Output Only] A list of Nat mapping information of VM endpoints. * * Generated from protobuf field repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229; - * @param \Google\Cloud\Compute\V1\VmEndpointNatMappings[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\VmEndpointNatMappings>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResult($var) diff --git a/Compute/src/V1/VpnGateway.php b/Compute/src/V1/VpnGateway.php index 1571adda43a0..17f4608e7c5f 100644 --- a/Compute/src/V1/VpnGateway.php +++ b/Compute/src/V1/VpnGateway.php @@ -118,7 +118,7 @@ class VpnGateway extends \Google\Protobuf\Internal\Message * @type string $stack_type * The stack type for this VPN gateway to identify the IP protocols that are enabled. If not specified, IPV4_ONLY will be used. * Check the StackType enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\VpnGatewayVpnGatewayInterface[]|\Google\Protobuf\Internal\RepeatedField $vpn_interfaces + * @type array<\Google\Cloud\Compute\V1\VpnGatewayVpnGatewayInterface>|\Google\Protobuf\Internal\RepeatedField $vpn_interfaces * The list of VPN interfaces associated with this VPN gateway. * } */ @@ -530,7 +530,7 @@ public function getVpnInterfaces() * The list of VPN interfaces associated with this VPN gateway. * * Generated from protobuf field repeated .google.cloud.compute.v1.VpnGatewayVpnGatewayInterface vpn_interfaces = 91842181; - * @param \Google\Cloud\Compute\V1\VpnGatewayVpnGatewayInterface[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\VpnGatewayVpnGatewayInterface>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setVpnInterfaces($var) diff --git a/Compute/src/V1/VpnGatewayAggregatedList.php b/Compute/src/V1/VpnGatewayAggregatedList.php index 29e995c9bc4a..f8877e29e7d7 100644 --- a/Compute/src/V1/VpnGatewayAggregatedList.php +++ b/Compute/src/V1/VpnGatewayAggregatedList.php @@ -73,7 +73,7 @@ class VpnGatewayAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/VpnGatewayList.php b/Compute/src/V1/VpnGatewayList.php index 02ebcf940fd2..83a230699565 100644 --- a/Compute/src/V1/VpnGatewayList.php +++ b/Compute/src/V1/VpnGatewayList.php @@ -60,7 +60,7 @@ class VpnGatewayList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\VpnGateway[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\VpnGateway>|\Google\Protobuf\Internal\RepeatedField $items * A list of VpnGateway resources. * @type string $kind * [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. @@ -128,7 +128,7 @@ public function getItems() * A list of VpnGateway resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.VpnGateway items = 100526016; - * @param \Google\Cloud\Compute\V1\VpnGateway[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\VpnGateway>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/VpnGatewayStatus.php b/Compute/src/V1/VpnGatewayStatus.php index 73ed9affbd66..961ca3140e69 100644 --- a/Compute/src/V1/VpnGatewayStatus.php +++ b/Compute/src/V1/VpnGatewayStatus.php @@ -27,7 +27,7 @@ class VpnGatewayStatus extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\VpnGatewayStatusVpnConnection[]|\Google\Protobuf\Internal\RepeatedField $vpn_connections + * @type array<\Google\Cloud\Compute\V1\VpnGatewayStatusVpnConnection>|\Google\Protobuf\Internal\RepeatedField $vpn_connections * List of VPN connection for this VpnGateway. * } */ @@ -51,7 +51,7 @@ public function getVpnConnections() * List of VPN connection for this VpnGateway. * * Generated from protobuf field repeated .google.cloud.compute.v1.VpnGatewayStatusVpnConnection vpn_connections = 439334538; - * @param \Google\Cloud\Compute\V1\VpnGatewayStatusVpnConnection[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\VpnGatewayStatusVpnConnection>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setVpnConnections($var) diff --git a/Compute/src/V1/VpnGatewayStatusVpnConnection.php b/Compute/src/V1/VpnGatewayStatusVpnConnection.php index a8b19b4bd5a1..1ab628114a7c 100644 --- a/Compute/src/V1/VpnGatewayStatusVpnConnection.php +++ b/Compute/src/V1/VpnGatewayStatusVpnConnection.php @@ -52,7 +52,7 @@ class VpnGatewayStatusVpnConnection extends \Google\Protobuf\Internal\Message * URL reference to the peer side VPN gateways to which the VPN tunnels in this VPN connection are connected. This field is mutually exclusive with peer_gcp_gateway. * @type \Google\Cloud\Compute\V1\VpnGatewayStatusHighAvailabilityRequirementState $state * HighAvailabilityRequirementState for the VPN connection. - * @type \Google\Cloud\Compute\V1\VpnGatewayStatusTunnel[]|\Google\Protobuf\Internal\RepeatedField $tunnels + * @type array<\Google\Cloud\Compute\V1\VpnGatewayStatusTunnel>|\Google\Protobuf\Internal\RepeatedField $tunnels * List of VPN tunnels that are in this VPN connection. * } */ @@ -184,7 +184,7 @@ public function getTunnels() * List of VPN tunnels that are in this VPN connection. * * Generated from protobuf field repeated .google.cloud.compute.v1.VpnGatewayStatusTunnel tunnels = 104561931; - * @param \Google\Cloud\Compute\V1\VpnGatewayStatusTunnel[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\VpnGatewayStatusTunnel>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTunnels($var) diff --git a/Compute/src/V1/VpnGatewaysScopedList.php b/Compute/src/V1/VpnGatewaysScopedList.php index a47dcd84332b..85c3f05baf81 100644 --- a/Compute/src/V1/VpnGatewaysScopedList.php +++ b/Compute/src/V1/VpnGatewaysScopedList.php @@ -33,7 +33,7 @@ class VpnGatewaysScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\VpnGateway[]|\Google\Protobuf\Internal\RepeatedField $vpn_gateways + * @type array<\Google\Cloud\Compute\V1\VpnGateway>|\Google\Protobuf\Internal\RepeatedField $vpn_gateways * [Output Only] A list of VPN gateways contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning which replaces the list of addresses when the list is empty. @@ -59,7 +59,7 @@ public function getVpnGateways() * [Output Only] A list of VPN gateways contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.VpnGateway vpn_gateways = 259177882; - * @param \Google\Cloud\Compute\V1\VpnGateway[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\VpnGateway>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setVpnGateways($var) diff --git a/Compute/src/V1/VpnTunnel.php b/Compute/src/V1/VpnTunnel.php index 2d6d708b11f2..64ca087fdb5d 100644 --- a/Compute/src/V1/VpnTunnel.php +++ b/Compute/src/V1/VpnTunnel.php @@ -167,7 +167,7 @@ class VpnTunnel extends \Google\Protobuf\Internal\Message * IKE protocol version to use when establishing the VPN tunnel with the peer VPN gateway. Acceptable IKE versions are 1 or 2. The default version is 2. * @type string $kind * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $local_traffic_selector + * @type array|\Google\Protobuf\Internal\RepeatedField $local_traffic_selector * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported. * @type string $name * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. @@ -181,7 +181,7 @@ class VpnTunnel extends \Google\Protobuf\Internal\Message * IP address of the peer VPN gateway. Only IPv4 is supported. * @type string $region * [Output Only] URL of the region where the VPN tunnel resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $remote_traffic_selector + * @type array|\Google\Protobuf\Internal\RepeatedField $remote_traffic_selector * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported. * @type string $router * URL of the router resource to be used for dynamic routing. @@ -438,7 +438,7 @@ public function getLocalTrafficSelector() * Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported. * * Generated from protobuf field repeated string local_traffic_selector = 317314613; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLocalTrafficSelector($var) @@ -680,7 +680,7 @@ public function getRemoteTrafficSelector() * Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported. * * Generated from protobuf field repeated string remote_traffic_selector = 358887098; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRemoteTrafficSelector($var) diff --git a/Compute/src/V1/VpnTunnelAggregatedList.php b/Compute/src/V1/VpnTunnelAggregatedList.php index 6d789680185d..cce913d353b2 100644 --- a/Compute/src/V1/VpnTunnelAggregatedList.php +++ b/Compute/src/V1/VpnTunnelAggregatedList.php @@ -73,7 +73,7 @@ class VpnTunnelAggregatedList extends \Google\Protobuf\Internal\Message * [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. * @type string $self_link * [Output Only] Server-defined URL for this resource. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachables + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachables * [Output Only] Unreachable resources. * @type \Google\Cloud\Compute\V1\Warning $warning * [Output Only] Informational warning message. @@ -269,7 +269,7 @@ public function getUnreachables() * [Output Only] Unreachable resources. * * Generated from protobuf field repeated string unreachables = 243372063; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setUnreachables($var) diff --git a/Compute/src/V1/VpnTunnelList.php b/Compute/src/V1/VpnTunnelList.php index 0fad3432ce72..bdefa3dca07b 100644 --- a/Compute/src/V1/VpnTunnelList.php +++ b/Compute/src/V1/VpnTunnelList.php @@ -60,7 +60,7 @@ class VpnTunnelList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\VpnTunnel[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\VpnTunnel>|\Google\Protobuf\Internal\RepeatedField $items * A list of VpnTunnel resources. * @type string $kind * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. @@ -128,7 +128,7 @@ public function getItems() * A list of VpnTunnel resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.VpnTunnel items = 100526016; - * @param \Google\Cloud\Compute\V1\VpnTunnel[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\VpnTunnel>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/VpnTunnelsScopedList.php b/Compute/src/V1/VpnTunnelsScopedList.php index 36bad803191e..fbc206d50af1 100644 --- a/Compute/src/V1/VpnTunnelsScopedList.php +++ b/Compute/src/V1/VpnTunnelsScopedList.php @@ -33,7 +33,7 @@ class VpnTunnelsScopedList extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\VpnTunnel[]|\Google\Protobuf\Internal\RepeatedField $vpn_tunnels + * @type array<\Google\Cloud\Compute\V1\VpnTunnel>|\Google\Protobuf\Internal\RepeatedField $vpn_tunnels * A list of VPN tunnels contained in this scope. * @type \Google\Cloud\Compute\V1\Warning $warning * Informational warning which replaces the list of addresses when the list is empty. @@ -59,7 +59,7 @@ public function getVpnTunnels() * A list of VPN tunnels contained in this scope. * * Generated from protobuf field repeated .google.cloud.compute.v1.VpnTunnel vpn_tunnels = 163494080; - * @param \Google\Cloud\Compute\V1\VpnTunnel[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\VpnTunnel>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setVpnTunnels($var) diff --git a/Compute/src/V1/WafExpressionSet.php b/Compute/src/V1/WafExpressionSet.php index aea18e82b0e6..0aecd37a5f7f 100644 --- a/Compute/src/V1/WafExpressionSet.php +++ b/Compute/src/V1/WafExpressionSet.php @@ -39,9 +39,9 @@ class WafExpressionSet extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $aliases + * @type array|\Google\Protobuf\Internal\RepeatedField $aliases * A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set. - * @type \Google\Cloud\Compute\V1\WafExpressionSetExpression[]|\Google\Protobuf\Internal\RepeatedField $expressions + * @type array<\Google\Cloud\Compute\V1\WafExpressionSetExpression>|\Google\Protobuf\Internal\RepeatedField $expressions * List of available expressions. * @type string $id * Google specified expression set ID. The format should be: - E.g. XSS-20170329 required @@ -67,7 +67,7 @@ public function getAliases() * A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set. * * Generated from protobuf field repeated string aliases = 159207166; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAliases($var) @@ -93,7 +93,7 @@ public function getExpressions() * List of available expressions. * * Generated from protobuf field repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779; - * @param \Google\Cloud\Compute\V1\WafExpressionSetExpression[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\WafExpressionSetExpression>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExpressions($var) diff --git a/Compute/src/V1/Warning.php b/Compute/src/V1/Warning.php index 5fab938606dc..df3ef2184cd5 100644 --- a/Compute/src/V1/Warning.php +++ b/Compute/src/V1/Warning.php @@ -44,7 +44,7 @@ class Warning extends \Google\Protobuf\Internal\Message * @type string $code * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. * Check the Code enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\Data[]|\Google\Protobuf\Internal\RepeatedField $data + * @type array<\Google\Cloud\Compute\V1\Data>|\Google\Protobuf\Internal\RepeatedField $data * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } * @type string $message * [Output Only] A human-readable description of the warning code. @@ -108,7 +108,7 @@ public function getData() * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } * * Generated from protobuf field repeated .google.cloud.compute.v1.Data data = 3076010; - * @param \Google\Cloud\Compute\V1\Data[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Data>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setData($var) diff --git a/Compute/src/V1/Warning/Code.php b/Compute/src/V1/Warning/Code.php index 141e4ade743c..a2e703e41e85 100644 --- a/Compute/src/V1/Warning/Code.php +++ b/Compute/src/V1/Warning/Code.php @@ -67,6 +67,12 @@ class Code * Generated from protobuf enum INJECTED_KERNELS_DEPRECATED = 417377419; */ const INJECTED_KERNELS_DEPRECATED = 417377419; + /** + * A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2. + * + * Generated from protobuf enum INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606; + */ + const INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606; /** * When deploying a deployment with a exceedingly large number of resources * @@ -186,6 +192,7 @@ class Code self::EXTERNAL_API_WARNING => 'EXTERNAL_API_WARNING', self::FIELD_VALUE_OVERRIDEN => 'FIELD_VALUE_OVERRIDEN', self::INJECTED_KERNELS_DEPRECATED => 'INJECTED_KERNELS_DEPRECATED', + self::INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB => 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB', self::LARGE_DEPLOYMENT_WARNING => 'LARGE_DEPLOYMENT_WARNING', self::MISSING_TYPE_DEPENDENCY => 'MISSING_TYPE_DEPENDENCY', self::NEXT_HOP_ADDRESS_NOT_ASSIGNED => 'NEXT_HOP_ADDRESS_NOT_ASSIGNED', diff --git a/Compute/src/V1/Warnings.php b/Compute/src/V1/Warnings.php index 0cc98a0dfb5f..bdece26e8895 100644 --- a/Compute/src/V1/Warnings.php +++ b/Compute/src/V1/Warnings.php @@ -43,7 +43,7 @@ class Warnings extends \Google\Protobuf\Internal\Message * @type string $code * [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. * Check the Code enum for the list of possible values. - * @type \Google\Cloud\Compute\V1\Data[]|\Google\Protobuf\Internal\RepeatedField $data + * @type array<\Google\Cloud\Compute\V1\Data>|\Google\Protobuf\Internal\RepeatedField $data * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } * @type string $message * [Output Only] A human-readable description of the warning code. @@ -107,7 +107,7 @@ public function getData() * [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } * * Generated from protobuf field repeated .google.cloud.compute.v1.Data data = 3076010; - * @param \Google\Cloud\Compute\V1\Data[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Data>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setData($var) diff --git a/Compute/src/V1/Warnings/Code.php b/Compute/src/V1/Warnings/Code.php index e84398490a8d..011dc3fbc825 100644 --- a/Compute/src/V1/Warnings/Code.php +++ b/Compute/src/V1/Warnings/Code.php @@ -67,6 +67,12 @@ class Code * Generated from protobuf enum INJECTED_KERNELS_DEPRECATED = 417377419; */ const INJECTED_KERNELS_DEPRECATED = 417377419; + /** + * A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2. + * + * Generated from protobuf enum INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606; + */ + const INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 401542606; /** * When deploying a deployment with a exceedingly large number of resources * @@ -186,6 +192,7 @@ class Code self::EXTERNAL_API_WARNING => 'EXTERNAL_API_WARNING', self::FIELD_VALUE_OVERRIDEN => 'FIELD_VALUE_OVERRIDEN', self::INJECTED_KERNELS_DEPRECATED => 'INJECTED_KERNELS_DEPRECATED', + self::INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB => 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB', self::LARGE_DEPLOYMENT_WARNING => 'LARGE_DEPLOYMENT_WARNING', self::MISSING_TYPE_DEPENDENCY => 'MISSING_TYPE_DEPENDENCY', self::NEXT_HOP_ADDRESS_NOT_ASSIGNED => 'NEXT_HOP_ADDRESS_NOT_ASSIGNED', diff --git a/Compute/src/V1/XpnHostList.php b/Compute/src/V1/XpnHostList.php index 82e61396ffd3..82492cca5565 100644 --- a/Compute/src/V1/XpnHostList.php +++ b/Compute/src/V1/XpnHostList.php @@ -59,7 +59,7 @@ class XpnHostList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Project[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Project>|\Google\Protobuf\Internal\RepeatedField $items * [Output Only] A list of shared VPC host project URLs. * @type string $kind * [Output Only] Type of resource. Always compute#xpnHostList for lists of shared VPC hosts. @@ -127,7 +127,7 @@ public function getItems() * [Output Only] A list of shared VPC host project URLs. * * Generated from protobuf field repeated .google.cloud.compute.v1.Project items = 100526016; - * @param \Google\Cloud\Compute\V1\Project[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Project>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/Zone.php b/Compute/src/V1/Zone.php index 297379e5aeaf..c092a15fde13 100644 --- a/Compute/src/V1/Zone.php +++ b/Compute/src/V1/Zone.php @@ -89,7 +89,7 @@ class Zone extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type string[]|\Google\Protobuf\Internal\RepeatedField $available_cpu_platforms + * @type array|\Google\Protobuf\Internal\RepeatedField $available_cpu_platforms * [Output Only] Available cpu/platform selections for the zone. * @type string $creation_timestamp * [Output Only] Creation timestamp in RFC3339 text format. @@ -134,7 +134,7 @@ public function getAvailableCpuPlatforms() * [Output Only] Available cpu/platform selections for the zone. * * Generated from protobuf field repeated string available_cpu_platforms = 175536531; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAvailableCpuPlatforms($var) diff --git a/Compute/src/V1/ZoneList.php b/Compute/src/V1/ZoneList.php index f5abef4b8956..6236e9c408e1 100644 --- a/Compute/src/V1/ZoneList.php +++ b/Compute/src/V1/ZoneList.php @@ -60,7 +60,7 @@ class ZoneList extends \Google\Protobuf\Internal\Message * * @type string $id * [Output Only] Unique identifier for the resource; defined by the server. - * @type \Google\Cloud\Compute\V1\Zone[]|\Google\Protobuf\Internal\RepeatedField $items + * @type array<\Google\Cloud\Compute\V1\Zone>|\Google\Protobuf\Internal\RepeatedField $items * A list of Zone resources. * @type string $kind * Type of resource. @@ -128,7 +128,7 @@ public function getItems() * A list of Zone resources. * * Generated from protobuf field repeated .google.cloud.compute.v1.Zone items = 100526016; - * @param \Google\Cloud\Compute\V1\Zone[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Zone>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) diff --git a/Compute/src/V1/ZoneSetPolicyRequest.php b/Compute/src/V1/ZoneSetPolicyRequest.php index 366ec86fd8ef..b9ca89bd5eef 100644 --- a/Compute/src/V1/ZoneSetPolicyRequest.php +++ b/Compute/src/V1/ZoneSetPolicyRequest.php @@ -39,7 +39,7 @@ class ZoneSetPolicyRequest extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\Compute\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $bindings + * @type array<\Google\Cloud\Compute\V1\Binding>|\Google\Protobuf\Internal\RepeatedField $bindings * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings. * @type string $etag * Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. @@ -67,7 +67,7 @@ public function getBindings() * Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings. * * Generated from protobuf field repeated .google.cloud.compute.v1.Binding bindings = 403251854; - * @param \Google\Cloud\Compute\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\Compute\V1\Binding>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBindings($var) diff --git a/Compute/tests/Unit/V1/AcceleratorTypesClientTest.php b/Compute/tests/Unit/V1/AcceleratorTypesClientTest.php index b8b69a226121..00176a27413e 100644 --- a/Compute/tests/Unit/V1/AcceleratorTypesClientTest.php +++ b/Compute/tests/Unit/V1/AcceleratorTypesClientTest.php @@ -75,7 +75,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -96,7 +96,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -119,7 +119,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -136,8 +136,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -154,7 +154,7 @@ public function aggregatedListExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -181,7 +181,7 @@ public function getTest() $acceleratorType = 'acceleratorType1748643982'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($acceleratorType, $project, $zone); + $response = $gapicClient->get($acceleratorType, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -203,7 +203,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -222,8 +222,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($acceleratorType, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($acceleratorType, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -240,7 +240,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -263,7 +263,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -286,7 +286,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -304,8 +304,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/AddressesClientTest.php b/Compute/tests/Unit/V1/AddressesClientTest.php index ebd36422f74a..1b194d48daa3 100644 --- a/Compute/tests/Unit/V1/AddressesClientTest.php +++ b/Compute/tests/Unit/V1/AddressesClientTest.php @@ -79,7 +79,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -100,7 +100,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -123,7 +123,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -140,8 +140,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -164,7 +164,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -183,7 +183,7 @@ public function deleteTest() $address = 'address-1147692044'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($address, $project, $region); + $response = $gapicClient->delete($address, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -230,7 +230,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -255,7 +255,7 @@ public function deleteExceptionTest() $address = 'address-1147692044'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($address, $project, $region); + $response = $gapicClient->delete($address, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -281,7 +281,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -324,7 +324,7 @@ public function getTest() $address = 'address-1147692044'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($address, $project, $region); + $response = $gapicClient->get($address, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -346,7 +346,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -365,8 +365,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($address, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($address, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -389,7 +389,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -408,7 +408,7 @@ public function insertTest() $addressResource = new Address(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($addressResource, $project, $region); + $response = $gapicClient->insert($addressResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -455,7 +455,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -480,7 +480,7 @@ public function insertExceptionTest() $addressResource = new Address(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($addressResource, $project, $region); + $response = $gapicClient->insert($addressResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -506,7 +506,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -529,7 +529,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -552,7 +552,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -570,8 +570,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/AutoscalersClientTest.php b/Compute/tests/Unit/V1/AutoscalersClientTest.php index d3bc5925f1fd..00fec5e06c38 100644 --- a/Compute/tests/Unit/V1/AutoscalersClientTest.php +++ b/Compute/tests/Unit/V1/AutoscalersClientTest.php @@ -79,7 +79,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -100,7 +100,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -123,7 +123,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -140,8 +140,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -164,7 +164,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -183,7 +183,7 @@ public function deleteTest() $autoscaler = 'autoscaler517258967'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($autoscaler, $project, $zone); + $response = $gapicClient->delete($autoscaler, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -230,7 +230,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -255,7 +255,7 @@ public function deleteExceptionTest() $autoscaler = 'autoscaler517258967'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($autoscaler, $project, $zone); + $response = $gapicClient->delete($autoscaler, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -281,7 +281,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -314,7 +314,7 @@ public function getTest() $autoscaler = 'autoscaler517258967'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($autoscaler, $project, $zone); + $response = $gapicClient->get($autoscaler, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -336,7 +336,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -355,8 +355,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($autoscaler, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($autoscaler, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -379,7 +379,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -398,7 +398,7 @@ public function insertTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($autoscalerResource, $project, $zone); + $response = $gapicClient->insert($autoscalerResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -445,7 +445,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -470,7 +470,7 @@ public function insertExceptionTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($autoscalerResource, $project, $zone); + $response = $gapicClient->insert($autoscalerResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -496,7 +496,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -519,7 +519,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -542,7 +542,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -560,8 +560,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -584,7 +584,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -603,7 +603,7 @@ public function patchTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->patch($autoscalerResource, $project, $zone); + $response = $gapicClient->patch($autoscalerResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -650,7 +650,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -675,7 +675,7 @@ public function patchExceptionTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->patch($autoscalerResource, $project, $zone); + $response = $gapicClient->patch($autoscalerResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -707,7 +707,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -726,7 +726,7 @@ public function updateTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->update($autoscalerResource, $project, $zone); + $response = $gapicClient->update($autoscalerResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -773,7 +773,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -798,7 +798,7 @@ public function updateExceptionTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->update($autoscalerResource, $project, $zone); + $response = $gapicClient->update($autoscalerResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/BackendBucketsClientTest.php b/Compute/tests/Unit/V1/BackendBucketsClientTest.php index 7cdf31d4555f..10da3094a76a 100644 --- a/Compute/tests/Unit/V1/BackendBucketsClientTest.php +++ b/Compute/tests/Unit/V1/BackendBucketsClientTest.php @@ -85,7 +85,7 @@ public function addSignedUrlKeyTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -104,7 +104,7 @@ public function addSignedUrlKeyTest() $backendBucket = 'backendBucket91714037'; $project = 'project-309310695'; $signedUrlKeyResource = new SignedUrlKey(); - $response = $client->addSignedUrlKey($backendBucket, $project, $signedUrlKeyResource); + $response = $gapicClient->addSignedUrlKey($backendBucket, $project, $signedUrlKeyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -150,7 +150,7 @@ public function addSignedUrlKeyExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -175,7 +175,7 @@ public function addSignedUrlKeyExceptionTest() $backendBucket = 'backendBucket91714037'; $project = 'project-309310695'; $signedUrlKeyResource = new SignedUrlKey(); - $response = $client->addSignedUrlKey($backendBucket, $project, $signedUrlKeyResource); + $response = $gapicClient->addSignedUrlKey($backendBucket, $project, $signedUrlKeyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -207,7 +207,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -225,7 +225,7 @@ public function deleteTest() // Mock request $backendBucket = 'backendBucket91714037'; $project = 'project-309310695'; - $response = $client->delete($backendBucket, $project); + $response = $gapicClient->delete($backendBucket, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -269,7 +269,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -293,7 +293,7 @@ public function deleteExceptionTest() // Mock request $backendBucket = 'backendBucket91714037'; $project = 'project-309310695'; - $response = $client->delete($backendBucket, $project); + $response = $gapicClient->delete($backendBucket, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -325,7 +325,7 @@ public function deleteSignedUrlKeyTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -344,7 +344,7 @@ public function deleteSignedUrlKeyTest() $backendBucket = 'backendBucket91714037'; $keyName = 'keyName500938859'; $project = 'project-309310695'; - $response = $client->deleteSignedUrlKey($backendBucket, $keyName, $project); + $response = $gapicClient->deleteSignedUrlKey($backendBucket, $keyName, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -390,7 +390,7 @@ public function deleteSignedUrlKeyExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -415,7 +415,7 @@ public function deleteSignedUrlKeyExceptionTest() $backendBucket = 'backendBucket91714037'; $keyName = 'keyName500938859'; $project = 'project-309310695'; - $response = $client->deleteSignedUrlKey($backendBucket, $keyName, $project); + $response = $gapicClient->deleteSignedUrlKey($backendBucket, $keyName, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -441,7 +441,7 @@ public function deleteSignedUrlKeyExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -469,7 +469,7 @@ public function getTest() // Mock request $backendBucket = 'backendBucket91714037'; $project = 'project-309310695'; - $response = $client->get($backendBucket, $project); + $response = $gapicClient->get($backendBucket, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -489,7 +489,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -507,8 +507,8 @@ public function getExceptionTest() $backendBucket = 'backendBucket91714037'; $project = 'project-309310695'; try { - $client->get($backendBucket, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($backendBucket, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -531,7 +531,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -549,7 +549,7 @@ public function insertTest() // Mock request $backendBucketResource = new BackendBucket(); $project = 'project-309310695'; - $response = $client->insert($backendBucketResource, $project); + $response = $gapicClient->insert($backendBucketResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -593,7 +593,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -617,7 +617,7 @@ public function insertExceptionTest() // Mock request $backendBucketResource = new BackendBucket(); $project = 'project-309310695'; - $response = $client->insert($backendBucketResource, $project); + $response = $gapicClient->insert($backendBucketResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -643,7 +643,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -665,7 +665,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -686,7 +686,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -703,8 +703,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -727,7 +727,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -746,7 +746,7 @@ public function patchTest() $backendBucket = 'backendBucket91714037'; $backendBucketResource = new BackendBucket(); $project = 'project-309310695'; - $response = $client->patch($backendBucket, $backendBucketResource, $project); + $response = $gapicClient->patch($backendBucket, $backendBucketResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -792,7 +792,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -817,7 +817,7 @@ public function patchExceptionTest() $backendBucket = 'backendBucket91714037'; $backendBucketResource = new BackendBucket(); $project = 'project-309310695'; - $response = $client->patch($backendBucket, $backendBucketResource, $project); + $response = $gapicClient->patch($backendBucket, $backendBucketResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -849,7 +849,7 @@ public function setEdgeSecurityPolicyTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -868,7 +868,7 @@ public function setEdgeSecurityPolicyTest() $backendBucket = 'backendBucket91714037'; $project = 'project-309310695'; $securityPolicyReferenceResource = new SecurityPolicyReference(); - $response = $client->setEdgeSecurityPolicy($backendBucket, $project, $securityPolicyReferenceResource); + $response = $gapicClient->setEdgeSecurityPolicy($backendBucket, $project, $securityPolicyReferenceResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -914,7 +914,7 @@ public function setEdgeSecurityPolicyExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -939,7 +939,7 @@ public function setEdgeSecurityPolicyExceptionTest() $backendBucket = 'backendBucket91714037'; $project = 'project-309310695'; $securityPolicyReferenceResource = new SecurityPolicyReference(); - $response = $client->setEdgeSecurityPolicy($backendBucket, $project, $securityPolicyReferenceResource); + $response = $gapicClient->setEdgeSecurityPolicy($backendBucket, $project, $securityPolicyReferenceResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -971,7 +971,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -990,7 +990,7 @@ public function updateTest() $backendBucket = 'backendBucket91714037'; $backendBucketResource = new BackendBucket(); $project = 'project-309310695'; - $response = $client->update($backendBucket, $backendBucketResource, $project); + $response = $gapicClient->update($backendBucket, $backendBucketResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1036,7 +1036,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1061,7 +1061,7 @@ public function updateExceptionTest() $backendBucket = 'backendBucket91714037'; $backendBucketResource = new BackendBucket(); $project = 'project-309310695'; - $response = $client->update($backendBucket, $backendBucketResource, $project); + $response = $gapicClient->update($backendBucket, $backendBucketResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/BackendServicesClientTest.php b/Compute/tests/Unit/V1/BackendServicesClientTest.php index a192c42770b5..540ac54e0845 100644 --- a/Compute/tests/Unit/V1/BackendServicesClientTest.php +++ b/Compute/tests/Unit/V1/BackendServicesClientTest.php @@ -89,7 +89,7 @@ public function addSignedUrlKeyTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -108,7 +108,7 @@ public function addSignedUrlKeyTest() $backendService = 'backendService306946058'; $project = 'project-309310695'; $signedUrlKeyResource = new SignedUrlKey(); - $response = $client->addSignedUrlKey($backendService, $project, $signedUrlKeyResource); + $response = $gapicClient->addSignedUrlKey($backendService, $project, $signedUrlKeyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -154,7 +154,7 @@ public function addSignedUrlKeyExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -179,7 +179,7 @@ public function addSignedUrlKeyExceptionTest() $backendService = 'backendService306946058'; $project = 'project-309310695'; $signedUrlKeyResource = new SignedUrlKey(); - $response = $client->addSignedUrlKey($backendService, $project, $signedUrlKeyResource); + $response = $gapicClient->addSignedUrlKey($backendService, $project, $signedUrlKeyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -205,7 +205,7 @@ public function addSignedUrlKeyExceptionTest() public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -226,7 +226,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -249,7 +249,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -266,8 +266,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -290,7 +290,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -308,7 +308,7 @@ public function deleteTest() // Mock request $backendService = 'backendService306946058'; $project = 'project-309310695'; - $response = $client->delete($backendService, $project); + $response = $gapicClient->delete($backendService, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -352,7 +352,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -376,7 +376,7 @@ public function deleteExceptionTest() // Mock request $backendService = 'backendService306946058'; $project = 'project-309310695'; - $response = $client->delete($backendService, $project); + $response = $gapicClient->delete($backendService, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -408,7 +408,7 @@ public function deleteSignedUrlKeyTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -427,7 +427,7 @@ public function deleteSignedUrlKeyTest() $backendService = 'backendService306946058'; $keyName = 'keyName500938859'; $project = 'project-309310695'; - $response = $client->deleteSignedUrlKey($backendService, $keyName, $project); + $response = $gapicClient->deleteSignedUrlKey($backendService, $keyName, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -473,7 +473,7 @@ public function deleteSignedUrlKeyExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -498,7 +498,7 @@ public function deleteSignedUrlKeyExceptionTest() $backendService = 'backendService306946058'; $keyName = 'keyName500938859'; $project = 'project-309310695'; - $response = $client->deleteSignedUrlKey($backendService, $keyName, $project); + $response = $gapicClient->deleteSignedUrlKey($backendService, $keyName, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -524,7 +524,7 @@ public function deleteSignedUrlKeyExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -574,7 +574,7 @@ public function getTest() // Mock request $backendService = 'backendService306946058'; $project = 'project-309310695'; - $response = $client->get($backendService, $project); + $response = $gapicClient->get($backendService, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -594,7 +594,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -612,8 +612,8 @@ public function getExceptionTest() $backendService = 'backendService306946058'; $project = 'project-309310695'; try { - $client->get($backendService, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($backendService, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -630,7 +630,7 @@ public function getExceptionTest() public function getHealthTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -643,7 +643,7 @@ public function getHealthTest() $backendService = 'backendService306946058'; $project = 'project-309310695'; $resourceGroupReferenceResource = new ResourceGroupReference(); - $response = $client->getHealth($backendService, $project, $resourceGroupReferenceResource); + $response = $gapicClient->getHealth($backendService, $project, $resourceGroupReferenceResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -665,7 +665,7 @@ public function getHealthTest() public function getHealthExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -684,8 +684,8 @@ public function getHealthExceptionTest() $project = 'project-309310695'; $resourceGroupReferenceResource = new ResourceGroupReference(); try { - $client->getHealth($backendService, $project, $resourceGroupReferenceResource); - // If the $client method call did not throw, fail the test + $gapicClient->getHealth($backendService, $project, $resourceGroupReferenceResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -708,7 +708,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -726,7 +726,7 @@ public function insertTest() // Mock request $backendServiceResource = new BackendService(); $project = 'project-309310695'; - $response = $client->insert($backendServiceResource, $project); + $response = $gapicClient->insert($backendServiceResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -770,7 +770,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -794,7 +794,7 @@ public function insertExceptionTest() // Mock request $backendServiceResource = new BackendService(); $project = 'project-309310695'; - $response = $client->insert($backendServiceResource, $project); + $response = $gapicClient->insert($backendServiceResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -820,7 +820,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -842,7 +842,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -863,7 +863,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -880,8 +880,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -904,7 +904,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -923,7 +923,7 @@ public function patchTest() $backendService = 'backendService306946058'; $backendServiceResource = new BackendService(); $project = 'project-309310695'; - $response = $client->patch($backendService, $backendServiceResource, $project); + $response = $gapicClient->patch($backendService, $backendServiceResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -969,7 +969,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -994,7 +994,7 @@ public function patchExceptionTest() $backendService = 'backendService306946058'; $backendServiceResource = new BackendService(); $project = 'project-309310695'; - $response = $client->patch($backendService, $backendServiceResource, $project); + $response = $gapicClient->patch($backendService, $backendServiceResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1026,7 +1026,7 @@ public function setEdgeSecurityPolicyTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1045,7 +1045,7 @@ public function setEdgeSecurityPolicyTest() $backendService = 'backendService306946058'; $project = 'project-309310695'; $securityPolicyReferenceResource = new SecurityPolicyReference(); - $response = $client->setEdgeSecurityPolicy($backendService, $project, $securityPolicyReferenceResource); + $response = $gapicClient->setEdgeSecurityPolicy($backendService, $project, $securityPolicyReferenceResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1091,7 +1091,7 @@ public function setEdgeSecurityPolicyExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1116,7 +1116,7 @@ public function setEdgeSecurityPolicyExceptionTest() $backendService = 'backendService306946058'; $project = 'project-309310695'; $securityPolicyReferenceResource = new SecurityPolicyReference(); - $response = $client->setEdgeSecurityPolicy($backendService, $project, $securityPolicyReferenceResource); + $response = $gapicClient->setEdgeSecurityPolicy($backendService, $project, $securityPolicyReferenceResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1148,7 +1148,7 @@ public function setSecurityPolicyTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1167,7 +1167,7 @@ public function setSecurityPolicyTest() $backendService = 'backendService306946058'; $project = 'project-309310695'; $securityPolicyReferenceResource = new SecurityPolicyReference(); - $response = $client->setSecurityPolicy($backendService, $project, $securityPolicyReferenceResource); + $response = $gapicClient->setSecurityPolicy($backendService, $project, $securityPolicyReferenceResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1213,7 +1213,7 @@ public function setSecurityPolicyExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1238,7 +1238,7 @@ public function setSecurityPolicyExceptionTest() $backendService = 'backendService306946058'; $project = 'project-309310695'; $securityPolicyReferenceResource = new SecurityPolicyReference(); - $response = $client->setSecurityPolicy($backendService, $project, $securityPolicyReferenceResource); + $response = $gapicClient->setSecurityPolicy($backendService, $project, $securityPolicyReferenceResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1270,7 +1270,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1289,7 +1289,7 @@ public function updateTest() $backendService = 'backendService306946058'; $backendServiceResource = new BackendService(); $project = 'project-309310695'; - $response = $client->update($backendService, $backendServiceResource, $project); + $response = $gapicClient->update($backendService, $backendServiceResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1335,7 +1335,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1360,7 +1360,7 @@ public function updateExceptionTest() $backendService = 'backendService306946058'; $backendServiceResource = new BackendService(); $project = 'project-309310695'; - $response = $client->update($backendService, $backendServiceResource, $project); + $response = $gapicClient->update($backendService, $backendServiceResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/DiskTypesClientTest.php b/Compute/tests/Unit/V1/DiskTypesClientTest.php index 1336cf0699d9..6179800bd8cb 100644 --- a/Compute/tests/Unit/V1/DiskTypesClientTest.php +++ b/Compute/tests/Unit/V1/DiskTypesClientTest.php @@ -75,7 +75,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -96,7 +96,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -119,7 +119,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -136,8 +136,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -154,7 +154,7 @@ public function aggregatedListExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -185,7 +185,7 @@ public function getTest() $diskType = 'diskType93009052'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($diskType, $project, $zone); + $response = $gapicClient->get($diskType, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -207,7 +207,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -226,8 +226,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($diskType, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($diskType, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -244,7 +244,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -267,7 +267,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -290,7 +290,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -308,8 +308,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/DisksClientTest.php b/Compute/tests/Unit/V1/DisksClientTest.php index 20b49276877b..bfd70e40c40b 100644 --- a/Compute/tests/Unit/V1/DisksClientTest.php +++ b/Compute/tests/Unit/V1/DisksClientTest.php @@ -94,7 +94,7 @@ public function addResourcePoliciesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -114,7 +114,7 @@ public function addResourcePoliciesTest() $disksAddResourcePoliciesRequestResource = new DisksAddResourcePoliciesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->addResourcePolicies($disk, $disksAddResourcePoliciesRequestResource, $project, $zone); + $response = $gapicClient->addResourcePolicies($disk, $disksAddResourcePoliciesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -163,7 +163,7 @@ public function addResourcePoliciesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -189,7 +189,7 @@ public function addResourcePoliciesExceptionTest() $disksAddResourcePoliciesRequestResource = new DisksAddResourcePoliciesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->addResourcePolicies($disk, $disksAddResourcePoliciesRequestResource, $project, $zone); + $response = $gapicClient->addResourcePolicies($disk, $disksAddResourcePoliciesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -215,7 +215,7 @@ public function addResourcePoliciesExceptionTest() public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -236,7 +236,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -259,7 +259,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -276,8 +276,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -300,7 +300,7 @@ public function createSnapshotTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -320,7 +320,7 @@ public function createSnapshotTest() $project = 'project-309310695'; $snapshotResource = new Snapshot(); $zone = 'zone3744684'; - $response = $client->createSnapshot($disk, $project, $snapshotResource, $zone); + $response = $gapicClient->createSnapshot($disk, $project, $snapshotResource, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -369,7 +369,7 @@ public function createSnapshotExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -395,7 +395,7 @@ public function createSnapshotExceptionTest() $project = 'project-309310695'; $snapshotResource = new Snapshot(); $zone = 'zone3744684'; - $response = $client->createSnapshot($disk, $project, $snapshotResource, $zone); + $response = $gapicClient->createSnapshot($disk, $project, $snapshotResource, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -427,7 +427,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -446,7 +446,7 @@ public function deleteTest() $disk = 'disk3083677'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($disk, $project, $zone); + $response = $gapicClient->delete($disk, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -493,7 +493,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -518,7 +518,7 @@ public function deleteExceptionTest() $disk = 'disk3083677'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($disk, $project, $zone); + $response = $gapicClient->delete($disk, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -544,11 +544,12 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); // Mock response + $architecture = 'architecture839674195'; $creationTimestamp = 'creationTimestamp567396278'; $description = 'description-1724546052'; $id = 3355; @@ -576,6 +577,7 @@ public function getTest() $type = 'type3575610'; $zone2 = 'zone2-696322977'; $expectedResponse = new Disk(); + $expectedResponse->setArchitecture($architecture); $expectedResponse->setCreationTimestamp($creationTimestamp); $expectedResponse->setDescription($description); $expectedResponse->setId($id); @@ -607,7 +609,7 @@ public function getTest() $disk = 'disk3083677'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($disk, $project, $zone); + $response = $gapicClient->get($disk, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -629,7 +631,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -648,8 +650,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($disk, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($disk, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -666,7 +668,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -683,7 +685,7 @@ public function getIamPolicyTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $zone = 'zone3744684'; - $response = $client->getIamPolicy($project, $resource, $zone); + $response = $gapicClient->getIamPolicy($project, $resource, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -705,7 +707,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -724,8 +726,8 @@ public function getIamPolicyExceptionTest() $resource = 'resource-341064690'; $zone = 'zone3744684'; try { - $client->getIamPolicy($project, $resource, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $resource, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -748,7 +750,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -767,7 +769,7 @@ public function insertTest() $diskResource = new Disk(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($diskResource, $project, $zone); + $response = $gapicClient->insert($diskResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -814,7 +816,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -839,7 +841,7 @@ public function insertExceptionTest() $diskResource = new Disk(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($diskResource, $project, $zone); + $response = $gapicClient->insert($diskResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -865,7 +867,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -888,7 +890,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -911,7 +913,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -929,8 +931,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -953,7 +955,7 @@ public function removeResourcePoliciesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -973,7 +975,7 @@ public function removeResourcePoliciesTest() $disksRemoveResourcePoliciesRequestResource = new DisksRemoveResourcePoliciesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->removeResourcePolicies($disk, $disksRemoveResourcePoliciesRequestResource, $project, $zone); + $response = $gapicClient->removeResourcePolicies($disk, $disksRemoveResourcePoliciesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1022,7 +1024,7 @@ public function removeResourcePoliciesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1048,7 +1050,7 @@ public function removeResourcePoliciesExceptionTest() $disksRemoveResourcePoliciesRequestResource = new DisksRemoveResourcePoliciesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->removeResourcePolicies($disk, $disksRemoveResourcePoliciesRequestResource, $project, $zone); + $response = $gapicClient->removeResourcePolicies($disk, $disksRemoveResourcePoliciesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1080,7 +1082,7 @@ public function resizeTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1100,7 +1102,7 @@ public function resizeTest() $disksResizeRequestResource = new DisksResizeRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->resize($disk, $disksResizeRequestResource, $project, $zone); + $response = $gapicClient->resize($disk, $disksResizeRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1149,7 +1151,7 @@ public function resizeExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1175,7 +1177,7 @@ public function resizeExceptionTest() $disksResizeRequestResource = new DisksResizeRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->resize($disk, $disksResizeRequestResource, $project, $zone); + $response = $gapicClient->resize($disk, $disksResizeRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1201,7 +1203,7 @@ public function resizeExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1219,7 +1221,7 @@ public function setIamPolicyTest() $resource = 'resource-341064690'; $zone = 'zone3744684'; $zoneSetPolicyRequestResource = new ZoneSetPolicyRequest(); - $response = $client->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); + $response = $gapicClient->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1243,7 +1245,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1263,8 +1265,8 @@ public function setIamPolicyExceptionTest() $zone = 'zone3744684'; $zoneSetPolicyRequestResource = new ZoneSetPolicyRequest(); try { - $client->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1287,7 +1289,7 @@ public function setLabelsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1307,7 +1309,7 @@ public function setLabelsTest() $resource = 'resource-341064690'; $zone = 'zone3744684'; $zoneSetLabelsRequestResource = new ZoneSetLabelsRequest(); - $response = $client->setLabels($project, $resource, $zone, $zoneSetLabelsRequestResource); + $response = $gapicClient->setLabels($project, $resource, $zone, $zoneSetLabelsRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1356,7 +1358,7 @@ public function setLabelsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1382,7 +1384,7 @@ public function setLabelsExceptionTest() $resource = 'resource-341064690'; $zone = 'zone3744684'; $zoneSetLabelsRequestResource = new ZoneSetLabelsRequest(); - $response = $client->setLabels($project, $resource, $zone, $zoneSetLabelsRequestResource); + $response = $gapicClient->setLabels($project, $resource, $zone, $zoneSetLabelsRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1408,7 +1410,7 @@ public function setLabelsExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1420,7 +1422,7 @@ public function testIamPermissionsTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); $zone = 'zone3744684'; - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1444,7 +1446,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1464,8 +1466,8 @@ public function testIamPermissionsExceptionTest() $testPermissionsRequestResource = new TestPermissionsRequest(); $zone = 'zone3744684'; try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/ExternalVpnGatewaysClientTest.php b/Compute/tests/Unit/V1/ExternalVpnGatewaysClientTest.php index c266e543e7a9..71f32c86ab23 100644 --- a/Compute/tests/Unit/V1/ExternalVpnGatewaysClientTest.php +++ b/Compute/tests/Unit/V1/ExternalVpnGatewaysClientTest.php @@ -86,7 +86,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -104,7 +104,7 @@ public function deleteTest() // Mock request $externalVpnGateway = 'externalVpnGateway-2037585019'; $project = 'project-309310695'; - $response = $client->delete($externalVpnGateway, $project); + $response = $gapicClient->delete($externalVpnGateway, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -148,7 +148,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -172,7 +172,7 @@ public function deleteExceptionTest() // Mock request $externalVpnGateway = 'externalVpnGateway-2037585019'; $project = 'project-309310695'; - $response = $client->delete($externalVpnGateway, $project); + $response = $gapicClient->delete($externalVpnGateway, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -198,7 +198,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -224,7 +224,7 @@ public function getTest() // Mock request $externalVpnGateway = 'externalVpnGateway-2037585019'; $project = 'project-309310695'; - $response = $client->get($externalVpnGateway, $project); + $response = $gapicClient->get($externalVpnGateway, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -244,7 +244,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -262,8 +262,8 @@ public function getExceptionTest() $externalVpnGateway = 'externalVpnGateway-2037585019'; $project = 'project-309310695'; try { - $client->get($externalVpnGateway, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($externalVpnGateway, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -286,7 +286,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -304,7 +304,7 @@ public function insertTest() // Mock request $externalVpnGatewayResource = new ExternalVpnGateway(); $project = 'project-309310695'; - $response = $client->insert($externalVpnGatewayResource, $project); + $response = $gapicClient->insert($externalVpnGatewayResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -348,7 +348,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -372,7 +372,7 @@ public function insertExceptionTest() // Mock request $externalVpnGatewayResource = new ExternalVpnGateway(); $project = 'project-309310695'; - $response = $client->insert($externalVpnGatewayResource, $project); + $response = $gapicClient->insert($externalVpnGatewayResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -398,7 +398,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -422,7 +422,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -443,7 +443,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -460,8 +460,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -484,7 +484,7 @@ public function setLabelsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -503,7 +503,7 @@ public function setLabelsTest() $globalSetLabelsRequestResource = new GlobalSetLabelsRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setLabels($globalSetLabelsRequestResource, $project, $resource); + $response = $gapicClient->setLabels($globalSetLabelsRequestResource, $project, $resource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -549,7 +549,7 @@ public function setLabelsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -574,7 +574,7 @@ public function setLabelsExceptionTest() $globalSetLabelsRequestResource = new GlobalSetLabelsRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setLabels($globalSetLabelsRequestResource, $project, $resource); + $response = $gapicClient->setLabels($globalSetLabelsRequestResource, $project, $resource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -600,7 +600,7 @@ public function setLabelsExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -611,7 +611,7 @@ public function testIamPermissionsTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -633,7 +633,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -652,8 +652,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/FirewallPoliciesClientTest.php b/Compute/tests/Unit/V1/FirewallPoliciesClientTest.php index 49f0523e465d..2203cece77aa 100644 --- a/Compute/tests/Unit/V1/FirewallPoliciesClientTest.php +++ b/Compute/tests/Unit/V1/FirewallPoliciesClientTest.php @@ -90,7 +90,7 @@ public function addAssociationTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -108,7 +108,7 @@ public function addAssociationTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyAssociationResource = new FirewallPolicyAssociation(); - $response = $client->addAssociation($firewallPolicy, $firewallPolicyAssociationResource); + $response = $gapicClient->addAssociation($firewallPolicy, $firewallPolicyAssociationResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -151,7 +151,7 @@ public function addAssociationExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -175,7 +175,7 @@ public function addAssociationExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyAssociationResource = new FirewallPolicyAssociation(); - $response = $client->addAssociation($firewallPolicy, $firewallPolicyAssociationResource); + $response = $gapicClient->addAssociation($firewallPolicy, $firewallPolicyAssociationResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -207,7 +207,7 @@ public function addRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -225,7 +225,7 @@ public function addRuleTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyRuleResource = new FirewallPolicyRule(); - $response = $client->addRule($firewallPolicy, $firewallPolicyRuleResource); + $response = $gapicClient->addRule($firewallPolicy, $firewallPolicyRuleResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -268,7 +268,7 @@ public function addRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -292,7 +292,7 @@ public function addRuleExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyRuleResource = new FirewallPolicyRule(); - $response = $client->addRule($firewallPolicy, $firewallPolicyRuleResource); + $response = $gapicClient->addRule($firewallPolicy, $firewallPolicyRuleResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -324,7 +324,7 @@ public function cloneRulesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -341,7 +341,7 @@ public function cloneRulesTest() $operationsTransport->addResponse($completeOperation); // Mock request $firewallPolicy = 'firewallPolicy1035044177'; - $response = $client->cloneRules($firewallPolicy); + $response = $gapicClient->cloneRules($firewallPolicy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -382,7 +382,7 @@ public function cloneRulesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -405,7 +405,7 @@ public function cloneRulesExceptionTest() $operationsTransport->addResponse(null, $status); // Mock request $firewallPolicy = 'firewallPolicy1035044177'; - $response = $client->cloneRules($firewallPolicy); + $response = $gapicClient->cloneRules($firewallPolicy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -437,7 +437,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -454,7 +454,7 @@ public function deleteTest() $operationsTransport->addResponse($completeOperation); // Mock request $firewallPolicy = 'firewallPolicy1035044177'; - $response = $client->delete($firewallPolicy); + $response = $gapicClient->delete($firewallPolicy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -495,7 +495,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -518,7 +518,7 @@ public function deleteExceptionTest() $operationsTransport->addResponse(null, $status); // Mock request $firewallPolicy = 'firewallPolicy1035044177'; - $response = $client->delete($firewallPolicy); + $response = $gapicClient->delete($firewallPolicy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -544,7 +544,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -579,7 +579,7 @@ public function getTest() $transport->addResponse($expectedResponse); // Mock request $firewallPolicy = 'firewallPolicy1035044177'; - $response = $client->get($firewallPolicy); + $response = $gapicClient->get($firewallPolicy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -597,7 +597,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -614,8 +614,8 @@ public function getExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; try { - $client->get($firewallPolicy); - // If the $client method call did not throw, fail the test + $gapicClient->get($firewallPolicy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -632,7 +632,7 @@ public function getExceptionTest() public function getAssociationTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -651,7 +651,7 @@ public function getAssociationTest() $transport->addResponse($expectedResponse); // Mock request $firewallPolicy = 'firewallPolicy1035044177'; - $response = $client->getAssociation($firewallPolicy); + $response = $gapicClient->getAssociation($firewallPolicy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -669,7 +669,7 @@ public function getAssociationTest() public function getAssociationExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -686,8 +686,8 @@ public function getAssociationExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; try { - $client->getAssociation($firewallPolicy); - // If the $client method call did not throw, fail the test + $gapicClient->getAssociation($firewallPolicy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -704,7 +704,7 @@ public function getAssociationExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -719,7 +719,7 @@ public function getIamPolicyTest() $transport->addResponse($expectedResponse); // Mock request $resource = 'resource-341064690'; - $response = $client->getIamPolicy($resource); + $response = $gapicClient->getIamPolicy($resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -737,7 +737,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -754,8 +754,8 @@ public function getIamPolicyExceptionTest() // Mock request $resource = 'resource-341064690'; try { - $client->getIamPolicy($resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -772,7 +772,7 @@ public function getIamPolicyExceptionTest() public function getRuleTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -799,7 +799,7 @@ public function getRuleTest() $transport->addResponse($expectedResponse); // Mock request $firewallPolicy = 'firewallPolicy1035044177'; - $response = $client->getRule($firewallPolicy); + $response = $gapicClient->getRule($firewallPolicy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -817,7 +817,7 @@ public function getRuleTest() public function getRuleExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -834,8 +834,8 @@ public function getRuleExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; try { - $client->getRule($firewallPolicy); - // If the $client method call did not throw, fail the test + $gapicClient->getRule($firewallPolicy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -858,7 +858,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -876,7 +876,7 @@ public function insertTest() // Mock request $firewallPolicyResource = new FirewallPolicy(); $parentId = 'parentId2070327504'; - $response = $client->insert($firewallPolicyResource, $parentId); + $response = $gapicClient->insert($firewallPolicyResource, $parentId); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -919,7 +919,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -943,7 +943,7 @@ public function insertExceptionTest() // Mock request $firewallPolicyResource = new FirewallPolicy(); $parentId = 'parentId2070327504'; - $response = $client->insert($firewallPolicyResource, $parentId); + $response = $gapicClient->insert($firewallPolicyResource, $parentId); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -969,7 +969,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -987,7 +987,7 @@ public function listTest() $expectedResponse->setNextPageToken($nextPageToken); $expectedResponse->setItems($items); $transport->addResponse($expectedResponse); - $response = $client->list(); + $response = $gapicClient->list(); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1006,7 +1006,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1021,8 +1021,8 @@ public function listExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); try { - $client->list(); - // If the $client method call did not throw, fail the test + $gapicClient->list(); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1039,7 +1039,7 @@ public function listExceptionTest() public function listAssociationsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1048,7 +1048,7 @@ public function listAssociationsTest() $expectedResponse = new FirewallPoliciesListAssociationsResponse(); $expectedResponse->setKind($kind); $transport->addResponse($expectedResponse); - $response = $client->listAssociations(); + $response = $gapicClient->listAssociations(); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1064,7 +1064,7 @@ public function listAssociationsTest() public function listAssociationsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1079,8 +1079,8 @@ public function listAssociationsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); try { - $client->listAssociations(); - // If the $client method call did not throw, fail the test + $gapicClient->listAssociations(); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1103,7 +1103,7 @@ public function moveTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1121,7 +1121,7 @@ public function moveTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $parentId = 'parentId2070327504'; - $response = $client->move($firewallPolicy, $parentId); + $response = $gapicClient->move($firewallPolicy, $parentId); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1164,7 +1164,7 @@ public function moveExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1188,7 +1188,7 @@ public function moveExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $parentId = 'parentId2070327504'; - $response = $client->move($firewallPolicy, $parentId); + $response = $gapicClient->move($firewallPolicy, $parentId); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1220,7 +1220,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1238,7 +1238,7 @@ public function patchTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyResource = new FirewallPolicy(); - $response = $client->patch($firewallPolicy, $firewallPolicyResource); + $response = $gapicClient->patch($firewallPolicy, $firewallPolicyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1281,7 +1281,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1305,7 +1305,7 @@ public function patchExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyResource = new FirewallPolicy(); - $response = $client->patch($firewallPolicy, $firewallPolicyResource); + $response = $gapicClient->patch($firewallPolicy, $firewallPolicyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1337,7 +1337,7 @@ public function patchRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1355,7 +1355,7 @@ public function patchRuleTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyRuleResource = new FirewallPolicyRule(); - $response = $client->patchRule($firewallPolicy, $firewallPolicyRuleResource); + $response = $gapicClient->patchRule($firewallPolicy, $firewallPolicyRuleResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1398,7 +1398,7 @@ public function patchRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1422,7 +1422,7 @@ public function patchRuleExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyRuleResource = new FirewallPolicyRule(); - $response = $client->patchRule($firewallPolicy, $firewallPolicyRuleResource); + $response = $gapicClient->patchRule($firewallPolicy, $firewallPolicyRuleResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1454,7 +1454,7 @@ public function removeAssociationTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1471,7 +1471,7 @@ public function removeAssociationTest() $operationsTransport->addResponse($completeOperation); // Mock request $firewallPolicy = 'firewallPolicy1035044177'; - $response = $client->removeAssociation($firewallPolicy); + $response = $gapicClient->removeAssociation($firewallPolicy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1512,7 +1512,7 @@ public function removeAssociationExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1535,7 +1535,7 @@ public function removeAssociationExceptionTest() $operationsTransport->addResponse(null, $status); // Mock request $firewallPolicy = 'firewallPolicy1035044177'; - $response = $client->removeAssociation($firewallPolicy); + $response = $gapicClient->removeAssociation($firewallPolicy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1567,7 +1567,7 @@ public function removeRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1584,7 +1584,7 @@ public function removeRuleTest() $operationsTransport->addResponse($completeOperation); // Mock request $firewallPolicy = 'firewallPolicy1035044177'; - $response = $client->removeRule($firewallPolicy); + $response = $gapicClient->removeRule($firewallPolicy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1625,7 +1625,7 @@ public function removeRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1648,7 +1648,7 @@ public function removeRuleExceptionTest() $operationsTransport->addResponse(null, $status); // Mock request $firewallPolicy = 'firewallPolicy1035044177'; - $response = $client->removeRule($firewallPolicy); + $response = $gapicClient->removeRule($firewallPolicy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1674,7 +1674,7 @@ public function removeRuleExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1690,7 +1690,7 @@ public function setIamPolicyTest() // Mock request $globalOrganizationSetPolicyRequestResource = new GlobalOrganizationSetPolicyRequest(); $resource = 'resource-341064690'; - $response = $client->setIamPolicy($globalOrganizationSetPolicyRequestResource, $resource); + $response = $gapicClient->setIamPolicy($globalOrganizationSetPolicyRequestResource, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1710,7 +1710,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1728,8 +1728,8 @@ public function setIamPolicyExceptionTest() $globalOrganizationSetPolicyRequestResource = new GlobalOrganizationSetPolicyRequest(); $resource = 'resource-341064690'; try { - $client->setIamPolicy($globalOrganizationSetPolicyRequestResource, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($globalOrganizationSetPolicyRequestResource, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1746,7 +1746,7 @@ public function setIamPolicyExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1756,7 +1756,7 @@ public function testIamPermissionsTest() // Mock request $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1776,7 +1776,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1794,8 +1794,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/FirewallsClientTest.php b/Compute/tests/Unit/V1/FirewallsClientTest.php index 832d526a729d..7a8a432e6768 100644 --- a/Compute/tests/Unit/V1/FirewallsClientTest.php +++ b/Compute/tests/Unit/V1/FirewallsClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -101,7 +101,7 @@ public function deleteTest() // Mock request $firewall = 'firewall-562725632'; $project = 'project-309310695'; - $response = $client->delete($firewall, $project); + $response = $gapicClient->delete($firewall, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -145,7 +145,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -169,7 +169,7 @@ public function deleteExceptionTest() // Mock request $firewall = 'firewall-562725632'; $project = 'project-309310695'; - $response = $client->delete($firewall, $project); + $response = $gapicClient->delete($firewall, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -195,7 +195,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -225,7 +225,7 @@ public function getTest() // Mock request $firewall = 'firewall-562725632'; $project = 'project-309310695'; - $response = $client->get($firewall, $project); + $response = $gapicClient->get($firewall, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -245,7 +245,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -263,8 +263,8 @@ public function getExceptionTest() $firewall = 'firewall-562725632'; $project = 'project-309310695'; try { - $client->get($firewall, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($firewall, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -287,7 +287,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -305,7 +305,7 @@ public function insertTest() // Mock request $firewallResource = new Firewall(); $project = 'project-309310695'; - $response = $client->insert($firewallResource, $project); + $response = $gapicClient->insert($firewallResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -349,7 +349,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -373,7 +373,7 @@ public function insertExceptionTest() // Mock request $firewallResource = new Firewall(); $project = 'project-309310695'; - $response = $client->insert($firewallResource, $project); + $response = $gapicClient->insert($firewallResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -399,7 +399,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -421,7 +421,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -442,7 +442,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -459,8 +459,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -483,7 +483,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -502,7 +502,7 @@ public function patchTest() $firewall = 'firewall-562725632'; $firewallResource = new Firewall(); $project = 'project-309310695'; - $response = $client->patch($firewall, $firewallResource, $project); + $response = $gapicClient->patch($firewall, $firewallResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -548,7 +548,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -573,7 +573,7 @@ public function patchExceptionTest() $firewall = 'firewall-562725632'; $firewallResource = new Firewall(); $project = 'project-309310695'; - $response = $client->patch($firewall, $firewallResource, $project); + $response = $gapicClient->patch($firewall, $firewallResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -605,7 +605,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -624,7 +624,7 @@ public function updateTest() $firewall = 'firewall-562725632'; $firewallResource = new Firewall(); $project = 'project-309310695'; - $response = $client->update($firewall, $firewallResource, $project); + $response = $gapicClient->update($firewall, $firewallResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -670,7 +670,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -695,7 +695,7 @@ public function updateExceptionTest() $firewall = 'firewall-562725632'; $firewallResource = new Firewall(); $project = 'project-309310695'; - $response = $client->update($firewall, $firewallResource, $project); + $response = $gapicClient->update($firewall, $firewallResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/ForwardingRulesClientTest.php b/Compute/tests/Unit/V1/ForwardingRulesClientTest.php index a6adce8705f5..a1582f512a8a 100644 --- a/Compute/tests/Unit/V1/ForwardingRulesClientTest.php +++ b/Compute/tests/Unit/V1/ForwardingRulesClientTest.php @@ -81,7 +81,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -102,7 +102,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -125,7 +125,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -142,8 +142,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -166,7 +166,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -185,7 +185,7 @@ public function deleteTest() $forwardingRule = 'forwardingRule-1340648706'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($forwardingRule, $project, $region); + $response = $gapicClient->delete($forwardingRule, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -232,7 +232,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -257,7 +257,7 @@ public function deleteExceptionTest() $forwardingRule = 'forwardingRule-1340648706'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($forwardingRule, $project, $region); + $response = $gapicClient->delete($forwardingRule, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -283,7 +283,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -348,7 +348,7 @@ public function getTest() $forwardingRule = 'forwardingRule-1340648706'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($forwardingRule, $project, $region); + $response = $gapicClient->get($forwardingRule, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -370,7 +370,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -389,8 +389,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($forwardingRule, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($forwardingRule, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -413,7 +413,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -432,7 +432,7 @@ public function insertTest() $forwardingRuleResource = new ForwardingRule(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($forwardingRuleResource, $project, $region); + $response = $gapicClient->insert($forwardingRuleResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -479,7 +479,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -504,7 +504,7 @@ public function insertExceptionTest() $forwardingRuleResource = new ForwardingRule(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($forwardingRuleResource, $project, $region); + $response = $gapicClient->insert($forwardingRuleResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -530,7 +530,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -553,7 +553,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -576,7 +576,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -594,8 +594,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -618,7 +618,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -638,7 +638,7 @@ public function patchTest() $forwardingRuleResource = new ForwardingRule(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($forwardingRule, $forwardingRuleResource, $project, $region); + $response = $gapicClient->patch($forwardingRule, $forwardingRuleResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -687,7 +687,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -713,7 +713,7 @@ public function patchExceptionTest() $forwardingRuleResource = new ForwardingRule(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($forwardingRule, $forwardingRuleResource, $project, $region); + $response = $gapicClient->patch($forwardingRule, $forwardingRuleResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -745,7 +745,7 @@ public function setLabelsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -765,7 +765,7 @@ public function setLabelsTest() $region = 'region-934795532'; $regionSetLabelsRequestResource = new RegionSetLabelsRequest(); $resource = 'resource-341064690'; - $response = $client->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); + $response = $gapicClient->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -814,7 +814,7 @@ public function setLabelsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -840,7 +840,7 @@ public function setLabelsExceptionTest() $region = 'region-934795532'; $regionSetLabelsRequestResource = new RegionSetLabelsRequest(); $resource = 'resource-341064690'; - $response = $client->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); + $response = $gapicClient->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -872,7 +872,7 @@ public function setTargetTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -892,7 +892,7 @@ public function setTargetTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetReferenceResource = new TargetReference(); - $response = $client->setTarget($forwardingRule, $project, $region, $targetReferenceResource); + $response = $gapicClient->setTarget($forwardingRule, $project, $region, $targetReferenceResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -941,7 +941,7 @@ public function setTargetExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -967,7 +967,7 @@ public function setTargetExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetReferenceResource = new TargetReference(); - $response = $client->setTarget($forwardingRule, $project, $region, $targetReferenceResource); + $response = $gapicClient->setTarget($forwardingRule, $project, $region, $targetReferenceResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/GlobalAddressesClientTest.php b/Compute/tests/Unit/V1/GlobalAddressesClientTest.php index 8d086090b689..a75e7c62d549 100644 --- a/Compute/tests/Unit/V1/GlobalAddressesClientTest.php +++ b/Compute/tests/Unit/V1/GlobalAddressesClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -101,7 +101,7 @@ public function deleteTest() // Mock request $address = 'address-1147692044'; $project = 'project-309310695'; - $response = $client->delete($address, $project); + $response = $gapicClient->delete($address, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -145,7 +145,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -169,7 +169,7 @@ public function deleteExceptionTest() // Mock request $address = 'address-1147692044'; $project = 'project-309310695'; - $response = $client->delete($address, $project); + $response = $gapicClient->delete($address, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -195,7 +195,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -237,7 +237,7 @@ public function getTest() // Mock request $address = 'address-1147692044'; $project = 'project-309310695'; - $response = $client->get($address, $project); + $response = $gapicClient->get($address, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -257,7 +257,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -275,8 +275,8 @@ public function getExceptionTest() $address = 'address-1147692044'; $project = 'project-309310695'; try { - $client->get($address, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($address, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -299,7 +299,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -317,7 +317,7 @@ public function insertTest() // Mock request $addressResource = new Address(); $project = 'project-309310695'; - $response = $client->insert($addressResource, $project); + $response = $gapicClient->insert($addressResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -361,7 +361,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -385,7 +385,7 @@ public function insertExceptionTest() // Mock request $addressResource = new Address(); $project = 'project-309310695'; - $response = $client->insert($addressResource, $project); + $response = $gapicClient->insert($addressResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -411,7 +411,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -433,7 +433,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -454,7 +454,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -471,8 +471,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/GlobalForwardingRulesClientTest.php b/Compute/tests/Unit/V1/GlobalForwardingRulesClientTest.php index 70c2586ba3ac..dc61bcb79484 100644 --- a/Compute/tests/Unit/V1/GlobalForwardingRulesClientTest.php +++ b/Compute/tests/Unit/V1/GlobalForwardingRulesClientTest.php @@ -85,7 +85,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -103,7 +103,7 @@ public function deleteTest() // Mock request $forwardingRule = 'forwardingRule-1340648706'; $project = 'project-309310695'; - $response = $client->delete($forwardingRule, $project); + $response = $gapicClient->delete($forwardingRule, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -147,7 +147,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -171,7 +171,7 @@ public function deleteExceptionTest() // Mock request $forwardingRule = 'forwardingRule-1340648706'; $project = 'project-309310695'; - $response = $client->delete($forwardingRule, $project); + $response = $gapicClient->delete($forwardingRule, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -197,7 +197,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -261,7 +261,7 @@ public function getTest() // Mock request $forwardingRule = 'forwardingRule-1340648706'; $project = 'project-309310695'; - $response = $client->get($forwardingRule, $project); + $response = $gapicClient->get($forwardingRule, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -281,7 +281,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -299,8 +299,8 @@ public function getExceptionTest() $forwardingRule = 'forwardingRule-1340648706'; $project = 'project-309310695'; try { - $client->get($forwardingRule, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($forwardingRule, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -323,7 +323,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -341,7 +341,7 @@ public function insertTest() // Mock request $forwardingRuleResource = new ForwardingRule(); $project = 'project-309310695'; - $response = $client->insert($forwardingRuleResource, $project); + $response = $gapicClient->insert($forwardingRuleResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -385,7 +385,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -409,7 +409,7 @@ public function insertExceptionTest() // Mock request $forwardingRuleResource = new ForwardingRule(); $project = 'project-309310695'; - $response = $client->insert($forwardingRuleResource, $project); + $response = $gapicClient->insert($forwardingRuleResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -435,7 +435,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -457,7 +457,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -478,7 +478,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -495,8 +495,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -519,7 +519,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -538,7 +538,7 @@ public function patchTest() $forwardingRule = 'forwardingRule-1340648706'; $forwardingRuleResource = new ForwardingRule(); $project = 'project-309310695'; - $response = $client->patch($forwardingRule, $forwardingRuleResource, $project); + $response = $gapicClient->patch($forwardingRule, $forwardingRuleResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -584,7 +584,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -609,7 +609,7 @@ public function patchExceptionTest() $forwardingRule = 'forwardingRule-1340648706'; $forwardingRuleResource = new ForwardingRule(); $project = 'project-309310695'; - $response = $client->patch($forwardingRule, $forwardingRuleResource, $project); + $response = $gapicClient->patch($forwardingRule, $forwardingRuleResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -641,7 +641,7 @@ public function setLabelsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -660,7 +660,7 @@ public function setLabelsTest() $globalSetLabelsRequestResource = new GlobalSetLabelsRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setLabels($globalSetLabelsRequestResource, $project, $resource); + $response = $gapicClient->setLabels($globalSetLabelsRequestResource, $project, $resource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -706,7 +706,7 @@ public function setLabelsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -731,7 +731,7 @@ public function setLabelsExceptionTest() $globalSetLabelsRequestResource = new GlobalSetLabelsRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setLabels($globalSetLabelsRequestResource, $project, $resource); + $response = $gapicClient->setLabels($globalSetLabelsRequestResource, $project, $resource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -763,7 +763,7 @@ public function setTargetTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -782,7 +782,7 @@ public function setTargetTest() $forwardingRule = 'forwardingRule-1340648706'; $project = 'project-309310695'; $targetReferenceResource = new TargetReference(); - $response = $client->setTarget($forwardingRule, $project, $targetReferenceResource); + $response = $gapicClient->setTarget($forwardingRule, $project, $targetReferenceResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -828,7 +828,7 @@ public function setTargetExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -853,7 +853,7 @@ public function setTargetExceptionTest() $forwardingRule = 'forwardingRule-1340648706'; $project = 'project-309310695'; $targetReferenceResource = new TargetReference(); - $response = $client->setTarget($forwardingRule, $project, $targetReferenceResource); + $response = $gapicClient->setTarget($forwardingRule, $project, $targetReferenceResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/GlobalNetworkEndpointGroupsClientTest.php b/Compute/tests/Unit/V1/GlobalNetworkEndpointGroupsClientTest.php index 1af39beee275..45619c1153f1 100644 --- a/Compute/tests/Unit/V1/GlobalNetworkEndpointGroupsClientTest.php +++ b/Compute/tests/Unit/V1/GlobalNetworkEndpointGroupsClientTest.php @@ -87,7 +87,7 @@ public function attachNetworkEndpointsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -106,7 +106,7 @@ public function attachNetworkEndpointsTest() $globalNetworkEndpointGroupsAttachEndpointsRequestResource = new GlobalNetworkEndpointGroupsAttachEndpointsRequest(); $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; - $response = $client->attachNetworkEndpoints($globalNetworkEndpointGroupsAttachEndpointsRequestResource, $networkEndpointGroup, $project); + $response = $gapicClient->attachNetworkEndpoints($globalNetworkEndpointGroupsAttachEndpointsRequestResource, $networkEndpointGroup, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -152,7 +152,7 @@ public function attachNetworkEndpointsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -177,7 +177,7 @@ public function attachNetworkEndpointsExceptionTest() $globalNetworkEndpointGroupsAttachEndpointsRequestResource = new GlobalNetworkEndpointGroupsAttachEndpointsRequest(); $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; - $response = $client->attachNetworkEndpoints($globalNetworkEndpointGroupsAttachEndpointsRequestResource, $networkEndpointGroup, $project); + $response = $gapicClient->attachNetworkEndpoints($globalNetworkEndpointGroupsAttachEndpointsRequestResource, $networkEndpointGroup, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -209,7 +209,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -227,7 +227,7 @@ public function deleteTest() // Mock request $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; - $response = $client->delete($networkEndpointGroup, $project); + $response = $gapicClient->delete($networkEndpointGroup, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -271,7 +271,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -295,7 +295,7 @@ public function deleteExceptionTest() // Mock request $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; - $response = $client->delete($networkEndpointGroup, $project); + $response = $gapicClient->delete($networkEndpointGroup, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -327,7 +327,7 @@ public function detachNetworkEndpointsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -346,7 +346,7 @@ public function detachNetworkEndpointsTest() $globalNetworkEndpointGroupsDetachEndpointsRequestResource = new GlobalNetworkEndpointGroupsDetachEndpointsRequest(); $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; - $response = $client->detachNetworkEndpoints($globalNetworkEndpointGroupsDetachEndpointsRequestResource, $networkEndpointGroup, $project); + $response = $gapicClient->detachNetworkEndpoints($globalNetworkEndpointGroupsDetachEndpointsRequestResource, $networkEndpointGroup, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -392,7 +392,7 @@ public function detachNetworkEndpointsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -417,7 +417,7 @@ public function detachNetworkEndpointsExceptionTest() $globalNetworkEndpointGroupsDetachEndpointsRequestResource = new GlobalNetworkEndpointGroupsDetachEndpointsRequest(); $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; - $response = $client->detachNetworkEndpoints($globalNetworkEndpointGroupsDetachEndpointsRequestResource, $networkEndpointGroup, $project); + $response = $gapicClient->detachNetworkEndpoints($globalNetworkEndpointGroupsDetachEndpointsRequestResource, $networkEndpointGroup, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -443,7 +443,7 @@ public function detachNetworkEndpointsExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -481,7 +481,7 @@ public function getTest() // Mock request $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; - $response = $client->get($networkEndpointGroup, $project); + $response = $gapicClient->get($networkEndpointGroup, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -501,7 +501,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -519,8 +519,8 @@ public function getExceptionTest() $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; try { - $client->get($networkEndpointGroup, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($networkEndpointGroup, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -543,7 +543,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -561,7 +561,7 @@ public function insertTest() // Mock request $networkEndpointGroupResource = new NetworkEndpointGroup(); $project = 'project-309310695'; - $response = $client->insert($networkEndpointGroupResource, $project); + $response = $gapicClient->insert($networkEndpointGroupResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -605,7 +605,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -629,7 +629,7 @@ public function insertExceptionTest() // Mock request $networkEndpointGroupResource = new NetworkEndpointGroup(); $project = 'project-309310695'; - $response = $client->insert($networkEndpointGroupResource, $project); + $response = $gapicClient->insert($networkEndpointGroupResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -655,7 +655,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -677,7 +677,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -698,7 +698,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -715,8 +715,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -733,7 +733,7 @@ public function listExceptionTest() public function listNetworkEndpointsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -754,7 +754,7 @@ public function listNetworkEndpointsTest() // Mock request $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; - $response = $client->listNetworkEndpoints($networkEndpointGroup, $project); + $response = $gapicClient->listNetworkEndpoints($networkEndpointGroup, $project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -777,7 +777,7 @@ public function listNetworkEndpointsTest() public function listNetworkEndpointsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -795,8 +795,8 @@ public function listNetworkEndpointsExceptionTest() $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; try { - $client->listNetworkEndpoints($networkEndpointGroup, $project); - // If the $client method call did not throw, fail the test + $gapicClient->listNetworkEndpoints($networkEndpointGroup, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/GlobalOperationsClientTest.php b/Compute/tests/Unit/V1/GlobalOperationsClientTest.php index a8350a8255a8..19d3e9cc09c1 100644 --- a/Compute/tests/Unit/V1/GlobalOperationsClientTest.php +++ b/Compute/tests/Unit/V1/GlobalOperationsClientTest.php @@ -76,7 +76,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -97,7 +97,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -120,7 +120,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -137,8 +137,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -155,7 +155,7 @@ public function aggregatedListExceptionTest() public function deleteTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -165,7 +165,7 @@ public function deleteTest() // Mock request $operation = 'operation1662702951'; $project = 'project-309310695'; - $response = $client->delete($operation, $project); + $response = $gapicClient->delete($operation, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -185,7 +185,7 @@ public function deleteTest() public function deleteExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -203,8 +203,8 @@ public function deleteExceptionTest() $operation = 'operation1662702951'; $project = 'project-309310695'; try { - $client->delete($operation, $project); - // If the $client method call did not throw, fail the test + $gapicClient->delete($operation, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -221,7 +221,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -273,7 +273,7 @@ public function getTest() // Mock request $operation = 'operation1662702951'; $project = 'project-309310695'; - $response = $client->get($operation, $project); + $response = $gapicClient->get($operation, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -293,7 +293,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -311,8 +311,8 @@ public function getExceptionTest() $operation = 'operation1662702951'; $project = 'project-309310695'; try { - $client->get($operation, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($operation, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -329,7 +329,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -351,7 +351,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -372,7 +372,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -389,8 +389,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -407,7 +407,7 @@ public function listExceptionTest() public function waitTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -459,7 +459,7 @@ public function waitTest() // Mock request $operation = 'operation1662702951'; $project = 'project-309310695'; - $response = $client->wait($operation, $project); + $response = $gapicClient->wait($operation, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -479,7 +479,7 @@ public function waitTest() public function waitExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -497,8 +497,8 @@ public function waitExceptionTest() $operation = 'operation1662702951'; $project = 'project-309310695'; try { - $client->wait($operation, $project); - // If the $client method call did not throw, fail the test + $gapicClient->wait($operation, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/GlobalOrganizationOperationsClientTest.php b/Compute/tests/Unit/V1/GlobalOrganizationOperationsClientTest.php index 998a7755da56..44be1192baf6 100644 --- a/Compute/tests/Unit/V1/GlobalOrganizationOperationsClientTest.php +++ b/Compute/tests/Unit/V1/GlobalOrganizationOperationsClientTest.php @@ -74,7 +74,7 @@ private function createClient(array $options = []) public function deleteTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -83,7 +83,7 @@ public function deleteTest() $transport->addResponse($expectedResponse); // Mock request $operation = 'operation1662702951'; - $response = $client->delete($operation); + $response = $gapicClient->delete($operation); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -101,7 +101,7 @@ public function deleteTest() public function deleteExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -118,8 +118,8 @@ public function deleteExceptionTest() // Mock request $operation = 'operation1662702951'; try { - $client->delete($operation); - // If the $client method call did not throw, fail the test + $gapicClient->delete($operation); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -136,7 +136,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -187,7 +187,7 @@ public function getTest() $transport->addResponse($expectedResponse); // Mock request $operation = 'operation1662702951'; - $response = $client->get($operation); + $response = $gapicClient->get($operation); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -205,7 +205,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -222,8 +222,8 @@ public function getExceptionTest() // Mock request $operation = 'operation1662702951'; try { - $client->get($operation); - // If the $client method call did not throw, fail the test + $gapicClient->get($operation); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -240,7 +240,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -260,7 +260,7 @@ public function listTest() $expectedResponse->setSelfLink($selfLink); $expectedResponse->setItems($items); $transport->addResponse($expectedResponse); - $response = $client->list(); + $response = $gapicClient->list(); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -279,7 +279,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -294,8 +294,8 @@ public function listExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); try { - $client->list(); - // If the $client method call did not throw, fail the test + $gapicClient->list(); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/GlobalPublicDelegatedPrefixesClientTest.php b/Compute/tests/Unit/V1/GlobalPublicDelegatedPrefixesClientTest.php index a6cbc9b3f2f2..48608eeec9a7 100644 --- a/Compute/tests/Unit/V1/GlobalPublicDelegatedPrefixesClientTest.php +++ b/Compute/tests/Unit/V1/GlobalPublicDelegatedPrefixesClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -101,7 +101,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; - $response = $client->delete($project, $publicDelegatedPrefix); + $response = $gapicClient->delete($project, $publicDelegatedPrefix); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -145,7 +145,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -169,7 +169,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; - $response = $client->delete($project, $publicDelegatedPrefix); + $response = $gapicClient->delete($project, $publicDelegatedPrefix); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -195,7 +195,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -229,7 +229,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; - $response = $client->get($project, $publicDelegatedPrefix); + $response = $gapicClient->get($project, $publicDelegatedPrefix); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -249,7 +249,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -267,8 +267,8 @@ public function getExceptionTest() $project = 'project-309310695'; $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; try { - $client->get($project, $publicDelegatedPrefix); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $publicDelegatedPrefix); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -291,7 +291,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -309,7 +309,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $publicDelegatedPrefixResource = new PublicDelegatedPrefix(); - $response = $client->insert($project, $publicDelegatedPrefixResource); + $response = $gapicClient->insert($project, $publicDelegatedPrefixResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -353,7 +353,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -377,7 +377,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $publicDelegatedPrefixResource = new PublicDelegatedPrefix(); - $response = $client->insert($project, $publicDelegatedPrefixResource); + $response = $gapicClient->insert($project, $publicDelegatedPrefixResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -403,7 +403,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -425,7 +425,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -446,7 +446,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -463,8 +463,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -487,7 +487,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -506,7 +506,7 @@ public function patchTest() $project = 'project-309310695'; $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; $publicDelegatedPrefixResource = new PublicDelegatedPrefix(); - $response = $client->patch($project, $publicDelegatedPrefix, $publicDelegatedPrefixResource); + $response = $gapicClient->patch($project, $publicDelegatedPrefix, $publicDelegatedPrefixResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -552,7 +552,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -577,7 +577,7 @@ public function patchExceptionTest() $project = 'project-309310695'; $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; $publicDelegatedPrefixResource = new PublicDelegatedPrefix(); - $response = $client->patch($project, $publicDelegatedPrefix, $publicDelegatedPrefixResource); + $response = $gapicClient->patch($project, $publicDelegatedPrefix, $publicDelegatedPrefixResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/HealthChecksClientTest.php b/Compute/tests/Unit/V1/HealthChecksClientTest.php index 831c2ae2fdb1..600b2aaaccdf 100644 --- a/Compute/tests/Unit/V1/HealthChecksClientTest.php +++ b/Compute/tests/Unit/V1/HealthChecksClientTest.php @@ -79,7 +79,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -100,7 +100,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -123,7 +123,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -140,8 +140,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -164,7 +164,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -182,7 +182,7 @@ public function deleteTest() // Mock request $healthCheck = 'healthCheck845747557'; $project = 'project-309310695'; - $response = $client->delete($healthCheck, $project); + $response = $gapicClient->delete($healthCheck, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -226,7 +226,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -250,7 +250,7 @@ public function deleteExceptionTest() // Mock request $healthCheck = 'healthCheck845747557'; $project = 'project-309310695'; - $response = $client->delete($healthCheck, $project); + $response = $gapicClient->delete($healthCheck, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -276,7 +276,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -310,7 +310,7 @@ public function getTest() // Mock request $healthCheck = 'healthCheck845747557'; $project = 'project-309310695'; - $response = $client->get($healthCheck, $project); + $response = $gapicClient->get($healthCheck, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -330,7 +330,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -348,8 +348,8 @@ public function getExceptionTest() $healthCheck = 'healthCheck845747557'; $project = 'project-309310695'; try { - $client->get($healthCheck, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($healthCheck, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -372,7 +372,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -390,7 +390,7 @@ public function insertTest() // Mock request $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; - $response = $client->insert($healthCheckResource, $project); + $response = $gapicClient->insert($healthCheckResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -434,7 +434,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -458,7 +458,7 @@ public function insertExceptionTest() // Mock request $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; - $response = $client->insert($healthCheckResource, $project); + $response = $gapicClient->insert($healthCheckResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -484,7 +484,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -506,7 +506,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -527,7 +527,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -544,8 +544,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -568,7 +568,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -587,7 +587,7 @@ public function patchTest() $healthCheck = 'healthCheck845747557'; $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; - $response = $client->patch($healthCheck, $healthCheckResource, $project); + $response = $gapicClient->patch($healthCheck, $healthCheckResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -633,7 +633,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -658,7 +658,7 @@ public function patchExceptionTest() $healthCheck = 'healthCheck845747557'; $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; - $response = $client->patch($healthCheck, $healthCheckResource, $project); + $response = $gapicClient->patch($healthCheck, $healthCheckResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -690,7 +690,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -709,7 +709,7 @@ public function updateTest() $healthCheck = 'healthCheck845747557'; $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; - $response = $client->update($healthCheck, $healthCheckResource, $project); + $response = $gapicClient->update($healthCheck, $healthCheckResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -755,7 +755,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -780,7 +780,7 @@ public function updateExceptionTest() $healthCheck = 'healthCheck845747557'; $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; - $response = $client->update($healthCheck, $healthCheckResource, $project); + $response = $gapicClient->update($healthCheck, $healthCheckResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/ImageFamilyViewsClientTest.php b/Compute/tests/Unit/V1/ImageFamilyViewsClientTest.php index 3328a8af34a2..276ffbba5b37 100644 --- a/Compute/tests/Unit/V1/ImageFamilyViewsClientTest.php +++ b/Compute/tests/Unit/V1/ImageFamilyViewsClientTest.php @@ -72,7 +72,7 @@ private function createClient(array $options = []) public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -83,7 +83,7 @@ public function getTest() $family = 'family-1281860764'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($family, $project, $zone); + $response = $gapicClient->get($family, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -105,7 +105,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -124,8 +124,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($family, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($family, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/ImagesClientTest.php b/Compute/tests/Unit/V1/ImagesClientTest.php index a4a1e3520b70..2972ac3a041a 100644 --- a/Compute/tests/Unit/V1/ImagesClientTest.php +++ b/Compute/tests/Unit/V1/ImagesClientTest.php @@ -89,7 +89,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -107,7 +107,7 @@ public function deleteTest() // Mock request $image = 'image100313435'; $project = 'project-309310695'; - $response = $client->delete($image, $project); + $response = $gapicClient->delete($image, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -151,7 +151,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -175,7 +175,7 @@ public function deleteExceptionTest() // Mock request $image = 'image100313435'; $project = 'project-309310695'; - $response = $client->delete($image, $project); + $response = $gapicClient->delete($image, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -207,7 +207,7 @@ public function deprecateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -226,7 +226,7 @@ public function deprecateTest() $deprecationStatusResource = new DeprecationStatus(); $image = 'image100313435'; $project = 'project-309310695'; - $response = $client->deprecate($deprecationStatusResource, $image, $project); + $response = $gapicClient->deprecate($deprecationStatusResource, $image, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -272,7 +272,7 @@ public function deprecateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -297,7 +297,7 @@ public function deprecateExceptionTest() $deprecationStatusResource = new DeprecationStatus(); $image = 'image100313435'; $project = 'project-309310695'; - $response = $client->deprecate($deprecationStatusResource, $image, $project); + $response = $gapicClient->deprecate($deprecationStatusResource, $image, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -323,11 +323,12 @@ public function deprecateExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); // Mock response + $architecture = 'architecture839674195'; $archiveSizeBytes = 1766390198; $creationTimestamp = 'creationTimestamp567396278'; $description = 'description-1724546052'; @@ -348,6 +349,7 @@ public function getTest() $sourceType = 'sourceType-84625186'; $status = 'status-892481550'; $expectedResponse = new Image(); + $expectedResponse->setArchitecture($architecture); $expectedResponse->setArchiveSizeBytes($archiveSizeBytes); $expectedResponse->setCreationTimestamp($creationTimestamp); $expectedResponse->setDescription($description); @@ -371,7 +373,7 @@ public function getTest() // Mock request $image = 'image100313435'; $project = 'project-309310695'; - $response = $client->get($image, $project); + $response = $gapicClient->get($image, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -391,7 +393,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -409,8 +411,8 @@ public function getExceptionTest() $image = 'image100313435'; $project = 'project-309310695'; try { - $client->get($image, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($image, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -427,11 +429,12 @@ public function getExceptionTest() public function getFromFamilyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); // Mock response + $architecture = 'architecture839674195'; $archiveSizeBytes = 1766390198; $creationTimestamp = 'creationTimestamp567396278'; $description = 'description-1724546052'; @@ -452,6 +455,7 @@ public function getFromFamilyTest() $sourceType = 'sourceType-84625186'; $status = 'status-892481550'; $expectedResponse = new Image(); + $expectedResponse->setArchitecture($architecture); $expectedResponse->setArchiveSizeBytes($archiveSizeBytes); $expectedResponse->setCreationTimestamp($creationTimestamp); $expectedResponse->setDescription($description); @@ -475,7 +479,7 @@ public function getFromFamilyTest() // Mock request $family = 'family-1281860764'; $project = 'project-309310695'; - $response = $client->getFromFamily($family, $project); + $response = $gapicClient->getFromFamily($family, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -495,7 +499,7 @@ public function getFromFamilyTest() public function getFromFamilyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -513,8 +517,8 @@ public function getFromFamilyExceptionTest() $family = 'family-1281860764'; $project = 'project-309310695'; try { - $client->getFromFamily($family, $project); - // If the $client method call did not throw, fail the test + $gapicClient->getFromFamily($family, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -531,7 +535,7 @@ public function getFromFamilyExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -547,7 +551,7 @@ public function getIamPolicyTest() // Mock request $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $resource); + $response = $gapicClient->getIamPolicy($project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -567,7 +571,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -585,8 +589,8 @@ public function getIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -609,7 +613,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -627,7 +631,7 @@ public function insertTest() // Mock request $imageResource = new Image(); $project = 'project-309310695'; - $response = $client->insert($imageResource, $project); + $response = $gapicClient->insert($imageResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -671,7 +675,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -695,7 +699,7 @@ public function insertExceptionTest() // Mock request $imageResource = new Image(); $project = 'project-309310695'; - $response = $client->insert($imageResource, $project); + $response = $gapicClient->insert($imageResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -721,7 +725,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -743,7 +747,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -764,7 +768,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -781,8 +785,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -805,7 +809,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -824,7 +828,7 @@ public function patchTest() $image = 'image100313435'; $imageResource = new Image(); $project = 'project-309310695'; - $response = $client->patch($image, $imageResource, $project); + $response = $gapicClient->patch($image, $imageResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -870,7 +874,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -895,7 +899,7 @@ public function patchExceptionTest() $image = 'image100313435'; $imageResource = new Image(); $project = 'project-309310695'; - $response = $client->patch($image, $imageResource, $project); + $response = $gapicClient->patch($image, $imageResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -921,7 +925,7 @@ public function patchExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -938,7 +942,7 @@ public function setIamPolicyTest() $globalSetPolicyRequestResource = new GlobalSetPolicyRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + $response = $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -960,7 +964,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -979,8 +983,8 @@ public function setIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1003,7 +1007,7 @@ public function setLabelsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1022,7 +1026,7 @@ public function setLabelsTest() $globalSetLabelsRequestResource = new GlobalSetLabelsRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setLabels($globalSetLabelsRequestResource, $project, $resource); + $response = $gapicClient->setLabels($globalSetLabelsRequestResource, $project, $resource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1068,7 +1072,7 @@ public function setLabelsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1093,7 +1097,7 @@ public function setLabelsExceptionTest() $globalSetLabelsRequestResource = new GlobalSetLabelsRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setLabels($globalSetLabelsRequestResource, $project, $resource); + $response = $gapicClient->setLabels($globalSetLabelsRequestResource, $project, $resource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1119,7 +1123,7 @@ public function setLabelsExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1130,7 +1134,7 @@ public function testIamPermissionsTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1152,7 +1156,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1171,8 +1175,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/InstanceGroupManagersClientTest.php b/Compute/tests/Unit/V1/InstanceGroupManagersClientTest.php index 8f1bdd99de8c..69e8f60d3194 100644 --- a/Compute/tests/Unit/V1/InstanceGroupManagersClientTest.php +++ b/Compute/tests/Unit/V1/InstanceGroupManagersClientTest.php @@ -101,7 +101,7 @@ public function abandonInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -121,7 +121,7 @@ public function abandonInstancesTest() $instanceGroupManagersAbandonInstancesRequestResource = new InstanceGroupManagersAbandonInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->abandonInstances($instanceGroupManager, $instanceGroupManagersAbandonInstancesRequestResource, $project, $zone); + $response = $gapicClient->abandonInstances($instanceGroupManager, $instanceGroupManagersAbandonInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -170,7 +170,7 @@ public function abandonInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -196,7 +196,7 @@ public function abandonInstancesExceptionTest() $instanceGroupManagersAbandonInstancesRequestResource = new InstanceGroupManagersAbandonInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->abandonInstances($instanceGroupManager, $instanceGroupManagersAbandonInstancesRequestResource, $project, $zone); + $response = $gapicClient->abandonInstances($instanceGroupManager, $instanceGroupManagersAbandonInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -222,7 +222,7 @@ public function abandonInstancesExceptionTest() public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -243,7 +243,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -266,7 +266,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -283,8 +283,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -307,7 +307,7 @@ public function applyUpdatesToInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -327,7 +327,7 @@ public function applyUpdatesToInstancesTest() $instanceGroupManagersApplyUpdatesRequestResource = new InstanceGroupManagersApplyUpdatesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->applyUpdatesToInstances($instanceGroupManager, $instanceGroupManagersApplyUpdatesRequestResource, $project, $zone); + $response = $gapicClient->applyUpdatesToInstances($instanceGroupManager, $instanceGroupManagersApplyUpdatesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -376,7 +376,7 @@ public function applyUpdatesToInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -402,7 +402,7 @@ public function applyUpdatesToInstancesExceptionTest() $instanceGroupManagersApplyUpdatesRequestResource = new InstanceGroupManagersApplyUpdatesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->applyUpdatesToInstances($instanceGroupManager, $instanceGroupManagersApplyUpdatesRequestResource, $project, $zone); + $response = $gapicClient->applyUpdatesToInstances($instanceGroupManager, $instanceGroupManagersApplyUpdatesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -434,7 +434,7 @@ public function createInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -454,7 +454,7 @@ public function createInstancesTest() $instanceGroupManagersCreateInstancesRequestResource = new InstanceGroupManagersCreateInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->createInstances($instanceGroupManager, $instanceGroupManagersCreateInstancesRequestResource, $project, $zone); + $response = $gapicClient->createInstances($instanceGroupManager, $instanceGroupManagersCreateInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -503,7 +503,7 @@ public function createInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -529,7 +529,7 @@ public function createInstancesExceptionTest() $instanceGroupManagersCreateInstancesRequestResource = new InstanceGroupManagersCreateInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->createInstances($instanceGroupManager, $instanceGroupManagersCreateInstancesRequestResource, $project, $zone); + $response = $gapicClient->createInstances($instanceGroupManager, $instanceGroupManagersCreateInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -561,7 +561,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -580,7 +580,7 @@ public function deleteTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($instanceGroupManager, $project, $zone); + $response = $gapicClient->delete($instanceGroupManager, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -627,7 +627,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -652,7 +652,7 @@ public function deleteExceptionTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($instanceGroupManager, $project, $zone); + $response = $gapicClient->delete($instanceGroupManager, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -684,7 +684,7 @@ public function deleteInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -704,7 +704,7 @@ public function deleteInstancesTest() $instanceGroupManagersDeleteInstancesRequestResource = new InstanceGroupManagersDeleteInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->deleteInstances($instanceGroupManager, $instanceGroupManagersDeleteInstancesRequestResource, $project, $zone); + $response = $gapicClient->deleteInstances($instanceGroupManager, $instanceGroupManagersDeleteInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -753,7 +753,7 @@ public function deleteInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -779,7 +779,7 @@ public function deleteInstancesExceptionTest() $instanceGroupManagersDeleteInstancesRequestResource = new InstanceGroupManagersDeleteInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->deleteInstances($instanceGroupManager, $instanceGroupManagersDeleteInstancesRequestResource, $project, $zone); + $response = $gapicClient->deleteInstances($instanceGroupManager, $instanceGroupManagersDeleteInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -811,7 +811,7 @@ public function deletePerInstanceConfigsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -831,7 +831,7 @@ public function deletePerInstanceConfigsTest() $instanceGroupManagersDeletePerInstanceConfigsReqResource = new InstanceGroupManagersDeletePerInstanceConfigsReq(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->deletePerInstanceConfigs($instanceGroupManager, $instanceGroupManagersDeletePerInstanceConfigsReqResource, $project, $zone); + $response = $gapicClient->deletePerInstanceConfigs($instanceGroupManager, $instanceGroupManagersDeletePerInstanceConfigsReqResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -880,7 +880,7 @@ public function deletePerInstanceConfigsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -906,7 +906,7 @@ public function deletePerInstanceConfigsExceptionTest() $instanceGroupManagersDeletePerInstanceConfigsReqResource = new InstanceGroupManagersDeletePerInstanceConfigsReq(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->deletePerInstanceConfigs($instanceGroupManager, $instanceGroupManagersDeletePerInstanceConfigsReqResource, $project, $zone); + $response = $gapicClient->deletePerInstanceConfigs($instanceGroupManager, $instanceGroupManagersDeletePerInstanceConfigsReqResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -932,7 +932,7 @@ public function deletePerInstanceConfigsExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -969,7 +969,7 @@ public function getTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($instanceGroupManager, $project, $zone); + $response = $gapicClient->get($instanceGroupManager, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -991,7 +991,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1010,8 +1010,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($instanceGroupManager, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($instanceGroupManager, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1034,7 +1034,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1053,7 +1053,7 @@ public function insertTest() $instanceGroupManagerResource = new InstanceGroupManager(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($instanceGroupManagerResource, $project, $zone); + $response = $gapicClient->insert($instanceGroupManagerResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1100,7 +1100,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1125,7 +1125,7 @@ public function insertExceptionTest() $instanceGroupManagerResource = new InstanceGroupManager(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($instanceGroupManagerResource, $project, $zone); + $response = $gapicClient->insert($instanceGroupManagerResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1151,7 +1151,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1174,7 +1174,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1197,7 +1197,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1215,8 +1215,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1233,7 +1233,7 @@ public function listExceptionTest() public function listErrorsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1251,7 +1251,7 @@ public function listErrorsTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->listErrors($instanceGroupManager, $project, $zone); + $response = $gapicClient->listErrors($instanceGroupManager, $project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1276,7 +1276,7 @@ public function listErrorsTest() public function listErrorsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1295,8 +1295,8 @@ public function listErrorsExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->listErrors($instanceGroupManager, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->listErrors($instanceGroupManager, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1313,7 +1313,7 @@ public function listErrorsExceptionTest() public function listManagedInstancesTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1331,7 +1331,7 @@ public function listManagedInstancesTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->listManagedInstances($instanceGroupManager, $project, $zone); + $response = $gapicClient->listManagedInstances($instanceGroupManager, $project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1356,7 +1356,7 @@ public function listManagedInstancesTest() public function listManagedInstancesExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1375,8 +1375,8 @@ public function listManagedInstancesExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->listManagedInstances($instanceGroupManager, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->listManagedInstances($instanceGroupManager, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1393,7 +1393,7 @@ public function listManagedInstancesExceptionTest() public function listPerInstanceConfigsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1411,7 +1411,7 @@ public function listPerInstanceConfigsTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->listPerInstanceConfigs($instanceGroupManager, $project, $zone); + $response = $gapicClient->listPerInstanceConfigs($instanceGroupManager, $project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1436,7 +1436,7 @@ public function listPerInstanceConfigsTest() public function listPerInstanceConfigsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1455,8 +1455,8 @@ public function listPerInstanceConfigsExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->listPerInstanceConfigs($instanceGroupManager, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->listPerInstanceConfigs($instanceGroupManager, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1479,7 +1479,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1499,7 +1499,7 @@ public function patchTest() $instanceGroupManagerResource = new InstanceGroupManager(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->patch($instanceGroupManager, $instanceGroupManagerResource, $project, $zone); + $response = $gapicClient->patch($instanceGroupManager, $instanceGroupManagerResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1548,7 +1548,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1574,7 +1574,7 @@ public function patchExceptionTest() $instanceGroupManagerResource = new InstanceGroupManager(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->patch($instanceGroupManager, $instanceGroupManagerResource, $project, $zone); + $response = $gapicClient->patch($instanceGroupManager, $instanceGroupManagerResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1606,7 +1606,7 @@ public function patchPerInstanceConfigsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1626,7 +1626,7 @@ public function patchPerInstanceConfigsTest() $instanceGroupManagersPatchPerInstanceConfigsReqResource = new InstanceGroupManagersPatchPerInstanceConfigsReq(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->patchPerInstanceConfigs($instanceGroupManager, $instanceGroupManagersPatchPerInstanceConfigsReqResource, $project, $zone); + $response = $gapicClient->patchPerInstanceConfigs($instanceGroupManager, $instanceGroupManagersPatchPerInstanceConfigsReqResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1675,7 +1675,7 @@ public function patchPerInstanceConfigsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1701,7 +1701,7 @@ public function patchPerInstanceConfigsExceptionTest() $instanceGroupManagersPatchPerInstanceConfigsReqResource = new InstanceGroupManagersPatchPerInstanceConfigsReq(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->patchPerInstanceConfigs($instanceGroupManager, $instanceGroupManagersPatchPerInstanceConfigsReqResource, $project, $zone); + $response = $gapicClient->patchPerInstanceConfigs($instanceGroupManager, $instanceGroupManagersPatchPerInstanceConfigsReqResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1733,7 +1733,7 @@ public function recreateInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1753,7 +1753,7 @@ public function recreateInstancesTest() $instanceGroupManagersRecreateInstancesRequestResource = new InstanceGroupManagersRecreateInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->recreateInstances($instanceGroupManager, $instanceGroupManagersRecreateInstancesRequestResource, $project, $zone); + $response = $gapicClient->recreateInstances($instanceGroupManager, $instanceGroupManagersRecreateInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1802,7 +1802,7 @@ public function recreateInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1828,7 +1828,7 @@ public function recreateInstancesExceptionTest() $instanceGroupManagersRecreateInstancesRequestResource = new InstanceGroupManagersRecreateInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->recreateInstances($instanceGroupManager, $instanceGroupManagersRecreateInstancesRequestResource, $project, $zone); + $response = $gapicClient->recreateInstances($instanceGroupManager, $instanceGroupManagersRecreateInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1860,7 +1860,7 @@ public function resizeTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1880,7 +1880,7 @@ public function resizeTest() $project = 'project-309310695'; $size = 3530753; $zone = 'zone3744684'; - $response = $client->resize($instanceGroupManager, $project, $size, $zone); + $response = $gapicClient->resize($instanceGroupManager, $project, $size, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1929,7 +1929,7 @@ public function resizeExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1955,7 +1955,7 @@ public function resizeExceptionTest() $project = 'project-309310695'; $size = 3530753; $zone = 'zone3744684'; - $response = $client->resize($instanceGroupManager, $project, $size, $zone); + $response = $gapicClient->resize($instanceGroupManager, $project, $size, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1987,7 +1987,7 @@ public function setInstanceTemplateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2007,7 +2007,7 @@ public function setInstanceTemplateTest() $instanceGroupManagersSetInstanceTemplateRequestResource = new InstanceGroupManagersSetInstanceTemplateRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setInstanceTemplate($instanceGroupManager, $instanceGroupManagersSetInstanceTemplateRequestResource, $project, $zone); + $response = $gapicClient->setInstanceTemplate($instanceGroupManager, $instanceGroupManagersSetInstanceTemplateRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2056,7 +2056,7 @@ public function setInstanceTemplateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2082,7 +2082,7 @@ public function setInstanceTemplateExceptionTest() $instanceGroupManagersSetInstanceTemplateRequestResource = new InstanceGroupManagersSetInstanceTemplateRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setInstanceTemplate($instanceGroupManager, $instanceGroupManagersSetInstanceTemplateRequestResource, $project, $zone); + $response = $gapicClient->setInstanceTemplate($instanceGroupManager, $instanceGroupManagersSetInstanceTemplateRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -2114,7 +2114,7 @@ public function setTargetPoolsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2134,7 +2134,7 @@ public function setTargetPoolsTest() $instanceGroupManagersSetTargetPoolsRequestResource = new InstanceGroupManagersSetTargetPoolsRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setTargetPools($instanceGroupManager, $instanceGroupManagersSetTargetPoolsRequestResource, $project, $zone); + $response = $gapicClient->setTargetPools($instanceGroupManager, $instanceGroupManagersSetTargetPoolsRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2183,7 +2183,7 @@ public function setTargetPoolsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2209,7 +2209,7 @@ public function setTargetPoolsExceptionTest() $instanceGroupManagersSetTargetPoolsRequestResource = new InstanceGroupManagersSetTargetPoolsRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setTargetPools($instanceGroupManager, $instanceGroupManagersSetTargetPoolsRequestResource, $project, $zone); + $response = $gapicClient->setTargetPools($instanceGroupManager, $instanceGroupManagersSetTargetPoolsRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -2241,7 +2241,7 @@ public function updatePerInstanceConfigsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2261,7 +2261,7 @@ public function updatePerInstanceConfigsTest() $instanceGroupManagersUpdatePerInstanceConfigsReqResource = new InstanceGroupManagersUpdatePerInstanceConfigsReq(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->updatePerInstanceConfigs($instanceGroupManager, $instanceGroupManagersUpdatePerInstanceConfigsReqResource, $project, $zone); + $response = $gapicClient->updatePerInstanceConfigs($instanceGroupManager, $instanceGroupManagersUpdatePerInstanceConfigsReqResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2310,7 +2310,7 @@ public function updatePerInstanceConfigsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2336,7 +2336,7 @@ public function updatePerInstanceConfigsExceptionTest() $instanceGroupManagersUpdatePerInstanceConfigsReqResource = new InstanceGroupManagersUpdatePerInstanceConfigsReq(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->updatePerInstanceConfigs($instanceGroupManager, $instanceGroupManagersUpdatePerInstanceConfigsReqResource, $project, $zone); + $response = $gapicClient->updatePerInstanceConfigs($instanceGroupManager, $instanceGroupManagersUpdatePerInstanceConfigsReqResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/InstanceGroupsClientTest.php b/Compute/tests/Unit/V1/InstanceGroupsClientTest.php index 0f9f9089eb38..f6a085e2d337 100644 --- a/Compute/tests/Unit/V1/InstanceGroupsClientTest.php +++ b/Compute/tests/Unit/V1/InstanceGroupsClientTest.php @@ -91,7 +91,7 @@ public function addInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -111,7 +111,7 @@ public function addInstancesTest() $instanceGroupsAddInstancesRequestResource = new InstanceGroupsAddInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->addInstances($instanceGroup, $instanceGroupsAddInstancesRequestResource, $project, $zone); + $response = $gapicClient->addInstances($instanceGroup, $instanceGroupsAddInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -160,7 +160,7 @@ public function addInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -186,7 +186,7 @@ public function addInstancesExceptionTest() $instanceGroupsAddInstancesRequestResource = new InstanceGroupsAddInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->addInstances($instanceGroup, $instanceGroupsAddInstancesRequestResource, $project, $zone); + $response = $gapicClient->addInstances($instanceGroup, $instanceGroupsAddInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -212,7 +212,7 @@ public function addInstancesExceptionTest() public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -233,7 +233,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -256,7 +256,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -273,8 +273,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -297,7 +297,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -316,7 +316,7 @@ public function deleteTest() $instanceGroup = 'instanceGroup81095253'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($instanceGroup, $project, $zone); + $response = $gapicClient->delete($instanceGroup, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -363,7 +363,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -388,7 +388,7 @@ public function deleteExceptionTest() $instanceGroup = 'instanceGroup81095253'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($instanceGroup, $project, $zone); + $response = $gapicClient->delete($instanceGroup, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -414,7 +414,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -449,7 +449,7 @@ public function getTest() $instanceGroup = 'instanceGroup81095253'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($instanceGroup, $project, $zone); + $response = $gapicClient->get($instanceGroup, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -471,7 +471,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -490,8 +490,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($instanceGroup, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($instanceGroup, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -514,7 +514,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -533,7 +533,7 @@ public function insertTest() $instanceGroupResource = new InstanceGroup(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($instanceGroupResource, $project, $zone); + $response = $gapicClient->insert($instanceGroupResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -580,7 +580,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -605,7 +605,7 @@ public function insertExceptionTest() $instanceGroupResource = new InstanceGroup(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($instanceGroupResource, $project, $zone); + $response = $gapicClient->insert($instanceGroupResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -631,7 +631,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -654,7 +654,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -677,7 +677,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -695,8 +695,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -713,7 +713,7 @@ public function listExceptionTest() public function listInstancesTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -738,7 +738,7 @@ public function listInstancesTest() $instanceGroupsListInstancesRequestResource = new InstanceGroupsListInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->listInstances($instanceGroup, $instanceGroupsListInstancesRequestResource, $project, $zone); + $response = $gapicClient->listInstances($instanceGroup, $instanceGroupsListInstancesRequestResource, $project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -765,7 +765,7 @@ public function listInstancesTest() public function listInstancesExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -785,8 +785,8 @@ public function listInstancesExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->listInstances($instanceGroup, $instanceGroupsListInstancesRequestResource, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->listInstances($instanceGroup, $instanceGroupsListInstancesRequestResource, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -809,7 +809,7 @@ public function removeInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -829,7 +829,7 @@ public function removeInstancesTest() $instanceGroupsRemoveInstancesRequestResource = new InstanceGroupsRemoveInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->removeInstances($instanceGroup, $instanceGroupsRemoveInstancesRequestResource, $project, $zone); + $response = $gapicClient->removeInstances($instanceGroup, $instanceGroupsRemoveInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -878,7 +878,7 @@ public function removeInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -904,7 +904,7 @@ public function removeInstancesExceptionTest() $instanceGroupsRemoveInstancesRequestResource = new InstanceGroupsRemoveInstancesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->removeInstances($instanceGroup, $instanceGroupsRemoveInstancesRequestResource, $project, $zone); + $response = $gapicClient->removeInstances($instanceGroup, $instanceGroupsRemoveInstancesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -936,7 +936,7 @@ public function setNamedPortsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -956,7 +956,7 @@ public function setNamedPortsTest() $instanceGroupsSetNamedPortsRequestResource = new InstanceGroupsSetNamedPortsRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setNamedPorts($instanceGroup, $instanceGroupsSetNamedPortsRequestResource, $project, $zone); + $response = $gapicClient->setNamedPorts($instanceGroup, $instanceGroupsSetNamedPortsRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1005,7 +1005,7 @@ public function setNamedPortsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1031,7 +1031,7 @@ public function setNamedPortsExceptionTest() $instanceGroupsSetNamedPortsRequestResource = new InstanceGroupsSetNamedPortsRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setNamedPorts($instanceGroup, $instanceGroupsSetNamedPortsRequestResource, $project, $zone); + $response = $gapicClient->setNamedPorts($instanceGroup, $instanceGroupsSetNamedPortsRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/InstanceTemplatesClientTest.php b/Compute/tests/Unit/V1/InstanceTemplatesClientTest.php index d3ae522fd0cc..3f2e3d184583 100644 --- a/Compute/tests/Unit/V1/InstanceTemplatesClientTest.php +++ b/Compute/tests/Unit/V1/InstanceTemplatesClientTest.php @@ -87,7 +87,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -105,7 +105,7 @@ public function deleteTest() // Mock request $instanceTemplate = 'instanceTemplate309248228'; $project = 'project-309310695'; - $response = $client->delete($instanceTemplate, $project); + $response = $gapicClient->delete($instanceTemplate, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -149,7 +149,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -173,7 +173,7 @@ public function deleteExceptionTest() // Mock request $instanceTemplate = 'instanceTemplate309248228'; $project = 'project-309310695'; - $response = $client->delete($instanceTemplate, $project); + $response = $gapicClient->delete($instanceTemplate, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -199,7 +199,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -223,7 +223,7 @@ public function getTest() // Mock request $instanceTemplate = 'instanceTemplate309248228'; $project = 'project-309310695'; - $response = $client->get($instanceTemplate, $project); + $response = $gapicClient->get($instanceTemplate, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -243,7 +243,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -261,8 +261,8 @@ public function getExceptionTest() $instanceTemplate = 'instanceTemplate309248228'; $project = 'project-309310695'; try { - $client->get($instanceTemplate, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($instanceTemplate, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -279,7 +279,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -295,7 +295,7 @@ public function getIamPolicyTest() // Mock request $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $resource); + $response = $gapicClient->getIamPolicy($project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -315,7 +315,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -333,8 +333,8 @@ public function getIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -357,7 +357,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -375,7 +375,7 @@ public function insertTest() // Mock request $instanceTemplateResource = new InstanceTemplate(); $project = 'project-309310695'; - $response = $client->insert($instanceTemplateResource, $project); + $response = $gapicClient->insert($instanceTemplateResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -419,7 +419,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -443,7 +443,7 @@ public function insertExceptionTest() // Mock request $instanceTemplateResource = new InstanceTemplate(); $project = 'project-309310695'; - $response = $client->insert($instanceTemplateResource, $project); + $response = $gapicClient->insert($instanceTemplateResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -469,7 +469,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -491,7 +491,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -512,7 +512,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -529,8 +529,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -547,7 +547,7 @@ public function listExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -564,7 +564,7 @@ public function setIamPolicyTest() $globalSetPolicyRequestResource = new GlobalSetPolicyRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + $response = $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -586,7 +586,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -605,8 +605,8 @@ public function setIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -623,7 +623,7 @@ public function setIamPolicyExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -634,7 +634,7 @@ public function testIamPermissionsTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -656,7 +656,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -675,8 +675,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/InstancesClientTest.php b/Compute/tests/Unit/V1/InstancesClientTest.php index 19a951aa1302..264b70965108 100644 --- a/Compute/tests/Unit/V1/InstancesClientTest.php +++ b/Compute/tests/Unit/V1/InstancesClientTest.php @@ -115,7 +115,7 @@ public function addAccessConfigTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -136,7 +136,7 @@ public function addAccessConfigTest() $networkInterface = 'networkInterface902258792'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->addAccessConfig($accessConfigResource, $instance, $networkInterface, $project, $zone); + $response = $gapicClient->addAccessConfig($accessConfigResource, $instance, $networkInterface, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -187,7 +187,7 @@ public function addAccessConfigExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -214,7 +214,7 @@ public function addAccessConfigExceptionTest() $networkInterface = 'networkInterface902258792'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->addAccessConfig($accessConfigResource, $instance, $networkInterface, $project, $zone); + $response = $gapicClient->addAccessConfig($accessConfigResource, $instance, $networkInterface, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -246,7 +246,7 @@ public function addResourcePoliciesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -266,7 +266,7 @@ public function addResourcePoliciesTest() $instancesAddResourcePoliciesRequestResource = new InstancesAddResourcePoliciesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->addResourcePolicies($instance, $instancesAddResourcePoliciesRequestResource, $project, $zone); + $response = $gapicClient->addResourcePolicies($instance, $instancesAddResourcePoliciesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -315,7 +315,7 @@ public function addResourcePoliciesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -341,7 +341,7 @@ public function addResourcePoliciesExceptionTest() $instancesAddResourcePoliciesRequestResource = new InstancesAddResourcePoliciesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->addResourcePolicies($instance, $instancesAddResourcePoliciesRequestResource, $project, $zone); + $response = $gapicClient->addResourcePolicies($instance, $instancesAddResourcePoliciesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -367,7 +367,7 @@ public function addResourcePoliciesExceptionTest() public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -388,7 +388,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -411,7 +411,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -428,8 +428,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -452,7 +452,7 @@ public function attachDiskTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -472,7 +472,7 @@ public function attachDiskTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->attachDisk($attachedDiskResource, $instance, $project, $zone); + $response = $gapicClient->attachDisk($attachedDiskResource, $instance, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -521,7 +521,7 @@ public function attachDiskExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -547,7 +547,7 @@ public function attachDiskExceptionTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->attachDisk($attachedDiskResource, $instance, $project, $zone); + $response = $gapicClient->attachDisk($attachedDiskResource, $instance, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -579,7 +579,7 @@ public function bulkInsertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -598,7 +598,7 @@ public function bulkInsertTest() $bulkInsertInstanceResourceResource = new BulkInsertInstanceResource(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->bulkInsert($bulkInsertInstanceResourceResource, $project, $zone); + $response = $gapicClient->bulkInsert($bulkInsertInstanceResourceResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -645,7 +645,7 @@ public function bulkInsertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -670,7 +670,7 @@ public function bulkInsertExceptionTest() $bulkInsertInstanceResourceResource = new BulkInsertInstanceResource(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->bulkInsert($bulkInsertInstanceResourceResource, $project, $zone); + $response = $gapicClient->bulkInsert($bulkInsertInstanceResourceResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -702,7 +702,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -721,7 +721,7 @@ public function deleteTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($instance, $project, $zone); + $response = $gapicClient->delete($instance, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -768,7 +768,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -793,7 +793,7 @@ public function deleteExceptionTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($instance, $project, $zone); + $response = $gapicClient->delete($instance, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -825,7 +825,7 @@ public function deleteAccessConfigTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -846,7 +846,7 @@ public function deleteAccessConfigTest() $networkInterface = 'networkInterface902258792'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->deleteAccessConfig($accessConfig, $instance, $networkInterface, $project, $zone); + $response = $gapicClient->deleteAccessConfig($accessConfig, $instance, $networkInterface, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -897,7 +897,7 @@ public function deleteAccessConfigExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -924,7 +924,7 @@ public function deleteAccessConfigExceptionTest() $networkInterface = 'networkInterface902258792'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->deleteAccessConfig($accessConfig, $instance, $networkInterface, $project, $zone); + $response = $gapicClient->deleteAccessConfig($accessConfig, $instance, $networkInterface, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -956,7 +956,7 @@ public function detachDiskTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -976,7 +976,7 @@ public function detachDiskTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->detachDisk($deviceName, $instance, $project, $zone); + $response = $gapicClient->detachDisk($deviceName, $instance, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1025,7 +1025,7 @@ public function detachDiskExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1051,7 +1051,7 @@ public function detachDiskExceptionTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->detachDisk($deviceName, $instance, $project, $zone); + $response = $gapicClient->detachDisk($deviceName, $instance, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1077,7 +1077,7 @@ public function detachDiskExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1090,6 +1090,7 @@ public function getTest() $fingerprint = 'fingerprint-1375934236'; $hostname = 'hostname-299803597'; $id = 3355; + $keyRevocationActionType = 'keyRevocationActionType-1374671262'; $kind = 'kind3292052'; $labelFingerprint = 'labelFingerprint714995737'; $lastStartTimestamp = 'lastStartTimestamp-629911088'; @@ -1115,6 +1116,7 @@ public function getTest() $expectedResponse->setFingerprint($fingerprint); $expectedResponse->setHostname($hostname); $expectedResponse->setId($id); + $expectedResponse->setKeyRevocationActionType($keyRevocationActionType); $expectedResponse->setKind($kind); $expectedResponse->setLabelFingerprint($labelFingerprint); $expectedResponse->setLastStartTimestamp($lastStartTimestamp); @@ -1136,7 +1138,7 @@ public function getTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($instance, $project, $zone); + $response = $gapicClient->get($instance, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1158,7 +1160,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1177,8 +1179,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($instance, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($instance, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1195,7 +1197,7 @@ public function getExceptionTest() public function getEffectiveFirewallsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1207,7 +1209,7 @@ public function getEffectiveFirewallsTest() $networkInterface = 'networkInterface902258792'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->getEffectiveFirewalls($instance, $networkInterface, $project, $zone); + $response = $gapicClient->getEffectiveFirewalls($instance, $networkInterface, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1231,7 +1233,7 @@ public function getEffectiveFirewallsTest() public function getEffectiveFirewallsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1251,8 +1253,8 @@ public function getEffectiveFirewallsExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->getEffectiveFirewalls($instance, $networkInterface, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->getEffectiveFirewalls($instance, $networkInterface, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1269,7 +1271,7 @@ public function getEffectiveFirewallsExceptionTest() public function getGuestAttributesTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1290,7 +1292,7 @@ public function getGuestAttributesTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->getGuestAttributes($instance, $project, $zone); + $response = $gapicClient->getGuestAttributes($instance, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1312,7 +1314,7 @@ public function getGuestAttributesTest() public function getGuestAttributesExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1331,8 +1333,8 @@ public function getGuestAttributesExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->getGuestAttributes($instance, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->getGuestAttributes($instance, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1349,7 +1351,7 @@ public function getGuestAttributesExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1366,7 +1368,7 @@ public function getIamPolicyTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $zone = 'zone3744684'; - $response = $client->getIamPolicy($project, $resource, $zone); + $response = $gapicClient->getIamPolicy($project, $resource, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1388,7 +1390,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1407,8 +1409,8 @@ public function getIamPolicyExceptionTest() $resource = 'resource-341064690'; $zone = 'zone3744684'; try { - $client->getIamPolicy($project, $resource, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $resource, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1425,7 +1427,7 @@ public function getIamPolicyExceptionTest() public function getScreenshotTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1440,7 +1442,7 @@ public function getScreenshotTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->getScreenshot($instance, $project, $zone); + $response = $gapicClient->getScreenshot($instance, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1462,7 +1464,7 @@ public function getScreenshotTest() public function getScreenshotExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1481,8 +1483,8 @@ public function getScreenshotExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->getScreenshot($instance, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->getScreenshot($instance, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1499,7 +1501,7 @@ public function getScreenshotExceptionTest() public function getSerialPortOutputTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1520,7 +1522,7 @@ public function getSerialPortOutputTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->getSerialPortOutput($instance, $project, $zone); + $response = $gapicClient->getSerialPortOutput($instance, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1542,7 +1544,7 @@ public function getSerialPortOutputTest() public function getSerialPortOutputExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1561,8 +1563,8 @@ public function getSerialPortOutputExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->getSerialPortOutput($instance, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->getSerialPortOutput($instance, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1579,7 +1581,7 @@ public function getSerialPortOutputExceptionTest() public function getShieldedInstanceIdentityTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1592,7 +1594,7 @@ public function getShieldedInstanceIdentityTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->getShieldedInstanceIdentity($instance, $project, $zone); + $response = $gapicClient->getShieldedInstanceIdentity($instance, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1614,7 +1616,7 @@ public function getShieldedInstanceIdentityTest() public function getShieldedInstanceIdentityExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1633,8 +1635,8 @@ public function getShieldedInstanceIdentityExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->getShieldedInstanceIdentity($instance, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->getShieldedInstanceIdentity($instance, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1657,7 +1659,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1676,7 +1678,7 @@ public function insertTest() $instanceResource = new Instance(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($instanceResource, $project, $zone); + $response = $gapicClient->insert($instanceResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1723,7 +1725,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1748,7 +1750,7 @@ public function insertExceptionTest() $instanceResource = new Instance(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($instanceResource, $project, $zone); + $response = $gapicClient->insert($instanceResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1774,7 +1776,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1797,7 +1799,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1820,7 +1822,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1838,8 +1840,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1856,7 +1858,7 @@ public function listExceptionTest() public function listReferrersTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1880,7 +1882,7 @@ public function listReferrersTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->listReferrers($instance, $project, $zone); + $response = $gapicClient->listReferrers($instance, $project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1905,7 +1907,7 @@ public function listReferrersTest() public function listReferrersExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1924,8 +1926,8 @@ public function listReferrersExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->listReferrers($instance, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->listReferrers($instance, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1948,7 +1950,7 @@ public function removeResourcePoliciesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1968,7 +1970,7 @@ public function removeResourcePoliciesTest() $instancesRemoveResourcePoliciesRequestResource = new InstancesRemoveResourcePoliciesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->removeResourcePolicies($instance, $instancesRemoveResourcePoliciesRequestResource, $project, $zone); + $response = $gapicClient->removeResourcePolicies($instance, $instancesRemoveResourcePoliciesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2017,7 +2019,7 @@ public function removeResourcePoliciesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2043,7 +2045,7 @@ public function removeResourcePoliciesExceptionTest() $instancesRemoveResourcePoliciesRequestResource = new InstancesRemoveResourcePoliciesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->removeResourcePolicies($instance, $instancesRemoveResourcePoliciesRequestResource, $project, $zone); + $response = $gapicClient->removeResourcePolicies($instance, $instancesRemoveResourcePoliciesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -2075,7 +2077,7 @@ public function resetTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2094,7 +2096,7 @@ public function resetTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->reset($instance, $project, $zone); + $response = $gapicClient->reset($instance, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2141,7 +2143,7 @@ public function resetExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2166,7 +2168,7 @@ public function resetExceptionTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->reset($instance, $project, $zone); + $response = $gapicClient->reset($instance, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -2198,7 +2200,7 @@ public function resumeTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2217,7 +2219,7 @@ public function resumeTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->resume($instance, $project, $zone); + $response = $gapicClient->resume($instance, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2264,7 +2266,7 @@ public function resumeExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2289,7 +2291,7 @@ public function resumeExceptionTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->resume($instance, $project, $zone); + $response = $gapicClient->resume($instance, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -2315,7 +2317,7 @@ public function resumeExceptionTest() public function sendDiagnosticInterruptTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2326,7 +2328,7 @@ public function sendDiagnosticInterruptTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->sendDiagnosticInterrupt($instance, $project, $zone); + $response = $gapicClient->sendDiagnosticInterrupt($instance, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -2348,7 +2350,7 @@ public function sendDiagnosticInterruptTest() public function sendDiagnosticInterruptExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2367,8 +2369,8 @@ public function sendDiagnosticInterruptExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->sendDiagnosticInterrupt($instance, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->sendDiagnosticInterrupt($instance, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -2391,7 +2393,7 @@ public function setDeletionProtectionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2410,7 +2412,7 @@ public function setDeletionProtectionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $zone = 'zone3744684'; - $response = $client->setDeletionProtection($project, $resource, $zone); + $response = $gapicClient->setDeletionProtection($project, $resource, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2457,7 +2459,7 @@ public function setDeletionProtectionExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2482,7 +2484,7 @@ public function setDeletionProtectionExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $zone = 'zone3744684'; - $response = $client->setDeletionProtection($project, $resource, $zone); + $response = $gapicClient->setDeletionProtection($project, $resource, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -2514,7 +2516,7 @@ public function setDiskAutoDeleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2535,7 +2537,7 @@ public function setDiskAutoDeleteTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setDiskAutoDelete($autoDelete, $deviceName, $instance, $project, $zone); + $response = $gapicClient->setDiskAutoDelete($autoDelete, $deviceName, $instance, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2586,7 +2588,7 @@ public function setDiskAutoDeleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2613,7 +2615,7 @@ public function setDiskAutoDeleteExceptionTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setDiskAutoDelete($autoDelete, $deviceName, $instance, $project, $zone); + $response = $gapicClient->setDiskAutoDelete($autoDelete, $deviceName, $instance, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -2639,7 +2641,7 @@ public function setDiskAutoDeleteExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2657,7 +2659,7 @@ public function setIamPolicyTest() $resource = 'resource-341064690'; $zone = 'zone3744684'; $zoneSetPolicyRequestResource = new ZoneSetPolicyRequest(); - $response = $client->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); + $response = $gapicClient->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -2681,7 +2683,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2701,8 +2703,8 @@ public function setIamPolicyExceptionTest() $zone = 'zone3744684'; $zoneSetPolicyRequestResource = new ZoneSetPolicyRequest(); try { - $client->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -2725,7 +2727,7 @@ public function setLabelsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2745,7 +2747,7 @@ public function setLabelsTest() $instancesSetLabelsRequestResource = new InstancesSetLabelsRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setLabels($instance, $instancesSetLabelsRequestResource, $project, $zone); + $response = $gapicClient->setLabels($instance, $instancesSetLabelsRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2794,7 +2796,7 @@ public function setLabelsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2820,7 +2822,7 @@ public function setLabelsExceptionTest() $instancesSetLabelsRequestResource = new InstancesSetLabelsRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setLabels($instance, $instancesSetLabelsRequestResource, $project, $zone); + $response = $gapicClient->setLabels($instance, $instancesSetLabelsRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -2852,7 +2854,7 @@ public function setMachineResourcesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2872,7 +2874,7 @@ public function setMachineResourcesTest() $instancesSetMachineResourcesRequestResource = new InstancesSetMachineResourcesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setMachineResources($instance, $instancesSetMachineResourcesRequestResource, $project, $zone); + $response = $gapicClient->setMachineResources($instance, $instancesSetMachineResourcesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2921,7 +2923,7 @@ public function setMachineResourcesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2947,7 +2949,7 @@ public function setMachineResourcesExceptionTest() $instancesSetMachineResourcesRequestResource = new InstancesSetMachineResourcesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setMachineResources($instance, $instancesSetMachineResourcesRequestResource, $project, $zone); + $response = $gapicClient->setMachineResources($instance, $instancesSetMachineResourcesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -2979,7 +2981,7 @@ public function setMachineTypeTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2999,7 +3001,7 @@ public function setMachineTypeTest() $instancesSetMachineTypeRequestResource = new InstancesSetMachineTypeRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setMachineType($instance, $instancesSetMachineTypeRequestResource, $project, $zone); + $response = $gapicClient->setMachineType($instance, $instancesSetMachineTypeRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -3048,7 +3050,7 @@ public function setMachineTypeExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3074,7 +3076,7 @@ public function setMachineTypeExceptionTest() $instancesSetMachineTypeRequestResource = new InstancesSetMachineTypeRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setMachineType($instance, $instancesSetMachineTypeRequestResource, $project, $zone); + $response = $gapicClient->setMachineType($instance, $instancesSetMachineTypeRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -3106,7 +3108,7 @@ public function setMetadataTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3126,7 +3128,7 @@ public function setMetadataTest() $metadataResource = new Metadata(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setMetadata($instance, $metadataResource, $project, $zone); + $response = $gapicClient->setMetadata($instance, $metadataResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -3175,7 +3177,7 @@ public function setMetadataExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3201,7 +3203,7 @@ public function setMetadataExceptionTest() $metadataResource = new Metadata(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setMetadata($instance, $metadataResource, $project, $zone); + $response = $gapicClient->setMetadata($instance, $metadataResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -3233,7 +3235,7 @@ public function setMinCpuPlatformTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3253,7 +3255,7 @@ public function setMinCpuPlatformTest() $instancesSetMinCpuPlatformRequestResource = new InstancesSetMinCpuPlatformRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setMinCpuPlatform($instance, $instancesSetMinCpuPlatformRequestResource, $project, $zone); + $response = $gapicClient->setMinCpuPlatform($instance, $instancesSetMinCpuPlatformRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -3302,7 +3304,7 @@ public function setMinCpuPlatformExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3328,7 +3330,7 @@ public function setMinCpuPlatformExceptionTest() $instancesSetMinCpuPlatformRequestResource = new InstancesSetMinCpuPlatformRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setMinCpuPlatform($instance, $instancesSetMinCpuPlatformRequestResource, $project, $zone); + $response = $gapicClient->setMinCpuPlatform($instance, $instancesSetMinCpuPlatformRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -3360,7 +3362,7 @@ public function setSchedulingTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3380,7 +3382,7 @@ public function setSchedulingTest() $project = 'project-309310695'; $schedulingResource = new Scheduling(); $zone = 'zone3744684'; - $response = $client->setScheduling($instance, $project, $schedulingResource, $zone); + $response = $gapicClient->setScheduling($instance, $project, $schedulingResource, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -3429,7 +3431,7 @@ public function setSchedulingExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3455,7 +3457,7 @@ public function setSchedulingExceptionTest() $project = 'project-309310695'; $schedulingResource = new Scheduling(); $zone = 'zone3744684'; - $response = $client->setScheduling($instance, $project, $schedulingResource, $zone); + $response = $gapicClient->setScheduling($instance, $project, $schedulingResource, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -3487,7 +3489,7 @@ public function setServiceAccountTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3507,7 +3509,7 @@ public function setServiceAccountTest() $instancesSetServiceAccountRequestResource = new InstancesSetServiceAccountRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setServiceAccount($instance, $instancesSetServiceAccountRequestResource, $project, $zone); + $response = $gapicClient->setServiceAccount($instance, $instancesSetServiceAccountRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -3556,7 +3558,7 @@ public function setServiceAccountExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3582,7 +3584,7 @@ public function setServiceAccountExceptionTest() $instancesSetServiceAccountRequestResource = new InstancesSetServiceAccountRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setServiceAccount($instance, $instancesSetServiceAccountRequestResource, $project, $zone); + $response = $gapicClient->setServiceAccount($instance, $instancesSetServiceAccountRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -3614,7 +3616,7 @@ public function setShieldedInstanceIntegrityPolicyTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3634,7 +3636,7 @@ public function setShieldedInstanceIntegrityPolicyTest() $project = 'project-309310695'; $shieldedInstanceIntegrityPolicyResource = new ShieldedInstanceIntegrityPolicy(); $zone = 'zone3744684'; - $response = $client->setShieldedInstanceIntegrityPolicy($instance, $project, $shieldedInstanceIntegrityPolicyResource, $zone); + $response = $gapicClient->setShieldedInstanceIntegrityPolicy($instance, $project, $shieldedInstanceIntegrityPolicyResource, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -3683,7 +3685,7 @@ public function setShieldedInstanceIntegrityPolicyExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3709,7 +3711,7 @@ public function setShieldedInstanceIntegrityPolicyExceptionTest() $project = 'project-309310695'; $shieldedInstanceIntegrityPolicyResource = new ShieldedInstanceIntegrityPolicy(); $zone = 'zone3744684'; - $response = $client->setShieldedInstanceIntegrityPolicy($instance, $project, $shieldedInstanceIntegrityPolicyResource, $zone); + $response = $gapicClient->setShieldedInstanceIntegrityPolicy($instance, $project, $shieldedInstanceIntegrityPolicyResource, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -3741,7 +3743,7 @@ public function setTagsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3761,7 +3763,7 @@ public function setTagsTest() $project = 'project-309310695'; $tagsResource = new Tags(); $zone = 'zone3744684'; - $response = $client->setTags($instance, $project, $tagsResource, $zone); + $response = $gapicClient->setTags($instance, $project, $tagsResource, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -3810,7 +3812,7 @@ public function setTagsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3836,7 +3838,7 @@ public function setTagsExceptionTest() $project = 'project-309310695'; $tagsResource = new Tags(); $zone = 'zone3744684'; - $response = $client->setTags($instance, $project, $tagsResource, $zone); + $response = $gapicClient->setTags($instance, $project, $tagsResource, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -3868,7 +3870,7 @@ public function simulateMaintenanceEventTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3887,7 +3889,7 @@ public function simulateMaintenanceEventTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->simulateMaintenanceEvent($instance, $project, $zone); + $response = $gapicClient->simulateMaintenanceEvent($instance, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -3934,7 +3936,7 @@ public function simulateMaintenanceEventExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -3959,7 +3961,7 @@ public function simulateMaintenanceEventExceptionTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->simulateMaintenanceEvent($instance, $project, $zone); + $response = $gapicClient->simulateMaintenanceEvent($instance, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -3991,7 +3993,7 @@ public function startTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4010,7 +4012,7 @@ public function startTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->start($instance, $project, $zone); + $response = $gapicClient->start($instance, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -4057,7 +4059,7 @@ public function startExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4082,7 +4084,7 @@ public function startExceptionTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->start($instance, $project, $zone); + $response = $gapicClient->start($instance, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -4114,7 +4116,7 @@ public function startWithEncryptionKeyTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4134,7 +4136,7 @@ public function startWithEncryptionKeyTest() $instancesStartWithEncryptionKeyRequestResource = new InstancesStartWithEncryptionKeyRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->startWithEncryptionKey($instance, $instancesStartWithEncryptionKeyRequestResource, $project, $zone); + $response = $gapicClient->startWithEncryptionKey($instance, $instancesStartWithEncryptionKeyRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -4183,7 +4185,7 @@ public function startWithEncryptionKeyExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4209,7 +4211,7 @@ public function startWithEncryptionKeyExceptionTest() $instancesStartWithEncryptionKeyRequestResource = new InstancesStartWithEncryptionKeyRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->startWithEncryptionKey($instance, $instancesStartWithEncryptionKeyRequestResource, $project, $zone); + $response = $gapicClient->startWithEncryptionKey($instance, $instancesStartWithEncryptionKeyRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -4241,7 +4243,7 @@ public function stopTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4260,7 +4262,7 @@ public function stopTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->stop($instance, $project, $zone); + $response = $gapicClient->stop($instance, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -4307,7 +4309,7 @@ public function stopExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4332,7 +4334,7 @@ public function stopExceptionTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->stop($instance, $project, $zone); + $response = $gapicClient->stop($instance, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -4364,7 +4366,7 @@ public function suspendTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4383,7 +4385,7 @@ public function suspendTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->suspend($instance, $project, $zone); + $response = $gapicClient->suspend($instance, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -4430,7 +4432,7 @@ public function suspendExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4455,7 +4457,7 @@ public function suspendExceptionTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->suspend($instance, $project, $zone); + $response = $gapicClient->suspend($instance, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -4481,7 +4483,7 @@ public function suspendExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -4493,7 +4495,7 @@ public function testIamPermissionsTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); $zone = 'zone3744684'; - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -4517,7 +4519,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -4537,8 +4539,8 @@ public function testIamPermissionsExceptionTest() $testPermissionsRequestResource = new TestPermissionsRequest(); $zone = 'zone3744684'; try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -4561,7 +4563,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4581,7 +4583,7 @@ public function updateTest() $instanceResource = new Instance(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->update($instance, $instanceResource, $project, $zone); + $response = $gapicClient->update($instance, $instanceResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -4630,7 +4632,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4656,7 +4658,7 @@ public function updateExceptionTest() $instanceResource = new Instance(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->update($instance, $instanceResource, $project, $zone); + $response = $gapicClient->update($instance, $instanceResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -4688,7 +4690,7 @@ public function updateAccessConfigTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4709,7 +4711,7 @@ public function updateAccessConfigTest() $networkInterface = 'networkInterface902258792'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->updateAccessConfig($accessConfigResource, $instance, $networkInterface, $project, $zone); + $response = $gapicClient->updateAccessConfig($accessConfigResource, $instance, $networkInterface, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -4760,7 +4762,7 @@ public function updateAccessConfigExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4787,7 +4789,7 @@ public function updateAccessConfigExceptionTest() $networkInterface = 'networkInterface902258792'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->updateAccessConfig($accessConfigResource, $instance, $networkInterface, $project, $zone); + $response = $gapicClient->updateAccessConfig($accessConfigResource, $instance, $networkInterface, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -4819,7 +4821,7 @@ public function updateDisplayDeviceTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4839,7 +4841,7 @@ public function updateDisplayDeviceTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->updateDisplayDevice($displayDeviceResource, $instance, $project, $zone); + $response = $gapicClient->updateDisplayDevice($displayDeviceResource, $instance, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -4888,7 +4890,7 @@ public function updateDisplayDeviceExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4914,7 +4916,7 @@ public function updateDisplayDeviceExceptionTest() $instance = 'instance555127957'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->updateDisplayDevice($displayDeviceResource, $instance, $project, $zone); + $response = $gapicClient->updateDisplayDevice($displayDeviceResource, $instance, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -4946,7 +4948,7 @@ public function updateNetworkInterfaceTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -4967,7 +4969,7 @@ public function updateNetworkInterfaceTest() $networkInterfaceResource = new NetworkInterface(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->updateNetworkInterface($instance, $networkInterface, $networkInterfaceResource, $project, $zone); + $response = $gapicClient->updateNetworkInterface($instance, $networkInterface, $networkInterfaceResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -5018,7 +5020,7 @@ public function updateNetworkInterfaceExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -5045,7 +5047,7 @@ public function updateNetworkInterfaceExceptionTest() $networkInterfaceResource = new NetworkInterface(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->updateNetworkInterface($instance, $networkInterface, $networkInterfaceResource, $project, $zone); + $response = $gapicClient->updateNetworkInterface($instance, $networkInterface, $networkInterfaceResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -5077,7 +5079,7 @@ public function updateShieldedInstanceConfigTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -5097,7 +5099,7 @@ public function updateShieldedInstanceConfigTest() $project = 'project-309310695'; $shieldedInstanceConfigResource = new ShieldedInstanceConfig(); $zone = 'zone3744684'; - $response = $client->updateShieldedInstanceConfig($instance, $project, $shieldedInstanceConfigResource, $zone); + $response = $gapicClient->updateShieldedInstanceConfig($instance, $project, $shieldedInstanceConfigResource, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -5146,7 +5148,7 @@ public function updateShieldedInstanceConfigExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -5172,7 +5174,7 @@ public function updateShieldedInstanceConfigExceptionTest() $project = 'project-309310695'; $shieldedInstanceConfigResource = new ShieldedInstanceConfig(); $zone = 'zone3744684'; - $response = $client->updateShieldedInstanceConfig($instance, $project, $shieldedInstanceConfigResource, $zone); + $response = $gapicClient->updateShieldedInstanceConfig($instance, $project, $shieldedInstanceConfigResource, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/InterconnectAttachmentsClientTest.php b/Compute/tests/Unit/V1/InterconnectAttachmentsClientTest.php index 24068c3bbff0..743306ceb742 100644 --- a/Compute/tests/Unit/V1/InterconnectAttachmentsClientTest.php +++ b/Compute/tests/Unit/V1/InterconnectAttachmentsClientTest.php @@ -79,7 +79,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -100,7 +100,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -123,7 +123,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -140,8 +140,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -164,7 +164,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -183,7 +183,7 @@ public function deleteTest() $interconnectAttachment = 'interconnectAttachment308135284'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($interconnectAttachment, $project, $region); + $response = $gapicClient->delete($interconnectAttachment, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -230,7 +230,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -255,7 +255,7 @@ public function deleteExceptionTest() $interconnectAttachment = 'interconnectAttachment308135284'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($interconnectAttachment, $project, $region); + $response = $gapicClient->delete($interconnectAttachment, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -281,7 +281,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -352,7 +352,7 @@ public function getTest() $interconnectAttachment = 'interconnectAttachment308135284'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($interconnectAttachment, $project, $region); + $response = $gapicClient->get($interconnectAttachment, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -374,7 +374,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -393,8 +393,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($interconnectAttachment, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($interconnectAttachment, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -417,7 +417,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -436,7 +436,7 @@ public function insertTest() $interconnectAttachmentResource = new InterconnectAttachment(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($interconnectAttachmentResource, $project, $region); + $response = $gapicClient->insert($interconnectAttachmentResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -483,7 +483,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -508,7 +508,7 @@ public function insertExceptionTest() $interconnectAttachmentResource = new InterconnectAttachment(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($interconnectAttachmentResource, $project, $region); + $response = $gapicClient->insert($interconnectAttachmentResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -534,7 +534,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -557,7 +557,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -580,7 +580,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -598,8 +598,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -622,7 +622,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -642,7 +642,7 @@ public function patchTest() $interconnectAttachmentResource = new InterconnectAttachment(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($interconnectAttachment, $interconnectAttachmentResource, $project, $region); + $response = $gapicClient->patch($interconnectAttachment, $interconnectAttachmentResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -691,7 +691,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -717,7 +717,7 @@ public function patchExceptionTest() $interconnectAttachmentResource = new InterconnectAttachment(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($interconnectAttachment, $interconnectAttachmentResource, $project, $region); + $response = $gapicClient->patch($interconnectAttachment, $interconnectAttachmentResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/InterconnectLocationsClientTest.php b/Compute/tests/Unit/V1/InterconnectLocationsClientTest.php index c5a2624fae28..000ca3b2a7fe 100644 --- a/Compute/tests/Unit/V1/InterconnectLocationsClientTest.php +++ b/Compute/tests/Unit/V1/InterconnectLocationsClientTest.php @@ -73,7 +73,7 @@ private function createClient(array $options = []) public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -113,7 +113,7 @@ public function getTest() // Mock request $interconnectLocation = 'interconnectLocation-581505978'; $project = 'project-309310695'; - $response = $client->get($interconnectLocation, $project); + $response = $gapicClient->get($interconnectLocation, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -133,7 +133,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -151,8 +151,8 @@ public function getExceptionTest() $interconnectLocation = 'interconnectLocation-581505978'; $project = 'project-309310695'; try { - $client->get($interconnectLocation, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($interconnectLocation, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -169,7 +169,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -191,7 +191,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -212,7 +212,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -229,8 +229,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/InterconnectsClientTest.php b/Compute/tests/Unit/V1/InterconnectsClientTest.php index 8ba3c0022295..902e50337fab 100644 --- a/Compute/tests/Unit/V1/InterconnectsClientTest.php +++ b/Compute/tests/Unit/V1/InterconnectsClientTest.php @@ -84,7 +84,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -102,7 +102,7 @@ public function deleteTest() // Mock request $interconnect = 'interconnect-849140594'; $project = 'project-309310695'; - $response = $client->delete($interconnect, $project); + $response = $gapicClient->delete($interconnect, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -146,7 +146,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -170,7 +170,7 @@ public function deleteExceptionTest() // Mock request $interconnect = 'interconnect-849140594'; $project = 'project-309310695'; - $response = $client->delete($interconnect, $project); + $response = $gapicClient->delete($interconnect, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -196,7 +196,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -246,7 +246,7 @@ public function getTest() // Mock request $interconnect = 'interconnect-849140594'; $project = 'project-309310695'; - $response = $client->get($interconnect, $project); + $response = $gapicClient->get($interconnect, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -266,7 +266,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -284,8 +284,8 @@ public function getExceptionTest() $interconnect = 'interconnect-849140594'; $project = 'project-309310695'; try { - $client->get($interconnect, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($interconnect, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -302,7 +302,7 @@ public function getExceptionTest() public function getDiagnosticsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -312,7 +312,7 @@ public function getDiagnosticsTest() // Mock request $interconnect = 'interconnect-849140594'; $project = 'project-309310695'; - $response = $client->getDiagnostics($interconnect, $project); + $response = $gapicClient->getDiagnostics($interconnect, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -332,7 +332,7 @@ public function getDiagnosticsTest() public function getDiagnosticsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -350,8 +350,8 @@ public function getDiagnosticsExceptionTest() $interconnect = 'interconnect-849140594'; $project = 'project-309310695'; try { - $client->getDiagnostics($interconnect, $project); - // If the $client method call did not throw, fail the test + $gapicClient->getDiagnostics($interconnect, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -374,7 +374,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -392,7 +392,7 @@ public function insertTest() // Mock request $interconnectResource = new Interconnect(); $project = 'project-309310695'; - $response = $client->insert($interconnectResource, $project); + $response = $gapicClient->insert($interconnectResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -436,7 +436,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -460,7 +460,7 @@ public function insertExceptionTest() // Mock request $interconnectResource = new Interconnect(); $project = 'project-309310695'; - $response = $client->insert($interconnectResource, $project); + $response = $gapicClient->insert($interconnectResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -486,7 +486,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -508,7 +508,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -529,7 +529,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -546,8 +546,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -570,7 +570,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -589,7 +589,7 @@ public function patchTest() $interconnect = 'interconnect-849140594'; $interconnectResource = new Interconnect(); $project = 'project-309310695'; - $response = $client->patch($interconnect, $interconnectResource, $project); + $response = $gapicClient->patch($interconnect, $interconnectResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -635,7 +635,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -660,7 +660,7 @@ public function patchExceptionTest() $interconnect = 'interconnect-849140594'; $interconnectResource = new Interconnect(); $project = 'project-309310695'; - $response = $client->patch($interconnect, $interconnectResource, $project); + $response = $gapicClient->patch($interconnect, $interconnectResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/LicenseCodesClientTest.php b/Compute/tests/Unit/V1/LicenseCodesClientTest.php index 9e36c59253f2..36e83f071bab 100644 --- a/Compute/tests/Unit/V1/LicenseCodesClientTest.php +++ b/Compute/tests/Unit/V1/LicenseCodesClientTest.php @@ -74,7 +74,7 @@ private function createClient(array $options = []) public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -100,7 +100,7 @@ public function getTest() // Mock request $licenseCode = 'licenseCode1612079915'; $project = 'project-309310695'; - $response = $client->get($licenseCode, $project); + $response = $gapicClient->get($licenseCode, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -120,7 +120,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -138,8 +138,8 @@ public function getExceptionTest() $licenseCode = 'licenseCode1612079915'; $project = 'project-309310695'; try { - $client->get($licenseCode, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($licenseCode, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -156,7 +156,7 @@ public function getExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -167,7 +167,7 @@ public function testIamPermissionsTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -189,7 +189,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -208,8 +208,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/LicensesClientTest.php b/Compute/tests/Unit/V1/LicensesClientTest.php index 5ce325443f9f..3ea3cc2fbff9 100644 --- a/Compute/tests/Unit/V1/LicensesClientTest.php +++ b/Compute/tests/Unit/V1/LicensesClientTest.php @@ -87,7 +87,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -105,7 +105,7 @@ public function deleteTest() // Mock request $license = 'license166757441'; $project = 'project-309310695'; - $response = $client->delete($license, $project); + $response = $gapicClient->delete($license, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -149,7 +149,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -173,7 +173,7 @@ public function deleteExceptionTest() // Mock request $license = 'license166757441'; $project = 'project-309310695'; - $response = $client->delete($license, $project); + $response = $gapicClient->delete($license, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -199,7 +199,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -227,7 +227,7 @@ public function getTest() // Mock request $license = 'license166757441'; $project = 'project-309310695'; - $response = $client->get($license, $project); + $response = $gapicClient->get($license, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -247,7 +247,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -265,8 +265,8 @@ public function getExceptionTest() $license = 'license166757441'; $project = 'project-309310695'; try { - $client->get($license, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($license, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -283,7 +283,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -299,7 +299,7 @@ public function getIamPolicyTest() // Mock request $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $resource); + $response = $gapicClient->getIamPolicy($project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -319,7 +319,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -337,8 +337,8 @@ public function getIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -361,7 +361,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -379,7 +379,7 @@ public function insertTest() // Mock request $licenseResource = new License(); $project = 'project-309310695'; - $response = $client->insert($licenseResource, $project); + $response = $gapicClient->insert($licenseResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -423,7 +423,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -447,7 +447,7 @@ public function insertExceptionTest() // Mock request $licenseResource = new License(); $project = 'project-309310695'; - $response = $client->insert($licenseResource, $project); + $response = $gapicClient->insert($licenseResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -473,7 +473,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -493,7 +493,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -514,7 +514,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -531,8 +531,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -549,7 +549,7 @@ public function listExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -566,7 +566,7 @@ public function setIamPolicyTest() $globalSetPolicyRequestResource = new GlobalSetPolicyRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + $response = $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -588,7 +588,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -607,8 +607,8 @@ public function setIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -625,7 +625,7 @@ public function setIamPolicyExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -636,7 +636,7 @@ public function testIamPermissionsTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -658,7 +658,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -677,8 +677,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/MachineImagesClientTest.php b/Compute/tests/Unit/V1/MachineImagesClientTest.php index 1f8860445fa8..b321b44cc805 100644 --- a/Compute/tests/Unit/V1/MachineImagesClientTest.php +++ b/Compute/tests/Unit/V1/MachineImagesClientTest.php @@ -87,7 +87,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -105,7 +105,7 @@ public function deleteTest() // Mock request $machineImage = 'machineImage1142931299'; $project = 'project-309310695'; - $response = $client->delete($machineImage, $project); + $response = $gapicClient->delete($machineImage, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -149,7 +149,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -173,7 +173,7 @@ public function deleteExceptionTest() // Mock request $machineImage = 'machineImage1142931299'; $project = 'project-309310695'; - $response = $client->delete($machineImage, $project); + $response = $gapicClient->delete($machineImage, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -199,7 +199,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -231,7 +231,7 @@ public function getTest() // Mock request $machineImage = 'machineImage1142931299'; $project = 'project-309310695'; - $response = $client->get($machineImage, $project); + $response = $gapicClient->get($machineImage, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -251,7 +251,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -269,8 +269,8 @@ public function getExceptionTest() $machineImage = 'machineImage1142931299'; $project = 'project-309310695'; try { - $client->get($machineImage, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($machineImage, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -287,7 +287,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -303,7 +303,7 @@ public function getIamPolicyTest() // Mock request $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $resource); + $response = $gapicClient->getIamPolicy($project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -323,7 +323,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -341,8 +341,8 @@ public function getIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -365,7 +365,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -383,7 +383,7 @@ public function insertTest() // Mock request $machineImageResource = new MachineImage(); $project = 'project-309310695'; - $response = $client->insert($machineImageResource, $project); + $response = $gapicClient->insert($machineImageResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -427,7 +427,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -451,7 +451,7 @@ public function insertExceptionTest() // Mock request $machineImageResource = new MachineImage(); $project = 'project-309310695'; - $response = $client->insert($machineImageResource, $project); + $response = $gapicClient->insert($machineImageResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -477,7 +477,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -499,7 +499,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -520,7 +520,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -537,8 +537,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -555,7 +555,7 @@ public function listExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -572,7 +572,7 @@ public function setIamPolicyTest() $globalSetPolicyRequestResource = new GlobalSetPolicyRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + $response = $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -594,7 +594,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -613,8 +613,8 @@ public function setIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -631,7 +631,7 @@ public function setIamPolicyExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -642,7 +642,7 @@ public function testIamPermissionsTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -664,7 +664,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -683,8 +683,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/MachineTypesClientTest.php b/Compute/tests/Unit/V1/MachineTypesClientTest.php index 68a465b0a1d4..b5b92d42ed8f 100644 --- a/Compute/tests/Unit/V1/MachineTypesClientTest.php +++ b/Compute/tests/Unit/V1/MachineTypesClientTest.php @@ -75,7 +75,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -96,7 +96,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -119,7 +119,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -136,8 +136,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -154,7 +154,7 @@ public function aggregatedListExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -191,7 +191,7 @@ public function getTest() $machineType = 'machineType1838323762'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($machineType, $project, $zone); + $response = $gapicClient->get($machineType, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -213,7 +213,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -232,8 +232,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($machineType, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($machineType, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -250,7 +250,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -273,7 +273,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -296,7 +296,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -314,8 +314,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/NetworkEdgeSecurityServicesClientTest.php b/Compute/tests/Unit/V1/NetworkEdgeSecurityServicesClientTest.php index cc6e435665a7..581f986bfb7c 100644 --- a/Compute/tests/Unit/V1/NetworkEdgeSecurityServicesClientTest.php +++ b/Compute/tests/Unit/V1/NetworkEdgeSecurityServicesClientTest.php @@ -78,7 +78,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -101,7 +101,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -124,7 +124,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -141,8 +141,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -165,7 +165,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -184,7 +184,7 @@ public function deleteTest() $networkEdgeSecurityService = 'networkEdgeSecurityService693882791'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($networkEdgeSecurityService, $project, $region); + $response = $gapicClient->delete($networkEdgeSecurityService, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -231,7 +231,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -256,7 +256,7 @@ public function deleteExceptionTest() $networkEdgeSecurityService = 'networkEdgeSecurityService693882791'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($networkEdgeSecurityService, $project, $region); + $response = $gapicClient->delete($networkEdgeSecurityService, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -282,7 +282,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -313,7 +313,7 @@ public function getTest() $networkEdgeSecurityService = 'networkEdgeSecurityService693882791'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($networkEdgeSecurityService, $project, $region); + $response = $gapicClient->get($networkEdgeSecurityService, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -335,7 +335,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -354,8 +354,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($networkEdgeSecurityService, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($networkEdgeSecurityService, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -378,7 +378,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -397,7 +397,7 @@ public function insertTest() $networkEdgeSecurityServiceResource = new NetworkEdgeSecurityService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($networkEdgeSecurityServiceResource, $project, $region); + $response = $gapicClient->insert($networkEdgeSecurityServiceResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -444,7 +444,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -469,7 +469,7 @@ public function insertExceptionTest() $networkEdgeSecurityServiceResource = new NetworkEdgeSecurityService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($networkEdgeSecurityServiceResource, $project, $region); + $response = $gapicClient->insert($networkEdgeSecurityServiceResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -501,7 +501,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -521,7 +521,7 @@ public function patchTest() $networkEdgeSecurityServiceResource = new NetworkEdgeSecurityService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($networkEdgeSecurityService, $networkEdgeSecurityServiceResource, $project, $region); + $response = $gapicClient->patch($networkEdgeSecurityService, $networkEdgeSecurityServiceResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -570,7 +570,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -596,7 +596,7 @@ public function patchExceptionTest() $networkEdgeSecurityServiceResource = new NetworkEdgeSecurityService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($networkEdgeSecurityService, $networkEdgeSecurityServiceResource, $project, $region); + $response = $gapicClient->patch($networkEdgeSecurityService, $networkEdgeSecurityServiceResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/NetworkEndpointGroupsClientTest.php b/Compute/tests/Unit/V1/NetworkEndpointGroupsClientTest.php index 5c06885fbc6f..4d34023e36e1 100644 --- a/Compute/tests/Unit/V1/NetworkEndpointGroupsClientTest.php +++ b/Compute/tests/Unit/V1/NetworkEndpointGroupsClientTest.php @@ -86,7 +86,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -107,7 +107,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -130,7 +130,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -147,8 +147,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -171,7 +171,7 @@ public function attachNetworkEndpointsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -191,7 +191,7 @@ public function attachNetworkEndpointsTest() $networkEndpointGroupsAttachEndpointsRequestResource = new NetworkEndpointGroupsAttachEndpointsRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->attachNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsAttachEndpointsRequestResource, $project, $zone); + $response = $gapicClient->attachNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsAttachEndpointsRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -240,7 +240,7 @@ public function attachNetworkEndpointsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -266,7 +266,7 @@ public function attachNetworkEndpointsExceptionTest() $networkEndpointGroupsAttachEndpointsRequestResource = new NetworkEndpointGroupsAttachEndpointsRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->attachNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsAttachEndpointsRequestResource, $project, $zone); + $response = $gapicClient->attachNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsAttachEndpointsRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -298,7 +298,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -317,7 +317,7 @@ public function deleteTest() $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($networkEndpointGroup, $project, $zone); + $response = $gapicClient->delete($networkEndpointGroup, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -364,7 +364,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -389,7 +389,7 @@ public function deleteExceptionTest() $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($networkEndpointGroup, $project, $zone); + $response = $gapicClient->delete($networkEndpointGroup, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -421,7 +421,7 @@ public function detachNetworkEndpointsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -441,7 +441,7 @@ public function detachNetworkEndpointsTest() $networkEndpointGroupsDetachEndpointsRequestResource = new NetworkEndpointGroupsDetachEndpointsRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->detachNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsDetachEndpointsRequestResource, $project, $zone); + $response = $gapicClient->detachNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsDetachEndpointsRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -490,7 +490,7 @@ public function detachNetworkEndpointsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -516,7 +516,7 @@ public function detachNetworkEndpointsExceptionTest() $networkEndpointGroupsDetachEndpointsRequestResource = new NetworkEndpointGroupsDetachEndpointsRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->detachNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsDetachEndpointsRequestResource, $project, $zone); + $response = $gapicClient->detachNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsDetachEndpointsRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -542,7 +542,7 @@ public function detachNetworkEndpointsExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -581,7 +581,7 @@ public function getTest() $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($networkEndpointGroup, $project, $zone); + $response = $gapicClient->get($networkEndpointGroup, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -603,7 +603,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -622,8 +622,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($networkEndpointGroup, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($networkEndpointGroup, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -646,7 +646,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -665,7 +665,7 @@ public function insertTest() $networkEndpointGroupResource = new NetworkEndpointGroup(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($networkEndpointGroupResource, $project, $zone); + $response = $gapicClient->insert($networkEndpointGroupResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -712,7 +712,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -737,7 +737,7 @@ public function insertExceptionTest() $networkEndpointGroupResource = new NetworkEndpointGroup(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($networkEndpointGroupResource, $project, $zone); + $response = $gapicClient->insert($networkEndpointGroupResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -763,7 +763,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -786,7 +786,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -809,7 +809,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -827,8 +827,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -845,7 +845,7 @@ public function listExceptionTest() public function listNetworkEndpointsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -868,7 +868,7 @@ public function listNetworkEndpointsTest() $networkEndpointGroupsListEndpointsRequestResource = new NetworkEndpointGroupsListEndpointsRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->listNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsListEndpointsRequestResource, $project, $zone); + $response = $gapicClient->listNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsListEndpointsRequestResource, $project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -895,7 +895,7 @@ public function listNetworkEndpointsTest() public function listNetworkEndpointsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -915,8 +915,8 @@ public function listNetworkEndpointsExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->listNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsListEndpointsRequestResource, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->listNetworkEndpoints($networkEndpointGroup, $networkEndpointGroupsListEndpointsRequestResource, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -933,7 +933,7 @@ public function listNetworkEndpointsExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -945,7 +945,7 @@ public function testIamPermissionsTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); $zone = 'zone3744684'; - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -969,7 +969,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -989,8 +989,8 @@ public function testIamPermissionsExceptionTest() $testPermissionsRequestResource = new TestPermissionsRequest(); $zone = 'zone3744684'; try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/NetworkFirewallPoliciesClientTest.php b/Compute/tests/Unit/V1/NetworkFirewallPoliciesClientTest.php index 1226442fe399..7174ffb69203 100644 --- a/Compute/tests/Unit/V1/NetworkFirewallPoliciesClientTest.php +++ b/Compute/tests/Unit/V1/NetworkFirewallPoliciesClientTest.php @@ -89,7 +89,7 @@ public function addAssociationTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -108,7 +108,7 @@ public function addAssociationTest() $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyAssociationResource = new FirewallPolicyAssociation(); $project = 'project-309310695'; - $response = $client->addAssociation($firewallPolicy, $firewallPolicyAssociationResource, $project); + $response = $gapicClient->addAssociation($firewallPolicy, $firewallPolicyAssociationResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -154,7 +154,7 @@ public function addAssociationExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -179,7 +179,7 @@ public function addAssociationExceptionTest() $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyAssociationResource = new FirewallPolicyAssociation(); $project = 'project-309310695'; - $response = $client->addAssociation($firewallPolicy, $firewallPolicyAssociationResource, $project); + $response = $gapicClient->addAssociation($firewallPolicy, $firewallPolicyAssociationResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -211,7 +211,7 @@ public function addRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -230,7 +230,7 @@ public function addRuleTest() $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyRuleResource = new FirewallPolicyRule(); $project = 'project-309310695'; - $response = $client->addRule($firewallPolicy, $firewallPolicyRuleResource, $project); + $response = $gapicClient->addRule($firewallPolicy, $firewallPolicyRuleResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -276,7 +276,7 @@ public function addRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -301,7 +301,7 @@ public function addRuleExceptionTest() $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyRuleResource = new FirewallPolicyRule(); $project = 'project-309310695'; - $response = $client->addRule($firewallPolicy, $firewallPolicyRuleResource, $project); + $response = $gapicClient->addRule($firewallPolicy, $firewallPolicyRuleResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -333,7 +333,7 @@ public function cloneRulesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -351,7 +351,7 @@ public function cloneRulesTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; - $response = $client->cloneRules($firewallPolicy, $project); + $response = $gapicClient->cloneRules($firewallPolicy, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -395,7 +395,7 @@ public function cloneRulesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -419,7 +419,7 @@ public function cloneRulesExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; - $response = $client->cloneRules($firewallPolicy, $project); + $response = $gapicClient->cloneRules($firewallPolicy, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -451,7 +451,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -469,7 +469,7 @@ public function deleteTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; - $response = $client->delete($firewallPolicy, $project); + $response = $gapicClient->delete($firewallPolicy, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -513,7 +513,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -537,7 +537,7 @@ public function deleteExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; - $response = $client->delete($firewallPolicy, $project); + $response = $gapicClient->delete($firewallPolicy, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -563,7 +563,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -599,7 +599,7 @@ public function getTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; - $response = $client->get($firewallPolicy, $project); + $response = $gapicClient->get($firewallPolicy, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -619,7 +619,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -637,8 +637,8 @@ public function getExceptionTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; try { - $client->get($firewallPolicy, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($firewallPolicy, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -655,7 +655,7 @@ public function getExceptionTest() public function getAssociationTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -675,7 +675,7 @@ public function getAssociationTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; - $response = $client->getAssociation($firewallPolicy, $project); + $response = $gapicClient->getAssociation($firewallPolicy, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -695,7 +695,7 @@ public function getAssociationTest() public function getAssociationExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -713,8 +713,8 @@ public function getAssociationExceptionTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; try { - $client->getAssociation($firewallPolicy, $project); - // If the $client method call did not throw, fail the test + $gapicClient->getAssociation($firewallPolicy, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -731,7 +731,7 @@ public function getAssociationExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -747,7 +747,7 @@ public function getIamPolicyTest() // Mock request $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $resource); + $response = $gapicClient->getIamPolicy($project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -767,7 +767,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -785,8 +785,8 @@ public function getIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -803,7 +803,7 @@ public function getIamPolicyExceptionTest() public function getRuleTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -831,7 +831,7 @@ public function getRuleTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; - $response = $client->getRule($firewallPolicy, $project); + $response = $gapicClient->getRule($firewallPolicy, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -851,7 +851,7 @@ public function getRuleTest() public function getRuleExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -869,8 +869,8 @@ public function getRuleExceptionTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; try { - $client->getRule($firewallPolicy, $project); - // If the $client method call did not throw, fail the test + $gapicClient->getRule($firewallPolicy, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -893,7 +893,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -911,7 +911,7 @@ public function insertTest() // Mock request $firewallPolicyResource = new FirewallPolicy(); $project = 'project-309310695'; - $response = $client->insert($firewallPolicyResource, $project); + $response = $gapicClient->insert($firewallPolicyResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -955,7 +955,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -979,7 +979,7 @@ public function insertExceptionTest() // Mock request $firewallPolicyResource = new FirewallPolicy(); $project = 'project-309310695'; - $response = $client->insert($firewallPolicyResource, $project); + $response = $gapicClient->insert($firewallPolicyResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1005,7 +1005,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1025,7 +1025,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1046,7 +1046,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1063,8 +1063,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1087,7 +1087,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1106,7 +1106,7 @@ public function patchTest() $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyResource = new FirewallPolicy(); $project = 'project-309310695'; - $response = $client->patch($firewallPolicy, $firewallPolicyResource, $project); + $response = $gapicClient->patch($firewallPolicy, $firewallPolicyResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1152,7 +1152,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1177,7 +1177,7 @@ public function patchExceptionTest() $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyResource = new FirewallPolicy(); $project = 'project-309310695'; - $response = $client->patch($firewallPolicy, $firewallPolicyResource, $project); + $response = $gapicClient->patch($firewallPolicy, $firewallPolicyResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1209,7 +1209,7 @@ public function patchRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1228,7 +1228,7 @@ public function patchRuleTest() $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyRuleResource = new FirewallPolicyRule(); $project = 'project-309310695'; - $response = $client->patchRule($firewallPolicy, $firewallPolicyRuleResource, $project); + $response = $gapicClient->patchRule($firewallPolicy, $firewallPolicyRuleResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1274,7 +1274,7 @@ public function patchRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1299,7 +1299,7 @@ public function patchRuleExceptionTest() $firewallPolicy = 'firewallPolicy1035044177'; $firewallPolicyRuleResource = new FirewallPolicyRule(); $project = 'project-309310695'; - $response = $client->patchRule($firewallPolicy, $firewallPolicyRuleResource, $project); + $response = $gapicClient->patchRule($firewallPolicy, $firewallPolicyRuleResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1331,7 +1331,7 @@ public function removeAssociationTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1349,7 +1349,7 @@ public function removeAssociationTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; - $response = $client->removeAssociation($firewallPolicy, $project); + $response = $gapicClient->removeAssociation($firewallPolicy, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1393,7 +1393,7 @@ public function removeAssociationExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1417,7 +1417,7 @@ public function removeAssociationExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; - $response = $client->removeAssociation($firewallPolicy, $project); + $response = $gapicClient->removeAssociation($firewallPolicy, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1449,7 +1449,7 @@ public function removeRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1467,7 +1467,7 @@ public function removeRuleTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; - $response = $client->removeRule($firewallPolicy, $project); + $response = $gapicClient->removeRule($firewallPolicy, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1511,7 +1511,7 @@ public function removeRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1535,7 +1535,7 @@ public function removeRuleExceptionTest() // Mock request $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; - $response = $client->removeRule($firewallPolicy, $project); + $response = $gapicClient->removeRule($firewallPolicy, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1561,7 +1561,7 @@ public function removeRuleExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1578,7 +1578,7 @@ public function setIamPolicyTest() $globalSetPolicyRequestResource = new GlobalSetPolicyRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + $response = $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1600,7 +1600,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1619,8 +1619,8 @@ public function setIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1637,7 +1637,7 @@ public function setIamPolicyExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1648,7 +1648,7 @@ public function testIamPermissionsTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1670,7 +1670,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1689,8 +1689,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/NetworksClientTest.php b/Compute/tests/Unit/V1/NetworksClientTest.php index b0811ba0a35d..ce4738e70738 100644 --- a/Compute/tests/Unit/V1/NetworksClientTest.php +++ b/Compute/tests/Unit/V1/NetworksClientTest.php @@ -89,7 +89,7 @@ public function addPeeringTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -108,7 +108,7 @@ public function addPeeringTest() $network = 'network1843485230'; $networksAddPeeringRequestResource = new NetworksAddPeeringRequest(); $project = 'project-309310695'; - $response = $client->addPeering($network, $networksAddPeeringRequestResource, $project); + $response = $gapicClient->addPeering($network, $networksAddPeeringRequestResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -154,7 +154,7 @@ public function addPeeringExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -179,7 +179,7 @@ public function addPeeringExceptionTest() $network = 'network1843485230'; $networksAddPeeringRequestResource = new NetworksAddPeeringRequest(); $project = 'project-309310695'; - $response = $client->addPeering($network, $networksAddPeeringRequestResource, $project); + $response = $gapicClient->addPeering($network, $networksAddPeeringRequestResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -211,7 +211,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -229,7 +229,7 @@ public function deleteTest() // Mock request $network = 'network1843485230'; $project = 'project-309310695'; - $response = $client->delete($network, $project); + $response = $gapicClient->delete($network, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -273,7 +273,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -297,7 +297,7 @@ public function deleteExceptionTest() // Mock request $network = 'network1843485230'; $project = 'project-309310695'; - $response = $client->delete($network, $project); + $response = $gapicClient->delete($network, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -323,7 +323,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -333,6 +333,7 @@ public function getTest() $creationTimestamp = 'creationTimestamp567396278'; $description = 'description-1724546052'; $enableUlaInternalIpv6 = true; + $firewallPolicy = 'firewallPolicy1035044177'; $gatewayIPv4 = 'gatewayIPv4-1431933859'; $id = 3355; $internalIpv6Range = 'internalIpv6Range277456807'; @@ -348,6 +349,7 @@ public function getTest() $expectedResponse->setCreationTimestamp($creationTimestamp); $expectedResponse->setDescription($description); $expectedResponse->setEnableUlaInternalIpv6($enableUlaInternalIpv6); + $expectedResponse->setFirewallPolicy($firewallPolicy); $expectedResponse->setGatewayIPv4($gatewayIPv4); $expectedResponse->setId($id); $expectedResponse->setInternalIpv6Range($internalIpv6Range); @@ -361,7 +363,7 @@ public function getTest() // Mock request $network = 'network1843485230'; $project = 'project-309310695'; - $response = $client->get($network, $project); + $response = $gapicClient->get($network, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -381,7 +383,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -399,8 +401,8 @@ public function getExceptionTest() $network = 'network1843485230'; $project = 'project-309310695'; try { - $client->get($network, $project); - // If the $client method call did not throw, fail the test + $gapicClient->get($network, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -417,7 +419,7 @@ public function getExceptionTest() public function getEffectiveFirewallsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -427,7 +429,7 @@ public function getEffectiveFirewallsTest() // Mock request $network = 'network1843485230'; $project = 'project-309310695'; - $response = $client->getEffectiveFirewalls($network, $project); + $response = $gapicClient->getEffectiveFirewalls($network, $project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -447,7 +449,7 @@ public function getEffectiveFirewallsTest() public function getEffectiveFirewallsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -465,8 +467,8 @@ public function getEffectiveFirewallsExceptionTest() $network = 'network1843485230'; $project = 'project-309310695'; try { - $client->getEffectiveFirewalls($network, $project); - // If the $client method call did not throw, fail the test + $gapicClient->getEffectiveFirewalls($network, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -489,7 +491,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -507,7 +509,7 @@ public function insertTest() // Mock request $networkResource = new Network(); $project = 'project-309310695'; - $response = $client->insert($networkResource, $project); + $response = $gapicClient->insert($networkResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -551,7 +553,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -575,7 +577,7 @@ public function insertExceptionTest() // Mock request $networkResource = new Network(); $project = 'project-309310695'; - $response = $client->insert($networkResource, $project); + $response = $gapicClient->insert($networkResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -601,7 +603,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -623,7 +625,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -644,7 +646,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -661,8 +663,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -679,7 +681,7 @@ public function listExceptionTest() public function listPeeringRoutesTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -702,7 +704,7 @@ public function listPeeringRoutesTest() // Mock request $network = 'network1843485230'; $project = 'project-309310695'; - $response = $client->listPeeringRoutes($network, $project); + $response = $gapicClient->listPeeringRoutes($network, $project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -725,7 +727,7 @@ public function listPeeringRoutesTest() public function listPeeringRoutesExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -743,8 +745,8 @@ public function listPeeringRoutesExceptionTest() $network = 'network1843485230'; $project = 'project-309310695'; try { - $client->listPeeringRoutes($network, $project); - // If the $client method call did not throw, fail the test + $gapicClient->listPeeringRoutes($network, $project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -767,7 +769,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -786,7 +788,7 @@ public function patchTest() $network = 'network1843485230'; $networkResource = new Network(); $project = 'project-309310695'; - $response = $client->patch($network, $networkResource, $project); + $response = $gapicClient->patch($network, $networkResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -832,7 +834,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -857,7 +859,7 @@ public function patchExceptionTest() $network = 'network1843485230'; $networkResource = new Network(); $project = 'project-309310695'; - $response = $client->patch($network, $networkResource, $project); + $response = $gapicClient->patch($network, $networkResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -889,7 +891,7 @@ public function removePeeringTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -908,7 +910,7 @@ public function removePeeringTest() $network = 'network1843485230'; $networksRemovePeeringRequestResource = new NetworksRemovePeeringRequest(); $project = 'project-309310695'; - $response = $client->removePeering($network, $networksRemovePeeringRequestResource, $project); + $response = $gapicClient->removePeering($network, $networksRemovePeeringRequestResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -954,7 +956,7 @@ public function removePeeringExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -979,7 +981,7 @@ public function removePeeringExceptionTest() $network = 'network1843485230'; $networksRemovePeeringRequestResource = new NetworksRemovePeeringRequest(); $project = 'project-309310695'; - $response = $client->removePeering($network, $networksRemovePeeringRequestResource, $project); + $response = $gapicClient->removePeering($network, $networksRemovePeeringRequestResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1011,7 +1013,7 @@ public function switchToCustomModeTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1029,7 +1031,7 @@ public function switchToCustomModeTest() // Mock request $network = 'network1843485230'; $project = 'project-309310695'; - $response = $client->switchToCustomMode($network, $project); + $response = $gapicClient->switchToCustomMode($network, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1073,7 +1075,7 @@ public function switchToCustomModeExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1097,7 +1099,7 @@ public function switchToCustomModeExceptionTest() // Mock request $network = 'network1843485230'; $project = 'project-309310695'; - $response = $client->switchToCustomMode($network, $project); + $response = $gapicClient->switchToCustomMode($network, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1129,7 +1131,7 @@ public function updatePeeringTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1148,7 +1150,7 @@ public function updatePeeringTest() $network = 'network1843485230'; $networksUpdatePeeringRequestResource = new NetworksUpdatePeeringRequest(); $project = 'project-309310695'; - $response = $client->updatePeering($network, $networksUpdatePeeringRequestResource, $project); + $response = $gapicClient->updatePeering($network, $networksUpdatePeeringRequestResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1194,7 +1196,7 @@ public function updatePeeringExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1219,7 +1221,7 @@ public function updatePeeringExceptionTest() $network = 'network1843485230'; $networksUpdatePeeringRequestResource = new NetworksUpdatePeeringRequest(); $project = 'project-309310695'; - $response = $client->updatePeering($network, $networksUpdatePeeringRequestResource, $project); + $response = $gapicClient->updatePeering($network, $networksUpdatePeeringRequestResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/NodeGroupsClientTest.php b/Compute/tests/Unit/V1/NodeGroupsClientTest.php index 78e43b3fd26f..646ebd5c2c40 100644 --- a/Compute/tests/Unit/V1/NodeGroupsClientTest.php +++ b/Compute/tests/Unit/V1/NodeGroupsClientTest.php @@ -94,7 +94,7 @@ public function addNodesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -114,7 +114,7 @@ public function addNodesTest() $nodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->addNodes($nodeGroup, $nodeGroupsAddNodesRequestResource, $project, $zone); + $response = $gapicClient->addNodes($nodeGroup, $nodeGroupsAddNodesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -163,7 +163,7 @@ public function addNodesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -189,7 +189,7 @@ public function addNodesExceptionTest() $nodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->addNodes($nodeGroup, $nodeGroupsAddNodesRequestResource, $project, $zone); + $response = $gapicClient->addNodes($nodeGroup, $nodeGroupsAddNodesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -215,7 +215,7 @@ public function addNodesExceptionTest() public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -236,7 +236,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -259,7 +259,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -276,8 +276,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -300,7 +300,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -319,7 +319,7 @@ public function deleteTest() $nodeGroup = 'nodeGroup1543699970'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($nodeGroup, $project, $zone); + $response = $gapicClient->delete($nodeGroup, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -366,7 +366,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -391,7 +391,7 @@ public function deleteExceptionTest() $nodeGroup = 'nodeGroup1543699970'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($nodeGroup, $project, $zone); + $response = $gapicClient->delete($nodeGroup, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -423,7 +423,7 @@ public function deleteNodesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -443,7 +443,7 @@ public function deleteNodesTest() $nodeGroupsDeleteNodesRequestResource = new NodeGroupsDeleteNodesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->deleteNodes($nodeGroup, $nodeGroupsDeleteNodesRequestResource, $project, $zone); + $response = $gapicClient->deleteNodes($nodeGroup, $nodeGroupsDeleteNodesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -492,7 +492,7 @@ public function deleteNodesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -518,7 +518,7 @@ public function deleteNodesExceptionTest() $nodeGroupsDeleteNodesRequestResource = new NodeGroupsDeleteNodesRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->deleteNodes($nodeGroup, $nodeGroupsDeleteNodesRequestResource, $project, $zone); + $response = $gapicClient->deleteNodes($nodeGroup, $nodeGroupsDeleteNodesRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -544,7 +544,7 @@ public function deleteNodesExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -581,7 +581,7 @@ public function getTest() $nodeGroup = 'nodeGroup1543699970'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($nodeGroup, $project, $zone); + $response = $gapicClient->get($nodeGroup, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -603,7 +603,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -622,8 +622,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($nodeGroup, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($nodeGroup, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -640,7 +640,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -657,7 +657,7 @@ public function getIamPolicyTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $zone = 'zone3744684'; - $response = $client->getIamPolicy($project, $resource, $zone); + $response = $gapicClient->getIamPolicy($project, $resource, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -679,7 +679,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -698,8 +698,8 @@ public function getIamPolicyExceptionTest() $resource = 'resource-341064690'; $zone = 'zone3744684'; try { - $client->getIamPolicy($project, $resource, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $resource, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -722,7 +722,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -742,7 +742,7 @@ public function insertTest() $nodeGroupResource = new NodeGroup(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($initialNodeCount, $nodeGroupResource, $project, $zone); + $response = $gapicClient->insert($initialNodeCount, $nodeGroupResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -791,7 +791,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -817,7 +817,7 @@ public function insertExceptionTest() $nodeGroupResource = new NodeGroup(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->insert($initialNodeCount, $nodeGroupResource, $project, $zone); + $response = $gapicClient->insert($initialNodeCount, $nodeGroupResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -843,7 +843,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -866,7 +866,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -889,7 +889,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -907,8 +907,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -925,7 +925,7 @@ public function listExceptionTest() public function listNodesTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -949,7 +949,7 @@ public function listNodesTest() $nodeGroup = 'nodeGroup1543699970'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->listNodes($nodeGroup, $project, $zone); + $response = $gapicClient->listNodes($nodeGroup, $project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -974,7 +974,7 @@ public function listNodesTest() public function listNodesExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -993,8 +993,8 @@ public function listNodesExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->listNodes($nodeGroup, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->listNodes($nodeGroup, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1017,7 +1017,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1037,7 +1037,7 @@ public function patchTest() $nodeGroupResource = new NodeGroup(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->patch($nodeGroup, $nodeGroupResource, $project, $zone); + $response = $gapicClient->patch($nodeGroup, $nodeGroupResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1086,7 +1086,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1112,7 +1112,7 @@ public function patchExceptionTest() $nodeGroupResource = new NodeGroup(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->patch($nodeGroup, $nodeGroupResource, $project, $zone); + $response = $gapicClient->patch($nodeGroup, $nodeGroupResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1138,7 +1138,7 @@ public function patchExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1156,7 +1156,7 @@ public function setIamPolicyTest() $resource = 'resource-341064690'; $zone = 'zone3744684'; $zoneSetPolicyRequestResource = new ZoneSetPolicyRequest(); - $response = $client->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); + $response = $gapicClient->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1180,7 +1180,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1200,8 +1200,8 @@ public function setIamPolicyExceptionTest() $zone = 'zone3744684'; $zoneSetPolicyRequestResource = new ZoneSetPolicyRequest(); try { - $client->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1224,7 +1224,7 @@ public function setNodeTemplateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1244,7 +1244,7 @@ public function setNodeTemplateTest() $nodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setNodeTemplate($nodeGroup, $nodeGroupsSetNodeTemplateRequestResource, $project, $zone); + $response = $gapicClient->setNodeTemplate($nodeGroup, $nodeGroupsSetNodeTemplateRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1293,7 +1293,7 @@ public function setNodeTemplateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1319,7 +1319,7 @@ public function setNodeTemplateExceptionTest() $nodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest(); $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->setNodeTemplate($nodeGroup, $nodeGroupsSetNodeTemplateRequestResource, $project, $zone); + $response = $gapicClient->setNodeTemplate($nodeGroup, $nodeGroupsSetNodeTemplateRequestResource, $project, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1345,7 +1345,7 @@ public function setNodeTemplateExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1357,7 +1357,7 @@ public function testIamPermissionsTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); $zone = 'zone3744684'; - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1381,7 +1381,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1401,8 +1401,8 @@ public function testIamPermissionsExceptionTest() $testPermissionsRequestResource = new TestPermissionsRequest(); $zone = 'zone3744684'; try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/NodeTemplatesClientTest.php b/Compute/tests/Unit/V1/NodeTemplatesClientTest.php index 1cdd9ba84a4d..a61a89577c4e 100644 --- a/Compute/tests/Unit/V1/NodeTemplatesClientTest.php +++ b/Compute/tests/Unit/V1/NodeTemplatesClientTest.php @@ -83,7 +83,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -104,7 +104,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -127,7 +127,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -144,8 +144,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -168,7 +168,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -187,7 +187,7 @@ public function deleteTest() $nodeTemplate = 'nodeTemplate323154455'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($nodeTemplate, $project, $region); + $response = $gapicClient->delete($nodeTemplate, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -234,7 +234,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -259,7 +259,7 @@ public function deleteExceptionTest() $nodeTemplate = 'nodeTemplate323154455'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($nodeTemplate, $project, $region); + $response = $gapicClient->delete($nodeTemplate, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -285,7 +285,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -318,7 +318,7 @@ public function getTest() $nodeTemplate = 'nodeTemplate323154455'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($nodeTemplate, $project, $region); + $response = $gapicClient->get($nodeTemplate, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -340,7 +340,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -359,8 +359,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($nodeTemplate, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($nodeTemplate, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -377,7 +377,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -394,7 +394,7 @@ public function getIamPolicyTest() $project = 'project-309310695'; $region = 'region-934795532'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $region, $resource); + $response = $gapicClient->getIamPolicy($project, $region, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -416,7 +416,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -435,8 +435,8 @@ public function getIamPolicyExceptionTest() $region = 'region-934795532'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $region, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $region, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -459,7 +459,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -478,7 +478,7 @@ public function insertTest() $nodeTemplateResource = new NodeTemplate(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($nodeTemplateResource, $project, $region); + $response = $gapicClient->insert($nodeTemplateResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -525,7 +525,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -550,7 +550,7 @@ public function insertExceptionTest() $nodeTemplateResource = new NodeTemplate(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($nodeTemplateResource, $project, $region); + $response = $gapicClient->insert($nodeTemplateResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -576,7 +576,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -599,7 +599,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -622,7 +622,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -640,8 +640,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -658,7 +658,7 @@ public function listExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -676,7 +676,7 @@ public function setIamPolicyTest() $region = 'region-934795532'; $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; - $response = $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + $response = $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -700,7 +700,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -720,8 +720,8 @@ public function setIamPolicyExceptionTest() $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; try { - $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -738,7 +738,7 @@ public function setIamPolicyExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -750,7 +750,7 @@ public function testIamPermissionsTest() $region = 'region-934795532'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -774,7 +774,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -794,8 +794,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/NodeTypesClientTest.php b/Compute/tests/Unit/V1/NodeTypesClientTest.php index 72f49948971c..76bc894b1bd8 100644 --- a/Compute/tests/Unit/V1/NodeTypesClientTest.php +++ b/Compute/tests/Unit/V1/NodeTypesClientTest.php @@ -75,7 +75,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -96,7 +96,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -119,7 +119,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -136,8 +136,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -154,7 +154,7 @@ public function aggregatedListExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -187,7 +187,7 @@ public function getTest() $nodeType = 'nodeType465832791'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($nodeType, $project, $zone); + $response = $gapicClient->get($nodeType, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -209,7 +209,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -228,8 +228,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($nodeType, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($nodeType, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -246,7 +246,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -269,7 +269,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -292,7 +292,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -310,8 +310,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/PacketMirroringsClientTest.php b/Compute/tests/Unit/V1/PacketMirroringsClientTest.php index 15b62ed5b978..3cb96b655284 100644 --- a/Compute/tests/Unit/V1/PacketMirroringsClientTest.php +++ b/Compute/tests/Unit/V1/PacketMirroringsClientTest.php @@ -81,7 +81,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -102,7 +102,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -125,7 +125,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -142,8 +142,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -166,7 +166,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -185,7 +185,7 @@ public function deleteTest() $packetMirroring = 'packetMirroring22305996'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($packetMirroring, $project, $region); + $response = $gapicClient->delete($packetMirroring, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -232,7 +232,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -257,7 +257,7 @@ public function deleteExceptionTest() $packetMirroring = 'packetMirroring22305996'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($packetMirroring, $project, $region); + $response = $gapicClient->delete($packetMirroring, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -283,7 +283,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -312,7 +312,7 @@ public function getTest() $packetMirroring = 'packetMirroring22305996'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($packetMirroring, $project, $region); + $response = $gapicClient->get($packetMirroring, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -334,7 +334,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -353,8 +353,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($packetMirroring, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($packetMirroring, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -377,7 +377,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -396,7 +396,7 @@ public function insertTest() $packetMirroringResource = new PacketMirroring(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($packetMirroringResource, $project, $region); + $response = $gapicClient->insert($packetMirroringResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -443,7 +443,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -468,7 +468,7 @@ public function insertExceptionTest() $packetMirroringResource = new PacketMirroring(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($packetMirroringResource, $project, $region); + $response = $gapicClient->insert($packetMirroringResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -494,7 +494,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -517,7 +517,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -540,7 +540,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -558,8 +558,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -582,7 +582,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -602,7 +602,7 @@ public function patchTest() $packetMirroringResource = new PacketMirroring(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($packetMirroring, $packetMirroringResource, $project, $region); + $response = $gapicClient->patch($packetMirroring, $packetMirroringResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -651,7 +651,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -677,7 +677,7 @@ public function patchExceptionTest() $packetMirroringResource = new PacketMirroring(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($packetMirroring, $packetMirroringResource, $project, $region); + $response = $gapicClient->patch($packetMirroring, $packetMirroringResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -703,7 +703,7 @@ public function patchExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -715,7 +715,7 @@ public function testIamPermissionsTest() $region = 'region-934795532'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -739,7 +739,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -759,8 +759,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/ProjectsClientTest.php b/Compute/tests/Unit/V1/ProjectsClientTest.php index 539bd4001eed..f55661db441d 100644 --- a/Compute/tests/Unit/V1/ProjectsClientTest.php +++ b/Compute/tests/Unit/V1/ProjectsClientTest.php @@ -93,7 +93,7 @@ public function disableXpnHostTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -110,7 +110,7 @@ public function disableXpnHostTest() $operationsTransport->addResponse($completeOperation); // Mock request $project = 'project-309310695'; - $response = $client->disableXpnHost($project); + $response = $gapicClient->disableXpnHost($project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -152,7 +152,7 @@ public function disableXpnHostExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -175,7 +175,7 @@ public function disableXpnHostExceptionTest() $operationsTransport->addResponse(null, $status); // Mock request $project = 'project-309310695'; - $response = $client->disableXpnHost($project); + $response = $gapicClient->disableXpnHost($project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -207,7 +207,7 @@ public function disableXpnResourceTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -225,7 +225,7 @@ public function disableXpnResourceTest() // Mock request $project = 'project-309310695'; $projectsDisableXpnResourceRequestResource = new ProjectsDisableXpnResourceRequest(); - $response = $client->disableXpnResource($project, $projectsDisableXpnResourceRequestResource); + $response = $gapicClient->disableXpnResource($project, $projectsDisableXpnResourceRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -269,7 +269,7 @@ public function disableXpnResourceExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -293,7 +293,7 @@ public function disableXpnResourceExceptionTest() // Mock request $project = 'project-309310695'; $projectsDisableXpnResourceRequestResource = new ProjectsDisableXpnResourceRequest(); - $response = $client->disableXpnResource($project, $projectsDisableXpnResourceRequestResource); + $response = $gapicClient->disableXpnResource($project, $projectsDisableXpnResourceRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -325,7 +325,7 @@ public function enableXpnHostTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -342,7 +342,7 @@ public function enableXpnHostTest() $operationsTransport->addResponse($completeOperation); // Mock request $project = 'project-309310695'; - $response = $client->enableXpnHost($project); + $response = $gapicClient->enableXpnHost($project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -384,7 +384,7 @@ public function enableXpnHostExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -407,7 +407,7 @@ public function enableXpnHostExceptionTest() $operationsTransport->addResponse(null, $status); // Mock request $project = 'project-309310695'; - $response = $client->enableXpnHost($project); + $response = $gapicClient->enableXpnHost($project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -439,7 +439,7 @@ public function enableXpnResourceTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -457,7 +457,7 @@ public function enableXpnResourceTest() // Mock request $project = 'project-309310695'; $projectsEnableXpnResourceRequestResource = new ProjectsEnableXpnResourceRequest(); - $response = $client->enableXpnResource($project, $projectsEnableXpnResourceRequestResource); + $response = $gapicClient->enableXpnResource($project, $projectsEnableXpnResourceRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -501,7 +501,7 @@ public function enableXpnResourceExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -525,7 +525,7 @@ public function enableXpnResourceExceptionTest() // Mock request $project = 'project-309310695'; $projectsEnableXpnResourceRequestResource = new ProjectsEnableXpnResourceRequest(); - $response = $client->enableXpnResource($project, $projectsEnableXpnResourceRequestResource); + $response = $gapicClient->enableXpnResource($project, $projectsEnableXpnResourceRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -551,7 +551,7 @@ public function enableXpnResourceExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -578,7 +578,7 @@ public function getTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->get($project); + $response = $gapicClient->get($project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -596,7 +596,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -613,8 +613,8 @@ public function getExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->get($project); - // If the $client method call did not throw, fail the test + $gapicClient->get($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -631,7 +631,7 @@ public function getExceptionTest() public function getXpnHostTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -658,7 +658,7 @@ public function getXpnHostTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->getXpnHost($project); + $response = $gapicClient->getXpnHost($project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -676,7 +676,7 @@ public function getXpnHostTest() public function getXpnHostExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -693,8 +693,8 @@ public function getXpnHostExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->getXpnHost($project); - // If the $client method call did not throw, fail the test + $gapicClient->getXpnHost($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -711,7 +711,7 @@ public function getXpnHostExceptionTest() public function getXpnResourcesTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -729,7 +729,7 @@ public function getXpnResourcesTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->getXpnResources($project); + $response = $gapicClient->getXpnResources($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -750,7 +750,7 @@ public function getXpnResourcesTest() public function getXpnResourcesExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -767,8 +767,8 @@ public function getXpnResourcesExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->getXpnResources($project); - // If the $client method call did not throw, fail the test + $gapicClient->getXpnResources($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -785,7 +785,7 @@ public function getXpnResourcesExceptionTest() public function listXpnHostsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -808,7 +808,7 @@ public function listXpnHostsTest() // Mock request $project = 'project-309310695'; $projectsListXpnHostsRequestResource = new ProjectsListXpnHostsRequest(); - $response = $client->listXpnHosts($project, $projectsListXpnHostsRequestResource); + $response = $gapicClient->listXpnHosts($project, $projectsListXpnHostsRequestResource); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -831,7 +831,7 @@ public function listXpnHostsTest() public function listXpnHostsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -849,8 +849,8 @@ public function listXpnHostsExceptionTest() $project = 'project-309310695'; $projectsListXpnHostsRequestResource = new ProjectsListXpnHostsRequest(); try { - $client->listXpnHosts($project, $projectsListXpnHostsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->listXpnHosts($project, $projectsListXpnHostsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -873,7 +873,7 @@ public function moveDiskTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -891,7 +891,7 @@ public function moveDiskTest() // Mock request $diskMoveRequestResource = new DiskMoveRequest(); $project = 'project-309310695'; - $response = $client->moveDisk($diskMoveRequestResource, $project); + $response = $gapicClient->moveDisk($diskMoveRequestResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -935,7 +935,7 @@ public function moveDiskExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -959,7 +959,7 @@ public function moveDiskExceptionTest() // Mock request $diskMoveRequestResource = new DiskMoveRequest(); $project = 'project-309310695'; - $response = $client->moveDisk($diskMoveRequestResource, $project); + $response = $gapicClient->moveDisk($diskMoveRequestResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -991,7 +991,7 @@ public function moveInstanceTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1009,7 +1009,7 @@ public function moveInstanceTest() // Mock request $instanceMoveRequestResource = new InstanceMoveRequest(); $project = 'project-309310695'; - $response = $client->moveInstance($instanceMoveRequestResource, $project); + $response = $gapicClient->moveInstance($instanceMoveRequestResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1053,7 +1053,7 @@ public function moveInstanceExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1077,7 +1077,7 @@ public function moveInstanceExceptionTest() // Mock request $instanceMoveRequestResource = new InstanceMoveRequest(); $project = 'project-309310695'; - $response = $client->moveInstance($instanceMoveRequestResource, $project); + $response = $gapicClient->moveInstance($instanceMoveRequestResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1109,7 +1109,7 @@ public function setCommonInstanceMetadataTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1127,7 +1127,7 @@ public function setCommonInstanceMetadataTest() // Mock request $metadataResource = new Metadata(); $project = 'project-309310695'; - $response = $client->setCommonInstanceMetadata($metadataResource, $project); + $response = $gapicClient->setCommonInstanceMetadata($metadataResource, $project); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1171,7 +1171,7 @@ public function setCommonInstanceMetadataExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1195,7 +1195,7 @@ public function setCommonInstanceMetadataExceptionTest() // Mock request $metadataResource = new Metadata(); $project = 'project-309310695'; - $response = $client->setCommonInstanceMetadata($metadataResource, $project); + $response = $gapicClient->setCommonInstanceMetadata($metadataResource, $project); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1227,7 +1227,7 @@ public function setDefaultNetworkTierTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1245,7 +1245,7 @@ public function setDefaultNetworkTierTest() // Mock request $project = 'project-309310695'; $projectsSetDefaultNetworkTierRequestResource = new ProjectsSetDefaultNetworkTierRequest(); - $response = $client->setDefaultNetworkTier($project, $projectsSetDefaultNetworkTierRequestResource); + $response = $gapicClient->setDefaultNetworkTier($project, $projectsSetDefaultNetworkTierRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1289,7 +1289,7 @@ public function setDefaultNetworkTierExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1313,7 +1313,7 @@ public function setDefaultNetworkTierExceptionTest() // Mock request $project = 'project-309310695'; $projectsSetDefaultNetworkTierRequestResource = new ProjectsSetDefaultNetworkTierRequest(); - $response = $client->setDefaultNetworkTier($project, $projectsSetDefaultNetworkTierRequestResource); + $response = $gapicClient->setDefaultNetworkTier($project, $projectsSetDefaultNetworkTierRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1345,7 +1345,7 @@ public function setUsageExportBucketTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1363,7 +1363,7 @@ public function setUsageExportBucketTest() // Mock request $project = 'project-309310695'; $usageExportLocationResource = new UsageExportLocation(); - $response = $client->setUsageExportBucket($project, $usageExportLocationResource); + $response = $gapicClient->setUsageExportBucket($project, $usageExportLocationResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1407,7 +1407,7 @@ public function setUsageExportBucketExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1431,7 +1431,7 @@ public function setUsageExportBucketExceptionTest() // Mock request $project = 'project-309310695'; $usageExportLocationResource = new UsageExportLocation(); - $response = $client->setUsageExportBucket($project, $usageExportLocationResource); + $response = $gapicClient->setUsageExportBucket($project, $usageExportLocationResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/PublicAdvertisedPrefixesClientTest.php b/Compute/tests/Unit/V1/PublicAdvertisedPrefixesClientTest.php index 27fcdfec5d89..f91850771fbe 100644 --- a/Compute/tests/Unit/V1/PublicAdvertisedPrefixesClientTest.php +++ b/Compute/tests/Unit/V1/PublicAdvertisedPrefixesClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -101,7 +101,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $publicAdvertisedPrefix = 'publicAdvertisedPrefix-1508738146'; - $response = $client->delete($project, $publicAdvertisedPrefix); + $response = $gapicClient->delete($project, $publicAdvertisedPrefix); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -145,7 +145,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -169,7 +169,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $publicAdvertisedPrefix = 'publicAdvertisedPrefix-1508738146'; - $response = $client->delete($project, $publicAdvertisedPrefix); + $response = $gapicClient->delete($project, $publicAdvertisedPrefix); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -195,7 +195,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -227,7 +227,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $publicAdvertisedPrefix = 'publicAdvertisedPrefix-1508738146'; - $response = $client->get($project, $publicAdvertisedPrefix); + $response = $gapicClient->get($project, $publicAdvertisedPrefix); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -247,7 +247,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -265,8 +265,8 @@ public function getExceptionTest() $project = 'project-309310695'; $publicAdvertisedPrefix = 'publicAdvertisedPrefix-1508738146'; try { - $client->get($project, $publicAdvertisedPrefix); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $publicAdvertisedPrefix); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -289,7 +289,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -307,7 +307,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $publicAdvertisedPrefixResource = new PublicAdvertisedPrefix(); - $response = $client->insert($project, $publicAdvertisedPrefixResource); + $response = $gapicClient->insert($project, $publicAdvertisedPrefixResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -351,7 +351,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -375,7 +375,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $publicAdvertisedPrefixResource = new PublicAdvertisedPrefix(); - $response = $client->insert($project, $publicAdvertisedPrefixResource); + $response = $gapicClient->insert($project, $publicAdvertisedPrefixResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -401,7 +401,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -423,7 +423,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -444,7 +444,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -461,8 +461,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -485,7 +485,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -504,7 +504,7 @@ public function patchTest() $project = 'project-309310695'; $publicAdvertisedPrefix = 'publicAdvertisedPrefix-1508738146'; $publicAdvertisedPrefixResource = new PublicAdvertisedPrefix(); - $response = $client->patch($project, $publicAdvertisedPrefix, $publicAdvertisedPrefixResource); + $response = $gapicClient->patch($project, $publicAdvertisedPrefix, $publicAdvertisedPrefixResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -550,7 +550,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -575,7 +575,7 @@ public function patchExceptionTest() $project = 'project-309310695'; $publicAdvertisedPrefix = 'publicAdvertisedPrefix-1508738146'; $publicAdvertisedPrefixResource = new PublicAdvertisedPrefix(); - $response = $client->patch($project, $publicAdvertisedPrefix, $publicAdvertisedPrefixResource); + $response = $gapicClient->patch($project, $publicAdvertisedPrefix, $publicAdvertisedPrefixResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/PublicDelegatedPrefixesClientTest.php b/Compute/tests/Unit/V1/PublicDelegatedPrefixesClientTest.php index b70d375ba155..48bc27f369ff 100644 --- a/Compute/tests/Unit/V1/PublicDelegatedPrefixesClientTest.php +++ b/Compute/tests/Unit/V1/PublicDelegatedPrefixesClientTest.php @@ -79,7 +79,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -100,7 +100,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -123,7 +123,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -140,8 +140,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -164,7 +164,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -183,7 +183,7 @@ public function deleteTest() $project = 'project-309310695'; $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; $region = 'region-934795532'; - $response = $client->delete($project, $publicDelegatedPrefix, $region); + $response = $gapicClient->delete($project, $publicDelegatedPrefix, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -230,7 +230,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -255,7 +255,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; $region = 'region-934795532'; - $response = $client->delete($project, $publicDelegatedPrefix, $region); + $response = $gapicClient->delete($project, $publicDelegatedPrefix, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -281,7 +281,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -316,7 +316,7 @@ public function getTest() $project = 'project-309310695'; $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; $region = 'region-934795532'; - $response = $client->get($project, $publicDelegatedPrefix, $region); + $response = $gapicClient->get($project, $publicDelegatedPrefix, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -338,7 +338,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -357,8 +357,8 @@ public function getExceptionTest() $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; $region = 'region-934795532'; try { - $client->get($project, $publicDelegatedPrefix, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $publicDelegatedPrefix, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -381,7 +381,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -400,7 +400,7 @@ public function insertTest() $project = 'project-309310695'; $publicDelegatedPrefixResource = new PublicDelegatedPrefix(); $region = 'region-934795532'; - $response = $client->insert($project, $publicDelegatedPrefixResource, $region); + $response = $gapicClient->insert($project, $publicDelegatedPrefixResource, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -447,7 +447,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -472,7 +472,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $publicDelegatedPrefixResource = new PublicDelegatedPrefix(); $region = 'region-934795532'; - $response = $client->insert($project, $publicDelegatedPrefixResource, $region); + $response = $gapicClient->insert($project, $publicDelegatedPrefixResource, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -498,7 +498,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -521,7 +521,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -544,7 +544,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -562,8 +562,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -586,7 +586,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -606,7 +606,7 @@ public function patchTest() $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; $publicDelegatedPrefixResource = new PublicDelegatedPrefix(); $region = 'region-934795532'; - $response = $client->patch($project, $publicDelegatedPrefix, $publicDelegatedPrefixResource, $region); + $response = $gapicClient->patch($project, $publicDelegatedPrefix, $publicDelegatedPrefixResource, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -655,7 +655,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -681,7 +681,7 @@ public function patchExceptionTest() $publicDelegatedPrefix = 'publicDelegatedPrefix1814851176'; $publicDelegatedPrefixResource = new PublicDelegatedPrefix(); $region = 'region-934795532'; - $response = $client->patch($project, $publicDelegatedPrefix, $publicDelegatedPrefixResource, $region); + $response = $gapicClient->patch($project, $publicDelegatedPrefix, $publicDelegatedPrefixResource, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionAutoscalersClientTest.php b/Compute/tests/Unit/V1/RegionAutoscalersClientTest.php index 68f4d2d52c09..aef193d692f6 100644 --- a/Compute/tests/Unit/V1/RegionAutoscalersClientTest.php +++ b/Compute/tests/Unit/V1/RegionAutoscalersClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -102,7 +102,7 @@ public function deleteTest() $autoscaler = 'autoscaler517258967'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($autoscaler, $project, $region); + $response = $gapicClient->delete($autoscaler, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -149,7 +149,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -174,7 +174,7 @@ public function deleteExceptionTest() $autoscaler = 'autoscaler517258967'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($autoscaler, $project, $region); + $response = $gapicClient->delete($autoscaler, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -200,7 +200,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -233,7 +233,7 @@ public function getTest() $autoscaler = 'autoscaler517258967'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($autoscaler, $project, $region); + $response = $gapicClient->get($autoscaler, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -255,7 +255,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -274,8 +274,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($autoscaler, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($autoscaler, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -298,7 +298,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -317,7 +317,7 @@ public function insertTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($autoscalerResource, $project, $region); + $response = $gapicClient->insert($autoscalerResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -364,7 +364,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -389,7 +389,7 @@ public function insertExceptionTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($autoscalerResource, $project, $region); + $response = $gapicClient->insert($autoscalerResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -415,7 +415,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -438,7 +438,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -461,7 +461,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -479,8 +479,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -503,7 +503,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -522,7 +522,7 @@ public function patchTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($autoscalerResource, $project, $region); + $response = $gapicClient->patch($autoscalerResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -569,7 +569,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -594,7 +594,7 @@ public function patchExceptionTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($autoscalerResource, $project, $region); + $response = $gapicClient->patch($autoscalerResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -626,7 +626,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -645,7 +645,7 @@ public function updateTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->update($autoscalerResource, $project, $region); + $response = $gapicClient->update($autoscalerResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -692,7 +692,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -717,7 +717,7 @@ public function updateExceptionTest() $autoscalerResource = new Autoscaler(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->update($autoscalerResource, $project, $region); + $response = $gapicClient->update($autoscalerResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionBackendServicesClientTest.php b/Compute/tests/Unit/V1/RegionBackendServicesClientTest.php index 2e306ebd030c..7257f5b29cf1 100644 --- a/Compute/tests/Unit/V1/RegionBackendServicesClientTest.php +++ b/Compute/tests/Unit/V1/RegionBackendServicesClientTest.php @@ -85,7 +85,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -104,7 +104,7 @@ public function deleteTest() $backendService = 'backendService306946058'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($backendService, $project, $region); + $response = $gapicClient->delete($backendService, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -151,7 +151,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -176,7 +176,7 @@ public function deleteExceptionTest() $backendService = 'backendService306946058'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($backendService, $project, $region); + $response = $gapicClient->delete($backendService, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -202,7 +202,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -253,7 +253,7 @@ public function getTest() $backendService = 'backendService306946058'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($backendService, $project, $region); + $response = $gapicClient->get($backendService, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -275,7 +275,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -294,8 +294,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($backendService, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($backendService, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -312,7 +312,7 @@ public function getExceptionTest() public function getHealthTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -326,7 +326,7 @@ public function getHealthTest() $project = 'project-309310695'; $region = 'region-934795532'; $resourceGroupReferenceResource = new ResourceGroupReference(); - $response = $client->getHealth($backendService, $project, $region, $resourceGroupReferenceResource); + $response = $gapicClient->getHealth($backendService, $project, $region, $resourceGroupReferenceResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -350,7 +350,7 @@ public function getHealthTest() public function getHealthExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -370,8 +370,8 @@ public function getHealthExceptionTest() $region = 'region-934795532'; $resourceGroupReferenceResource = new ResourceGroupReference(); try { - $client->getHealth($backendService, $project, $region, $resourceGroupReferenceResource); - // If the $client method call did not throw, fail the test + $gapicClient->getHealth($backendService, $project, $region, $resourceGroupReferenceResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -394,7 +394,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -413,7 +413,7 @@ public function insertTest() $backendServiceResource = new BackendService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($backendServiceResource, $project, $region); + $response = $gapicClient->insert($backendServiceResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -460,7 +460,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -485,7 +485,7 @@ public function insertExceptionTest() $backendServiceResource = new BackendService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($backendServiceResource, $project, $region); + $response = $gapicClient->insert($backendServiceResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -511,7 +511,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -534,7 +534,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -557,7 +557,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -575,8 +575,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -599,7 +599,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -619,7 +619,7 @@ public function patchTest() $backendServiceResource = new BackendService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($backendService, $backendServiceResource, $project, $region); + $response = $gapicClient->patch($backendService, $backendServiceResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -668,7 +668,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -694,7 +694,7 @@ public function patchExceptionTest() $backendServiceResource = new BackendService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($backendService, $backendServiceResource, $project, $region); + $response = $gapicClient->patch($backendService, $backendServiceResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -726,7 +726,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -746,7 +746,7 @@ public function updateTest() $backendServiceResource = new BackendService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->update($backendService, $backendServiceResource, $project, $region); + $response = $gapicClient->update($backendService, $backendServiceResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -795,7 +795,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -821,7 +821,7 @@ public function updateExceptionTest() $backendServiceResource = new BackendService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->update($backendService, $backendServiceResource, $project, $region); + $response = $gapicClient->update($backendService, $backendServiceResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionCommitmentsClientTest.php b/Compute/tests/Unit/V1/RegionCommitmentsClientTest.php index f9de5fe8e47e..f761add6fc21 100644 --- a/Compute/tests/Unit/V1/RegionCommitmentsClientTest.php +++ b/Compute/tests/Unit/V1/RegionCommitmentsClientTest.php @@ -79,7 +79,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -100,7 +100,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -123,7 +123,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -140,8 +140,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -158,7 +158,7 @@ public function aggregatedListExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -199,7 +199,7 @@ public function getTest() $commitment = 'commitment1019005717'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($commitment, $project, $region); + $response = $gapicClient->get($commitment, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -221,7 +221,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -240,8 +240,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($commitment, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($commitment, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -264,7 +264,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -283,7 +283,7 @@ public function insertTest() $commitmentResource = new Commitment(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($commitmentResource, $project, $region); + $response = $gapicClient->insert($commitmentResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -330,7 +330,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -355,7 +355,7 @@ public function insertExceptionTest() $commitmentResource = new Commitment(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($commitmentResource, $project, $region); + $response = $gapicClient->insert($commitmentResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -381,7 +381,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -404,7 +404,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -427,7 +427,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -445,8 +445,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -469,7 +469,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -489,7 +489,7 @@ public function updateTest() $commitmentResource = new Commitment(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->update($commitment, $commitmentResource, $project, $region); + $response = $gapicClient->update($commitment, $commitmentResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -538,7 +538,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -564,7 +564,7 @@ public function updateExceptionTest() $commitmentResource = new Commitment(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->update($commitment, $commitmentResource, $project, $region); + $response = $gapicClient->update($commitment, $commitmentResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionDiskTypesClientTest.php b/Compute/tests/Unit/V1/RegionDiskTypesClientTest.php index 4523933d7780..ff8911d4bf9b 100644 --- a/Compute/tests/Unit/V1/RegionDiskTypesClientTest.php +++ b/Compute/tests/Unit/V1/RegionDiskTypesClientTest.php @@ -73,7 +73,7 @@ private function createClient(array $options = []) public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -104,7 +104,7 @@ public function getTest() $diskType = 'diskType93009052'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($diskType, $project, $region); + $response = $gapicClient->get($diskType, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -126,7 +126,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -145,8 +145,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($diskType, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($diskType, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -163,7 +163,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -186,7 +186,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -209,7 +209,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -227,8 +227,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/RegionDisksClientTest.php b/Compute/tests/Unit/V1/RegionDisksClientTest.php index e0c22634e090..e4101735e242 100644 --- a/Compute/tests/Unit/V1/RegionDisksClientTest.php +++ b/Compute/tests/Unit/V1/RegionDisksClientTest.php @@ -92,7 +92,7 @@ public function addResourcePoliciesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -112,7 +112,7 @@ public function addResourcePoliciesTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionDisksAddResourcePoliciesRequestResource = new RegionDisksAddResourcePoliciesRequest(); - $response = $client->addResourcePolicies($disk, $project, $region, $regionDisksAddResourcePoliciesRequestResource); + $response = $gapicClient->addResourcePolicies($disk, $project, $region, $regionDisksAddResourcePoliciesRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -161,7 +161,7 @@ public function addResourcePoliciesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -187,7 +187,7 @@ public function addResourcePoliciesExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionDisksAddResourcePoliciesRequestResource = new RegionDisksAddResourcePoliciesRequest(); - $response = $client->addResourcePolicies($disk, $project, $region, $regionDisksAddResourcePoliciesRequestResource); + $response = $gapicClient->addResourcePolicies($disk, $project, $region, $regionDisksAddResourcePoliciesRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -219,7 +219,7 @@ public function createSnapshotTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -239,7 +239,7 @@ public function createSnapshotTest() $project = 'project-309310695'; $region = 'region-934795532'; $snapshotResource = new Snapshot(); - $response = $client->createSnapshot($disk, $project, $region, $snapshotResource); + $response = $gapicClient->createSnapshot($disk, $project, $region, $snapshotResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -288,7 +288,7 @@ public function createSnapshotExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -314,7 +314,7 @@ public function createSnapshotExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $snapshotResource = new Snapshot(); - $response = $client->createSnapshot($disk, $project, $region, $snapshotResource); + $response = $gapicClient->createSnapshot($disk, $project, $region, $snapshotResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -346,7 +346,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -365,7 +365,7 @@ public function deleteTest() $disk = 'disk3083677'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($disk, $project, $region); + $response = $gapicClient->delete($disk, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -412,7 +412,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -437,7 +437,7 @@ public function deleteExceptionTest() $disk = 'disk3083677'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($disk, $project, $region); + $response = $gapicClient->delete($disk, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -463,11 +463,12 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); // Mock response + $architecture = 'architecture839674195'; $creationTimestamp = 'creationTimestamp567396278'; $description = 'description-1724546052'; $id = 3355; @@ -495,6 +496,7 @@ public function getTest() $type = 'type3575610'; $zone = 'zone3744684'; $expectedResponse = new Disk(); + $expectedResponse->setArchitecture($architecture); $expectedResponse->setCreationTimestamp($creationTimestamp); $expectedResponse->setDescription($description); $expectedResponse->setId($id); @@ -526,7 +528,7 @@ public function getTest() $disk = 'disk3083677'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($disk, $project, $region); + $response = $gapicClient->get($disk, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -548,7 +550,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -567,8 +569,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($disk, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($disk, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -585,7 +587,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -602,7 +604,7 @@ public function getIamPolicyTest() $project = 'project-309310695'; $region = 'region-934795532'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $region, $resource); + $response = $gapicClient->getIamPolicy($project, $region, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -624,7 +626,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -643,8 +645,8 @@ public function getIamPolicyExceptionTest() $region = 'region-934795532'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $region, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $region, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -667,7 +669,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -686,7 +688,7 @@ public function insertTest() $diskResource = new Disk(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($diskResource, $project, $region); + $response = $gapicClient->insert($diskResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -733,7 +735,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -758,7 +760,7 @@ public function insertExceptionTest() $diskResource = new Disk(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($diskResource, $project, $region); + $response = $gapicClient->insert($diskResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -784,7 +786,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -807,7 +809,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -830,7 +832,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -848,8 +850,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -872,7 +874,7 @@ public function removeResourcePoliciesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -892,7 +894,7 @@ public function removeResourcePoliciesTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionDisksRemoveResourcePoliciesRequestResource = new RegionDisksRemoveResourcePoliciesRequest(); - $response = $client->removeResourcePolicies($disk, $project, $region, $regionDisksRemoveResourcePoliciesRequestResource); + $response = $gapicClient->removeResourcePolicies($disk, $project, $region, $regionDisksRemoveResourcePoliciesRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -941,7 +943,7 @@ public function removeResourcePoliciesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -967,7 +969,7 @@ public function removeResourcePoliciesExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionDisksRemoveResourcePoliciesRequestResource = new RegionDisksRemoveResourcePoliciesRequest(); - $response = $client->removeResourcePolicies($disk, $project, $region, $regionDisksRemoveResourcePoliciesRequestResource); + $response = $gapicClient->removeResourcePolicies($disk, $project, $region, $regionDisksRemoveResourcePoliciesRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -999,7 +1001,7 @@ public function resizeTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1019,7 +1021,7 @@ public function resizeTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionDisksResizeRequestResource = new RegionDisksResizeRequest(); - $response = $client->resize($disk, $project, $region, $regionDisksResizeRequestResource); + $response = $gapicClient->resize($disk, $project, $region, $regionDisksResizeRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1068,7 +1070,7 @@ public function resizeExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1094,7 +1096,7 @@ public function resizeExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionDisksResizeRequestResource = new RegionDisksResizeRequest(); - $response = $client->resize($disk, $project, $region, $regionDisksResizeRequestResource); + $response = $gapicClient->resize($disk, $project, $region, $regionDisksResizeRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1120,7 +1122,7 @@ public function resizeExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1138,7 +1140,7 @@ public function setIamPolicyTest() $region = 'region-934795532'; $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; - $response = $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + $response = $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1162,7 +1164,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1182,8 +1184,8 @@ public function setIamPolicyExceptionTest() $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; try { - $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1206,7 +1208,7 @@ public function setLabelsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1226,7 +1228,7 @@ public function setLabelsTest() $region = 'region-934795532'; $regionSetLabelsRequestResource = new RegionSetLabelsRequest(); $resource = 'resource-341064690'; - $response = $client->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); + $response = $gapicClient->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1275,7 +1277,7 @@ public function setLabelsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1301,7 +1303,7 @@ public function setLabelsExceptionTest() $region = 'region-934795532'; $regionSetLabelsRequestResource = new RegionSetLabelsRequest(); $resource = 'resource-341064690'; - $response = $client->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); + $response = $gapicClient->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1327,7 +1329,7 @@ public function setLabelsExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1339,7 +1341,7 @@ public function testIamPermissionsTest() $region = 'region-934795532'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1363,7 +1365,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1383,8 +1385,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/RegionHealthCheckServicesClientTest.php b/Compute/tests/Unit/V1/RegionHealthCheckServicesClientTest.php index c16d87951a9e..b8a876f87274 100644 --- a/Compute/tests/Unit/V1/RegionHealthCheckServicesClientTest.php +++ b/Compute/tests/Unit/V1/RegionHealthCheckServicesClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -102,7 +102,7 @@ public function deleteTest() $healthCheckService = 'healthCheckService-665367077'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($healthCheckService, $project, $region); + $response = $gapicClient->delete($healthCheckService, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -149,7 +149,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -174,7 +174,7 @@ public function deleteExceptionTest() $healthCheckService = 'healthCheckService-665367077'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($healthCheckService, $project, $region); + $response = $gapicClient->delete($healthCheckService, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -200,7 +200,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -229,7 +229,7 @@ public function getTest() $healthCheckService = 'healthCheckService-665367077'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($healthCheckService, $project, $region); + $response = $gapicClient->get($healthCheckService, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -251,7 +251,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -270,8 +270,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($healthCheckService, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($healthCheckService, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -294,7 +294,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -313,7 +313,7 @@ public function insertTest() $healthCheckServiceResource = new HealthCheckService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($healthCheckServiceResource, $project, $region); + $response = $gapicClient->insert($healthCheckServiceResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -360,7 +360,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -385,7 +385,7 @@ public function insertExceptionTest() $healthCheckServiceResource = new HealthCheckService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($healthCheckServiceResource, $project, $region); + $response = $gapicClient->insert($healthCheckServiceResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -411,7 +411,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -434,7 +434,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -457,7 +457,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -475,8 +475,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -499,7 +499,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -519,7 +519,7 @@ public function patchTest() $healthCheckServiceResource = new HealthCheckService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($healthCheckService, $healthCheckServiceResource, $project, $region); + $response = $gapicClient->patch($healthCheckService, $healthCheckServiceResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -568,7 +568,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -594,7 +594,7 @@ public function patchExceptionTest() $healthCheckServiceResource = new HealthCheckService(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($healthCheckService, $healthCheckServiceResource, $project, $region); + $response = $gapicClient->patch($healthCheckService, $healthCheckServiceResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionHealthChecksClientTest.php b/Compute/tests/Unit/V1/RegionHealthChecksClientTest.php index 36efe477f329..4b6d83d70141 100644 --- a/Compute/tests/Unit/V1/RegionHealthChecksClientTest.php +++ b/Compute/tests/Unit/V1/RegionHealthChecksClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -102,7 +102,7 @@ public function deleteTest() $healthCheck = 'healthCheck845747557'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($healthCheck, $project, $region); + $response = $gapicClient->delete($healthCheck, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -149,7 +149,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -174,7 +174,7 @@ public function deleteExceptionTest() $healthCheck = 'healthCheck845747557'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($healthCheck, $project, $region); + $response = $gapicClient->delete($healthCheck, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -200,7 +200,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -235,7 +235,7 @@ public function getTest() $healthCheck = 'healthCheck845747557'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($healthCheck, $project, $region); + $response = $gapicClient->get($healthCheck, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -257,7 +257,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -276,8 +276,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($healthCheck, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($healthCheck, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -300,7 +300,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -319,7 +319,7 @@ public function insertTest() $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($healthCheckResource, $project, $region); + $response = $gapicClient->insert($healthCheckResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -366,7 +366,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -391,7 +391,7 @@ public function insertExceptionTest() $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($healthCheckResource, $project, $region); + $response = $gapicClient->insert($healthCheckResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -417,7 +417,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -440,7 +440,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -463,7 +463,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -481,8 +481,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -505,7 +505,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -525,7 +525,7 @@ public function patchTest() $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($healthCheck, $healthCheckResource, $project, $region); + $response = $gapicClient->patch($healthCheck, $healthCheckResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -574,7 +574,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -600,7 +600,7 @@ public function patchExceptionTest() $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($healthCheck, $healthCheckResource, $project, $region); + $response = $gapicClient->patch($healthCheck, $healthCheckResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -632,7 +632,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -652,7 +652,7 @@ public function updateTest() $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->update($healthCheck, $healthCheckResource, $project, $region); + $response = $gapicClient->update($healthCheck, $healthCheckResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -701,7 +701,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -727,7 +727,7 @@ public function updateExceptionTest() $healthCheckResource = new HealthCheck(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->update($healthCheck, $healthCheckResource, $project, $region); + $response = $gapicClient->update($healthCheck, $healthCheckResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionInstanceGroupManagersClientTest.php b/Compute/tests/Unit/V1/RegionInstanceGroupManagersClientTest.php index ad35ccac9729..6040cd7c1fff 100644 --- a/Compute/tests/Unit/V1/RegionInstanceGroupManagersClientTest.php +++ b/Compute/tests/Unit/V1/RegionInstanceGroupManagersClientTest.php @@ -99,7 +99,7 @@ public function abandonInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -119,7 +119,7 @@ public function abandonInstancesTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersAbandonInstancesRequestResource = new RegionInstanceGroupManagersAbandonInstancesRequest(); - $response = $client->abandonInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersAbandonInstancesRequestResource); + $response = $gapicClient->abandonInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersAbandonInstancesRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -168,7 +168,7 @@ public function abandonInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -194,7 +194,7 @@ public function abandonInstancesExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersAbandonInstancesRequestResource = new RegionInstanceGroupManagersAbandonInstancesRequest(); - $response = $client->abandonInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersAbandonInstancesRequestResource); + $response = $gapicClient->abandonInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersAbandonInstancesRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -226,7 +226,7 @@ public function applyUpdatesToInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -246,7 +246,7 @@ public function applyUpdatesToInstancesTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersApplyUpdatesRequestResource = new RegionInstanceGroupManagersApplyUpdatesRequest(); - $response = $client->applyUpdatesToInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersApplyUpdatesRequestResource); + $response = $gapicClient->applyUpdatesToInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersApplyUpdatesRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -295,7 +295,7 @@ public function applyUpdatesToInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -321,7 +321,7 @@ public function applyUpdatesToInstancesExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersApplyUpdatesRequestResource = new RegionInstanceGroupManagersApplyUpdatesRequest(); - $response = $client->applyUpdatesToInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersApplyUpdatesRequestResource); + $response = $gapicClient->applyUpdatesToInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersApplyUpdatesRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -353,7 +353,7 @@ public function createInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -373,7 +373,7 @@ public function createInstancesTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersCreateInstancesRequestResource = new RegionInstanceGroupManagersCreateInstancesRequest(); - $response = $client->createInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersCreateInstancesRequestResource); + $response = $gapicClient->createInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersCreateInstancesRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -422,7 +422,7 @@ public function createInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -448,7 +448,7 @@ public function createInstancesExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersCreateInstancesRequestResource = new RegionInstanceGroupManagersCreateInstancesRequest(); - $response = $client->createInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersCreateInstancesRequestResource); + $response = $gapicClient->createInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersCreateInstancesRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -480,7 +480,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -499,7 +499,7 @@ public function deleteTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($instanceGroupManager, $project, $region); + $response = $gapicClient->delete($instanceGroupManager, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -546,7 +546,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -571,7 +571,7 @@ public function deleteExceptionTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($instanceGroupManager, $project, $region); + $response = $gapicClient->delete($instanceGroupManager, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -603,7 +603,7 @@ public function deleteInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -623,7 +623,7 @@ public function deleteInstancesTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersDeleteInstancesRequestResource = new RegionInstanceGroupManagersDeleteInstancesRequest(); - $response = $client->deleteInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersDeleteInstancesRequestResource); + $response = $gapicClient->deleteInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersDeleteInstancesRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -672,7 +672,7 @@ public function deleteInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -698,7 +698,7 @@ public function deleteInstancesExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersDeleteInstancesRequestResource = new RegionInstanceGroupManagersDeleteInstancesRequest(); - $response = $client->deleteInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersDeleteInstancesRequestResource); + $response = $gapicClient->deleteInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersDeleteInstancesRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -730,7 +730,7 @@ public function deletePerInstanceConfigsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -750,7 +750,7 @@ public function deletePerInstanceConfigsTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagerDeleteInstanceConfigReqResource = new RegionInstanceGroupManagerDeleteInstanceConfigReq(); - $response = $client->deletePerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerDeleteInstanceConfigReqResource); + $response = $gapicClient->deletePerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerDeleteInstanceConfigReqResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -799,7 +799,7 @@ public function deletePerInstanceConfigsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -825,7 +825,7 @@ public function deletePerInstanceConfigsExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagerDeleteInstanceConfigReqResource = new RegionInstanceGroupManagerDeleteInstanceConfigReq(); - $response = $client->deletePerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerDeleteInstanceConfigReqResource); + $response = $gapicClient->deletePerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerDeleteInstanceConfigReqResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -851,7 +851,7 @@ public function deletePerInstanceConfigsExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -888,7 +888,7 @@ public function getTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($instanceGroupManager, $project, $region); + $response = $gapicClient->get($instanceGroupManager, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -910,7 +910,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -929,8 +929,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($instanceGroupManager, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($instanceGroupManager, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -953,7 +953,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -972,7 +972,7 @@ public function insertTest() $instanceGroupManagerResource = new InstanceGroupManager(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($instanceGroupManagerResource, $project, $region); + $response = $gapicClient->insert($instanceGroupManagerResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1019,7 +1019,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1044,7 +1044,7 @@ public function insertExceptionTest() $instanceGroupManagerResource = new InstanceGroupManager(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($instanceGroupManagerResource, $project, $region); + $response = $gapicClient->insert($instanceGroupManagerResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1070,7 +1070,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1093,7 +1093,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1116,7 +1116,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1134,8 +1134,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1152,7 +1152,7 @@ public function listExceptionTest() public function listErrorsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1170,7 +1170,7 @@ public function listErrorsTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->listErrors($instanceGroupManager, $project, $region); + $response = $gapicClient->listErrors($instanceGroupManager, $project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1195,7 +1195,7 @@ public function listErrorsTest() public function listErrorsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1214,8 +1214,8 @@ public function listErrorsExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->listErrors($instanceGroupManager, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->listErrors($instanceGroupManager, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1232,7 +1232,7 @@ public function listErrorsExceptionTest() public function listManagedInstancesTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1250,7 +1250,7 @@ public function listManagedInstancesTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->listManagedInstances($instanceGroupManager, $project, $region); + $response = $gapicClient->listManagedInstances($instanceGroupManager, $project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1275,7 +1275,7 @@ public function listManagedInstancesTest() public function listManagedInstancesExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1294,8 +1294,8 @@ public function listManagedInstancesExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->listManagedInstances($instanceGroupManager, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->listManagedInstances($instanceGroupManager, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1312,7 +1312,7 @@ public function listManagedInstancesExceptionTest() public function listPerInstanceConfigsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1330,7 +1330,7 @@ public function listPerInstanceConfigsTest() $instanceGroupManager = 'instanceGroupManager-1361249341'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->listPerInstanceConfigs($instanceGroupManager, $project, $region); + $response = $gapicClient->listPerInstanceConfigs($instanceGroupManager, $project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1355,7 +1355,7 @@ public function listPerInstanceConfigsTest() public function listPerInstanceConfigsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1374,8 +1374,8 @@ public function listPerInstanceConfigsExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->listPerInstanceConfigs($instanceGroupManager, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->listPerInstanceConfigs($instanceGroupManager, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1398,7 +1398,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1418,7 +1418,7 @@ public function patchTest() $instanceGroupManagerResource = new InstanceGroupManager(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($instanceGroupManager, $instanceGroupManagerResource, $project, $region); + $response = $gapicClient->patch($instanceGroupManager, $instanceGroupManagerResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1467,7 +1467,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1493,7 +1493,7 @@ public function patchExceptionTest() $instanceGroupManagerResource = new InstanceGroupManager(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($instanceGroupManager, $instanceGroupManagerResource, $project, $region); + $response = $gapicClient->patch($instanceGroupManager, $instanceGroupManagerResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1525,7 +1525,7 @@ public function patchPerInstanceConfigsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1545,7 +1545,7 @@ public function patchPerInstanceConfigsTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagerPatchInstanceConfigReqResource = new RegionInstanceGroupManagerPatchInstanceConfigReq(); - $response = $client->patchPerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerPatchInstanceConfigReqResource); + $response = $gapicClient->patchPerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerPatchInstanceConfigReqResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1594,7 +1594,7 @@ public function patchPerInstanceConfigsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1620,7 +1620,7 @@ public function patchPerInstanceConfigsExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagerPatchInstanceConfigReqResource = new RegionInstanceGroupManagerPatchInstanceConfigReq(); - $response = $client->patchPerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerPatchInstanceConfigReqResource); + $response = $gapicClient->patchPerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerPatchInstanceConfigReqResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1652,7 +1652,7 @@ public function recreateInstancesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1672,7 +1672,7 @@ public function recreateInstancesTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersRecreateRequestResource = new RegionInstanceGroupManagersRecreateRequest(); - $response = $client->recreateInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersRecreateRequestResource); + $response = $gapicClient->recreateInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersRecreateRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1721,7 +1721,7 @@ public function recreateInstancesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1747,7 +1747,7 @@ public function recreateInstancesExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersRecreateRequestResource = new RegionInstanceGroupManagersRecreateRequest(); - $response = $client->recreateInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersRecreateRequestResource); + $response = $gapicClient->recreateInstances($instanceGroupManager, $project, $region, $regionInstanceGroupManagersRecreateRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1779,7 +1779,7 @@ public function resizeTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1799,7 +1799,7 @@ public function resizeTest() $project = 'project-309310695'; $region = 'region-934795532'; $size = 3530753; - $response = $client->resize($instanceGroupManager, $project, $region, $size); + $response = $gapicClient->resize($instanceGroupManager, $project, $region, $size); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1848,7 +1848,7 @@ public function resizeExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1874,7 +1874,7 @@ public function resizeExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $size = 3530753; - $response = $client->resize($instanceGroupManager, $project, $region, $size); + $response = $gapicClient->resize($instanceGroupManager, $project, $region, $size); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1906,7 +1906,7 @@ public function setInstanceTemplateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1926,7 +1926,7 @@ public function setInstanceTemplateTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersSetTemplateRequestResource = new RegionInstanceGroupManagersSetTemplateRequest(); - $response = $client->setInstanceTemplate($instanceGroupManager, $project, $region, $regionInstanceGroupManagersSetTemplateRequestResource); + $response = $gapicClient->setInstanceTemplate($instanceGroupManager, $project, $region, $regionInstanceGroupManagersSetTemplateRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1975,7 +1975,7 @@ public function setInstanceTemplateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2001,7 +2001,7 @@ public function setInstanceTemplateExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersSetTemplateRequestResource = new RegionInstanceGroupManagersSetTemplateRequest(); - $response = $client->setInstanceTemplate($instanceGroupManager, $project, $region, $regionInstanceGroupManagersSetTemplateRequestResource); + $response = $gapicClient->setInstanceTemplate($instanceGroupManager, $project, $region, $regionInstanceGroupManagersSetTemplateRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -2033,7 +2033,7 @@ public function setTargetPoolsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2053,7 +2053,7 @@ public function setTargetPoolsTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersSetTargetPoolsRequestResource = new RegionInstanceGroupManagersSetTargetPoolsRequest(); - $response = $client->setTargetPools($instanceGroupManager, $project, $region, $regionInstanceGroupManagersSetTargetPoolsRequestResource); + $response = $gapicClient->setTargetPools($instanceGroupManager, $project, $region, $regionInstanceGroupManagersSetTargetPoolsRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2102,7 +2102,7 @@ public function setTargetPoolsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2128,7 +2128,7 @@ public function setTargetPoolsExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagersSetTargetPoolsRequestResource = new RegionInstanceGroupManagersSetTargetPoolsRequest(); - $response = $client->setTargetPools($instanceGroupManager, $project, $region, $regionInstanceGroupManagersSetTargetPoolsRequestResource); + $response = $gapicClient->setTargetPools($instanceGroupManager, $project, $region, $regionInstanceGroupManagersSetTargetPoolsRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -2160,7 +2160,7 @@ public function updatePerInstanceConfigsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2180,7 +2180,7 @@ public function updatePerInstanceConfigsTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagerUpdateInstanceConfigReqResource = new RegionInstanceGroupManagerUpdateInstanceConfigReq(); - $response = $client->updatePerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerUpdateInstanceConfigReqResource); + $response = $gapicClient->updatePerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerUpdateInstanceConfigReqResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -2229,7 +2229,7 @@ public function updatePerInstanceConfigsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2255,7 +2255,7 @@ public function updatePerInstanceConfigsExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupManagerUpdateInstanceConfigReqResource = new RegionInstanceGroupManagerUpdateInstanceConfigReq(); - $response = $client->updatePerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerUpdateInstanceConfigReqResource); + $response = $gapicClient->updatePerInstanceConfigs($instanceGroupManager, $project, $region, $regionInstanceGroupManagerUpdateInstanceConfigReqResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionInstanceGroupsClientTest.php b/Compute/tests/Unit/V1/RegionInstanceGroupsClientTest.php index a1e8aecd89e2..00e36b57d3aa 100644 --- a/Compute/tests/Unit/V1/RegionInstanceGroupsClientTest.php +++ b/Compute/tests/Unit/V1/RegionInstanceGroupsClientTest.php @@ -81,7 +81,7 @@ private function createClient(array $options = []) public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -116,7 +116,7 @@ public function getTest() $instanceGroup = 'instanceGroup81095253'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($instanceGroup, $project, $region); + $response = $gapicClient->get($instanceGroup, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -138,7 +138,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -157,8 +157,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($instanceGroup, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($instanceGroup, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -175,7 +175,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -198,7 +198,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -221,7 +221,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -239,8 +239,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -257,7 +257,7 @@ public function listExceptionTest() public function listInstancesTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -282,7 +282,7 @@ public function listInstancesTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupsListInstancesRequestResource = new RegionInstanceGroupsListInstancesRequest(); - $response = $client->listInstances($instanceGroup, $project, $region, $regionInstanceGroupsListInstancesRequestResource); + $response = $gapicClient->listInstances($instanceGroup, $project, $region, $regionInstanceGroupsListInstancesRequestResource); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -309,7 +309,7 @@ public function listInstancesTest() public function listInstancesExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -329,8 +329,8 @@ public function listInstancesExceptionTest() $region = 'region-934795532'; $regionInstanceGroupsListInstancesRequestResource = new RegionInstanceGroupsListInstancesRequest(); try { - $client->listInstances($instanceGroup, $project, $region, $regionInstanceGroupsListInstancesRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->listInstances($instanceGroup, $project, $region, $regionInstanceGroupsListInstancesRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -353,7 +353,7 @@ public function setNamedPortsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -373,7 +373,7 @@ public function setNamedPortsTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupsSetNamedPortsRequestResource = new RegionInstanceGroupsSetNamedPortsRequest(); - $response = $client->setNamedPorts($instanceGroup, $project, $region, $regionInstanceGroupsSetNamedPortsRequestResource); + $response = $gapicClient->setNamedPorts($instanceGroup, $project, $region, $regionInstanceGroupsSetNamedPortsRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -422,7 +422,7 @@ public function setNamedPortsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -448,7 +448,7 @@ public function setNamedPortsExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $regionInstanceGroupsSetNamedPortsRequestResource = new RegionInstanceGroupsSetNamedPortsRequest(); - $response = $client->setNamedPorts($instanceGroup, $project, $region, $regionInstanceGroupsSetNamedPortsRequestResource); + $response = $gapicClient->setNamedPorts($instanceGroup, $project, $region, $regionInstanceGroupsSetNamedPortsRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionInstancesClientTest.php b/Compute/tests/Unit/V1/RegionInstancesClientTest.php index 0908ba5f9896..a184f56cc8e5 100644 --- a/Compute/tests/Unit/V1/RegionInstancesClientTest.php +++ b/Compute/tests/Unit/V1/RegionInstancesClientTest.php @@ -82,7 +82,7 @@ public function bulkInsertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -101,7 +101,7 @@ public function bulkInsertTest() $bulkInsertInstanceResourceResource = new BulkInsertInstanceResource(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->bulkInsert($bulkInsertInstanceResourceResource, $project, $region); + $response = $gapicClient->bulkInsert($bulkInsertInstanceResourceResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -148,7 +148,7 @@ public function bulkInsertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -173,7 +173,7 @@ public function bulkInsertExceptionTest() $bulkInsertInstanceResourceResource = new BulkInsertInstanceResource(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->bulkInsert($bulkInsertInstanceResourceResource, $project, $region); + $response = $gapicClient->bulkInsert($bulkInsertInstanceResourceResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionNetworkEndpointGroupsClientTest.php b/Compute/tests/Unit/V1/RegionNetworkEndpointGroupsClientTest.php index a2239de9f912..6c3c2bae64dc 100644 --- a/Compute/tests/Unit/V1/RegionNetworkEndpointGroupsClientTest.php +++ b/Compute/tests/Unit/V1/RegionNetworkEndpointGroupsClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -102,7 +102,7 @@ public function deleteTest() $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($networkEndpointGroup, $project, $region); + $response = $gapicClient->delete($networkEndpointGroup, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -149,7 +149,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -174,7 +174,7 @@ public function deleteExceptionTest() $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($networkEndpointGroup, $project, $region); + $response = $gapicClient->delete($networkEndpointGroup, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -200,7 +200,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -239,7 +239,7 @@ public function getTest() $networkEndpointGroup = 'networkEndpointGroup-639834746'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($networkEndpointGroup, $project, $region); + $response = $gapicClient->get($networkEndpointGroup, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -261,7 +261,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -280,8 +280,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($networkEndpointGroup, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($networkEndpointGroup, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -304,7 +304,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -323,7 +323,7 @@ public function insertTest() $networkEndpointGroupResource = new NetworkEndpointGroup(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($networkEndpointGroupResource, $project, $region); + $response = $gapicClient->insert($networkEndpointGroupResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -370,7 +370,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -395,7 +395,7 @@ public function insertExceptionTest() $networkEndpointGroupResource = new NetworkEndpointGroup(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($networkEndpointGroupResource, $project, $region); + $response = $gapicClient->insert($networkEndpointGroupResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -421,7 +421,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -444,7 +444,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -467,7 +467,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -485,8 +485,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/RegionNetworkFirewallPoliciesClientTest.php b/Compute/tests/Unit/V1/RegionNetworkFirewallPoliciesClientTest.php index fafccf1e1178..b91b0b888363 100644 --- a/Compute/tests/Unit/V1/RegionNetworkFirewallPoliciesClientTest.php +++ b/Compute/tests/Unit/V1/RegionNetworkFirewallPoliciesClientTest.php @@ -90,7 +90,7 @@ public function addAssociationTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -110,7 +110,7 @@ public function addAssociationTest() $firewallPolicyAssociationResource = new FirewallPolicyAssociation(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->addAssociation($firewallPolicy, $firewallPolicyAssociationResource, $project, $region); + $response = $gapicClient->addAssociation($firewallPolicy, $firewallPolicyAssociationResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -159,7 +159,7 @@ public function addAssociationExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -185,7 +185,7 @@ public function addAssociationExceptionTest() $firewallPolicyAssociationResource = new FirewallPolicyAssociation(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->addAssociation($firewallPolicy, $firewallPolicyAssociationResource, $project, $region); + $response = $gapicClient->addAssociation($firewallPolicy, $firewallPolicyAssociationResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -217,7 +217,7 @@ public function addRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -237,7 +237,7 @@ public function addRuleTest() $firewallPolicyRuleResource = new FirewallPolicyRule(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->addRule($firewallPolicy, $firewallPolicyRuleResource, $project, $region); + $response = $gapicClient->addRule($firewallPolicy, $firewallPolicyRuleResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -286,7 +286,7 @@ public function addRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -312,7 +312,7 @@ public function addRuleExceptionTest() $firewallPolicyRuleResource = new FirewallPolicyRule(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->addRule($firewallPolicy, $firewallPolicyRuleResource, $project, $region); + $response = $gapicClient->addRule($firewallPolicy, $firewallPolicyRuleResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -344,7 +344,7 @@ public function cloneRulesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -363,7 +363,7 @@ public function cloneRulesTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->cloneRules($firewallPolicy, $project, $region); + $response = $gapicClient->cloneRules($firewallPolicy, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -410,7 +410,7 @@ public function cloneRulesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -435,7 +435,7 @@ public function cloneRulesExceptionTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->cloneRules($firewallPolicy, $project, $region); + $response = $gapicClient->cloneRules($firewallPolicy, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -467,7 +467,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -486,7 +486,7 @@ public function deleteTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($firewallPolicy, $project, $region); + $response = $gapicClient->delete($firewallPolicy, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -533,7 +533,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -558,7 +558,7 @@ public function deleteExceptionTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($firewallPolicy, $project, $region); + $response = $gapicClient->delete($firewallPolicy, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -584,7 +584,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -621,7 +621,7 @@ public function getTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($firewallPolicy, $project, $region); + $response = $gapicClient->get($firewallPolicy, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -643,7 +643,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -662,8 +662,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($firewallPolicy, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($firewallPolicy, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -680,7 +680,7 @@ public function getExceptionTest() public function getAssociationTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -701,7 +701,7 @@ public function getAssociationTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->getAssociation($firewallPolicy, $project, $region); + $response = $gapicClient->getAssociation($firewallPolicy, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -723,7 +723,7 @@ public function getAssociationTest() public function getAssociationExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -742,8 +742,8 @@ public function getAssociationExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->getAssociation($firewallPolicy, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->getAssociation($firewallPolicy, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -760,7 +760,7 @@ public function getAssociationExceptionTest() public function getEffectiveFirewallsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -771,7 +771,7 @@ public function getEffectiveFirewallsTest() $network = 'network1843485230'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->getEffectiveFirewalls($network, $project, $region); + $response = $gapicClient->getEffectiveFirewalls($network, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -793,7 +793,7 @@ public function getEffectiveFirewallsTest() public function getEffectiveFirewallsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -812,8 +812,8 @@ public function getEffectiveFirewallsExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->getEffectiveFirewalls($network, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->getEffectiveFirewalls($network, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -830,7 +830,7 @@ public function getEffectiveFirewallsExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -847,7 +847,7 @@ public function getIamPolicyTest() $project = 'project-309310695'; $region = 'region-934795532'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $region, $resource); + $response = $gapicClient->getIamPolicy($project, $region, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -869,7 +869,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -888,8 +888,8 @@ public function getIamPolicyExceptionTest() $region = 'region-934795532'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $region, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $region, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -906,7 +906,7 @@ public function getIamPolicyExceptionTest() public function getRuleTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -935,7 +935,7 @@ public function getRuleTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->getRule($firewallPolicy, $project, $region); + $response = $gapicClient->getRule($firewallPolicy, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -957,7 +957,7 @@ public function getRuleTest() public function getRuleExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -976,8 +976,8 @@ public function getRuleExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->getRule($firewallPolicy, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->getRule($firewallPolicy, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1000,7 +1000,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1019,7 +1019,7 @@ public function insertTest() $firewallPolicyResource = new FirewallPolicy(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($firewallPolicyResource, $project, $region); + $response = $gapicClient->insert($firewallPolicyResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1066,7 +1066,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1091,7 +1091,7 @@ public function insertExceptionTest() $firewallPolicyResource = new FirewallPolicy(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($firewallPolicyResource, $project, $region); + $response = $gapicClient->insert($firewallPolicyResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1117,7 +1117,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1138,7 +1138,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1161,7 +1161,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1179,8 +1179,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1203,7 +1203,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1223,7 +1223,7 @@ public function patchTest() $firewallPolicyResource = new FirewallPolicy(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($firewallPolicy, $firewallPolicyResource, $project, $region); + $response = $gapicClient->patch($firewallPolicy, $firewallPolicyResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1272,7 +1272,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1298,7 +1298,7 @@ public function patchExceptionTest() $firewallPolicyResource = new FirewallPolicy(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patch($firewallPolicy, $firewallPolicyResource, $project, $region); + $response = $gapicClient->patch($firewallPolicy, $firewallPolicyResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1330,7 +1330,7 @@ public function patchRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1350,7 +1350,7 @@ public function patchRuleTest() $firewallPolicyRuleResource = new FirewallPolicyRule(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patchRule($firewallPolicy, $firewallPolicyRuleResource, $project, $region); + $response = $gapicClient->patchRule($firewallPolicy, $firewallPolicyRuleResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1399,7 +1399,7 @@ public function patchRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1425,7 +1425,7 @@ public function patchRuleExceptionTest() $firewallPolicyRuleResource = new FirewallPolicyRule(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->patchRule($firewallPolicy, $firewallPolicyRuleResource, $project, $region); + $response = $gapicClient->patchRule($firewallPolicy, $firewallPolicyRuleResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1457,7 +1457,7 @@ public function removeAssociationTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1476,7 +1476,7 @@ public function removeAssociationTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->removeAssociation($firewallPolicy, $project, $region); + $response = $gapicClient->removeAssociation($firewallPolicy, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1523,7 +1523,7 @@ public function removeAssociationExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1548,7 +1548,7 @@ public function removeAssociationExceptionTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->removeAssociation($firewallPolicy, $project, $region); + $response = $gapicClient->removeAssociation($firewallPolicy, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1580,7 +1580,7 @@ public function removeRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1599,7 +1599,7 @@ public function removeRuleTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->removeRule($firewallPolicy, $project, $region); + $response = $gapicClient->removeRule($firewallPolicy, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1646,7 +1646,7 @@ public function removeRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1671,7 +1671,7 @@ public function removeRuleExceptionTest() $firewallPolicy = 'firewallPolicy1035044177'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->removeRule($firewallPolicy, $project, $region); + $response = $gapicClient->removeRule($firewallPolicy, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1697,7 +1697,7 @@ public function removeRuleExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1715,7 +1715,7 @@ public function setIamPolicyTest() $region = 'region-934795532'; $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; - $response = $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + $response = $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1739,7 +1739,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1759,8 +1759,8 @@ public function setIamPolicyExceptionTest() $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; try { - $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1777,7 +1777,7 @@ public function setIamPolicyExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1789,7 +1789,7 @@ public function testIamPermissionsTest() $region = 'region-934795532'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1813,7 +1813,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1833,8 +1833,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/RegionNotificationEndpointsClientTest.php b/Compute/tests/Unit/V1/RegionNotificationEndpointsClientTest.php index 3165c12d6437..e8e51550ced6 100644 --- a/Compute/tests/Unit/V1/RegionNotificationEndpointsClientTest.php +++ b/Compute/tests/Unit/V1/RegionNotificationEndpointsClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -102,7 +102,7 @@ public function deleteTest() $notificationEndpoint = 'notificationEndpoint-696934807'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($notificationEndpoint, $project, $region); + $response = $gapicClient->delete($notificationEndpoint, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -149,7 +149,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -174,7 +174,7 @@ public function deleteExceptionTest() $notificationEndpoint = 'notificationEndpoint-696934807'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($notificationEndpoint, $project, $region); + $response = $gapicClient->delete($notificationEndpoint, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -200,7 +200,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -225,7 +225,7 @@ public function getTest() $notificationEndpoint = 'notificationEndpoint-696934807'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($notificationEndpoint, $project, $region); + $response = $gapicClient->get($notificationEndpoint, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -247,7 +247,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -266,8 +266,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($notificationEndpoint, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($notificationEndpoint, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -290,7 +290,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -309,7 +309,7 @@ public function insertTest() $notificationEndpointResource = new NotificationEndpoint(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($notificationEndpointResource, $project, $region); + $response = $gapicClient->insert($notificationEndpointResource, $project, $region); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -356,7 +356,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -381,7 +381,7 @@ public function insertExceptionTest() $notificationEndpointResource = new NotificationEndpoint(); $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->insert($notificationEndpointResource, $project, $region); + $response = $gapicClient->insert($notificationEndpointResource, $project, $region); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -407,7 +407,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -430,7 +430,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -453,7 +453,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -471,8 +471,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/RegionOperationsClientTest.php b/Compute/tests/Unit/V1/RegionOperationsClientTest.php index e15c27abb705..2b8733d51965 100644 --- a/Compute/tests/Unit/V1/RegionOperationsClientTest.php +++ b/Compute/tests/Unit/V1/RegionOperationsClientTest.php @@ -74,7 +74,7 @@ private function createClient(array $options = []) public function deleteTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -85,7 +85,7 @@ public function deleteTest() $operation = 'operation1662702951'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->delete($operation, $project, $region); + $response = $gapicClient->delete($operation, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -107,7 +107,7 @@ public function deleteTest() public function deleteExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -126,8 +126,8 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->delete($operation, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->delete($operation, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -144,7 +144,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -197,7 +197,7 @@ public function getTest() $operation = 'operation1662702951'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($operation, $project, $region); + $response = $gapicClient->get($operation, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -219,7 +219,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -238,8 +238,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($operation, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($operation, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -256,7 +256,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -279,7 +279,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -302,7 +302,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -320,8 +320,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -338,7 +338,7 @@ public function listExceptionTest() public function waitTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -391,7 +391,7 @@ public function waitTest() $operation = 'operation1662702951'; $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->wait($operation, $project, $region); + $response = $gapicClient->wait($operation, $project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -413,7 +413,7 @@ public function waitTest() public function waitExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -432,8 +432,8 @@ public function waitExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->wait($operation, $project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->wait($operation, $project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/RegionSecurityPoliciesClientTest.php b/Compute/tests/Unit/V1/RegionSecurityPoliciesClientTest.php index 578d55fe8411..fdfc5c57ec93 100644 --- a/Compute/tests/Unit/V1/RegionSecurityPoliciesClientTest.php +++ b/Compute/tests/Unit/V1/RegionSecurityPoliciesClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -102,7 +102,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $securityPolicy = 'securityPolicy1781695249'; - $response = $client->delete($project, $region, $securityPolicy); + $response = $gapicClient->delete($project, $region, $securityPolicy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -149,7 +149,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -174,7 +174,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $securityPolicy = 'securityPolicy1781695249'; - $response = $client->delete($project, $region, $securityPolicy); + $response = $gapicClient->delete($project, $region, $securityPolicy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -200,7 +200,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -229,7 +229,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $securityPolicy = 'securityPolicy1781695249'; - $response = $client->get($project, $region, $securityPolicy); + $response = $gapicClient->get($project, $region, $securityPolicy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -251,7 +251,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -270,8 +270,8 @@ public function getExceptionTest() $region = 'region-934795532'; $securityPolicy = 'securityPolicy1781695249'; try { - $client->get($project, $region, $securityPolicy); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $securityPolicy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -294,7 +294,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -313,7 +313,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $securityPolicyResource = new SecurityPolicy(); - $response = $client->insert($project, $region, $securityPolicyResource); + $response = $gapicClient->insert($project, $region, $securityPolicyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -360,7 +360,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -385,7 +385,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $securityPolicyResource = new SecurityPolicy(); - $response = $client->insert($project, $region, $securityPolicyResource); + $response = $gapicClient->insert($project, $region, $securityPolicyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -411,7 +411,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -432,7 +432,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -455,7 +455,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -473,8 +473,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -497,7 +497,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -517,7 +517,7 @@ public function patchTest() $region = 'region-934795532'; $securityPolicy = 'securityPolicy1781695249'; $securityPolicyResource = new SecurityPolicy(); - $response = $client->patch($project, $region, $securityPolicy, $securityPolicyResource); + $response = $gapicClient->patch($project, $region, $securityPolicy, $securityPolicyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -566,7 +566,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -592,7 +592,7 @@ public function patchExceptionTest() $region = 'region-934795532'; $securityPolicy = 'securityPolicy1781695249'; $securityPolicyResource = new SecurityPolicy(); - $response = $client->patch($project, $region, $securityPolicy, $securityPolicyResource); + $response = $gapicClient->patch($project, $region, $securityPolicy, $securityPolicyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionSslCertificatesClientTest.php b/Compute/tests/Unit/V1/RegionSslCertificatesClientTest.php index 52dd02c5c40e..c3a8577b956a 100644 --- a/Compute/tests/Unit/V1/RegionSslCertificatesClientTest.php +++ b/Compute/tests/Unit/V1/RegionSslCertificatesClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -102,7 +102,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $sslCertificate = 'sslCertificate-1027298332'; - $response = $client->delete($project, $region, $sslCertificate); + $response = $gapicClient->delete($project, $region, $sslCertificate); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -149,7 +149,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -174,7 +174,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $sslCertificate = 'sslCertificate-1027298332'; - $response = $client->delete($project, $region, $sslCertificate); + $response = $gapicClient->delete($project, $region, $sslCertificate); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -200,7 +200,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -233,7 +233,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $sslCertificate = 'sslCertificate-1027298332'; - $response = $client->get($project, $region, $sslCertificate); + $response = $gapicClient->get($project, $region, $sslCertificate); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -255,7 +255,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -274,8 +274,8 @@ public function getExceptionTest() $region = 'region-934795532'; $sslCertificate = 'sslCertificate-1027298332'; try { - $client->get($project, $region, $sslCertificate); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $sslCertificate); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -298,7 +298,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -317,7 +317,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $sslCertificateResource = new SslCertificate(); - $response = $client->insert($project, $region, $sslCertificateResource); + $response = $gapicClient->insert($project, $region, $sslCertificateResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -364,7 +364,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -389,7 +389,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $sslCertificateResource = new SslCertificate(); - $response = $client->insert($project, $region, $sslCertificateResource); + $response = $gapicClient->insert($project, $region, $sslCertificateResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -415,7 +415,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -438,7 +438,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -461,7 +461,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -479,8 +479,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/RegionTargetHttpProxiesClientTest.php b/Compute/tests/Unit/V1/RegionTargetHttpProxiesClientTest.php index 41c88af2dbcc..78d8f20a442a 100644 --- a/Compute/tests/Unit/V1/RegionTargetHttpProxiesClientTest.php +++ b/Compute/tests/Unit/V1/RegionTargetHttpProxiesClientTest.php @@ -84,7 +84,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -103,7 +103,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetHttpProxy = 'targetHttpProxy206872421'; - $response = $client->delete($project, $region, $targetHttpProxy); + $response = $gapicClient->delete($project, $region, $targetHttpProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -150,7 +150,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -175,7 +175,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetHttpProxy = 'targetHttpProxy206872421'; - $response = $client->delete($project, $region, $targetHttpProxy); + $response = $gapicClient->delete($project, $region, $targetHttpProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -201,7 +201,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -232,7 +232,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetHttpProxy = 'targetHttpProxy206872421'; - $response = $client->get($project, $region, $targetHttpProxy); + $response = $gapicClient->get($project, $region, $targetHttpProxy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -254,7 +254,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -273,8 +273,8 @@ public function getExceptionTest() $region = 'region-934795532'; $targetHttpProxy = 'targetHttpProxy206872421'; try { - $client->get($project, $region, $targetHttpProxy); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $targetHttpProxy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -297,7 +297,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -316,7 +316,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetHttpProxyResource = new TargetHttpProxy(); - $response = $client->insert($project, $region, $targetHttpProxyResource); + $response = $gapicClient->insert($project, $region, $targetHttpProxyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -363,7 +363,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -388,7 +388,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetHttpProxyResource = new TargetHttpProxy(); - $response = $client->insert($project, $region, $targetHttpProxyResource); + $response = $gapicClient->insert($project, $region, $targetHttpProxyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -414,7 +414,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -437,7 +437,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -460,7 +460,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -478,8 +478,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -502,7 +502,7 @@ public function setUrlMapTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -522,7 +522,7 @@ public function setUrlMapTest() $region = 'region-934795532'; $targetHttpProxy = 'targetHttpProxy206872421'; $urlMapReferenceResource = new UrlMapReference(); - $response = $client->setUrlMap($project, $region, $targetHttpProxy, $urlMapReferenceResource); + $response = $gapicClient->setUrlMap($project, $region, $targetHttpProxy, $urlMapReferenceResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -571,7 +571,7 @@ public function setUrlMapExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -597,7 +597,7 @@ public function setUrlMapExceptionTest() $region = 'region-934795532'; $targetHttpProxy = 'targetHttpProxy206872421'; $urlMapReferenceResource = new UrlMapReference(); - $response = $client->setUrlMap($project, $region, $targetHttpProxy, $urlMapReferenceResource); + $response = $gapicClient->setUrlMap($project, $region, $targetHttpProxy, $urlMapReferenceResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionTargetHttpsProxiesClientTest.php b/Compute/tests/Unit/V1/RegionTargetHttpsProxiesClientTest.php index 714980ca511f..d1ffb1bcd2ed 100644 --- a/Compute/tests/Unit/V1/RegionTargetHttpsProxiesClientTest.php +++ b/Compute/tests/Unit/V1/RegionTargetHttpsProxiesClientTest.php @@ -85,7 +85,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -104,7 +104,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->delete($project, $region, $targetHttpsProxy); + $response = $gapicClient->delete($project, $region, $targetHttpsProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -151,7 +151,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -176,7 +176,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->delete($project, $region, $targetHttpsProxy); + $response = $gapicClient->delete($project, $region, $targetHttpsProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -202,7 +202,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -243,7 +243,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->get($project, $region, $targetHttpsProxy); + $response = $gapicClient->get($project, $region, $targetHttpsProxy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -265,7 +265,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -284,8 +284,8 @@ public function getExceptionTest() $region = 'region-934795532'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; try { - $client->get($project, $region, $targetHttpsProxy); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $targetHttpsProxy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -308,7 +308,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -327,7 +327,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetHttpsProxyResource = new TargetHttpsProxy(); - $response = $client->insert($project, $region, $targetHttpsProxyResource); + $response = $gapicClient->insert($project, $region, $targetHttpsProxyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -374,7 +374,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -399,7 +399,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetHttpsProxyResource = new TargetHttpsProxy(); - $response = $client->insert($project, $region, $targetHttpsProxyResource); + $response = $gapicClient->insert($project, $region, $targetHttpsProxyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -425,7 +425,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -448,7 +448,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -471,7 +471,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -489,8 +489,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -513,7 +513,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -533,7 +533,7 @@ public function patchTest() $region = 'region-934795532'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; $targetHttpsProxyResource = new TargetHttpsProxy(); - $response = $client->patch($project, $region, $targetHttpsProxy, $targetHttpsProxyResource); + $response = $gapicClient->patch($project, $region, $targetHttpsProxy, $targetHttpsProxyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -582,7 +582,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -608,7 +608,7 @@ public function patchExceptionTest() $region = 'region-934795532'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; $targetHttpsProxyResource = new TargetHttpsProxy(); - $response = $client->patch($project, $region, $targetHttpsProxy, $targetHttpsProxyResource); + $response = $gapicClient->patch($project, $region, $targetHttpsProxy, $targetHttpsProxyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -640,7 +640,7 @@ public function setSslCertificatesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -660,7 +660,7 @@ public function setSslCertificatesTest() $region = 'region-934795532'; $regionTargetHttpsProxiesSetSslCertificatesRequestResource = new RegionTargetHttpsProxiesSetSslCertificatesRequest(); $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->setSslCertificates($project, $region, $regionTargetHttpsProxiesSetSslCertificatesRequestResource, $targetHttpsProxy); + $response = $gapicClient->setSslCertificates($project, $region, $regionTargetHttpsProxiesSetSslCertificatesRequestResource, $targetHttpsProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -709,7 +709,7 @@ public function setSslCertificatesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -735,7 +735,7 @@ public function setSslCertificatesExceptionTest() $region = 'region-934795532'; $regionTargetHttpsProxiesSetSslCertificatesRequestResource = new RegionTargetHttpsProxiesSetSslCertificatesRequest(); $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->setSslCertificates($project, $region, $regionTargetHttpsProxiesSetSslCertificatesRequestResource, $targetHttpsProxy); + $response = $gapicClient->setSslCertificates($project, $region, $regionTargetHttpsProxiesSetSslCertificatesRequestResource, $targetHttpsProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -767,7 +767,7 @@ public function setUrlMapTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -787,7 +787,7 @@ public function setUrlMapTest() $region = 'region-934795532'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; $urlMapReferenceResource = new UrlMapReference(); - $response = $client->setUrlMap($project, $region, $targetHttpsProxy, $urlMapReferenceResource); + $response = $gapicClient->setUrlMap($project, $region, $targetHttpsProxy, $urlMapReferenceResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -836,7 +836,7 @@ public function setUrlMapExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -862,7 +862,7 @@ public function setUrlMapExceptionTest() $region = 'region-934795532'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; $urlMapReferenceResource = new UrlMapReference(); - $response = $client->setUrlMap($project, $region, $targetHttpsProxy, $urlMapReferenceResource); + $response = $gapicClient->setUrlMap($project, $region, $targetHttpsProxy, $urlMapReferenceResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RegionUrlMapsClientTest.php b/Compute/tests/Unit/V1/RegionUrlMapsClientTest.php index 7367e7dafde8..4a343b908962 100644 --- a/Compute/tests/Unit/V1/RegionUrlMapsClientTest.php +++ b/Compute/tests/Unit/V1/RegionUrlMapsClientTest.php @@ -85,7 +85,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -104,7 +104,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $urlMap = 'urlMap-169850228'; - $response = $client->delete($project, $region, $urlMap); + $response = $gapicClient->delete($project, $region, $urlMap); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -151,7 +151,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -176,7 +176,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $urlMap = 'urlMap-169850228'; - $response = $client->delete($project, $region, $urlMap); + $response = $gapicClient->delete($project, $region, $urlMap); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -202,7 +202,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -231,7 +231,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $urlMap = 'urlMap-169850228'; - $response = $client->get($project, $region, $urlMap); + $response = $gapicClient->get($project, $region, $urlMap); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -253,7 +253,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -272,8 +272,8 @@ public function getExceptionTest() $region = 'region-934795532'; $urlMap = 'urlMap-169850228'; try { - $client->get($project, $region, $urlMap); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $urlMap); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -296,7 +296,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -315,7 +315,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $urlMapResource = new UrlMap(); - $response = $client->insert($project, $region, $urlMapResource); + $response = $gapicClient->insert($project, $region, $urlMapResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -362,7 +362,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -387,7 +387,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $urlMapResource = new UrlMap(); - $response = $client->insert($project, $region, $urlMapResource); + $response = $gapicClient->insert($project, $region, $urlMapResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -413,7 +413,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -436,7 +436,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -459,7 +459,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -477,8 +477,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -501,7 +501,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -521,7 +521,7 @@ public function patchTest() $region = 'region-934795532'; $urlMap = 'urlMap-169850228'; $urlMapResource = new UrlMap(); - $response = $client->patch($project, $region, $urlMap, $urlMapResource); + $response = $gapicClient->patch($project, $region, $urlMap, $urlMapResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -570,7 +570,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -596,7 +596,7 @@ public function patchExceptionTest() $region = 'region-934795532'; $urlMap = 'urlMap-169850228'; $urlMapResource = new UrlMap(); - $response = $client->patch($project, $region, $urlMap, $urlMapResource); + $response = $gapicClient->patch($project, $region, $urlMap, $urlMapResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -628,7 +628,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -648,7 +648,7 @@ public function updateTest() $region = 'region-934795532'; $urlMap = 'urlMap-169850228'; $urlMapResource = new UrlMap(); - $response = $client->update($project, $region, $urlMap, $urlMapResource); + $response = $gapicClient->update($project, $region, $urlMap, $urlMapResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -697,7 +697,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -723,7 +723,7 @@ public function updateExceptionTest() $region = 'region-934795532'; $urlMap = 'urlMap-169850228'; $urlMapResource = new UrlMap(); - $response = $client->update($project, $region, $urlMap, $urlMapResource); + $response = $gapicClient->update($project, $region, $urlMap, $urlMapResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -749,7 +749,7 @@ public function updateExceptionTest() public function validateTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -761,7 +761,7 @@ public function validateTest() $region = 'region-934795532'; $regionUrlMapsValidateRequestResource = new RegionUrlMapsValidateRequest(); $urlMap = 'urlMap-169850228'; - $response = $client->validate($project, $region, $regionUrlMapsValidateRequestResource, $urlMap); + $response = $gapicClient->validate($project, $region, $regionUrlMapsValidateRequestResource, $urlMap); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -785,7 +785,7 @@ public function validateTest() public function validateExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -805,8 +805,8 @@ public function validateExceptionTest() $regionUrlMapsValidateRequestResource = new RegionUrlMapsValidateRequest(); $urlMap = 'urlMap-169850228'; try { - $client->validate($project, $region, $regionUrlMapsValidateRequestResource, $urlMap); - // If the $client method call did not throw, fail the test + $gapicClient->validate($project, $region, $regionUrlMapsValidateRequestResource, $urlMap); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/RegionsClientTest.php b/Compute/tests/Unit/V1/RegionsClientTest.php index e35a92b2bbfe..e7e1a4067da1 100644 --- a/Compute/tests/Unit/V1/RegionsClientTest.php +++ b/Compute/tests/Unit/V1/RegionsClientTest.php @@ -73,7 +73,7 @@ private function createClient(array $options = []) public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -99,7 +99,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->get($project, $region); + $response = $gapicClient->get($project, $region); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -119,7 +119,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -137,8 +137,8 @@ public function getExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->get($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -155,7 +155,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -177,7 +177,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -198,7 +198,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -215,8 +215,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/ReservationsClientTest.php b/Compute/tests/Unit/V1/ReservationsClientTest.php index b36a5a077f56..370964fe95b3 100644 --- a/Compute/tests/Unit/V1/ReservationsClientTest.php +++ b/Compute/tests/Unit/V1/ReservationsClientTest.php @@ -84,7 +84,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -105,7 +105,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -128,7 +128,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -145,8 +145,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -169,7 +169,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -188,7 +188,7 @@ public function deleteTest() $project = 'project-309310695'; $reservation = 'reservation-1563081780'; $zone = 'zone3744684'; - $response = $client->delete($project, $reservation, $zone); + $response = $gapicClient->delete($project, $reservation, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -235,7 +235,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -260,7 +260,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $reservation = 'reservation-1563081780'; $zone = 'zone3744684'; - $response = $client->delete($project, $reservation, $zone); + $response = $gapicClient->delete($project, $reservation, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -286,7 +286,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -319,7 +319,7 @@ public function getTest() $project = 'project-309310695'; $reservation = 'reservation-1563081780'; $zone = 'zone3744684'; - $response = $client->get($project, $reservation, $zone); + $response = $gapicClient->get($project, $reservation, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -341,7 +341,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -360,8 +360,8 @@ public function getExceptionTest() $reservation = 'reservation-1563081780'; $zone = 'zone3744684'; try { - $client->get($project, $reservation, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $reservation, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -378,7 +378,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -395,7 +395,7 @@ public function getIamPolicyTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $zone = 'zone3744684'; - $response = $client->getIamPolicy($project, $resource, $zone); + $response = $gapicClient->getIamPolicy($project, $resource, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -417,7 +417,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -436,8 +436,8 @@ public function getIamPolicyExceptionTest() $resource = 'resource-341064690'; $zone = 'zone3744684'; try { - $client->getIamPolicy($project, $resource, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $resource, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -460,7 +460,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -479,7 +479,7 @@ public function insertTest() $project = 'project-309310695'; $reservationResource = new Reservation(); $zone = 'zone3744684'; - $response = $client->insert($project, $reservationResource, $zone); + $response = $gapicClient->insert($project, $reservationResource, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -526,7 +526,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -551,7 +551,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $reservationResource = new Reservation(); $zone = 'zone3744684'; - $response = $client->insert($project, $reservationResource, $zone); + $response = $gapicClient->insert($project, $reservationResource, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -577,7 +577,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -600,7 +600,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -623,7 +623,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -641,8 +641,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -665,7 +665,7 @@ public function resizeTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -685,7 +685,7 @@ public function resizeTest() $reservation = 'reservation-1563081780'; $reservationsResizeRequestResource = new ReservationsResizeRequest(); $zone = 'zone3744684'; - $response = $client->resize($project, $reservation, $reservationsResizeRequestResource, $zone); + $response = $gapicClient->resize($project, $reservation, $reservationsResizeRequestResource, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -734,7 +734,7 @@ public function resizeExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -760,7 +760,7 @@ public function resizeExceptionTest() $reservation = 'reservation-1563081780'; $reservationsResizeRequestResource = new ReservationsResizeRequest(); $zone = 'zone3744684'; - $response = $client->resize($project, $reservation, $reservationsResizeRequestResource, $zone); + $response = $gapicClient->resize($project, $reservation, $reservationsResizeRequestResource, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -786,7 +786,7 @@ public function resizeExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -804,7 +804,7 @@ public function setIamPolicyTest() $resource = 'resource-341064690'; $zone = 'zone3744684'; $zoneSetPolicyRequestResource = new ZoneSetPolicyRequest(); - $response = $client->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); + $response = $gapicClient->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -828,7 +828,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -848,8 +848,8 @@ public function setIamPolicyExceptionTest() $zone = 'zone3744684'; $zoneSetPolicyRequestResource = new ZoneSetPolicyRequest(); try { - $client->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($project, $resource, $zone, $zoneSetPolicyRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -866,7 +866,7 @@ public function setIamPolicyExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -878,7 +878,7 @@ public function testIamPermissionsTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); $zone = 'zone3744684'; - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -902,7 +902,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -922,8 +922,8 @@ public function testIamPermissionsExceptionTest() $testPermissionsRequestResource = new TestPermissionsRequest(); $zone = 'zone3744684'; try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -946,7 +946,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -966,7 +966,7 @@ public function updateTest() $reservation = 'reservation-1563081780'; $reservationResource = new Reservation(); $zone = 'zone3744684'; - $response = $client->update($project, $reservation, $reservationResource, $zone); + $response = $gapicClient->update($project, $reservation, $reservationResource, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1015,7 +1015,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1041,7 +1041,7 @@ public function updateExceptionTest() $reservation = 'reservation-1563081780'; $reservationResource = new Reservation(); $zone = 'zone3744684'; - $response = $client->update($project, $reservation, $reservationResource, $zone); + $response = $gapicClient->update($project, $reservation, $reservationResource, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/ResourcePoliciesClientTest.php b/Compute/tests/Unit/V1/ResourcePoliciesClientTest.php index 511bfdc838d6..d7f0968cbadd 100644 --- a/Compute/tests/Unit/V1/ResourcePoliciesClientTest.php +++ b/Compute/tests/Unit/V1/ResourcePoliciesClientTest.php @@ -83,7 +83,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -106,7 +106,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -129,7 +129,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -146,8 +146,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -170,7 +170,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -189,7 +189,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $resourcePolicy = 'resourcePolicy696111747'; - $response = $client->delete($project, $region, $resourcePolicy); + $response = $gapicClient->delete($project, $region, $resourcePolicy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -236,7 +236,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -261,7 +261,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $resourcePolicy = 'resourcePolicy696111747'; - $response = $client->delete($project, $region, $resourcePolicy); + $response = $gapicClient->delete($project, $region, $resourcePolicy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -287,7 +287,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -314,7 +314,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $resourcePolicy = 'resourcePolicy696111747'; - $response = $client->get($project, $region, $resourcePolicy); + $response = $gapicClient->get($project, $region, $resourcePolicy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -336,7 +336,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -355,8 +355,8 @@ public function getExceptionTest() $region = 'region-934795532'; $resourcePolicy = 'resourcePolicy696111747'; try { - $client->get($project, $region, $resourcePolicy); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $resourcePolicy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -373,7 +373,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -390,7 +390,7 @@ public function getIamPolicyTest() $project = 'project-309310695'; $region = 'region-934795532'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $region, $resource); + $response = $gapicClient->getIamPolicy($project, $region, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -412,7 +412,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -431,8 +431,8 @@ public function getIamPolicyExceptionTest() $region = 'region-934795532'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $region, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $region, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -455,7 +455,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -474,7 +474,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $resourcePolicyResource = new ResourcePolicy(); - $response = $client->insert($project, $region, $resourcePolicyResource); + $response = $gapicClient->insert($project, $region, $resourcePolicyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -521,7 +521,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -546,7 +546,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $resourcePolicyResource = new ResourcePolicy(); - $response = $client->insert($project, $region, $resourcePolicyResource); + $response = $gapicClient->insert($project, $region, $resourcePolicyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -572,7 +572,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -597,7 +597,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -620,7 +620,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -638,8 +638,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -656,7 +656,7 @@ public function listExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -674,7 +674,7 @@ public function setIamPolicyTest() $region = 'region-934795532'; $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; - $response = $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + $response = $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -698,7 +698,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -718,8 +718,8 @@ public function setIamPolicyExceptionTest() $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; try { - $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -736,7 +736,7 @@ public function setIamPolicyExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -748,7 +748,7 @@ public function testIamPermissionsTest() $region = 'region-934795532'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -772,7 +772,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -792,8 +792,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/RoutersClientTest.php b/Compute/tests/Unit/V1/RoutersClientTest.php index c9d0a346580f..089a271c8460 100644 --- a/Compute/tests/Unit/V1/RoutersClientTest.php +++ b/Compute/tests/Unit/V1/RoutersClientTest.php @@ -83,7 +83,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -104,7 +104,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -127,7 +127,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -144,8 +144,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -168,7 +168,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -187,7 +187,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $router = 'router-925132983'; - $response = $client->delete($project, $region, $router); + $response = $gapicClient->delete($project, $region, $router); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -234,7 +234,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -259,7 +259,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $router = 'router-925132983'; - $response = $client->delete($project, $region, $router); + $response = $gapicClient->delete($project, $region, $router); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -285,7 +285,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -314,7 +314,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $router = 'router-925132983'; - $response = $client->get($project, $region, $router); + $response = $gapicClient->get($project, $region, $router); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -336,7 +336,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -355,8 +355,8 @@ public function getExceptionTest() $region = 'region-934795532'; $router = 'router-925132983'; try { - $client->get($project, $region, $router); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $router); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -373,7 +373,7 @@ public function getExceptionTest() public function getNatMappingInfoTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -397,7 +397,7 @@ public function getNatMappingInfoTest() $project = 'project-309310695'; $region = 'region-934795532'; $router = 'router-925132983'; - $response = $client->getNatMappingInfo($project, $region, $router); + $response = $gapicClient->getNatMappingInfo($project, $region, $router); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -422,7 +422,7 @@ public function getNatMappingInfoTest() public function getNatMappingInfoExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -441,8 +441,8 @@ public function getNatMappingInfoExceptionTest() $region = 'region-934795532'; $router = 'router-925132983'; try { - $client->getNatMappingInfo($project, $region, $router); - // If the $client method call did not throw, fail the test + $gapicClient->getNatMappingInfo($project, $region, $router); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -459,7 +459,7 @@ public function getNatMappingInfoExceptionTest() public function getRouterStatusTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -472,7 +472,7 @@ public function getRouterStatusTest() $project = 'project-309310695'; $region = 'region-934795532'; $router = 'router-925132983'; - $response = $client->getRouterStatus($project, $region, $router); + $response = $gapicClient->getRouterStatus($project, $region, $router); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -494,7 +494,7 @@ public function getRouterStatusTest() public function getRouterStatusExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -513,8 +513,8 @@ public function getRouterStatusExceptionTest() $region = 'region-934795532'; $router = 'router-925132983'; try { - $client->getRouterStatus($project, $region, $router); - // If the $client method call did not throw, fail the test + $gapicClient->getRouterStatus($project, $region, $router); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -537,7 +537,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -556,7 +556,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $routerResource = new Router(); - $response = $client->insert($project, $region, $routerResource); + $response = $gapicClient->insert($project, $region, $routerResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -603,7 +603,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -628,7 +628,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $routerResource = new Router(); - $response = $client->insert($project, $region, $routerResource); + $response = $gapicClient->insert($project, $region, $routerResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -654,7 +654,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -677,7 +677,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -700,7 +700,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -718,8 +718,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -742,7 +742,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -762,7 +762,7 @@ public function patchTest() $region = 'region-934795532'; $router = 'router-925132983'; $routerResource = new Router(); - $response = $client->patch($project, $region, $router, $routerResource); + $response = $gapicClient->patch($project, $region, $router, $routerResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -811,7 +811,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -837,7 +837,7 @@ public function patchExceptionTest() $region = 'region-934795532'; $router = 'router-925132983'; $routerResource = new Router(); - $response = $client->patch($project, $region, $router, $routerResource); + $response = $gapicClient->patch($project, $region, $router, $routerResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -863,7 +863,7 @@ public function patchExceptionTest() public function previewTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -875,7 +875,7 @@ public function previewTest() $region = 'region-934795532'; $router = 'router-925132983'; $routerResource = new Router(); - $response = $client->preview($project, $region, $router, $routerResource); + $response = $gapicClient->preview($project, $region, $router, $routerResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -899,7 +899,7 @@ public function previewTest() public function previewExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -919,8 +919,8 @@ public function previewExceptionTest() $router = 'router-925132983'; $routerResource = new Router(); try { - $client->preview($project, $region, $router, $routerResource); - // If the $client method call did not throw, fail the test + $gapicClient->preview($project, $region, $router, $routerResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -943,7 +943,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -963,7 +963,7 @@ public function updateTest() $region = 'region-934795532'; $router = 'router-925132983'; $routerResource = new Router(); - $response = $client->update($project, $region, $router, $routerResource); + $response = $gapicClient->update($project, $region, $router, $routerResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1012,7 +1012,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1038,7 +1038,7 @@ public function updateExceptionTest() $region = 'region-934795532'; $router = 'router-925132983'; $routerResource = new Router(); - $response = $client->update($project, $region, $router, $routerResource); + $response = $gapicClient->update($project, $region, $router, $routerResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/RoutesClientTest.php b/Compute/tests/Unit/V1/RoutesClientTest.php index c1bca61ab7f3..dbfd0350913f 100644 --- a/Compute/tests/Unit/V1/RoutesClientTest.php +++ b/Compute/tests/Unit/V1/RoutesClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -101,7 +101,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $route = 'route108704329'; - $response = $client->delete($project, $route); + $response = $gapicClient->delete($project, $route); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -145,7 +145,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -169,7 +169,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $route = 'route108704329'; - $response = $client->delete($project, $route); + $response = $gapicClient->delete($project, $route); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -195,7 +195,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -241,7 +241,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $route = 'route108704329'; - $response = $client->get($project, $route); + $response = $gapicClient->get($project, $route); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -261,7 +261,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -279,8 +279,8 @@ public function getExceptionTest() $project = 'project-309310695'; $route = 'route108704329'; try { - $client->get($project, $route); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $route); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -303,7 +303,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -321,7 +321,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $routeResource = new Route(); - $response = $client->insert($project, $routeResource); + $response = $gapicClient->insert($project, $routeResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -365,7 +365,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -389,7 +389,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $routeResource = new Route(); - $response = $client->insert($project, $routeResource); + $response = $gapicClient->insert($project, $routeResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -415,7 +415,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -437,7 +437,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -458,7 +458,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -475,8 +475,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/SecurityPoliciesClientTest.php b/Compute/tests/Unit/V1/SecurityPoliciesClientTest.php index cf76bb2f61aa..61a7a6ae5c76 100644 --- a/Compute/tests/Unit/V1/SecurityPoliciesClientTest.php +++ b/Compute/tests/Unit/V1/SecurityPoliciesClientTest.php @@ -87,7 +87,7 @@ public function addRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -106,7 +106,7 @@ public function addRuleTest() $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; $securityPolicyRuleResource = new SecurityPolicyRule(); - $response = $client->addRule($project, $securityPolicy, $securityPolicyRuleResource); + $response = $gapicClient->addRule($project, $securityPolicy, $securityPolicyRuleResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -152,7 +152,7 @@ public function addRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -177,7 +177,7 @@ public function addRuleExceptionTest() $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; $securityPolicyRuleResource = new SecurityPolicyRule(); - $response = $client->addRule($project, $securityPolicy, $securityPolicyRuleResource); + $response = $gapicClient->addRule($project, $securityPolicy, $securityPolicyRuleResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -203,7 +203,7 @@ public function addRuleExceptionTest() public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -226,7 +226,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -249,7 +249,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -266,8 +266,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -290,7 +290,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -308,7 +308,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; - $response = $client->delete($project, $securityPolicy); + $response = $gapicClient->delete($project, $securityPolicy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -352,7 +352,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -376,7 +376,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; - $response = $client->delete($project, $securityPolicy); + $response = $gapicClient->delete($project, $securityPolicy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -402,7 +402,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -430,7 +430,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; - $response = $client->get($project, $securityPolicy); + $response = $gapicClient->get($project, $securityPolicy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -450,7 +450,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -468,8 +468,8 @@ public function getExceptionTest() $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; try { - $client->get($project, $securityPolicy); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $securityPolicy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -486,7 +486,7 @@ public function getExceptionTest() public function getRuleTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -506,7 +506,7 @@ public function getRuleTest() // Mock request $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; - $response = $client->getRule($project, $securityPolicy); + $response = $gapicClient->getRule($project, $securityPolicy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -526,7 +526,7 @@ public function getRuleTest() public function getRuleExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -544,8 +544,8 @@ public function getRuleExceptionTest() $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; try { - $client->getRule($project, $securityPolicy); - // If the $client method call did not throw, fail the test + $gapicClient->getRule($project, $securityPolicy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -568,7 +568,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -586,7 +586,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $securityPolicyResource = new SecurityPolicy(); - $response = $client->insert($project, $securityPolicyResource); + $response = $gapicClient->insert($project, $securityPolicyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -630,7 +630,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -654,7 +654,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $securityPolicyResource = new SecurityPolicy(); - $response = $client->insert($project, $securityPolicyResource); + $response = $gapicClient->insert($project, $securityPolicyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -680,7 +680,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -700,7 +700,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -721,7 +721,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -738,8 +738,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -756,7 +756,7 @@ public function listExceptionTest() public function listPreconfiguredExpressionSetsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -765,7 +765,7 @@ public function listPreconfiguredExpressionSetsTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->listPreconfiguredExpressionSets($project); + $response = $gapicClient->listPreconfiguredExpressionSets($project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -783,7 +783,7 @@ public function listPreconfiguredExpressionSetsTest() public function listPreconfiguredExpressionSetsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -800,8 +800,8 @@ public function listPreconfiguredExpressionSetsExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->listPreconfiguredExpressionSets($project); - // If the $client method call did not throw, fail the test + $gapicClient->listPreconfiguredExpressionSets($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -824,7 +824,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -843,7 +843,7 @@ public function patchTest() $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; $securityPolicyResource = new SecurityPolicy(); - $response = $client->patch($project, $securityPolicy, $securityPolicyResource); + $response = $gapicClient->patch($project, $securityPolicy, $securityPolicyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -889,7 +889,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -914,7 +914,7 @@ public function patchExceptionTest() $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; $securityPolicyResource = new SecurityPolicy(); - $response = $client->patch($project, $securityPolicy, $securityPolicyResource); + $response = $gapicClient->patch($project, $securityPolicy, $securityPolicyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -946,7 +946,7 @@ public function patchRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -965,7 +965,7 @@ public function patchRuleTest() $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; $securityPolicyRuleResource = new SecurityPolicyRule(); - $response = $client->patchRule($project, $securityPolicy, $securityPolicyRuleResource); + $response = $gapicClient->patchRule($project, $securityPolicy, $securityPolicyRuleResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1011,7 +1011,7 @@ public function patchRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1036,7 +1036,7 @@ public function patchRuleExceptionTest() $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; $securityPolicyRuleResource = new SecurityPolicyRule(); - $response = $client->patchRule($project, $securityPolicy, $securityPolicyRuleResource); + $response = $gapicClient->patchRule($project, $securityPolicy, $securityPolicyRuleResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1068,7 +1068,7 @@ public function removeRuleTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1086,7 +1086,7 @@ public function removeRuleTest() // Mock request $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; - $response = $client->removeRule($project, $securityPolicy); + $response = $gapicClient->removeRule($project, $securityPolicy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1130,7 +1130,7 @@ public function removeRuleExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1154,7 +1154,7 @@ public function removeRuleExceptionTest() // Mock request $project = 'project-309310695'; $securityPolicy = 'securityPolicy1781695249'; - $response = $client->removeRule($project, $securityPolicy); + $response = $gapicClient->removeRule($project, $securityPolicy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/ServiceAttachmentsClientTest.php b/Compute/tests/Unit/V1/ServiceAttachmentsClientTest.php index 3edb22a01b01..9187e5561f79 100644 --- a/Compute/tests/Unit/V1/ServiceAttachmentsClientTest.php +++ b/Compute/tests/Unit/V1/ServiceAttachmentsClientTest.php @@ -83,7 +83,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -104,7 +104,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -127,7 +127,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -144,8 +144,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -168,7 +168,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -187,7 +187,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $serviceAttachment = 'serviceAttachment-1271655187'; - $response = $client->delete($project, $region, $serviceAttachment); + $response = $gapicClient->delete($project, $region, $serviceAttachment); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -234,7 +234,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -259,7 +259,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $serviceAttachment = 'serviceAttachment-1271655187'; - $response = $client->delete($project, $region, $serviceAttachment); + $response = $gapicClient->delete($project, $region, $serviceAttachment); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -285,7 +285,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -320,7 +320,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $serviceAttachment = 'serviceAttachment-1271655187'; - $response = $client->get($project, $region, $serviceAttachment); + $response = $gapicClient->get($project, $region, $serviceAttachment); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -342,7 +342,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -361,8 +361,8 @@ public function getExceptionTest() $region = 'region-934795532'; $serviceAttachment = 'serviceAttachment-1271655187'; try { - $client->get($project, $region, $serviceAttachment); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $serviceAttachment); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -379,7 +379,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -396,7 +396,7 @@ public function getIamPolicyTest() $project = 'project-309310695'; $region = 'region-934795532'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $region, $resource); + $response = $gapicClient->getIamPolicy($project, $region, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -418,7 +418,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -437,8 +437,8 @@ public function getIamPolicyExceptionTest() $region = 'region-934795532'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $region, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $region, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -461,7 +461,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -480,7 +480,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $serviceAttachmentResource = new ServiceAttachment(); - $response = $client->insert($project, $region, $serviceAttachmentResource); + $response = $gapicClient->insert($project, $region, $serviceAttachmentResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -527,7 +527,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -552,7 +552,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $serviceAttachmentResource = new ServiceAttachment(); - $response = $client->insert($project, $region, $serviceAttachmentResource); + $response = $gapicClient->insert($project, $region, $serviceAttachmentResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -578,7 +578,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -601,7 +601,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -624,7 +624,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -642,8 +642,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -666,7 +666,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -686,7 +686,7 @@ public function patchTest() $region = 'region-934795532'; $serviceAttachment = 'serviceAttachment-1271655187'; $serviceAttachmentResource = new ServiceAttachment(); - $response = $client->patch($project, $region, $serviceAttachment, $serviceAttachmentResource); + $response = $gapicClient->patch($project, $region, $serviceAttachment, $serviceAttachmentResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -735,7 +735,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -761,7 +761,7 @@ public function patchExceptionTest() $region = 'region-934795532'; $serviceAttachment = 'serviceAttachment-1271655187'; $serviceAttachmentResource = new ServiceAttachment(); - $response = $client->patch($project, $region, $serviceAttachment, $serviceAttachmentResource); + $response = $gapicClient->patch($project, $region, $serviceAttachment, $serviceAttachmentResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -787,7 +787,7 @@ public function patchExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -805,7 +805,7 @@ public function setIamPolicyTest() $region = 'region-934795532'; $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; - $response = $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + $response = $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -829,7 +829,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -849,8 +849,8 @@ public function setIamPolicyExceptionTest() $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; try { - $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -867,7 +867,7 @@ public function setIamPolicyExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -879,7 +879,7 @@ public function testIamPermissionsTest() $region = 'region-934795532'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -903,7 +903,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -923,8 +923,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/SnapshotsClientTest.php b/Compute/tests/Unit/V1/SnapshotsClientTest.php index 2e75ca6689cd..84f3f059de91 100644 --- a/Compute/tests/Unit/V1/SnapshotsClientTest.php +++ b/Compute/tests/Unit/V1/SnapshotsClientTest.php @@ -88,7 +88,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -106,7 +106,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $snapshot = 'snapshot284874180'; - $response = $client->delete($project, $snapshot); + $response = $gapicClient->delete($project, $snapshot); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -150,7 +150,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -174,7 +174,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $snapshot = 'snapshot284874180'; - $response = $client->delete($project, $snapshot); + $response = $gapicClient->delete($project, $snapshot); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -200,13 +200,15 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); // Mock response + $architecture = 'architecture839674195'; $autoCreated = true; $chainName = 'chainName-2078839479'; + $creationSizeBytes = 1199141901; $creationTimestamp = 'creationTimestamp567396278'; $description = 'description-1724546052'; $diskSizeGb = 757478089; @@ -218,14 +220,19 @@ public function getTest() $name = 'name3373707'; $satisfiesPzs = false; $selfLink = 'selfLink-1691268851'; + $snapshotType = 'snapshotType1198091477'; $sourceDisk = 'sourceDisk-85117119'; $sourceDiskId = 'sourceDiskId-1693292839'; + $sourceSnapshotSchedulePolicy = 'sourceSnapshotSchedulePolicy-837985533'; + $sourceSnapshotSchedulePolicyId = 'sourceSnapshotSchedulePolicyId-2076994601'; $status = 'status-892481550'; $storageBytes = 2035244455; $storageBytesStatus = 'storageBytesStatus1027609994'; $expectedResponse = new Snapshot(); + $expectedResponse->setArchitecture($architecture); $expectedResponse->setAutoCreated($autoCreated); $expectedResponse->setChainName($chainName); + $expectedResponse->setCreationSizeBytes($creationSizeBytes); $expectedResponse->setCreationTimestamp($creationTimestamp); $expectedResponse->setDescription($description); $expectedResponse->setDiskSizeGb($diskSizeGb); @@ -237,8 +244,11 @@ public function getTest() $expectedResponse->setName($name); $expectedResponse->setSatisfiesPzs($satisfiesPzs); $expectedResponse->setSelfLink($selfLink); + $expectedResponse->setSnapshotType($snapshotType); $expectedResponse->setSourceDisk($sourceDisk); $expectedResponse->setSourceDiskId($sourceDiskId); + $expectedResponse->setSourceSnapshotSchedulePolicy($sourceSnapshotSchedulePolicy); + $expectedResponse->setSourceSnapshotSchedulePolicyId($sourceSnapshotSchedulePolicyId); $expectedResponse->setStatus($status); $expectedResponse->setStorageBytes($storageBytes); $expectedResponse->setStorageBytesStatus($storageBytesStatus); @@ -246,7 +256,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $snapshot = 'snapshot284874180'; - $response = $client->get($project, $snapshot); + $response = $gapicClient->get($project, $snapshot); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -266,7 +276,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -284,8 +294,8 @@ public function getExceptionTest() $project = 'project-309310695'; $snapshot = 'snapshot284874180'; try { - $client->get($project, $snapshot); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $snapshot); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -302,7 +312,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -318,7 +328,7 @@ public function getIamPolicyTest() // Mock request $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $resource); + $response = $gapicClient->getIamPolicy($project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -338,7 +348,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -356,8 +366,8 @@ public function getIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -380,7 +390,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -398,7 +408,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $snapshotResource = new Snapshot(); - $response = $client->insert($project, $snapshotResource); + $response = $gapicClient->insert($project, $snapshotResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -442,7 +452,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -466,7 +476,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $snapshotResource = new Snapshot(); - $response = $client->insert($project, $snapshotResource); + $response = $gapicClient->insert($project, $snapshotResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -492,7 +502,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -514,7 +524,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -535,7 +545,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -552,8 +562,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -570,7 +580,7 @@ public function listExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -587,7 +597,7 @@ public function setIamPolicyTest() $globalSetPolicyRequestResource = new GlobalSetPolicyRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + $response = $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -609,7 +619,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -628,8 +638,8 @@ public function setIamPolicyExceptionTest() $project = 'project-309310695'; $resource = 'resource-341064690'; try { - $client->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($globalSetPolicyRequestResource, $project, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -652,7 +662,7 @@ public function setLabelsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -671,7 +681,7 @@ public function setLabelsTest() $globalSetLabelsRequestResource = new GlobalSetLabelsRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setLabels($globalSetLabelsRequestResource, $project, $resource); + $response = $gapicClient->setLabels($globalSetLabelsRequestResource, $project, $resource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -717,7 +727,7 @@ public function setLabelsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -742,7 +752,7 @@ public function setLabelsExceptionTest() $globalSetLabelsRequestResource = new GlobalSetLabelsRequest(); $project = 'project-309310695'; $resource = 'resource-341064690'; - $response = $client->setLabels($globalSetLabelsRequestResource, $project, $resource); + $response = $gapicClient->setLabels($globalSetLabelsRequestResource, $project, $resource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -768,7 +778,7 @@ public function setLabelsExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -779,7 +789,7 @@ public function testIamPermissionsTest() $project = 'project-309310695'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -801,7 +811,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -820,8 +830,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/SslCertificatesClientTest.php b/Compute/tests/Unit/V1/SslCertificatesClientTest.php index e2cb4f3f3884..92bd7a6781ea 100644 --- a/Compute/tests/Unit/V1/SslCertificatesClientTest.php +++ b/Compute/tests/Unit/V1/SslCertificatesClientTest.php @@ -79,7 +79,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -100,7 +100,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -123,7 +123,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -140,8 +140,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -164,7 +164,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -182,7 +182,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $sslCertificate = 'sslCertificate-1027298332'; - $response = $client->delete($project, $sslCertificate); + $response = $gapicClient->delete($project, $sslCertificate); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -226,7 +226,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -250,7 +250,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $sslCertificate = 'sslCertificate-1027298332'; - $response = $client->delete($project, $sslCertificate); + $response = $gapicClient->delete($project, $sslCertificate); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -276,7 +276,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -308,7 +308,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $sslCertificate = 'sslCertificate-1027298332'; - $response = $client->get($project, $sslCertificate); + $response = $gapicClient->get($project, $sslCertificate); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -328,7 +328,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -346,8 +346,8 @@ public function getExceptionTest() $project = 'project-309310695'; $sslCertificate = 'sslCertificate-1027298332'; try { - $client->get($project, $sslCertificate); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $sslCertificate); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -370,7 +370,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -388,7 +388,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $sslCertificateResource = new SslCertificate(); - $response = $client->insert($project, $sslCertificateResource); + $response = $gapicClient->insert($project, $sslCertificateResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -432,7 +432,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -456,7 +456,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $sslCertificateResource = new SslCertificate(); - $response = $client->insert($project, $sslCertificateResource); + $response = $gapicClient->insert($project, $sslCertificateResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -482,7 +482,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -504,7 +504,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -525,7 +525,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -542,8 +542,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/SslPoliciesClientTest.php b/Compute/tests/Unit/V1/SslPoliciesClientTest.php index 18268457770c..27c8c2ab5bdd 100644 --- a/Compute/tests/Unit/V1/SslPoliciesClientTest.php +++ b/Compute/tests/Unit/V1/SslPoliciesClientTest.php @@ -84,7 +84,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -102,7 +102,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $sslPolicy = 'sslPolicy-1852293435'; - $response = $client->delete($project, $sslPolicy); + $response = $gapicClient->delete($project, $sslPolicy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -146,7 +146,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -170,7 +170,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $sslPolicy = 'sslPolicy-1852293435'; - $response = $client->delete($project, $sslPolicy); + $response = $gapicClient->delete($project, $sslPolicy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -196,7 +196,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -224,7 +224,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $sslPolicy = 'sslPolicy-1852293435'; - $response = $client->get($project, $sslPolicy); + $response = $gapicClient->get($project, $sslPolicy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -244,7 +244,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -262,8 +262,8 @@ public function getExceptionTest() $project = 'project-309310695'; $sslPolicy = 'sslPolicy-1852293435'; try { - $client->get($project, $sslPolicy); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $sslPolicy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -286,7 +286,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -304,7 +304,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $sslPolicyResource = new SslPolicy(); - $response = $client->insert($project, $sslPolicyResource); + $response = $gapicClient->insert($project, $sslPolicyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -348,7 +348,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -372,7 +372,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $sslPolicyResource = new SslPolicy(); - $response = $client->insert($project, $sslPolicyResource); + $response = $gapicClient->insert($project, $sslPolicyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -398,7 +398,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -420,7 +420,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -441,7 +441,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -458,8 +458,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -476,7 +476,7 @@ public function listExceptionTest() public function listAvailableFeaturesTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -485,7 +485,7 @@ public function listAvailableFeaturesTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->listAvailableFeatures($project); + $response = $gapicClient->listAvailableFeatures($project); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -503,7 +503,7 @@ public function listAvailableFeaturesTest() public function listAvailableFeaturesExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -520,8 +520,8 @@ public function listAvailableFeaturesExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->listAvailableFeatures($project); - // If the $client method call did not throw, fail the test + $gapicClient->listAvailableFeatures($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -544,7 +544,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -563,7 +563,7 @@ public function patchTest() $project = 'project-309310695'; $sslPolicy = 'sslPolicy-1852293435'; $sslPolicyResource = new SslPolicy(); - $response = $client->patch($project, $sslPolicy, $sslPolicyResource); + $response = $gapicClient->patch($project, $sslPolicy, $sslPolicyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -609,7 +609,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -634,7 +634,7 @@ public function patchExceptionTest() $project = 'project-309310695'; $sslPolicy = 'sslPolicy-1852293435'; $sslPolicyResource = new SslPolicy(); - $response = $client->patch($project, $sslPolicy, $sslPolicyResource); + $response = $gapicClient->patch($project, $sslPolicy, $sslPolicyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/SubnetworksClientTest.php b/Compute/tests/Unit/V1/SubnetworksClientTest.php index b9c414f8a54c..f1344441d3cf 100644 --- a/Compute/tests/Unit/V1/SubnetworksClientTest.php +++ b/Compute/tests/Unit/V1/SubnetworksClientTest.php @@ -87,7 +87,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -108,7 +108,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -131,7 +131,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -148,8 +148,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -172,7 +172,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -191,7 +191,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $subnetwork = 'subnetwork-1302785042'; - $response = $client->delete($project, $region, $subnetwork); + $response = $gapicClient->delete($project, $region, $subnetwork); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -238,7 +238,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -263,7 +263,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $subnetwork = 'subnetwork-1302785042'; - $response = $client->delete($project, $region, $subnetwork); + $response = $gapicClient->delete($project, $region, $subnetwork); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -295,7 +295,7 @@ public function expandIpCidrRangeTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -315,7 +315,7 @@ public function expandIpCidrRangeTest() $region = 'region-934795532'; $subnetwork = 'subnetwork-1302785042'; $subnetworksExpandIpCidrRangeRequestResource = new SubnetworksExpandIpCidrRangeRequest(); - $response = $client->expandIpCidrRange($project, $region, $subnetwork, $subnetworksExpandIpCidrRangeRequestResource); + $response = $gapicClient->expandIpCidrRange($project, $region, $subnetwork, $subnetworksExpandIpCidrRangeRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -364,7 +364,7 @@ public function expandIpCidrRangeExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -390,7 +390,7 @@ public function expandIpCidrRangeExceptionTest() $region = 'region-934795532'; $subnetwork = 'subnetwork-1302785042'; $subnetworksExpandIpCidrRangeRequestResource = new SubnetworksExpandIpCidrRangeRequest(); - $response = $client->expandIpCidrRange($project, $region, $subnetwork, $subnetworksExpandIpCidrRangeRequestResource); + $response = $gapicClient->expandIpCidrRange($project, $region, $subnetwork, $subnetworksExpandIpCidrRangeRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -416,7 +416,7 @@ public function expandIpCidrRangeExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -471,7 +471,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $subnetwork = 'subnetwork-1302785042'; - $response = $client->get($project, $region, $subnetwork); + $response = $gapicClient->get($project, $region, $subnetwork); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -493,7 +493,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -512,8 +512,8 @@ public function getExceptionTest() $region = 'region-934795532'; $subnetwork = 'subnetwork-1302785042'; try { - $client->get($project, $region, $subnetwork); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $subnetwork); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -530,7 +530,7 @@ public function getExceptionTest() public function getIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -547,7 +547,7 @@ public function getIamPolicyTest() $project = 'project-309310695'; $region = 'region-934795532'; $resource = 'resource-341064690'; - $response = $client->getIamPolicy($project, $region, $resource); + $response = $gapicClient->getIamPolicy($project, $region, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -569,7 +569,7 @@ public function getIamPolicyTest() public function getIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -588,8 +588,8 @@ public function getIamPolicyExceptionTest() $region = 'region-934795532'; $resource = 'resource-341064690'; try { - $client->getIamPolicy($project, $region, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->getIamPolicy($project, $region, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -612,7 +612,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -631,7 +631,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $subnetworkResource = new Subnetwork(); - $response = $client->insert($project, $region, $subnetworkResource); + $response = $gapicClient->insert($project, $region, $subnetworkResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -678,7 +678,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -703,7 +703,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $subnetworkResource = new Subnetwork(); - $response = $client->insert($project, $region, $subnetworkResource); + $response = $gapicClient->insert($project, $region, $subnetworkResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -729,7 +729,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -752,7 +752,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -775,7 +775,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -793,8 +793,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -811,7 +811,7 @@ public function listExceptionTest() public function listUsableTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -833,7 +833,7 @@ public function listUsableTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->listUsable($project); + $response = $gapicClient->listUsable($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -854,7 +854,7 @@ public function listUsableTest() public function listUsableExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -871,8 +871,8 @@ public function listUsableExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->listUsable($project); - // If the $client method call did not throw, fail the test + $gapicClient->listUsable($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -895,7 +895,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -915,7 +915,7 @@ public function patchTest() $region = 'region-934795532'; $subnetwork = 'subnetwork-1302785042'; $subnetworkResource = new Subnetwork(); - $response = $client->patch($project, $region, $subnetwork, $subnetworkResource); + $response = $gapicClient->patch($project, $region, $subnetwork, $subnetworkResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -964,7 +964,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -990,7 +990,7 @@ public function patchExceptionTest() $region = 'region-934795532'; $subnetwork = 'subnetwork-1302785042'; $subnetworkResource = new Subnetwork(); - $response = $client->patch($project, $region, $subnetwork, $subnetworkResource); + $response = $gapicClient->patch($project, $region, $subnetwork, $subnetworkResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1016,7 +1016,7 @@ public function patchExceptionTest() public function setIamPolicyTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1034,7 +1034,7 @@ public function setIamPolicyTest() $region = 'region-934795532'; $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; - $response = $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + $response = $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1058,7 +1058,7 @@ public function setIamPolicyTest() public function setIamPolicyExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1078,8 +1078,8 @@ public function setIamPolicyExceptionTest() $regionSetPolicyRequestResource = new RegionSetPolicyRequest(); $resource = 'resource-341064690'; try { - $client->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); - // If the $client method call did not throw, fail the test + $gapicClient->setIamPolicy($project, $region, $regionSetPolicyRequestResource, $resource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1102,7 +1102,7 @@ public function setPrivateIpGoogleAccessTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1122,7 +1122,7 @@ public function setPrivateIpGoogleAccessTest() $region = 'region-934795532'; $subnetwork = 'subnetwork-1302785042'; $subnetworksSetPrivateIpGoogleAccessRequestResource = new SubnetworksSetPrivateIpGoogleAccessRequest(); - $response = $client->setPrivateIpGoogleAccess($project, $region, $subnetwork, $subnetworksSetPrivateIpGoogleAccessRequestResource); + $response = $gapicClient->setPrivateIpGoogleAccess($project, $region, $subnetwork, $subnetworksSetPrivateIpGoogleAccessRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1171,7 +1171,7 @@ public function setPrivateIpGoogleAccessExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1197,7 +1197,7 @@ public function setPrivateIpGoogleAccessExceptionTest() $region = 'region-934795532'; $subnetwork = 'subnetwork-1302785042'; $subnetworksSetPrivateIpGoogleAccessRequestResource = new SubnetworksSetPrivateIpGoogleAccessRequest(); - $response = $client->setPrivateIpGoogleAccess($project, $region, $subnetwork, $subnetworksSetPrivateIpGoogleAccessRequestResource); + $response = $gapicClient->setPrivateIpGoogleAccess($project, $region, $subnetwork, $subnetworksSetPrivateIpGoogleAccessRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1223,7 +1223,7 @@ public function setPrivateIpGoogleAccessExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1235,7 +1235,7 @@ public function testIamPermissionsTest() $region = 'region-934795532'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1259,7 +1259,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1279,8 +1279,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/TargetGrpcProxiesClientTest.php b/Compute/tests/Unit/V1/TargetGrpcProxiesClientTest.php index e02a87b1e5d0..29a7640d476d 100644 --- a/Compute/tests/Unit/V1/TargetGrpcProxiesClientTest.php +++ b/Compute/tests/Unit/V1/TargetGrpcProxiesClientTest.php @@ -83,7 +83,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -101,7 +101,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $targetGrpcProxy = 'targetGrpcProxy-1605592453'; - $response = $client->delete($project, $targetGrpcProxy); + $response = $gapicClient->delete($project, $targetGrpcProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -145,7 +145,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -169,7 +169,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $targetGrpcProxy = 'targetGrpcProxy-1605592453'; - $response = $client->delete($project, $targetGrpcProxy); + $response = $gapicClient->delete($project, $targetGrpcProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -195,7 +195,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -225,7 +225,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $targetGrpcProxy = 'targetGrpcProxy-1605592453'; - $response = $client->get($project, $targetGrpcProxy); + $response = $gapicClient->get($project, $targetGrpcProxy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -245,7 +245,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -263,8 +263,8 @@ public function getExceptionTest() $project = 'project-309310695'; $targetGrpcProxy = 'targetGrpcProxy-1605592453'; try { - $client->get($project, $targetGrpcProxy); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $targetGrpcProxy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -287,7 +287,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -305,7 +305,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $targetGrpcProxyResource = new TargetGrpcProxy(); - $response = $client->insert($project, $targetGrpcProxyResource); + $response = $gapicClient->insert($project, $targetGrpcProxyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -349,7 +349,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -373,7 +373,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $targetGrpcProxyResource = new TargetGrpcProxy(); - $response = $client->insert($project, $targetGrpcProxyResource); + $response = $gapicClient->insert($project, $targetGrpcProxyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -399,7 +399,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -421,7 +421,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -442,7 +442,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -459,8 +459,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -483,7 +483,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -502,7 +502,7 @@ public function patchTest() $project = 'project-309310695'; $targetGrpcProxy = 'targetGrpcProxy-1605592453'; $targetGrpcProxyResource = new TargetGrpcProxy(); - $response = $client->patch($project, $targetGrpcProxy, $targetGrpcProxyResource); + $response = $gapicClient->patch($project, $targetGrpcProxy, $targetGrpcProxyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -548,7 +548,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -573,7 +573,7 @@ public function patchExceptionTest() $project = 'project-309310695'; $targetGrpcProxy = 'targetGrpcProxy-1605592453'; $targetGrpcProxyResource = new TargetGrpcProxy(); - $response = $client->patch($project, $targetGrpcProxy, $targetGrpcProxyResource); + $response = $gapicClient->patch($project, $targetGrpcProxy, $targetGrpcProxyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/TargetHttpProxiesClientTest.php b/Compute/tests/Unit/V1/TargetHttpProxiesClientTest.php index 579df7d3c282..0f0c7434638d 100644 --- a/Compute/tests/Unit/V1/TargetHttpProxiesClientTest.php +++ b/Compute/tests/Unit/V1/TargetHttpProxiesClientTest.php @@ -80,7 +80,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -101,7 +101,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -124,7 +124,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -141,8 +141,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -165,7 +165,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -183,7 +183,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $targetHttpProxy = 'targetHttpProxy206872421'; - $response = $client->delete($project, $targetHttpProxy); + $response = $gapicClient->delete($project, $targetHttpProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -227,7 +227,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -251,7 +251,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $targetHttpProxy = 'targetHttpProxy206872421'; - $response = $client->delete($project, $targetHttpProxy); + $response = $gapicClient->delete($project, $targetHttpProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -277,7 +277,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -307,7 +307,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $targetHttpProxy = 'targetHttpProxy206872421'; - $response = $client->get($project, $targetHttpProxy); + $response = $gapicClient->get($project, $targetHttpProxy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -327,7 +327,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -345,8 +345,8 @@ public function getExceptionTest() $project = 'project-309310695'; $targetHttpProxy = 'targetHttpProxy206872421'; try { - $client->get($project, $targetHttpProxy); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $targetHttpProxy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -369,7 +369,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -387,7 +387,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $targetHttpProxyResource = new TargetHttpProxy(); - $response = $client->insert($project, $targetHttpProxyResource); + $response = $gapicClient->insert($project, $targetHttpProxyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -431,7 +431,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -455,7 +455,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $targetHttpProxyResource = new TargetHttpProxy(); - $response = $client->insert($project, $targetHttpProxyResource); + $response = $gapicClient->insert($project, $targetHttpProxyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -481,7 +481,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -503,7 +503,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -524,7 +524,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -541,8 +541,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -565,7 +565,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -584,7 +584,7 @@ public function patchTest() $project = 'project-309310695'; $targetHttpProxy = 'targetHttpProxy206872421'; $targetHttpProxyResource = new TargetHttpProxy(); - $response = $client->patch($project, $targetHttpProxy, $targetHttpProxyResource); + $response = $gapicClient->patch($project, $targetHttpProxy, $targetHttpProxyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -630,7 +630,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -655,7 +655,7 @@ public function patchExceptionTest() $project = 'project-309310695'; $targetHttpProxy = 'targetHttpProxy206872421'; $targetHttpProxyResource = new TargetHttpProxy(); - $response = $client->patch($project, $targetHttpProxy, $targetHttpProxyResource); + $response = $gapicClient->patch($project, $targetHttpProxy, $targetHttpProxyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -687,7 +687,7 @@ public function setUrlMapTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -706,7 +706,7 @@ public function setUrlMapTest() $project = 'project-309310695'; $targetHttpProxy = 'targetHttpProxy206872421'; $urlMapReferenceResource = new UrlMapReference(); - $response = $client->setUrlMap($project, $targetHttpProxy, $urlMapReferenceResource); + $response = $gapicClient->setUrlMap($project, $targetHttpProxy, $urlMapReferenceResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -752,7 +752,7 @@ public function setUrlMapExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -777,7 +777,7 @@ public function setUrlMapExceptionTest() $project = 'project-309310695'; $targetHttpProxy = 'targetHttpProxy206872421'; $urlMapReferenceResource = new UrlMapReference(); - $response = $client->setUrlMap($project, $targetHttpProxy, $urlMapReferenceResource); + $response = $gapicClient->setUrlMap($project, $targetHttpProxy, $urlMapReferenceResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/TargetHttpsProxiesClientTest.php b/Compute/tests/Unit/V1/TargetHttpsProxiesClientTest.php index 81e45538c394..9530cdac5c90 100644 --- a/Compute/tests/Unit/V1/TargetHttpsProxiesClientTest.php +++ b/Compute/tests/Unit/V1/TargetHttpsProxiesClientTest.php @@ -84,7 +84,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -105,7 +105,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -128,7 +128,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -145,8 +145,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -169,7 +169,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -187,7 +187,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->delete($project, $targetHttpsProxy); + $response = $gapicClient->delete($project, $targetHttpsProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -231,7 +231,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -255,7 +255,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->delete($project, $targetHttpsProxy); + $response = $gapicClient->delete($project, $targetHttpsProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -281,7 +281,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -321,7 +321,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->get($project, $targetHttpsProxy); + $response = $gapicClient->get($project, $targetHttpsProxy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -341,7 +341,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -359,8 +359,8 @@ public function getExceptionTest() $project = 'project-309310695'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; try { - $client->get($project, $targetHttpsProxy); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $targetHttpsProxy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -383,7 +383,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -401,7 +401,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $targetHttpsProxyResource = new TargetHttpsProxy(); - $response = $client->insert($project, $targetHttpsProxyResource); + $response = $gapicClient->insert($project, $targetHttpsProxyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -445,7 +445,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -469,7 +469,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $targetHttpsProxyResource = new TargetHttpsProxy(); - $response = $client->insert($project, $targetHttpsProxyResource); + $response = $gapicClient->insert($project, $targetHttpsProxyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -495,7 +495,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -517,7 +517,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -538,7 +538,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -555,8 +555,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -579,7 +579,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -598,7 +598,7 @@ public function patchTest() $project = 'project-309310695'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; $targetHttpsProxyResource = new TargetHttpsProxy(); - $response = $client->patch($project, $targetHttpsProxy, $targetHttpsProxyResource); + $response = $gapicClient->patch($project, $targetHttpsProxy, $targetHttpsProxyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -644,7 +644,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -669,7 +669,7 @@ public function patchExceptionTest() $project = 'project-309310695'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; $targetHttpsProxyResource = new TargetHttpsProxy(); - $response = $client->patch($project, $targetHttpsProxy, $targetHttpsProxyResource); + $response = $gapicClient->patch($project, $targetHttpsProxy, $targetHttpsProxyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -701,7 +701,7 @@ public function setCertificateMapTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -720,7 +720,7 @@ public function setCertificateMapTest() $project = 'project-309310695'; $targetHttpsProxiesSetCertificateMapRequestResource = new TargetHttpsProxiesSetCertificateMapRequest(); $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->setCertificateMap($project, $targetHttpsProxiesSetCertificateMapRequestResource, $targetHttpsProxy); + $response = $gapicClient->setCertificateMap($project, $targetHttpsProxiesSetCertificateMapRequestResource, $targetHttpsProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -766,7 +766,7 @@ public function setCertificateMapExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -791,7 +791,7 @@ public function setCertificateMapExceptionTest() $project = 'project-309310695'; $targetHttpsProxiesSetCertificateMapRequestResource = new TargetHttpsProxiesSetCertificateMapRequest(); $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->setCertificateMap($project, $targetHttpsProxiesSetCertificateMapRequestResource, $targetHttpsProxy); + $response = $gapicClient->setCertificateMap($project, $targetHttpsProxiesSetCertificateMapRequestResource, $targetHttpsProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -823,7 +823,7 @@ public function setQuicOverrideTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -842,7 +842,7 @@ public function setQuicOverrideTest() $project = 'project-309310695'; $targetHttpsProxiesSetQuicOverrideRequestResource = new TargetHttpsProxiesSetQuicOverrideRequest(); $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->setQuicOverride($project, $targetHttpsProxiesSetQuicOverrideRequestResource, $targetHttpsProxy); + $response = $gapicClient->setQuicOverride($project, $targetHttpsProxiesSetQuicOverrideRequestResource, $targetHttpsProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -888,7 +888,7 @@ public function setQuicOverrideExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -913,7 +913,7 @@ public function setQuicOverrideExceptionTest() $project = 'project-309310695'; $targetHttpsProxiesSetQuicOverrideRequestResource = new TargetHttpsProxiesSetQuicOverrideRequest(); $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->setQuicOverride($project, $targetHttpsProxiesSetQuicOverrideRequestResource, $targetHttpsProxy); + $response = $gapicClient->setQuicOverride($project, $targetHttpsProxiesSetQuicOverrideRequestResource, $targetHttpsProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -945,7 +945,7 @@ public function setSslCertificatesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -964,7 +964,7 @@ public function setSslCertificatesTest() $project = 'project-309310695'; $targetHttpsProxiesSetSslCertificatesRequestResource = new TargetHttpsProxiesSetSslCertificatesRequest(); $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->setSslCertificates($project, $targetHttpsProxiesSetSslCertificatesRequestResource, $targetHttpsProxy); + $response = $gapicClient->setSslCertificates($project, $targetHttpsProxiesSetSslCertificatesRequestResource, $targetHttpsProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1010,7 +1010,7 @@ public function setSslCertificatesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1035,7 +1035,7 @@ public function setSslCertificatesExceptionTest() $project = 'project-309310695'; $targetHttpsProxiesSetSslCertificatesRequestResource = new TargetHttpsProxiesSetSslCertificatesRequest(); $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->setSslCertificates($project, $targetHttpsProxiesSetSslCertificatesRequestResource, $targetHttpsProxy); + $response = $gapicClient->setSslCertificates($project, $targetHttpsProxiesSetSslCertificatesRequestResource, $targetHttpsProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1067,7 +1067,7 @@ public function setSslPolicyTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1086,7 +1086,7 @@ public function setSslPolicyTest() $project = 'project-309310695'; $sslPolicyReferenceResource = new SslPolicyReference(); $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->setSslPolicy($project, $sslPolicyReferenceResource, $targetHttpsProxy); + $response = $gapicClient->setSslPolicy($project, $sslPolicyReferenceResource, $targetHttpsProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1132,7 +1132,7 @@ public function setSslPolicyExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1157,7 +1157,7 @@ public function setSslPolicyExceptionTest() $project = 'project-309310695'; $sslPolicyReferenceResource = new SslPolicyReference(); $targetHttpsProxy = 'targetHttpsProxy-2095146900'; - $response = $client->setSslPolicy($project, $sslPolicyReferenceResource, $targetHttpsProxy); + $response = $gapicClient->setSslPolicy($project, $sslPolicyReferenceResource, $targetHttpsProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1189,7 +1189,7 @@ public function setUrlMapTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1208,7 +1208,7 @@ public function setUrlMapTest() $project = 'project-309310695'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; $urlMapReferenceResource = new UrlMapReference(); - $response = $client->setUrlMap($project, $targetHttpsProxy, $urlMapReferenceResource); + $response = $gapicClient->setUrlMap($project, $targetHttpsProxy, $urlMapReferenceResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1254,7 +1254,7 @@ public function setUrlMapExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1279,7 +1279,7 @@ public function setUrlMapExceptionTest() $project = 'project-309310695'; $targetHttpsProxy = 'targetHttpsProxy-2095146900'; $urlMapReferenceResource = new UrlMapReference(); - $response = $client->setUrlMap($project, $targetHttpsProxy, $urlMapReferenceResource); + $response = $gapicClient->setUrlMap($project, $targetHttpsProxy, $urlMapReferenceResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/TargetInstancesClientTest.php b/Compute/tests/Unit/V1/TargetInstancesClientTest.php index ad97254e720a..ec85a053edcf 100644 --- a/Compute/tests/Unit/V1/TargetInstancesClientTest.php +++ b/Compute/tests/Unit/V1/TargetInstancesClientTest.php @@ -79,7 +79,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -100,7 +100,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -123,7 +123,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -140,8 +140,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -164,7 +164,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -183,7 +183,7 @@ public function deleteTest() $project = 'project-309310695'; $targetInstance = 'targetInstance826640259'; $zone = 'zone3744684'; - $response = $client->delete($project, $targetInstance, $zone); + $response = $gapicClient->delete($project, $targetInstance, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -230,7 +230,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -255,7 +255,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $targetInstance = 'targetInstance826640259'; $zone = 'zone3744684'; - $response = $client->delete($project, $targetInstance, $zone); + $response = $gapicClient->delete($project, $targetInstance, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -281,7 +281,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -312,7 +312,7 @@ public function getTest() $project = 'project-309310695'; $targetInstance = 'targetInstance826640259'; $zone = 'zone3744684'; - $response = $client->get($project, $targetInstance, $zone); + $response = $gapicClient->get($project, $targetInstance, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -334,7 +334,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -353,8 +353,8 @@ public function getExceptionTest() $targetInstance = 'targetInstance826640259'; $zone = 'zone3744684'; try { - $client->get($project, $targetInstance, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $targetInstance, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -377,7 +377,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -396,7 +396,7 @@ public function insertTest() $project = 'project-309310695'; $targetInstanceResource = new TargetInstance(); $zone = 'zone3744684'; - $response = $client->insert($project, $targetInstanceResource, $zone); + $response = $gapicClient->insert($project, $targetInstanceResource, $zone); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -443,7 +443,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -468,7 +468,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $targetInstanceResource = new TargetInstance(); $zone = 'zone3744684'; - $response = $client->insert($project, $targetInstanceResource, $zone); + $response = $gapicClient->insert($project, $targetInstanceResource, $zone); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -494,7 +494,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -517,7 +517,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -540,7 +540,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -558,8 +558,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/TargetPoolsClientTest.php b/Compute/tests/Unit/V1/TargetPoolsClientTest.php index 51168d08241b..d6ae84415c30 100644 --- a/Compute/tests/Unit/V1/TargetPoolsClientTest.php +++ b/Compute/tests/Unit/V1/TargetPoolsClientTest.php @@ -92,7 +92,7 @@ public function addHealthCheckTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -112,7 +112,7 @@ public function addHealthCheckTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; $targetPoolsAddHealthCheckRequestResource = new TargetPoolsAddHealthCheckRequest(); - $response = $client->addHealthCheck($project, $region, $targetPool, $targetPoolsAddHealthCheckRequestResource); + $response = $gapicClient->addHealthCheck($project, $region, $targetPool, $targetPoolsAddHealthCheckRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -161,7 +161,7 @@ public function addHealthCheckExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -187,7 +187,7 @@ public function addHealthCheckExceptionTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; $targetPoolsAddHealthCheckRequestResource = new TargetPoolsAddHealthCheckRequest(); - $response = $client->addHealthCheck($project, $region, $targetPool, $targetPoolsAddHealthCheckRequestResource); + $response = $gapicClient->addHealthCheck($project, $region, $targetPool, $targetPoolsAddHealthCheckRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -219,7 +219,7 @@ public function addInstanceTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -239,7 +239,7 @@ public function addInstanceTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; $targetPoolsAddInstanceRequestResource = new TargetPoolsAddInstanceRequest(); - $response = $client->addInstance($project, $region, $targetPool, $targetPoolsAddInstanceRequestResource); + $response = $gapicClient->addInstance($project, $region, $targetPool, $targetPoolsAddInstanceRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -288,7 +288,7 @@ public function addInstanceExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -314,7 +314,7 @@ public function addInstanceExceptionTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; $targetPoolsAddInstanceRequestResource = new TargetPoolsAddInstanceRequest(); - $response = $client->addInstance($project, $region, $targetPool, $targetPoolsAddInstanceRequestResource); + $response = $gapicClient->addInstance($project, $region, $targetPool, $targetPoolsAddInstanceRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -340,7 +340,7 @@ public function addInstanceExceptionTest() public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -361,7 +361,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -384,7 +384,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -401,8 +401,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -425,7 +425,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -444,7 +444,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; - $response = $client->delete($project, $region, $targetPool); + $response = $gapicClient->delete($project, $region, $targetPool); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -491,7 +491,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -516,7 +516,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; - $response = $client->delete($project, $region, $targetPool); + $response = $gapicClient->delete($project, $region, $targetPool); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -542,7 +542,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -573,7 +573,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; - $response = $client->get($project, $region, $targetPool); + $response = $gapicClient->get($project, $region, $targetPool); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -595,7 +595,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -614,8 +614,8 @@ public function getExceptionTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; try { - $client->get($project, $region, $targetPool); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $targetPool); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -632,7 +632,7 @@ public function getExceptionTest() public function getHealthTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -646,7 +646,7 @@ public function getHealthTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; - $response = $client->getHealth($instanceReferenceResource, $project, $region, $targetPool); + $response = $gapicClient->getHealth($instanceReferenceResource, $project, $region, $targetPool); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -670,7 +670,7 @@ public function getHealthTest() public function getHealthExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -690,8 +690,8 @@ public function getHealthExceptionTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; try { - $client->getHealth($instanceReferenceResource, $project, $region, $targetPool); - // If the $client method call did not throw, fail the test + $gapicClient->getHealth($instanceReferenceResource, $project, $region, $targetPool); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -714,7 +714,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -733,7 +733,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetPoolResource = new TargetPool(); - $response = $client->insert($project, $region, $targetPoolResource); + $response = $gapicClient->insert($project, $region, $targetPoolResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -780,7 +780,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -805,7 +805,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetPoolResource = new TargetPool(); - $response = $client->insert($project, $region, $targetPoolResource); + $response = $gapicClient->insert($project, $region, $targetPoolResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -831,7 +831,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -854,7 +854,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -877,7 +877,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -895,8 +895,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -919,7 +919,7 @@ public function removeHealthCheckTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -939,7 +939,7 @@ public function removeHealthCheckTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; $targetPoolsRemoveHealthCheckRequestResource = new TargetPoolsRemoveHealthCheckRequest(); - $response = $client->removeHealthCheck($project, $region, $targetPool, $targetPoolsRemoveHealthCheckRequestResource); + $response = $gapicClient->removeHealthCheck($project, $region, $targetPool, $targetPoolsRemoveHealthCheckRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -988,7 +988,7 @@ public function removeHealthCheckExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1014,7 +1014,7 @@ public function removeHealthCheckExceptionTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; $targetPoolsRemoveHealthCheckRequestResource = new TargetPoolsRemoveHealthCheckRequest(); - $response = $client->removeHealthCheck($project, $region, $targetPool, $targetPoolsRemoveHealthCheckRequestResource); + $response = $gapicClient->removeHealthCheck($project, $region, $targetPool, $targetPoolsRemoveHealthCheckRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1046,7 +1046,7 @@ public function removeInstanceTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1066,7 +1066,7 @@ public function removeInstanceTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; $targetPoolsRemoveInstanceRequestResource = new TargetPoolsRemoveInstanceRequest(); - $response = $client->removeInstance($project, $region, $targetPool, $targetPoolsRemoveInstanceRequestResource); + $response = $gapicClient->removeInstance($project, $region, $targetPool, $targetPoolsRemoveInstanceRequestResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1115,7 +1115,7 @@ public function removeInstanceExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1141,7 +1141,7 @@ public function removeInstanceExceptionTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; $targetPoolsRemoveInstanceRequestResource = new TargetPoolsRemoveInstanceRequest(); - $response = $client->removeInstance($project, $region, $targetPool, $targetPoolsRemoveInstanceRequestResource); + $response = $gapicClient->removeInstance($project, $region, $targetPool, $targetPoolsRemoveInstanceRequestResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -1173,7 +1173,7 @@ public function setBackupTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1193,7 +1193,7 @@ public function setBackupTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; $targetReferenceResource = new TargetReference(); - $response = $client->setBackup($project, $region, $targetPool, $targetReferenceResource); + $response = $gapicClient->setBackup($project, $region, $targetPool, $targetReferenceResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1242,7 +1242,7 @@ public function setBackupExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1268,7 +1268,7 @@ public function setBackupExceptionTest() $region = 'region-934795532'; $targetPool = 'targetPool-2084687350'; $targetReferenceResource = new TargetReference(); - $response = $client->setBackup($project, $region, $targetPool, $targetReferenceResource); + $response = $gapicClient->setBackup($project, $region, $targetPool, $targetReferenceResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/TargetSslProxiesClientTest.php b/Compute/tests/Unit/V1/TargetSslProxiesClientTest.php index 7d2329fe7245..19127c9caa71 100644 --- a/Compute/tests/Unit/V1/TargetSslProxiesClientTest.php +++ b/Compute/tests/Unit/V1/TargetSslProxiesClientTest.php @@ -88,7 +88,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -106,7 +106,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->delete($project, $targetSslProxy); + $response = $gapicClient->delete($project, $targetSslProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -150,7 +150,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -174,7 +174,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->delete($project, $targetSslProxy); + $response = $gapicClient->delete($project, $targetSslProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -200,7 +200,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -230,7 +230,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->get($project, $targetSslProxy); + $response = $gapicClient->get($project, $targetSslProxy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -250,7 +250,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -268,8 +268,8 @@ public function getExceptionTest() $project = 'project-309310695'; $targetSslProxy = 'targetSslProxy875666765'; try { - $client->get($project, $targetSslProxy); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $targetSslProxy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -292,7 +292,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -310,7 +310,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $targetSslProxyResource = new TargetSslProxy(); - $response = $client->insert($project, $targetSslProxyResource); + $response = $gapicClient->insert($project, $targetSslProxyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -354,7 +354,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -378,7 +378,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $targetSslProxyResource = new TargetSslProxy(); - $response = $client->insert($project, $targetSslProxyResource); + $response = $gapicClient->insert($project, $targetSslProxyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -404,7 +404,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -426,7 +426,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -447,7 +447,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -464,8 +464,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -488,7 +488,7 @@ public function setBackendServiceTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -507,7 +507,7 @@ public function setBackendServiceTest() $project = 'project-309310695'; $targetSslProxiesSetBackendServiceRequestResource = new TargetSslProxiesSetBackendServiceRequest(); $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->setBackendService($project, $targetSslProxiesSetBackendServiceRequestResource, $targetSslProxy); + $response = $gapicClient->setBackendService($project, $targetSslProxiesSetBackendServiceRequestResource, $targetSslProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -553,7 +553,7 @@ public function setBackendServiceExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -578,7 +578,7 @@ public function setBackendServiceExceptionTest() $project = 'project-309310695'; $targetSslProxiesSetBackendServiceRequestResource = new TargetSslProxiesSetBackendServiceRequest(); $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->setBackendService($project, $targetSslProxiesSetBackendServiceRequestResource, $targetSslProxy); + $response = $gapicClient->setBackendService($project, $targetSslProxiesSetBackendServiceRequestResource, $targetSslProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -610,7 +610,7 @@ public function setCertificateMapTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -629,7 +629,7 @@ public function setCertificateMapTest() $project = 'project-309310695'; $targetSslProxiesSetCertificateMapRequestResource = new TargetSslProxiesSetCertificateMapRequest(); $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->setCertificateMap($project, $targetSslProxiesSetCertificateMapRequestResource, $targetSslProxy); + $response = $gapicClient->setCertificateMap($project, $targetSslProxiesSetCertificateMapRequestResource, $targetSslProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -675,7 +675,7 @@ public function setCertificateMapExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -700,7 +700,7 @@ public function setCertificateMapExceptionTest() $project = 'project-309310695'; $targetSslProxiesSetCertificateMapRequestResource = new TargetSslProxiesSetCertificateMapRequest(); $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->setCertificateMap($project, $targetSslProxiesSetCertificateMapRequestResource, $targetSslProxy); + $response = $gapicClient->setCertificateMap($project, $targetSslProxiesSetCertificateMapRequestResource, $targetSslProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -732,7 +732,7 @@ public function setProxyHeaderTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -751,7 +751,7 @@ public function setProxyHeaderTest() $project = 'project-309310695'; $targetSslProxiesSetProxyHeaderRequestResource = new TargetSslProxiesSetProxyHeaderRequest(); $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->setProxyHeader($project, $targetSslProxiesSetProxyHeaderRequestResource, $targetSslProxy); + $response = $gapicClient->setProxyHeader($project, $targetSslProxiesSetProxyHeaderRequestResource, $targetSslProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -797,7 +797,7 @@ public function setProxyHeaderExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -822,7 +822,7 @@ public function setProxyHeaderExceptionTest() $project = 'project-309310695'; $targetSslProxiesSetProxyHeaderRequestResource = new TargetSslProxiesSetProxyHeaderRequest(); $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->setProxyHeader($project, $targetSslProxiesSetProxyHeaderRequestResource, $targetSslProxy); + $response = $gapicClient->setProxyHeader($project, $targetSslProxiesSetProxyHeaderRequestResource, $targetSslProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -854,7 +854,7 @@ public function setSslCertificatesTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -873,7 +873,7 @@ public function setSslCertificatesTest() $project = 'project-309310695'; $targetSslProxiesSetSslCertificatesRequestResource = new TargetSslProxiesSetSslCertificatesRequest(); $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->setSslCertificates($project, $targetSslProxiesSetSslCertificatesRequestResource, $targetSslProxy); + $response = $gapicClient->setSslCertificates($project, $targetSslProxiesSetSslCertificatesRequestResource, $targetSslProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -919,7 +919,7 @@ public function setSslCertificatesExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -944,7 +944,7 @@ public function setSslCertificatesExceptionTest() $project = 'project-309310695'; $targetSslProxiesSetSslCertificatesRequestResource = new TargetSslProxiesSetSslCertificatesRequest(); $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->setSslCertificates($project, $targetSslProxiesSetSslCertificatesRequestResource, $targetSslProxy); + $response = $gapicClient->setSslCertificates($project, $targetSslProxiesSetSslCertificatesRequestResource, $targetSslProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -976,7 +976,7 @@ public function setSslPolicyTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -995,7 +995,7 @@ public function setSslPolicyTest() $project = 'project-309310695'; $sslPolicyReferenceResource = new SslPolicyReference(); $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->setSslPolicy($project, $sslPolicyReferenceResource, $targetSslProxy); + $response = $gapicClient->setSslPolicy($project, $sslPolicyReferenceResource, $targetSslProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -1041,7 +1041,7 @@ public function setSslPolicyExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1066,7 +1066,7 @@ public function setSslPolicyExceptionTest() $project = 'project-309310695'; $sslPolicyReferenceResource = new SslPolicyReference(); $targetSslProxy = 'targetSslProxy875666765'; - $response = $client->setSslPolicy($project, $sslPolicyReferenceResource, $targetSslProxy); + $response = $gapicClient->setSslPolicy($project, $sslPolicyReferenceResource, $targetSslProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/TargetTcpProxiesClientTest.php b/Compute/tests/Unit/V1/TargetTcpProxiesClientTest.php index 9fd92c5d22cb..b04d9b0cf76e 100644 --- a/Compute/tests/Unit/V1/TargetTcpProxiesClientTest.php +++ b/Compute/tests/Unit/V1/TargetTcpProxiesClientTest.php @@ -85,7 +85,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -103,7 +103,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $targetTcpProxy = 'targetTcpProxy503065442'; - $response = $client->delete($project, $targetTcpProxy); + $response = $gapicClient->delete($project, $targetTcpProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -147,7 +147,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -171,7 +171,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $targetTcpProxy = 'targetTcpProxy503065442'; - $response = $client->delete($project, $targetTcpProxy); + $response = $gapicClient->delete($project, $targetTcpProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -197,7 +197,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -225,7 +225,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $targetTcpProxy = 'targetTcpProxy503065442'; - $response = $client->get($project, $targetTcpProxy); + $response = $gapicClient->get($project, $targetTcpProxy); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -245,7 +245,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -263,8 +263,8 @@ public function getExceptionTest() $project = 'project-309310695'; $targetTcpProxy = 'targetTcpProxy503065442'; try { - $client->get($project, $targetTcpProxy); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $targetTcpProxy); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -287,7 +287,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -305,7 +305,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $targetTcpProxyResource = new TargetTcpProxy(); - $response = $client->insert($project, $targetTcpProxyResource); + $response = $gapicClient->insert($project, $targetTcpProxyResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -349,7 +349,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -373,7 +373,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $targetTcpProxyResource = new TargetTcpProxy(); - $response = $client->insert($project, $targetTcpProxyResource); + $response = $gapicClient->insert($project, $targetTcpProxyResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -399,7 +399,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -421,7 +421,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -442,7 +442,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -459,8 +459,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -483,7 +483,7 @@ public function setBackendServiceTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -502,7 +502,7 @@ public function setBackendServiceTest() $project = 'project-309310695'; $targetTcpProxiesSetBackendServiceRequestResource = new TargetTcpProxiesSetBackendServiceRequest(); $targetTcpProxy = 'targetTcpProxy503065442'; - $response = $client->setBackendService($project, $targetTcpProxiesSetBackendServiceRequestResource, $targetTcpProxy); + $response = $gapicClient->setBackendService($project, $targetTcpProxiesSetBackendServiceRequestResource, $targetTcpProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -548,7 +548,7 @@ public function setBackendServiceExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -573,7 +573,7 @@ public function setBackendServiceExceptionTest() $project = 'project-309310695'; $targetTcpProxiesSetBackendServiceRequestResource = new TargetTcpProxiesSetBackendServiceRequest(); $targetTcpProxy = 'targetTcpProxy503065442'; - $response = $client->setBackendService($project, $targetTcpProxiesSetBackendServiceRequestResource, $targetTcpProxy); + $response = $gapicClient->setBackendService($project, $targetTcpProxiesSetBackendServiceRequestResource, $targetTcpProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -605,7 +605,7 @@ public function setProxyHeaderTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -624,7 +624,7 @@ public function setProxyHeaderTest() $project = 'project-309310695'; $targetTcpProxiesSetProxyHeaderRequestResource = new TargetTcpProxiesSetProxyHeaderRequest(); $targetTcpProxy = 'targetTcpProxy503065442'; - $response = $client->setProxyHeader($project, $targetTcpProxiesSetProxyHeaderRequestResource, $targetTcpProxy); + $response = $gapicClient->setProxyHeader($project, $targetTcpProxiesSetProxyHeaderRequestResource, $targetTcpProxy); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -670,7 +670,7 @@ public function setProxyHeaderExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -695,7 +695,7 @@ public function setProxyHeaderExceptionTest() $project = 'project-309310695'; $targetTcpProxiesSetProxyHeaderRequestResource = new TargetTcpProxiesSetProxyHeaderRequest(); $targetTcpProxy = 'targetTcpProxy503065442'; - $response = $client->setProxyHeader($project, $targetTcpProxiesSetProxyHeaderRequestResource, $targetTcpProxy); + $response = $gapicClient->setProxyHeader($project, $targetTcpProxiesSetProxyHeaderRequestResource, $targetTcpProxy); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { diff --git a/Compute/tests/Unit/V1/TargetVpnGatewaysClientTest.php b/Compute/tests/Unit/V1/TargetVpnGatewaysClientTest.php index fae62c0c99f2..4c798a13e964 100644 --- a/Compute/tests/Unit/V1/TargetVpnGatewaysClientTest.php +++ b/Compute/tests/Unit/V1/TargetVpnGatewaysClientTest.php @@ -79,7 +79,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -100,7 +100,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -123,7 +123,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -140,8 +140,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -164,7 +164,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -183,7 +183,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetVpnGateway = 'targetVpnGateway-4358069'; - $response = $client->delete($project, $region, $targetVpnGateway); + $response = $gapicClient->delete($project, $region, $targetVpnGateway); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -230,7 +230,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -255,7 +255,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetVpnGateway = 'targetVpnGateway-4358069'; - $response = $client->delete($project, $region, $targetVpnGateway); + $response = $gapicClient->delete($project, $region, $targetVpnGateway); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -281,7 +281,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -310,7 +310,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetVpnGateway = 'targetVpnGateway-4358069'; - $response = $client->get($project, $region, $targetVpnGateway); + $response = $gapicClient->get($project, $region, $targetVpnGateway); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -332,7 +332,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -351,8 +351,8 @@ public function getExceptionTest() $region = 'region-934795532'; $targetVpnGateway = 'targetVpnGateway-4358069'; try { - $client->get($project, $region, $targetVpnGateway); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $targetVpnGateway); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -375,7 +375,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -394,7 +394,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetVpnGatewayResource = new TargetVpnGateway(); - $response = $client->insert($project, $region, $targetVpnGatewayResource); + $response = $gapicClient->insert($project, $region, $targetVpnGatewayResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -441,7 +441,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -466,7 +466,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $targetVpnGatewayResource = new TargetVpnGateway(); - $response = $client->insert($project, $region, $targetVpnGatewayResource); + $response = $gapicClient->insert($project, $region, $targetVpnGatewayResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -492,7 +492,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -515,7 +515,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -538,7 +538,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -556,8 +556,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/UrlMapsClientTest.php b/Compute/tests/Unit/V1/UrlMapsClientTest.php index 6f3b2b68c0c3..d5a824b19d35 100644 --- a/Compute/tests/Unit/V1/UrlMapsClientTest.php +++ b/Compute/tests/Unit/V1/UrlMapsClientTest.php @@ -82,7 +82,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -103,7 +103,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -126,7 +126,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -143,8 +143,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -167,7 +167,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -185,7 +185,7 @@ public function deleteTest() // Mock request $project = 'project-309310695'; $urlMap = 'urlMap-169850228'; - $response = $client->delete($project, $urlMap); + $response = $gapicClient->delete($project, $urlMap); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -229,7 +229,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -253,7 +253,7 @@ public function deleteExceptionTest() // Mock request $project = 'project-309310695'; $urlMap = 'urlMap-169850228'; - $response = $client->delete($project, $urlMap); + $response = $gapicClient->delete($project, $urlMap); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -279,7 +279,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -307,7 +307,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $urlMap = 'urlMap-169850228'; - $response = $client->get($project, $urlMap); + $response = $gapicClient->get($project, $urlMap); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -327,7 +327,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -345,8 +345,8 @@ public function getExceptionTest() $project = 'project-309310695'; $urlMap = 'urlMap-169850228'; try { - $client->get($project, $urlMap); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $urlMap); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -369,7 +369,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -387,7 +387,7 @@ public function insertTest() // Mock request $project = 'project-309310695'; $urlMapResource = new UrlMap(); - $response = $client->insert($project, $urlMapResource); + $response = $gapicClient->insert($project, $urlMapResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -431,7 +431,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -455,7 +455,7 @@ public function insertExceptionTest() // Mock request $project = 'project-309310695'; $urlMapResource = new UrlMap(); - $response = $client->insert($project, $urlMapResource); + $response = $gapicClient->insert($project, $urlMapResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -487,7 +487,7 @@ public function invalidateCacheTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -506,7 +506,7 @@ public function invalidateCacheTest() $cacheInvalidationRuleResource = new CacheInvalidationRule(); $project = 'project-309310695'; $urlMap = 'urlMap-169850228'; - $response = $client->invalidateCache($cacheInvalidationRuleResource, $project, $urlMap); + $response = $gapicClient->invalidateCache($cacheInvalidationRuleResource, $project, $urlMap); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -552,7 +552,7 @@ public function invalidateCacheExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -577,7 +577,7 @@ public function invalidateCacheExceptionTest() $cacheInvalidationRuleResource = new CacheInvalidationRule(); $project = 'project-309310695'; $urlMap = 'urlMap-169850228'; - $response = $client->invalidateCache($cacheInvalidationRuleResource, $project, $urlMap); + $response = $gapicClient->invalidateCache($cacheInvalidationRuleResource, $project, $urlMap); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -603,7 +603,7 @@ public function invalidateCacheExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -625,7 +625,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -646,7 +646,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -663,8 +663,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -687,7 +687,7 @@ public function patchTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -706,7 +706,7 @@ public function patchTest() $project = 'project-309310695'; $urlMap = 'urlMap-169850228'; $urlMapResource = new UrlMap(); - $response = $client->patch($project, $urlMap, $urlMapResource); + $response = $gapicClient->patch($project, $urlMap, $urlMapResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -752,7 +752,7 @@ public function patchExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -777,7 +777,7 @@ public function patchExceptionTest() $project = 'project-309310695'; $urlMap = 'urlMap-169850228'; $urlMapResource = new UrlMap(); - $response = $client->patch($project, $urlMap, $urlMapResource); + $response = $gapicClient->patch($project, $urlMap, $urlMapResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -809,7 +809,7 @@ public function updateTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -828,7 +828,7 @@ public function updateTest() $project = 'project-309310695'; $urlMap = 'urlMap-169850228'; $urlMapResource = new UrlMap(); - $response = $client->update($project, $urlMap, $urlMapResource); + $response = $gapicClient->update($project, $urlMap, $urlMapResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -874,7 +874,7 @@ public function updateExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -899,7 +899,7 @@ public function updateExceptionTest() $project = 'project-309310695'; $urlMap = 'urlMap-169850228'; $urlMapResource = new UrlMap(); - $response = $client->update($project, $urlMap, $urlMapResource); + $response = $gapicClient->update($project, $urlMap, $urlMapResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -925,7 +925,7 @@ public function updateExceptionTest() public function validateTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -936,7 +936,7 @@ public function validateTest() $project = 'project-309310695'; $urlMap = 'urlMap-169850228'; $urlMapsValidateRequestResource = new UrlMapsValidateRequest(); - $response = $client->validate($project, $urlMap, $urlMapsValidateRequestResource); + $response = $gapicClient->validate($project, $urlMap, $urlMapsValidateRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -958,7 +958,7 @@ public function validateTest() public function validateExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -977,8 +977,8 @@ public function validateExceptionTest() $urlMap = 'urlMap-169850228'; $urlMapsValidateRequestResource = new UrlMapsValidateRequest(); try { - $client->validate($project, $urlMap, $urlMapsValidateRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->validate($project, $urlMap, $urlMapsValidateRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/VpnGatewaysClientTest.php b/Compute/tests/Unit/V1/VpnGatewaysClientTest.php index c36031729b1e..400d13afeba2 100644 --- a/Compute/tests/Unit/V1/VpnGatewaysClientTest.php +++ b/Compute/tests/Unit/V1/VpnGatewaysClientTest.php @@ -83,7 +83,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -104,7 +104,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -127,7 +127,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -144,8 +144,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -168,7 +168,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -187,7 +187,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $vpnGateway = 'vpnGateway-1203928583'; - $response = $client->delete($project, $region, $vpnGateway); + $response = $gapicClient->delete($project, $region, $vpnGateway); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -234,7 +234,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -259,7 +259,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $vpnGateway = 'vpnGateway-1203928583'; - $response = $client->delete($project, $region, $vpnGateway); + $response = $gapicClient->delete($project, $region, $vpnGateway); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -285,7 +285,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -316,7 +316,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $vpnGateway = 'vpnGateway-1203928583'; - $response = $client->get($project, $region, $vpnGateway); + $response = $gapicClient->get($project, $region, $vpnGateway); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -338,7 +338,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -357,8 +357,8 @@ public function getExceptionTest() $region = 'region-934795532'; $vpnGateway = 'vpnGateway-1203928583'; try { - $client->get($project, $region, $vpnGateway); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $vpnGateway); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -375,7 +375,7 @@ public function getExceptionTest() public function getStatusTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -386,7 +386,7 @@ public function getStatusTest() $project = 'project-309310695'; $region = 'region-934795532'; $vpnGateway = 'vpnGateway-1203928583'; - $response = $client->getStatus($project, $region, $vpnGateway); + $response = $gapicClient->getStatus($project, $region, $vpnGateway); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -408,7 +408,7 @@ public function getStatusTest() public function getStatusExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -427,8 +427,8 @@ public function getStatusExceptionTest() $region = 'region-934795532'; $vpnGateway = 'vpnGateway-1203928583'; try { - $client->getStatus($project, $region, $vpnGateway); - // If the $client method call did not throw, fail the test + $gapicClient->getStatus($project, $region, $vpnGateway); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -451,7 +451,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -470,7 +470,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $vpnGatewayResource = new VpnGateway(); - $response = $client->insert($project, $region, $vpnGatewayResource); + $response = $gapicClient->insert($project, $region, $vpnGatewayResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -517,7 +517,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -542,7 +542,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $vpnGatewayResource = new VpnGateway(); - $response = $client->insert($project, $region, $vpnGatewayResource); + $response = $gapicClient->insert($project, $region, $vpnGatewayResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -568,7 +568,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -591,7 +591,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -614,7 +614,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -632,8 +632,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -656,7 +656,7 @@ public function setLabelsTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -676,7 +676,7 @@ public function setLabelsTest() $region = 'region-934795532'; $regionSetLabelsRequestResource = new RegionSetLabelsRequest(); $resource = 'resource-341064690'; - $response = $client->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); + $response = $gapicClient->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -725,7 +725,7 @@ public function setLabelsExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -751,7 +751,7 @@ public function setLabelsExceptionTest() $region = 'region-934795532'; $regionSetLabelsRequestResource = new RegionSetLabelsRequest(); $resource = 'resource-341064690'; - $response = $client->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); + $response = $gapicClient->setLabels($project, $region, $regionSetLabelsRequestResource, $resource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -777,7 +777,7 @@ public function setLabelsExceptionTest() public function testIamPermissionsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -789,7 +789,7 @@ public function testIamPermissionsTest() $region = 'region-934795532'; $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); - $response = $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + $response = $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -813,7 +813,7 @@ public function testIamPermissionsTest() public function testIamPermissionsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -833,8 +833,8 @@ public function testIamPermissionsExceptionTest() $resource = 'resource-341064690'; $testPermissionsRequestResource = new TestPermissionsRequest(); try { - $client->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); - // If the $client method call did not throw, fail the test + $gapicClient->testIamPermissions($project, $region, $resource, $testPermissionsRequestResource); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/VpnTunnelsClientTest.php b/Compute/tests/Unit/V1/VpnTunnelsClientTest.php index bc86b216dbfd..515413803dd4 100644 --- a/Compute/tests/Unit/V1/VpnTunnelsClientTest.php +++ b/Compute/tests/Unit/V1/VpnTunnelsClientTest.php @@ -79,7 +79,7 @@ private function createClient(array $options = []) public function aggregatedListTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -100,7 +100,7 @@ public function aggregatedListTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->aggregatedList($project); + $response = $gapicClient->aggregatedList($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -123,7 +123,7 @@ public function aggregatedListTest() public function aggregatedListExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -140,8 +140,8 @@ public function aggregatedListExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->aggregatedList($project); - // If the $client method call did not throw, fail the test + $gapicClient->aggregatedList($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -164,7 +164,7 @@ public function deleteTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -183,7 +183,7 @@ public function deleteTest() $project = 'project-309310695'; $region = 'region-934795532'; $vpnTunnel = 'vpnTunnel-2003662317'; - $response = $client->delete($project, $region, $vpnTunnel); + $response = $gapicClient->delete($project, $region, $vpnTunnel); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -230,7 +230,7 @@ public function deleteExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -255,7 +255,7 @@ public function deleteExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $vpnTunnel = 'vpnTunnel-2003662317'; - $response = $client->delete($project, $region, $vpnTunnel); + $response = $gapicClient->delete($project, $region, $vpnTunnel); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -281,7 +281,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -332,7 +332,7 @@ public function getTest() $project = 'project-309310695'; $region = 'region-934795532'; $vpnTunnel = 'vpnTunnel-2003662317'; - $response = $client->get($project, $region, $vpnTunnel); + $response = $gapicClient->get($project, $region, $vpnTunnel); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -354,7 +354,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -373,8 +373,8 @@ public function getExceptionTest() $region = 'region-934795532'; $vpnTunnel = 'vpnTunnel-2003662317'; try { - $client->get($project, $region, $vpnTunnel); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $region, $vpnTunnel); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -397,7 +397,7 @@ public function insertTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -416,7 +416,7 @@ public function insertTest() $project = 'project-309310695'; $region = 'region-934795532'; $vpnTunnelResource = new VpnTunnel(); - $response = $client->insert($project, $region, $vpnTunnelResource); + $response = $gapicClient->insert($project, $region, $vpnTunnelResource); $this->assertFalse($response->isDone()); $apiRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($apiRequests)); @@ -463,7 +463,7 @@ public function insertExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -488,7 +488,7 @@ public function insertExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; $vpnTunnelResource = new VpnTunnel(); - $response = $client->insert($project, $region, $vpnTunnelResource); + $response = $gapicClient->insert($project, $region, $vpnTunnelResource); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); try { @@ -514,7 +514,7 @@ public function insertExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -537,7 +537,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $region = 'region-934795532'; - $response = $client->list($project, $region); + $response = $gapicClient->list($project, $region); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -560,7 +560,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -578,8 +578,8 @@ public function listExceptionTest() $project = 'project-309310695'; $region = 'region-934795532'; try { - $client->list($project, $region); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $region); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/ZoneOperationsClientTest.php b/Compute/tests/Unit/V1/ZoneOperationsClientTest.php index 806290ea3f75..4b1540d80dc0 100644 --- a/Compute/tests/Unit/V1/ZoneOperationsClientTest.php +++ b/Compute/tests/Unit/V1/ZoneOperationsClientTest.php @@ -74,7 +74,7 @@ private function createClient(array $options = []) public function deleteTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -85,7 +85,7 @@ public function deleteTest() $operation = 'operation1662702951'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->delete($operation, $project, $zone); + $response = $gapicClient->delete($operation, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -107,7 +107,7 @@ public function deleteTest() public function deleteExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -126,8 +126,8 @@ public function deleteExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->delete($operation, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->delete($operation, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -144,7 +144,7 @@ public function deleteExceptionTest() public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -197,7 +197,7 @@ public function getTest() $operation = 'operation1662702951'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($operation, $project, $zone); + $response = $gapicClient->get($operation, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -219,7 +219,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -238,8 +238,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($operation, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($operation, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -256,7 +256,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -279,7 +279,7 @@ public function listTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->list($project, $zone); + $response = $gapicClient->list($project, $zone); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -302,7 +302,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -320,8 +320,8 @@ public function listExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->list($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->list($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -338,7 +338,7 @@ public function listExceptionTest() public function waitTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -391,7 +391,7 @@ public function waitTest() $operation = 'operation1662702951'; $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->wait($operation, $project, $zone); + $response = $gapicClient->wait($operation, $project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -413,7 +413,7 @@ public function waitTest() public function waitExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -432,8 +432,8 @@ public function waitExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->wait($operation, $project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->wait($operation, $project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); diff --git a/Compute/tests/Unit/V1/ZonesClientTest.php b/Compute/tests/Unit/V1/ZonesClientTest.php index 82b07aaef815..d0804ee5ea67 100644 --- a/Compute/tests/Unit/V1/ZonesClientTest.php +++ b/Compute/tests/Unit/V1/ZonesClientTest.php @@ -73,7 +73,7 @@ private function createClient(array $options = []) public function getTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -101,7 +101,7 @@ public function getTest() // Mock request $project = 'project-309310695'; $zone = 'zone3744684'; - $response = $client->get($project, $zone); + $response = $gapicClient->get($project, $zone); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -121,7 +121,7 @@ public function getTest() public function getExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -139,8 +139,8 @@ public function getExceptionTest() $project = 'project-309310695'; $zone = 'zone3744684'; try { - $client->get($project, $zone); - // If the $client method call did not throw, fail the test + $gapicClient->get($project, $zone); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -157,7 +157,7 @@ public function getExceptionTest() public function listTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -179,7 +179,7 @@ public function listTest() $transport->addResponse($expectedResponse); // Mock request $project = 'project-309310695'; - $response = $client->list($project); + $response = $gapicClient->list($project); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -200,7 +200,7 @@ public function listTest() public function listExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -217,8 +217,8 @@ public function listExceptionTest() // Mock request $project = 'project-309310695'; try { - $client->list($project); - // If the $client method call did not throw, fail the test + $gapicClient->list($project); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode());