Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* 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.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* 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.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_NetworkServices_AuditConfig');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_NetworkServices_AuditLogConfig');

View File

@@ -0,0 +1,418 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class AuthzExtension extends \Google\Collection
{
/**
* Default value. Do not use.
*/
public const LOAD_BALANCING_SCHEME_LOAD_BALANCING_SCHEME_UNSPECIFIED = 'LOAD_BALANCING_SCHEME_UNSPECIFIED';
/**
* Signifies that this is used for Internal HTTP(S) Load Balancing.
*/
public const LOAD_BALANCING_SCHEME_INTERNAL_MANAGED = 'INTERNAL_MANAGED';
/**
* Signifies that this is used for External Managed HTTP(S) Load Balancing.
*/
public const LOAD_BALANCING_SCHEME_EXTERNAL_MANAGED = 'EXTERNAL_MANAGED';
/**
* Not specified.
*/
public const WIRE_FORMAT_WIRE_FORMAT_UNSPECIFIED = 'WIRE_FORMAT_UNSPECIFIED';
/**
* The extension service uses ext_proc gRPC API over a gRPC stream. This is
* the default value if the wire format is not specified. The backend service
* for the extension must use HTTP2 or H2C as the protocol. All
* `supported_events` for a client request are sent as part of the same gRPC
* stream.
*/
public const WIRE_FORMAT_EXT_PROC_GRPC = 'EXT_PROC_GRPC';
/**
* The extension service uses Envoy's `ext_authz` gRPC API. The backend
* service for the extension must use HTTP2 or H2C as the protocol.
* `EXT_AUTHZ_GRPC` is only supported for regional `AuthzExtension` resources.
*/
public const WIRE_FORMAT_EXT_AUTHZ_GRPC = 'EXT_AUTHZ_GRPC';
protected $collection_key = 'forwardHeaders';
/**
* Required. The `:authority` header in the gRPC request sent from Envoy to
* the extension service.
*
* @var string
*/
public $authority;
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A human-readable description of the resource.
*
* @var string
*/
public $description;
/**
* Optional. Determines how the proxy behaves if the call to the extension
* fails or times out. When set to `TRUE`, request or response processing
* continues without error. Any subsequent extensions in the extension chain
* are also executed. When set to `FALSE` or the default setting of `FALSE` is
* used, one of the following happens: * If response headers have not been
* delivered to the downstream client, a generic 500 error is returned to the
* client. The error response can be tailored by configuring a custom error
* response in the load balancer. * If response headers have been delivered,
* then the HTTP stream to the downstream client is reset.
*
* @var bool
*/
public $failOpen;
/**
* Optional. List of the HTTP headers to forward to the extension (from the
* client). If omitted, all headers are sent. Each element is a string
* indicating the header name.
*
* @var string[]
*/
public $forwardHeaders;
/**
* Optional. Set of labels associated with the `AuthzExtension` resource. The
* format must comply with [the requirements for
* labels](/compute/docs/labeling-resources#requirements) for Google Cloud
* resources.
*
* @var string[]
*/
public $labels;
/**
* Required. All backend services and forwarding rules referenced by this
* extension must share the same load balancing scheme. Supported values:
* `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
* [Backend services overview](https://cloud.google.com/load-
* balancing/docs/backend-service).
*
* @var string
*/
public $loadBalancingScheme;
/**
* Optional. The metadata provided here is included as part of the
* `metadata_context` (of type `google.protobuf.Struct`) in the
* `ProcessingRequest` message sent to the extension server. The metadata is
* available under the namespace `com.google.authz_extension.`. The following
* variables are supported in the metadata Struct: `{forwarding_rule_id}` -
* substituted with the forwarding rule's fully qualified resource name.
*
* @var array[]
*/
public $metadata;
/**
* Required. Identifier. Name of the `AuthzExtension` resource in the
* following format: `projects/{project}/locations/{location}/authzExtensions/
* {authz_extension}`.
*
* @var string
*/
public $name;
/**
* Required. The reference to the service that runs the extension. To
* configure a callout extension, `service` must be a fully-qualified
* reference to a [backend service](https://cloud.google.com/compute/docs/refe
* rence/rest/v1/backendServices) in the format: `https://www.googleapis.com/c
* ompute/v1/projects/{project}/regions/{region}/backendServices/{backendServi
* ce}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/ba
* ckendServices/{backendService}`.
*
* @var string
*/
public $service;
/**
* Required. Specifies the timeout for each individual message on the stream.
* The timeout must be between 10-10000 milliseconds.
*
* @var string
*/
public $timeout;
/**
* Output only. The timestamp when the resource was updated.
*
* @var string
*/
public $updateTime;
/**
* Optional. The format of communication supported by the callout extension.
* This field is supported only for regional `AuthzExtension` resources. If
* not specified, the default value `EXT_PROC_GRPC` is used. Global
* `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
*
* @var string
*/
public $wireFormat;
/**
* Required. The `:authority` header in the gRPC request sent from Envoy to
* the extension service.
*
* @param string $authority
*/
public function setAuthority($authority)
{
$this->authority = $authority;
}
/**
* @return string
*/
public function getAuthority()
{
return $this->authority;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A human-readable description of the resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Determines how the proxy behaves if the call to the extension
* fails or times out. When set to `TRUE`, request or response processing
* continues without error. Any subsequent extensions in the extension chain
* are also executed. When set to `FALSE` or the default setting of `FALSE` is
* used, one of the following happens: * If response headers have not been
* delivered to the downstream client, a generic 500 error is returned to the
* client. The error response can be tailored by configuring a custom error
* response in the load balancer. * If response headers have been delivered,
* then the HTTP stream to the downstream client is reset.
*
* @param bool $failOpen
*/
public function setFailOpen($failOpen)
{
$this->failOpen = $failOpen;
}
/**
* @return bool
*/
public function getFailOpen()
{
return $this->failOpen;
}
/**
* Optional. List of the HTTP headers to forward to the extension (from the
* client). If omitted, all headers are sent. Each element is a string
* indicating the header name.
*
* @param string[] $forwardHeaders
*/
public function setForwardHeaders($forwardHeaders)
{
$this->forwardHeaders = $forwardHeaders;
}
/**
* @return string[]
*/
public function getForwardHeaders()
{
return $this->forwardHeaders;
}
/**
* Optional. Set of labels associated with the `AuthzExtension` resource. The
* format must comply with [the requirements for
* labels](/compute/docs/labeling-resources#requirements) for Google Cloud
* resources.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Required. All backend services and forwarding rules referenced by this
* extension must share the same load balancing scheme. Supported values:
* `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
* [Backend services overview](https://cloud.google.com/load-
* balancing/docs/backend-service).
*
* Accepted values: LOAD_BALANCING_SCHEME_UNSPECIFIED, INTERNAL_MANAGED,
* EXTERNAL_MANAGED
*
* @param self::LOAD_BALANCING_SCHEME_* $loadBalancingScheme
*/
public function setLoadBalancingScheme($loadBalancingScheme)
{
$this->loadBalancingScheme = $loadBalancingScheme;
}
/**
* @return self::LOAD_BALANCING_SCHEME_*
*/
public function getLoadBalancingScheme()
{
return $this->loadBalancingScheme;
}
/**
* Optional. The metadata provided here is included as part of the
* `metadata_context` (of type `google.protobuf.Struct`) in the
* `ProcessingRequest` message sent to the extension server. The metadata is
* available under the namespace `com.google.authz_extension.`. The following
* variables are supported in the metadata Struct: `{forwarding_rule_id}` -
* substituted with the forwarding rule's fully qualified resource name.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Required. Identifier. Name of the `AuthzExtension` resource in the
* following format: `projects/{project}/locations/{location}/authzExtensions/
* {authz_extension}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The reference to the service that runs the extension. To
* configure a callout extension, `service` must be a fully-qualified
* reference to a [backend service](https://cloud.google.com/compute/docs/refe
* rence/rest/v1/backendServices) in the format: `https://www.googleapis.com/c
* ompute/v1/projects/{project}/regions/{region}/backendServices/{backendServi
* ce}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/ba
* ckendServices/{backendService}`.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* Required. Specifies the timeout for each individual message on the stream.
* The timeout must be between 10-10000 milliseconds.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* Output only. The timestamp when the resource was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Optional. The format of communication supported by the callout extension.
* This field is supported only for regional `AuthzExtension` resources. If
* not specified, the default value `EXT_PROC_GRPC` is used. Global
* `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
*
* Accepted values: WIRE_FORMAT_UNSPECIFIED, EXT_PROC_GRPC, EXT_AUTHZ_GRPC
*
* @param self::WIRE_FORMAT_* $wireFormat
*/
public function setWireFormat($wireFormat)
{
$this->wireFormat = $wireFormat;
}
/**
* @return self::WIRE_FORMAT_*
*/
public function getWireFormat()
{
return $this->wireFormat;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzExtension::class, 'Google_Service_NetworkServices_AuthzExtension');

View File

@@ -0,0 +1,216 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* 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.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `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. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* 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).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* 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.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `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. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_NetworkServices_Binding');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_NetworkServices_CancelOperationRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class EndpointMatcher extends \Google\Model
{
protected $metadataLabelMatcherType = EndpointMatcherMetadataLabelMatcher::class;
protected $metadataLabelMatcherDataType = '';
/**
* The matcher is based on node metadata presented by xDS clients.
*
* @param EndpointMatcherMetadataLabelMatcher $metadataLabelMatcher
*/
public function setMetadataLabelMatcher(EndpointMatcherMetadataLabelMatcher $metadataLabelMatcher)
{
$this->metadataLabelMatcher = $metadataLabelMatcher;
}
/**
* @return EndpointMatcherMetadataLabelMatcher
*/
public function getMetadataLabelMatcher()
{
return $this->metadataLabelMatcher;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndpointMatcher::class, 'Google_Service_NetworkServices_EndpointMatcher');

View File

@@ -0,0 +1,109 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class EndpointMatcherMetadataLabelMatcher extends \Google\Collection
{
/**
* Default value. Should not be used.
*/
public const METADATA_LABEL_MATCH_CRITERIA_METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED = 'METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED';
/**
* At least one of the Labels specified in the matcher should match the
* metadata presented by xDS client.
*/
public const METADATA_LABEL_MATCH_CRITERIA_MATCH_ANY = 'MATCH_ANY';
/**
* The metadata presented by the xDS client should contain all of the labels
* specified here.
*/
public const METADATA_LABEL_MATCH_CRITERIA_MATCH_ALL = 'MATCH_ALL';
protected $collection_key = 'metadataLabels';
/**
* Specifies how matching should be done. Supported values are: MATCH_ANY: At
* least one of the Labels specified in the matcher should match the metadata
* presented by xDS client. MATCH_ALL: The metadata presented by the xDS
* client should contain all of the labels specified here. The selection is
* determined based on the best match. For example, suppose there are three
* EndpointPolicy resources P1, P2 and P3 and if P1 has a the matcher as
* MATCH_ANY , P2 has MATCH_ALL , and P3 has MATCH_ALL . If a client with
* label connects, the config from P1 will be selected. If a client with label
* connects, the config from P2 will be selected. If a client with label
* connects, the config from P3 will be selected. If there is more than one
* best match, (for example, if a config P4 with selector exists and if a
* client with label connects), pick up the one with older creation time.
*
* @var string
*/
public $metadataLabelMatchCriteria;
protected $metadataLabelsType = EndpointMatcherMetadataLabelMatcherMetadataLabels::class;
protected $metadataLabelsDataType = 'array';
/**
* Specifies how matching should be done. Supported values are: MATCH_ANY: At
* least one of the Labels specified in the matcher should match the metadata
* presented by xDS client. MATCH_ALL: The metadata presented by the xDS
* client should contain all of the labels specified here. The selection is
* determined based on the best match. For example, suppose there are three
* EndpointPolicy resources P1, P2 and P3 and if P1 has a the matcher as
* MATCH_ANY , P2 has MATCH_ALL , and P3 has MATCH_ALL . If a client with
* label connects, the config from P1 will be selected. If a client with label
* connects, the config from P2 will be selected. If a client with label
* connects, the config from P3 will be selected. If there is more than one
* best match, (for example, if a config P4 with selector exists and if a
* client with label connects), pick up the one with older creation time.
*
* Accepted values: METADATA_LABEL_MATCH_CRITERIA_UNSPECIFIED, MATCH_ANY,
* MATCH_ALL
*
* @param self::METADATA_LABEL_MATCH_CRITERIA_* $metadataLabelMatchCriteria
*/
public function setMetadataLabelMatchCriteria($metadataLabelMatchCriteria)
{
$this->metadataLabelMatchCriteria = $metadataLabelMatchCriteria;
}
/**
* @return self::METADATA_LABEL_MATCH_CRITERIA_*
*/
public function getMetadataLabelMatchCriteria()
{
return $this->metadataLabelMatchCriteria;
}
/**
* The list of label value pairs that must match labels in the provided
* metadata based on filterMatchCriteria This list can have at most 64
* entries. The list can be empty if the match criteria is MATCH_ANY, to
* specify a wildcard match (i.e this matches any client).
*
* @param EndpointMatcherMetadataLabelMatcherMetadataLabels[] $metadataLabels
*/
public function setMetadataLabels($metadataLabels)
{
$this->metadataLabels = $metadataLabels;
}
/**
* @return EndpointMatcherMetadataLabelMatcherMetadataLabels[]
*/
public function getMetadataLabels()
{
return $this->metadataLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndpointMatcherMetadataLabelMatcher::class, 'Google_Service_NetworkServices_EndpointMatcherMetadataLabelMatcher');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class EndpointMatcherMetadataLabelMatcherMetadataLabels extends \Google\Model
{
/**
* Required. Label name presented as key in xDS Node Metadata.
*
* @var string
*/
public $labelName;
/**
* Required. Label value presented as value corresponding to the above key, in
* xDS Node Metadata.
*
* @var string
*/
public $labelValue;
/**
* Required. Label name presented as key in xDS Node Metadata.
*
* @param string $labelName
*/
public function setLabelName($labelName)
{
$this->labelName = $labelName;
}
/**
* @return string
*/
public function getLabelName()
{
return $this->labelName;
}
/**
* Required. Label value presented as value corresponding to the above key, in
* xDS Node Metadata.
*
* @param string $labelValue
*/
public function setLabelValue($labelValue)
{
$this->labelValue = $labelValue;
}
/**
* @return string
*/
public function getLabelValue()
{
return $this->labelValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndpointMatcherMetadataLabelMatcherMetadataLabels::class, 'Google_Service_NetworkServices_EndpointMatcherMetadataLabelMatcherMetadataLabels');

View File

@@ -0,0 +1,309 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class EndpointPolicy extends \Google\Model
{
/**
* Default value. Must not be used.
*/
public const TYPE_ENDPOINT_POLICY_TYPE_UNSPECIFIED = 'ENDPOINT_POLICY_TYPE_UNSPECIFIED';
/**
* Represents a proxy deployed as a sidecar.
*/
public const TYPE_SIDECAR_PROXY = 'SIDECAR_PROXY';
/**
* Represents a proxyless gRPC backend.
*/
public const TYPE_GRPC_SERVER = 'GRPC_SERVER';
/**
* Optional. This field specifies the URL of AuthorizationPolicy resource that
* applies authorization policies to the inbound traffic at the matched
* endpoints. Refer to Authorization. If this field is not specified,
* authorization is disabled(no authz checks) for this endpoint.
*
* @var string
*/
public $authorizationPolicy;
/**
* Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy
* can be set to specify the authentication for traffic from the proxy to the
* actual endpoints. More specifically, it is applied to the outgoing traffic
* from the proxy to the endpoint. This is typically used for sidecar model
* where the proxy identifies itself as endpoint to the control plane, with
* the connection between sidecar and endpoint requiring authentication. If
* this field is not set, authentication is disabled(open). Applicable only
* when EndpointPolicyType is SIDECAR_PROXY.
*
* @var string
*/
public $clientTlsPolicy;
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A free-text description of the resource. Max length 1024
* characters.
*
* @var string
*/
public $description;
protected $endpointMatcherType = EndpointMatcher::class;
protected $endpointMatcherDataType = '';
/**
* Optional. Set of label tags associated with the EndpointPolicy resource.
*
* @var string[]
*/
public $labels;
/**
* Identifier. Name of the EndpointPolicy resource. It matches pattern
* `projects/{project}/locations/endpointPolicies/{endpoint_policy}`.
*
* @var string
*/
public $name;
/**
* Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is
* used to determine the authentication policy to be applied to terminate the
* inbound traffic at the identified backends. If this field is not set,
* authentication is disabled(open) for this endpoint.
*
* @var string
*/
public $serverTlsPolicy;
protected $trafficPortSelectorType = TrafficPortSelector::class;
protected $trafficPortSelectorDataType = '';
/**
* Required. The type of endpoint policy. This is primarily used to validate
* the configuration.
*
* @var string
*/
public $type;
/**
* Output only. The timestamp when the resource was updated.
*
* @var string
*/
public $updateTime;
/**
* Optional. This field specifies the URL of AuthorizationPolicy resource that
* applies authorization policies to the inbound traffic at the matched
* endpoints. Refer to Authorization. If this field is not specified,
* authorization is disabled(no authz checks) for this endpoint.
*
* @param string $authorizationPolicy
*/
public function setAuthorizationPolicy($authorizationPolicy)
{
$this->authorizationPolicy = $authorizationPolicy;
}
/**
* @return string
*/
public function getAuthorizationPolicy()
{
return $this->authorizationPolicy;
}
/**
* Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy
* can be set to specify the authentication for traffic from the proxy to the
* actual endpoints. More specifically, it is applied to the outgoing traffic
* from the proxy to the endpoint. This is typically used for sidecar model
* where the proxy identifies itself as endpoint to the control plane, with
* the connection between sidecar and endpoint requiring authentication. If
* this field is not set, authentication is disabled(open). Applicable only
* when EndpointPolicyType is SIDECAR_PROXY.
*
* @param string $clientTlsPolicy
*/
public function setClientTlsPolicy($clientTlsPolicy)
{
$this->clientTlsPolicy = $clientTlsPolicy;
}
/**
* @return string
*/
public function getClientTlsPolicy()
{
return $this->clientTlsPolicy;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A free-text description of the resource. Max length 1024
* characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. A matcher that selects endpoints to which the policies should be
* applied.
*
* @param EndpointMatcher $endpointMatcher
*/
public function setEndpointMatcher(EndpointMatcher $endpointMatcher)
{
$this->endpointMatcher = $endpointMatcher;
}
/**
* @return EndpointMatcher
*/
public function getEndpointMatcher()
{
return $this->endpointMatcher;
}
/**
* Optional. Set of label tags associated with the EndpointPolicy resource.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. Name of the EndpointPolicy resource. It matches pattern
* `projects/{project}/locations/endpointPolicies/{endpoint_policy}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is
* used to determine the authentication policy to be applied to terminate the
* inbound traffic at the identified backends. If this field is not set,
* authentication is disabled(open) for this endpoint.
*
* @param string $serverTlsPolicy
*/
public function setServerTlsPolicy($serverTlsPolicy)
{
$this->serverTlsPolicy = $serverTlsPolicy;
}
/**
* @return string
*/
public function getServerTlsPolicy()
{
return $this->serverTlsPolicy;
}
/**
* Optional. Port selector for the (matched) endpoints. If no port selector is
* provided, the matched config is applied to all ports.
*
* @param TrafficPortSelector $trafficPortSelector
*/
public function setTrafficPortSelector(TrafficPortSelector $trafficPortSelector)
{
$this->trafficPortSelector = $trafficPortSelector;
}
/**
* @return TrafficPortSelector
*/
public function getTrafficPortSelector()
{
return $this->trafficPortSelector;
}
/**
* Required. The type of endpoint policy. This is primarily used to validate
* the configuration.
*
* Accepted values: ENDPOINT_POLICY_TYPE_UNSPECIFIED, SIDECAR_PROXY,
* GRPC_SERVER
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Output only. The timestamp when the resource was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EndpointPolicy::class, 'Google_Service_NetworkServices_EndpointPolicy');

View File

@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class Expr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_NetworkServices_Expr');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ExtensionChain extends \Google\Collection
{
protected $collection_key = 'extensions';
protected $extensionsType = ExtensionChainExtension::class;
protected $extensionsDataType = 'array';
protected $matchConditionType = ExtensionChainMatchCondition::class;
protected $matchConditionDataType = '';
/**
* Required. The name for this extension chain. The name is logged as part of
* the HTTP request logs. The name must conform with RFC-1034, is restricted
* to lower-cased letters, numbers and hyphens, and can have a maximum length
* of 63 characters. Additionally, the first character must be a letter and
* the last a letter or a number.
*
* @var string
*/
public $name;
/**
* Required. A set of extensions to execute for the matching request. At least
* one extension is required. Up to 3 extensions can be defined for each
* extension chain for `LbTrafficExtension` resource. `LbRouteExtension` and
* `LbEdgeExtension` chains are limited to 1 extension per extension chain.
*
* @param ExtensionChainExtension[] $extensions
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return ExtensionChainExtension[]
*/
public function getExtensions()
{
return $this->extensions;
}
/**
* Required. Conditions under which this chain is invoked for a request.
*
* @param ExtensionChainMatchCondition $matchCondition
*/
public function setMatchCondition(ExtensionChainMatchCondition $matchCondition)
{
$this->matchCondition = $matchCondition;
}
/**
* @return ExtensionChainMatchCondition
*/
public function getMatchCondition()
{
return $this->matchCondition;
}
/**
* Required. The name for this extension chain. The name is logged as part of
* the HTTP request logs. The name must conform with RFC-1034, is restricted
* to lower-cased letters, numbers and hyphens, and can have a maximum length
* of 63 characters. Additionally, the first character must be a letter and
* the last a letter or a number.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtensionChain::class, 'Google_Service_NetworkServices_ExtensionChain');

View File

@@ -0,0 +1,481 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ExtensionChainExtension extends \Google\Collection
{
/**
* Default value. Do not use.
*/
public const REQUEST_BODY_SEND_MODE_BODY_SEND_MODE_UNSPECIFIED = 'BODY_SEND_MODE_UNSPECIFIED';
/**
* Calls to the extension are executed in the streamed mode. Subsequent chunks
* will be sent only after the previous chunks have been processed. The
* content of the body chunks is sent one way to the extension. Extension may
* send modified chunks back. This is the default value if the processing mode
* is not specified.
*/
public const REQUEST_BODY_SEND_MODE_BODY_SEND_MODE_STREAMED = 'BODY_SEND_MODE_STREAMED';
/**
* Calls are executed in the full duplex mode. Subsequent chunks will be sent
* for processing without waiting for the response for the previous chunk or
* for the response for `REQUEST_HEADERS` event. Extension can freely modify
* or chunk the body contents. If the extension doesn't send the body contents
* back, the next extension in the chain or the upstream will receive an empty
* body.
*/
public const REQUEST_BODY_SEND_MODE_BODY_SEND_MODE_FULL_DUPLEX_STREAMED = 'BODY_SEND_MODE_FULL_DUPLEX_STREAMED';
/**
* Default value. Do not use.
*/
public const RESPONSE_BODY_SEND_MODE_BODY_SEND_MODE_UNSPECIFIED = 'BODY_SEND_MODE_UNSPECIFIED';
/**
* Calls to the extension are executed in the streamed mode. Subsequent chunks
* will be sent only after the previous chunks have been processed. The
* content of the body chunks is sent one way to the extension. Extension may
* send modified chunks back. This is the default value if the processing mode
* is not specified.
*/
public const RESPONSE_BODY_SEND_MODE_BODY_SEND_MODE_STREAMED = 'BODY_SEND_MODE_STREAMED';
/**
* Calls are executed in the full duplex mode. Subsequent chunks will be sent
* for processing without waiting for the response for the previous chunk or
* for the response for `REQUEST_HEADERS` event. Extension can freely modify
* or chunk the body contents. If the extension doesn't send the body contents
* back, the next extension in the chain or the upstream will receive an empty
* body.
*/
public const RESPONSE_BODY_SEND_MODE_BODY_SEND_MODE_FULL_DUPLEX_STREAMED = 'BODY_SEND_MODE_FULL_DUPLEX_STREAMED';
protected $collection_key = 'supportedEvents';
/**
* Optional. The `:authority` header in the gRPC request sent from Envoy to
* the extension service. Required for Callout extensions. This field is not
* supported for plugin extensions. Setting it results in a validation error.
*
* @var string
*/
public $authority;
/**
* Optional. Determines how the proxy behaves if the call to the extension
* fails or times out. When set to `TRUE`, request or response processing
* continues without error. Any subsequent extensions in the extension chain
* are also executed. When set to `FALSE` or the default setting of `FALSE` is
* used, one of the following happens: * If response headers have not been
* delivered to the downstream client, a generic 500 error is returned to the
* client. The error response can be tailored by configuring a custom error
* response in the load balancer. * If response headers have been delivered,
* then the HTTP stream to the downstream client is reset.
*
* @var bool
*/
public $failOpen;
/**
* Optional. List of the HTTP headers to forward to the extension (from the
* client or backend). If omitted, all headers are sent. Each element is a
* string indicating the header name.
*
* @var string[]
*/
public $forwardHeaders;
/**
* Optional. The metadata provided here is included as part of the
* `metadata_context` (of type `google.protobuf.Struct`) in the
* `ProcessingRequest` message sent to the extension server. For
* `AuthzExtension` resources, the metadata is available under the namespace
* `com.google.authz_extension.`. For other types of extensions, the metadata
* is available under the namespace `com.google....`. For example:
* `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The
* following variables are supported in the metadata: `{forwarding_rule_id}` -
* substituted with the forwarding rule's fully qualified resource name. This
* field must not be set for plugin extensions. Setting it results in a
* validation error. You can set metadata at either the resource level or the
* extension level. The extension level metadata is recommended because you
* can pass a different set of metadata through each extension to the backend.
* This field is subject to following limitations: * The total size of the
* metadata must be less than 1KiB. * The total number of keys in the metadata
* must be less than 16. * The length of each key must be less than 64
* characters. * The length of each value must be less than 1024 characters. *
* All values must be strings.
*
* @var array[]
*/
public $metadata;
/**
* Optional. The name for this extension. The name is logged as part of the
* HTTP request logs. The name must conform with RFC-1034, is restricted to
* lower-cased letters, numbers and hyphens, and can have a maximum length of
* 63 characters. Additionally, the first character must be a letter and the
* last a letter or a number. This field is required except for
* AuthzExtension.
*
* @var string
*/
public $name;
/**
* Optional. When set to `TRUE`, enables `observability_mode` on the
* `ext_proc` filter. This makes `ext_proc` calls asynchronous. Envoy doesn't
* check for the response from `ext_proc` calls. For more information about
* the filter, see: https://www.envoyproxy.io/docs/envoy/v1.32.3/api-
* v3/extensions/filters/http/ext_proc/v3/ext_proc.proto#extensions-filters-
* http-ext-proc-v3-externalprocessor This field is helpful when you want to
* try out the extension in async log-only mode. Supported by regional
* `LbTrafficExtension` and `LbRouteExtension` resources. Only `STREAMED`
* (default) body processing mode is supported.
*
* @var bool
*/
public $observabilityMode;
/**
* Optional. Configures the send mode for request body processing. The field
* can only be set if `supported_events` includes `REQUEST_BODY`. If
* `supported_events` includes `REQUEST_BODY`, but `request_body_send_mode` is
* unset, the default value `STREAMED` is used. When this field is set to
* `FULL_DUPLEX_STREAMED`, `supported_events` must include both `REQUEST_BODY`
* and `REQUEST_TRAILERS`. This field can be set only for `LbTrafficExtension`
* and `LbRouteExtension` resources, and only when the `service` field of the
* extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode is
* supported for `LbRouteExtension` resources.
*
* @var string
*/
public $requestBodySendMode;
/**
* Optional. Configures the send mode for response processing. If unspecified,
* the default value `STREAMED` is used. The field can only be set if
* `supported_events` includes `RESPONSE_BODY`. If `supported_events` includes
* `RESPONSE_BODY`, but `response_body_send_mode` is unset, the default value
* `STREAMED` is used. When this field is set to `FULL_DUPLEX_STREAMED`,
* `supported_events` must include both `RESPONSE_BODY` and
* `RESPONSE_TRAILERS`. This field can be set only for `LbTrafficExtension`
* resources, and only when the `service` field of the extension points to a
* `BackendService`.
*
* @var string
*/
public $responseBodySendMode;
/**
* Required. The reference to the service that runs the extension. To
* configure a callout extension, `service` must be a fully-qualified
* reference to a [backend service](https://cloud.google.com/compute/docs/refe
* rence/rest/v1/backendServices) in the format: `https://www.googleapis.com/c
* ompute/v1/projects/{project}/regions/{region}/backendServices/{backendServi
* ce}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/ba
* ckendServices/{backendService}`. To configure a plugin extension, `service`
* must be a reference to a [`WasmPlugin`
* resource](https://cloud.google.com/service-
* extensions/docs/reference/rest/v1beta1/projects.locations.wasmPlugins) in
* the format: `projects/{project}/locations/{location}/wasmPlugins/{plugin}`
* or `//networkservices.googleapis.com/projects/{project}/locations/{location
* }/wasmPlugins/{wasmPlugin}`. Plugin extensions are currently supported for
* the `LbTrafficExtension`, the `LbRouteExtension`, and the `LbEdgeExtension`
* resources.
*
* @var string
*/
public $service;
/**
* Optional. A set of events during request or response processing for which
* this extension is called. For the `LbTrafficExtension` resource, this field
* is required. For the `LbRouteExtension` resource, this field is optional.
* If unspecified, `REQUEST_HEADERS` event is assumed as supported. For the
* `LbEdgeExtension` resource, this field is required and must only contain
* `REQUEST_HEADERS` event. For the `AuthzExtension` resource, this field is
* optional. `REQUEST_HEADERS` is the only supported event. If unspecified,
* `REQUEST_HEADERS` event is assumed as supported.
*
* @var string[]
*/
public $supportedEvents;
/**
* Optional. Specifies the timeout for each individual message on the stream.
* The timeout must be between `10`-`10000` milliseconds. Required for callout
* extensions. This field is not supported for plugin extensions. Setting it
* results in a validation error.
*
* @var string
*/
public $timeout;
/**
* Optional. The `:authority` header in the gRPC request sent from Envoy to
* the extension service. Required for Callout extensions. This field is not
* supported for plugin extensions. Setting it results in a validation error.
*
* @param string $authority
*/
public function setAuthority($authority)
{
$this->authority = $authority;
}
/**
* @return string
*/
public function getAuthority()
{
return $this->authority;
}
/**
* Optional. Determines how the proxy behaves if the call to the extension
* fails or times out. When set to `TRUE`, request or response processing
* continues without error. Any subsequent extensions in the extension chain
* are also executed. When set to `FALSE` or the default setting of `FALSE` is
* used, one of the following happens: * If response headers have not been
* delivered to the downstream client, a generic 500 error is returned to the
* client. The error response can be tailored by configuring a custom error
* response in the load balancer. * If response headers have been delivered,
* then the HTTP stream to the downstream client is reset.
*
* @param bool $failOpen
*/
public function setFailOpen($failOpen)
{
$this->failOpen = $failOpen;
}
/**
* @return bool
*/
public function getFailOpen()
{
return $this->failOpen;
}
/**
* Optional. List of the HTTP headers to forward to the extension (from the
* client or backend). If omitted, all headers are sent. Each element is a
* string indicating the header name.
*
* @param string[] $forwardHeaders
*/
public function setForwardHeaders($forwardHeaders)
{
$this->forwardHeaders = $forwardHeaders;
}
/**
* @return string[]
*/
public function getForwardHeaders()
{
return $this->forwardHeaders;
}
/**
* Optional. The metadata provided here is included as part of the
* `metadata_context` (of type `google.protobuf.Struct`) in the
* `ProcessingRequest` message sent to the extension server. For
* `AuthzExtension` resources, the metadata is available under the namespace
* `com.google.authz_extension.`. For other types of extensions, the metadata
* is available under the namespace `com.google....`. For example:
* `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The
* following variables are supported in the metadata: `{forwarding_rule_id}` -
* substituted with the forwarding rule's fully qualified resource name. This
* field must not be set for plugin extensions. Setting it results in a
* validation error. You can set metadata at either the resource level or the
* extension level. The extension level metadata is recommended because you
* can pass a different set of metadata through each extension to the backend.
* This field is subject to following limitations: * The total size of the
* metadata must be less than 1KiB. * The total number of keys in the metadata
* must be less than 16. * The length of each key must be less than 64
* characters. * The length of each value must be less than 1024 characters. *
* All values must be strings.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Optional. The name for this extension. The name is logged as part of the
* HTTP request logs. The name must conform with RFC-1034, is restricted to
* lower-cased letters, numbers and hyphens, and can have a maximum length of
* 63 characters. Additionally, the first character must be a letter and the
* last a letter or a number. This field is required except for
* AuthzExtension.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. When set to `TRUE`, enables `observability_mode` on the
* `ext_proc` filter. This makes `ext_proc` calls asynchronous. Envoy doesn't
* check for the response from `ext_proc` calls. For more information about
* the filter, see: https://www.envoyproxy.io/docs/envoy/v1.32.3/api-
* v3/extensions/filters/http/ext_proc/v3/ext_proc.proto#extensions-filters-
* http-ext-proc-v3-externalprocessor This field is helpful when you want to
* try out the extension in async log-only mode. Supported by regional
* `LbTrafficExtension` and `LbRouteExtension` resources. Only `STREAMED`
* (default) body processing mode is supported.
*
* @param bool $observabilityMode
*/
public function setObservabilityMode($observabilityMode)
{
$this->observabilityMode = $observabilityMode;
}
/**
* @return bool
*/
public function getObservabilityMode()
{
return $this->observabilityMode;
}
/**
* Optional. Configures the send mode for request body processing. The field
* can only be set if `supported_events` includes `REQUEST_BODY`. If
* `supported_events` includes `REQUEST_BODY`, but `request_body_send_mode` is
* unset, the default value `STREAMED` is used. When this field is set to
* `FULL_DUPLEX_STREAMED`, `supported_events` must include both `REQUEST_BODY`
* and `REQUEST_TRAILERS`. This field can be set only for `LbTrafficExtension`
* and `LbRouteExtension` resources, and only when the `service` field of the
* extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode is
* supported for `LbRouteExtension` resources.
*
* Accepted values: BODY_SEND_MODE_UNSPECIFIED, BODY_SEND_MODE_STREAMED,
* BODY_SEND_MODE_FULL_DUPLEX_STREAMED
*
* @param self::REQUEST_BODY_SEND_MODE_* $requestBodySendMode
*/
public function setRequestBodySendMode($requestBodySendMode)
{
$this->requestBodySendMode = $requestBodySendMode;
}
/**
* @return self::REQUEST_BODY_SEND_MODE_*
*/
public function getRequestBodySendMode()
{
return $this->requestBodySendMode;
}
/**
* Optional. Configures the send mode for response processing. If unspecified,
* the default value `STREAMED` is used. The field can only be set if
* `supported_events` includes `RESPONSE_BODY`. If `supported_events` includes
* `RESPONSE_BODY`, but `response_body_send_mode` is unset, the default value
* `STREAMED` is used. When this field is set to `FULL_DUPLEX_STREAMED`,
* `supported_events` must include both `RESPONSE_BODY` and
* `RESPONSE_TRAILERS`. This field can be set only for `LbTrafficExtension`
* resources, and only when the `service` field of the extension points to a
* `BackendService`.
*
* Accepted values: BODY_SEND_MODE_UNSPECIFIED, BODY_SEND_MODE_STREAMED,
* BODY_SEND_MODE_FULL_DUPLEX_STREAMED
*
* @param self::RESPONSE_BODY_SEND_MODE_* $responseBodySendMode
*/
public function setResponseBodySendMode($responseBodySendMode)
{
$this->responseBodySendMode = $responseBodySendMode;
}
/**
* @return self::RESPONSE_BODY_SEND_MODE_*
*/
public function getResponseBodySendMode()
{
return $this->responseBodySendMode;
}
/**
* Required. The reference to the service that runs the extension. To
* configure a callout extension, `service` must be a fully-qualified
* reference to a [backend service](https://cloud.google.com/compute/docs/refe
* rence/rest/v1/backendServices) in the format: `https://www.googleapis.com/c
* ompute/v1/projects/{project}/regions/{region}/backendServices/{backendServi
* ce}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/ba
* ckendServices/{backendService}`. To configure a plugin extension, `service`
* must be a reference to a [`WasmPlugin`
* resource](https://cloud.google.com/service-
* extensions/docs/reference/rest/v1beta1/projects.locations.wasmPlugins) in
* the format: `projects/{project}/locations/{location}/wasmPlugins/{plugin}`
* or `//networkservices.googleapis.com/projects/{project}/locations/{location
* }/wasmPlugins/{wasmPlugin}`. Plugin extensions are currently supported for
* the `LbTrafficExtension`, the `LbRouteExtension`, and the `LbEdgeExtension`
* resources.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* Optional. A set of events during request or response processing for which
* this extension is called. For the `LbTrafficExtension` resource, this field
* is required. For the `LbRouteExtension` resource, this field is optional.
* If unspecified, `REQUEST_HEADERS` event is assumed as supported. For the
* `LbEdgeExtension` resource, this field is required and must only contain
* `REQUEST_HEADERS` event. For the `AuthzExtension` resource, this field is
* optional. `REQUEST_HEADERS` is the only supported event. If unspecified,
* `REQUEST_HEADERS` event is assumed as supported.
*
* @param string[] $supportedEvents
*/
public function setSupportedEvents($supportedEvents)
{
$this->supportedEvents = $supportedEvents;
}
/**
* @return string[]
*/
public function getSupportedEvents()
{
return $this->supportedEvents;
}
/**
* Optional. Specifies the timeout for each individual message on the stream.
* The timeout must be between `10`-`10000` milliseconds. Required for callout
* extensions. This field is not supported for plugin extensions. Setting it
* results in a validation error.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtensionChainExtension::class, 'Google_Service_NetworkServices_ExtensionChainExtension');

View File

@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ExtensionChainMatchCondition extends \Google\Model
{
/**
* Required. A Common Expression Language (CEL) expression that is used to
* match requests for which the extension chain is executed. For more
* information, see [CEL matcher language
* reference](https://cloud.google.com/service-extensions/docs/cel-matcher-
* language-reference).
*
* @var string
*/
public $celExpression;
/**
* Required. A Common Expression Language (CEL) expression that is used to
* match requests for which the extension chain is executed. For more
* information, see [CEL matcher language
* reference](https://cloud.google.com/service-extensions/docs/cel-matcher-
* language-reference).
*
* @param string $celExpression
*/
public function setCelExpression($celExpression)
{
$this->celExpression = $celExpression;
}
/**
* @return string
*/
public function getCelExpression()
{
return $this->celExpression;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtensionChainMatchCondition::class, 'Google_Service_NetworkServices_ExtensionChainMatchCondition');

View File

@@ -0,0 +1,545 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class Gateway extends \Google\Collection
{
/**
* Defaults to NONE.
*/
public const ENVOY_HEADERS_ENVOY_HEADERS_UNSPECIFIED = 'ENVOY_HEADERS_UNSPECIFIED';
/**
* Suppress envoy debug headers.
*/
public const ENVOY_HEADERS_NONE = 'NONE';
/**
* Envoy will insert default internal debug headers into upstream requests:
* x-envoy-attempt-count, x-envoy-is-timeout-retry, x-envoy-expected-rq-
* timeout-ms, x-envoy-original-path, x-envoy-upstream-stream-duration-ms
*/
public const ENVOY_HEADERS_DEBUG_HEADERS = 'DEBUG_HEADERS';
/**
* The type when IP version is not specified. Defaults to IPV4.
*/
public const IP_VERSION_IP_VERSION_UNSPECIFIED = 'IP_VERSION_UNSPECIFIED';
/**
* The type for IP version 4.
*/
public const IP_VERSION_IPV4 = 'IPV4';
/**
* The type for IP version 6.
*/
public const IP_VERSION_IPV6 = 'IPV6';
/**
* The routing mode is explicit; clients are configured to send traffic
* through the gateway. This is the default routing mode.
*/
public const ROUTING_MODE_EXPLICIT_ROUTING_MODE = 'EXPLICIT_ROUTING_MODE';
/**
* The routing mode is next-hop. Clients are unaware of the gateway, and a
* route (advanced route or other route type) can be configured to direct
* traffic from client to gateway. The gateway then acts as a next-hop to the
* destination.
*/
public const ROUTING_MODE_NEXT_HOP_ROUTING_MODE = 'NEXT_HOP_ROUTING_MODE';
/**
* The type of the customer managed gateway is unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* The type of the customer managed gateway is TrafficDirector Open Mesh.
*/
public const TYPE_OPEN_MESH = 'OPEN_MESH';
/**
* The type of the customer managed gateway is SecureWebGateway (SWG).
*/
public const TYPE_SECURE_WEB_GATEWAY = 'SECURE_WEB_GATEWAY';
protected $collection_key = 'ports';
/**
* Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
* receive the traffic. When no address is provided, an IP from the subnetwork
* is allocated This field only applies to gateways of type
* 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for
* IPv4 and :: for IPv6.
*
* @var string[]
*/
public $addresses;
/**
* Optional. A fully-qualified Certificates URL reference. The proxy presents
* a Certificate (selected based on SNI) when establishing a TLS connection.
* This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
*
* @var string[]
*/
public $certificateUrls;
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A free-text description of the resource. Max length 1024
* characters.
*
* @var string
*/
public $description;
/**
* Optional. Determines if envoy will insert internal debug headers into
* upstream requests. Other Envoy headers may still be injected. By default,
* envoy will not insert any debug headers.
*
* @var string
*/
public $envoyHeaders;
/**
* Optional. A fully-qualified GatewaySecurityPolicy URL reference. Defines
* how a server should apply security policy to inbound (VM to Proxy)
* initiated connections. For example:
* `projects/locations/gatewaySecurityPolicies/swg-policy`. This policy is
* specific to gateways of type 'SECURE_WEB_GATEWAY'.
*
* @var string
*/
public $gatewaySecurityPolicy;
/**
* Optional. The IP Version that will be used by this gateway. Valid options
* are IPV4 or IPV6. Default is IPV4.
*
* @var string
*/
public $ipVersion;
/**
* Optional. Set of label tags associated with the Gateway resource.
*
* @var string[]
*/
public $labels;
/**
* Identifier. Name of the Gateway resource. It matches pattern
* `projects/locations/gateways/`.
*
* @var string
*/
public $name;
/**
* Optional. The relative resource name identifying the VPC network that is
* using this configuration. For example:
* `projects/global/networks/network-1`. Currently, this field is specific to
* gateways of type 'SECURE_WEB_GATEWAY'.
*
* @var string
*/
public $network;
/**
* Required. One or more port numbers (1-65535), on which the Gateway will
* receive traffic. The proxy binds to the specified ports. Gateways of type
* 'SECURE_WEB_GATEWAY' are limited to 5 ports. Gateways of type 'OPEN_MESH'
* listen on 0.0.0.0 for IPv4 and :: for IPv6 and support multiple ports.
*
* @var int[]
*/
public $ports;
/**
* Optional. The routing mode of the Gateway. This field is configurable only
* for gateways of type SECURE_WEB_GATEWAY. This field is required for
* gateways of type SECURE_WEB_GATEWAY.
*
* @var string
*/
public $routingMode;
/**
* Optional. Scope determines how configuration across multiple Gateway
* instances are merged. The configuration for multiple Gateway instances with
* the same scope will be merged as presented as a single configuration to the
* proxy/load balancer. Max length 64 characters. Scope should start with a
* letter and can only have letters, numbers, hyphens.
*
* @var string
*/
public $scope;
/**
* Output only. Server-defined URL of this resource
*
* @var string
*/
public $selfLink;
/**
* Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how
* TLS traffic is terminated. If empty, TLS termination is disabled.
*
* @var string
*/
public $serverTlsPolicy;
/**
* Optional. The relative resource name identifying the subnetwork in which
* this SWG is allocated. For example: `projects/regions/us-
* central1/subnetworks/network-1` Currently, this field is specific to
* gateways of type 'SECURE_WEB_GATEWAY".
*
* @var string
*/
public $subnetwork;
/**
* Immutable. The type of the customer managed gateway. This field is
* required. If unspecified, an error is returned.
*
* @var string
*/
public $type;
/**
* Output only. The timestamp when the resource was updated.
*
* @var string
*/
public $updateTime;
/**
* Optional. Zero or one IPv4 or IPv6 address on which the Gateway will
* receive the traffic. When no address is provided, an IP from the subnetwork
* is allocated This field only applies to gateways of type
* 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for
* IPv4 and :: for IPv6.
*
* @param string[] $addresses
*/
public function setAddresses($addresses)
{
$this->addresses = $addresses;
}
/**
* @return string[]
*/
public function getAddresses()
{
return $this->addresses;
}
/**
* Optional. A fully-qualified Certificates URL reference. The proxy presents
* a Certificate (selected based on SNI) when establishing a TLS connection.
* This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
*
* @param string[] $certificateUrls
*/
public function setCertificateUrls($certificateUrls)
{
$this->certificateUrls = $certificateUrls;
}
/**
* @return string[]
*/
public function getCertificateUrls()
{
return $this->certificateUrls;
}
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A free-text description of the resource. Max length 1024
* characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Determines if envoy will insert internal debug headers into
* upstream requests. Other Envoy headers may still be injected. By default,
* envoy will not insert any debug headers.
*
* Accepted values: ENVOY_HEADERS_UNSPECIFIED, NONE, DEBUG_HEADERS
*
* @param self::ENVOY_HEADERS_* $envoyHeaders
*/
public function setEnvoyHeaders($envoyHeaders)
{
$this->envoyHeaders = $envoyHeaders;
}
/**
* @return self::ENVOY_HEADERS_*
*/
public function getEnvoyHeaders()
{
return $this->envoyHeaders;
}
/**
* Optional. A fully-qualified GatewaySecurityPolicy URL reference. Defines
* how a server should apply security policy to inbound (VM to Proxy)
* initiated connections. For example:
* `projects/locations/gatewaySecurityPolicies/swg-policy`. This policy is
* specific to gateways of type 'SECURE_WEB_GATEWAY'.
*
* @param string $gatewaySecurityPolicy
*/
public function setGatewaySecurityPolicy($gatewaySecurityPolicy)
{
$this->gatewaySecurityPolicy = $gatewaySecurityPolicy;
}
/**
* @return string
*/
public function getGatewaySecurityPolicy()
{
return $this->gatewaySecurityPolicy;
}
/**
* Optional. The IP Version that will be used by this gateway. Valid options
* are IPV4 or IPV6. Default is IPV4.
*
* Accepted values: IP_VERSION_UNSPECIFIED, IPV4, IPV6
*
* @param self::IP_VERSION_* $ipVersion
*/
public function setIpVersion($ipVersion)
{
$this->ipVersion = $ipVersion;
}
/**
* @return self::IP_VERSION_*
*/
public function getIpVersion()
{
return $this->ipVersion;
}
/**
* Optional. Set of label tags associated with the Gateway resource.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. Name of the Gateway resource. It matches pattern
* `projects/locations/gateways/`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The relative resource name identifying the VPC network that is
* using this configuration. For example:
* `projects/global/networks/network-1`. Currently, this field is specific to
* gateways of type 'SECURE_WEB_GATEWAY'.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Required. One or more port numbers (1-65535), on which the Gateway will
* receive traffic. The proxy binds to the specified ports. Gateways of type
* 'SECURE_WEB_GATEWAY' are limited to 5 ports. Gateways of type 'OPEN_MESH'
* listen on 0.0.0.0 for IPv4 and :: for IPv6 and support multiple ports.
*
* @param int[] $ports
*/
public function setPorts($ports)
{
$this->ports = $ports;
}
/**
* @return int[]
*/
public function getPorts()
{
return $this->ports;
}
/**
* Optional. The routing mode of the Gateway. This field is configurable only
* for gateways of type SECURE_WEB_GATEWAY. This field is required for
* gateways of type SECURE_WEB_GATEWAY.
*
* Accepted values: EXPLICIT_ROUTING_MODE, NEXT_HOP_ROUTING_MODE
*
* @param self::ROUTING_MODE_* $routingMode
*/
public function setRoutingMode($routingMode)
{
$this->routingMode = $routingMode;
}
/**
* @return self::ROUTING_MODE_*
*/
public function getRoutingMode()
{
return $this->routingMode;
}
/**
* Optional. Scope determines how configuration across multiple Gateway
* instances are merged. The configuration for multiple Gateway instances with
* the same scope will be merged as presented as a single configuration to the
* proxy/load balancer. Max length 64 characters. Scope should start with a
* letter and can only have letters, numbers, hyphens.
*
* @param string $scope
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return string
*/
public function getScope()
{
return $this->scope;
}
/**
* Output only. Server-defined URL of this resource
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how
* TLS traffic is terminated. If empty, TLS termination is disabled.
*
* @param string $serverTlsPolicy
*/
public function setServerTlsPolicy($serverTlsPolicy)
{
$this->serverTlsPolicy = $serverTlsPolicy;
}
/**
* @return string
*/
public function getServerTlsPolicy()
{
return $this->serverTlsPolicy;
}
/**
* Optional. The relative resource name identifying the subnetwork in which
* this SWG is allocated. For example: `projects/regions/us-
* central1/subnetworks/network-1` Currently, this field is specific to
* gateways of type 'SECURE_WEB_GATEWAY".
*
* @param string $subnetwork
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
/**
* Immutable. The type of the customer managed gateway. This field is
* required. If unspecified, an error is returned.
*
* Accepted values: TYPE_UNSPECIFIED, OPEN_MESH, SECURE_WEB_GATEWAY
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Output only. The timestamp when the resource was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Gateway::class, 'Google_Service_NetworkServices_Gateway');

View File

@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GatewayRouteView extends \Google\Model
{
/**
* Output only. Identifier. Full path name of the GatewayRouteView resource.
* Format: projects/{project_number}/locations/{location}/gateways/{gateway}/r
* outeViews/{route_view}
*
* @var string
*/
public $name;
/**
* Output only. The resource id for the route.
*
* @var string
*/
public $routeId;
/**
* Output only. Location where the route exists.
*
* @var string
*/
public $routeLocation;
/**
* Output only. Project number where the route exists.
*
* @var string
*/
public $routeProjectNumber;
/**
* Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
*
* @var string
*/
public $routeType;
/**
* Output only. Identifier. Full path name of the GatewayRouteView resource.
* Format: projects/{project_number}/locations/{location}/gateways/{gateway}/r
* outeViews/{route_view}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The resource id for the route.
*
* @param string $routeId
*/
public function setRouteId($routeId)
{
$this->routeId = $routeId;
}
/**
* @return string
*/
public function getRouteId()
{
return $this->routeId;
}
/**
* Output only. Location where the route exists.
*
* @param string $routeLocation
*/
public function setRouteLocation($routeLocation)
{
$this->routeLocation = $routeLocation;
}
/**
* @return string
*/
public function getRouteLocation()
{
return $this->routeLocation;
}
/**
* Output only. Project number where the route exists.
*
* @param string $routeProjectNumber
*/
public function setRouteProjectNumber($routeProjectNumber)
{
$this->routeProjectNumber = $routeProjectNumber;
}
/**
* @return string
*/
public function getRouteProjectNumber()
{
return $this->routeProjectNumber;
}
/**
* Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
*
* @param string $routeType
*/
public function setRouteType($routeType)
{
$this->routeType = $routeType;
}
/**
* @return string
*/
public function getRouteType()
{
return $this->routeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GatewayRouteView::class, 'Google_Service_NetworkServices_GatewayRouteView');

View File

@@ -0,0 +1,298 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRoute extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A free-text description of the resource. Max length 1024
* characters.
*
* @var string
*/
public $description;
/**
* Optional. Gateways defines a list of gateways this GrpcRoute is attached
* to, as one of the routing rules to route the requests served by the
* gateway. Each gateway reference should match the pattern:
* `projects/locations/gateways/`
*
* @var string[]
*/
public $gateways;
/**
* Required. Service hostnames with an optional port for which this route
* describes traffic. Format: [:] Hostname is the fully qualified domain name
* of a network host. This matches the RFC 1123 definition of a hostname with
* 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed
* with a wildcard label (`*.`). The wildcard label must appear by itself as
* the first label. Hostname can be "precise" which is a domain name without
* the terminating dot of a network host (e.g. `foo.example.com`) or
* "wildcard", which is a domain name prefixed with a single wildcard label
* (e.g. `*.example.com`). Note that as per RFC1035 and RFC1123, a label must
* consist of lower case alphanumeric characters or '-', and must start and
* end with an alphanumeric character. No other punctuation is allowed. The
* routes associated with a Mesh or Gateway must have unique hostnames. If you
* attempt to attach multiple routes with conflicting hostnames, the
* configuration will be rejected. For example, while it is acceptable for
* routes for the hostnames `*.foo.bar.com` and `*.bar.com` to be associated
* with the same route, it is not possible to associate two routes both with
* `*.bar.com` or both with `bar.com`. If a port is specified, then gRPC
* clients must use the channel URI with the port to match this rule (i.e.
* "xds:service:123"), otherwise they must supply the URI without a port (i.e.
* "xds:service").
*
* @var string[]
*/
public $hostnames;
/**
* Optional. Set of label tags associated with the GrpcRoute resource.
*
* @var string[]
*/
public $labels;
/**
* Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as
* one of the routing rules to route the requests served by the mesh. Each
* mesh reference should match the pattern: `projects/locations/meshes/`
*
* @var string[]
*/
public $meshes;
/**
* Identifier. Name of the GrpcRoute resource. It matches pattern
* `projects/locations/grpcRoutes/`
*
* @var string
*/
public $name;
protected $rulesType = GrpcRouteRouteRule::class;
protected $rulesDataType = 'array';
/**
* Output only. Server-defined URL of this resource
*
* @var string
*/
public $selfLink;
/**
* Output only. The timestamp when the resource was updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A free-text description of the resource. Max length 1024
* characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Gateways defines a list of gateways this GrpcRoute is attached
* to, as one of the routing rules to route the requests served by the
* gateway. Each gateway reference should match the pattern:
* `projects/locations/gateways/`
*
* @param string[] $gateways
*/
public function setGateways($gateways)
{
$this->gateways = $gateways;
}
/**
* @return string[]
*/
public function getGateways()
{
return $this->gateways;
}
/**
* Required. Service hostnames with an optional port for which this route
* describes traffic. Format: [:] Hostname is the fully qualified domain name
* of a network host. This matches the RFC 1123 definition of a hostname with
* 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed
* with a wildcard label (`*.`). The wildcard label must appear by itself as
* the first label. Hostname can be "precise" which is a domain name without
* the terminating dot of a network host (e.g. `foo.example.com`) or
* "wildcard", which is a domain name prefixed with a single wildcard label
* (e.g. `*.example.com`). Note that as per RFC1035 and RFC1123, a label must
* consist of lower case alphanumeric characters or '-', and must start and
* end with an alphanumeric character. No other punctuation is allowed. The
* routes associated with a Mesh or Gateway must have unique hostnames. If you
* attempt to attach multiple routes with conflicting hostnames, the
* configuration will be rejected. For example, while it is acceptable for
* routes for the hostnames `*.foo.bar.com` and `*.bar.com` to be associated
* with the same route, it is not possible to associate two routes both with
* `*.bar.com` or both with `bar.com`. If a port is specified, then gRPC
* clients must use the channel URI with the port to match this rule (i.e.
* "xds:service:123"), otherwise they must supply the URI without a port (i.e.
* "xds:service").
*
* @param string[] $hostnames
*/
public function setHostnames($hostnames)
{
$this->hostnames = $hostnames;
}
/**
* @return string[]
*/
public function getHostnames()
{
return $this->hostnames;
}
/**
* Optional. Set of label tags associated with the GrpcRoute resource.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Meshes defines a list of meshes this GrpcRoute is attached to, as
* one of the routing rules to route the requests served by the mesh. Each
* mesh reference should match the pattern: `projects/locations/meshes/`
*
* @param string[] $meshes
*/
public function setMeshes($meshes)
{
$this->meshes = $meshes;
}
/**
* @return string[]
*/
public function getMeshes()
{
return $this->meshes;
}
/**
* Identifier. Name of the GrpcRoute resource. It matches pattern
* `projects/locations/grpcRoutes/`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. A list of detailed rules defining how to route traffic. Within a
* single GrpcRoute, the GrpcRoute.RouteAction associated with the first
* matching GrpcRoute.RouteRule will be executed. At least one rule must be
* supplied.
*
* @param GrpcRouteRouteRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return GrpcRouteRouteRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* Output only. Server-defined URL of this resource
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Output only. The timestamp when the resource was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRoute::class, 'Google_Service_NetworkServices_GrpcRoute');

View File

@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRouteDestination extends \Google\Model
{
/**
* Required. The URL of a destination service to which to route traffic. Must
* refer to either a BackendService or ServiceDirectoryService.
*
* @var string
*/
public $serviceName;
/**
* Optional. Specifies the proportion of requests forwarded to the backend
* referenced by the serviceName field. This is computed as: -
* weight/Sum(weights in this destination list). For non-zero values, there
* may be some epsilon from the exact proportion defined here depending on the
* precision an implementation supports. If only one serviceName is specified
* and it has a weight greater than 0, 100% of the traffic is forwarded to
* that backend. If weights are specified for any one service name, they need
* to be specified for all of them. If weights are unspecified for all
* services, then, traffic is distributed in equal proportions to all of them.
*
* @var int
*/
public $weight;
/**
* Required. The URL of a destination service to which to route traffic. Must
* refer to either a BackendService or ServiceDirectoryService.
*
* @param string $serviceName
*/
public function setServiceName($serviceName)
{
$this->serviceName = $serviceName;
}
/**
* @return string
*/
public function getServiceName()
{
return $this->serviceName;
}
/**
* Optional. Specifies the proportion of requests forwarded to the backend
* referenced by the serviceName field. This is computed as: -
* weight/Sum(weights in this destination list). For non-zero values, there
* may be some epsilon from the exact proportion defined here depending on the
* precision an implementation supports. If only one serviceName is specified
* and it has a weight greater than 0, 100% of the traffic is forwarded to
* that backend. If weights are specified for any one service name, they need
* to be specified for all of them. If weights are unspecified for all
* services, then, traffic is distributed in equal proportions to all of them.
*
* @param int $weight
*/
public function setWeight($weight)
{
$this->weight = $weight;
}
/**
* @return int
*/
public function getWeight()
{
return $this->weight;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteDestination::class, 'Google_Service_NetworkServices_GrpcRouteDestination');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRouteFaultInjectionPolicy extends \Google\Model
{
protected $abortType = GrpcRouteFaultInjectionPolicyAbort::class;
protected $abortDataType = '';
protected $delayType = GrpcRouteFaultInjectionPolicyDelay::class;
protected $delayDataType = '';
/**
* The specification for aborting to client requests.
*
* @param GrpcRouteFaultInjectionPolicyAbort $abort
*/
public function setAbort(GrpcRouteFaultInjectionPolicyAbort $abort)
{
$this->abort = $abort;
}
/**
* @return GrpcRouteFaultInjectionPolicyAbort
*/
public function getAbort()
{
return $this->abort;
}
/**
* The specification for injecting delay to client requests.
*
* @param GrpcRouteFaultInjectionPolicyDelay $delay
*/
public function setDelay(GrpcRouteFaultInjectionPolicyDelay $delay)
{
$this->delay = $delay;
}
/**
* @return GrpcRouteFaultInjectionPolicyDelay
*/
public function getDelay()
{
return $this->delay;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteFaultInjectionPolicy::class, 'Google_Service_NetworkServices_GrpcRouteFaultInjectionPolicy');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRouteFaultInjectionPolicyAbort extends \Google\Model
{
/**
* The HTTP status code used to abort the request. The value must be between
* 200 and 599 inclusive.
*
* @var int
*/
public $httpStatus;
/**
* The percentage of traffic which will be aborted. The value must be between
* [0, 100]
*
* @var int
*/
public $percentage;
/**
* The HTTP status code used to abort the request. The value must be between
* 200 and 599 inclusive.
*
* @param int $httpStatus
*/
public function setHttpStatus($httpStatus)
{
$this->httpStatus = $httpStatus;
}
/**
* @return int
*/
public function getHttpStatus()
{
return $this->httpStatus;
}
/**
* The percentage of traffic which will be aborted. The value must be between
* [0, 100]
*
* @param int $percentage
*/
public function setPercentage($percentage)
{
$this->percentage = $percentage;
}
/**
* @return int
*/
public function getPercentage()
{
return $this->percentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteFaultInjectionPolicyAbort::class, 'Google_Service_NetworkServices_GrpcRouteFaultInjectionPolicyAbort');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRouteFaultInjectionPolicyDelay extends \Google\Model
{
/**
* Specify a fixed delay before forwarding the request.
*
* @var string
*/
public $fixedDelay;
/**
* The percentage of traffic on which delay will be injected. The value must
* be between [0, 100]
*
* @var int
*/
public $percentage;
/**
* Specify a fixed delay before forwarding the request.
*
* @param string $fixedDelay
*/
public function setFixedDelay($fixedDelay)
{
$this->fixedDelay = $fixedDelay;
}
/**
* @return string
*/
public function getFixedDelay()
{
return $this->fixedDelay;
}
/**
* The percentage of traffic on which delay will be injected. The value must
* be between [0, 100]
*
* @param int $percentage
*/
public function setPercentage($percentage)
{
$this->percentage = $percentage;
}
/**
* @return int
*/
public function getPercentage()
{
return $this->percentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteFaultInjectionPolicyDelay::class, 'Google_Service_NetworkServices_GrpcRouteFaultInjectionPolicyDelay');

View File

@@ -0,0 +1,109 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRouteHeaderMatch extends \Google\Model
{
/**
* Unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Will only match the exact value provided.
*/
public const TYPE_EXACT = 'EXACT';
/**
* Will match paths conforming to the prefix specified by value. RE2 syntax is
* supported.
*/
public const TYPE_REGULAR_EXPRESSION = 'REGULAR_EXPRESSION';
/**
* Required. The key of the header.
*
* @var string
*/
public $key;
/**
* Optional. Specifies how to match against the value of the header. If not
* specified, a default value of EXACT is used.
*
* @var string
*/
public $type;
/**
* Required. The value of the header.
*
* @var string
*/
public $value;
/**
* Required. The key of the header.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Optional. Specifies how to match against the value of the header. If not
* specified, a default value of EXACT is used.
*
* Accepted values: TYPE_UNSPECIFIED, EXACT, REGULAR_EXPRESSION
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Required. The value of the header.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteHeaderMatch::class, 'Google_Service_NetworkServices_GrpcRouteHeaderMatch');

View File

@@ -0,0 +1,137 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRouteMethodMatch extends \Google\Model
{
/**
* Unspecified.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Will only match the exact name provided.
*/
public const TYPE_EXACT = 'EXACT';
/**
* Will interpret grpc_method and grpc_service as regexes. RE2 syntax is
* supported.
*/
public const TYPE_REGULAR_EXPRESSION = 'REGULAR_EXPRESSION';
/**
* Optional. Specifies that matches are case sensitive. The default value is
* true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
*
* @var bool
*/
public $caseSensitive;
/**
* Required. Name of the method to match against. If unspecified, will match
* all methods.
*
* @var string
*/
public $grpcMethod;
/**
* Required. Name of the service to match against. If unspecified, will match
* all services.
*
* @var string
*/
public $grpcService;
/**
* Optional. Specifies how to match against the name. If not specified, a
* default value of "EXACT" is used.
*
* @var string
*/
public $type;
/**
* Optional. Specifies that matches are case sensitive. The default value is
* true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
*
* @param bool $caseSensitive
*/
public function setCaseSensitive($caseSensitive)
{
$this->caseSensitive = $caseSensitive;
}
/**
* @return bool
*/
public function getCaseSensitive()
{
return $this->caseSensitive;
}
/**
* Required. Name of the method to match against. If unspecified, will match
* all methods.
*
* @param string $grpcMethod
*/
public function setGrpcMethod($grpcMethod)
{
$this->grpcMethod = $grpcMethod;
}
/**
* @return string
*/
public function getGrpcMethod()
{
return $this->grpcMethod;
}
/**
* Required. Name of the service to match against. If unspecified, will match
* all services.
*
* @param string $grpcService
*/
public function setGrpcService($grpcService)
{
$this->grpcService = $grpcService;
}
/**
* @return string
*/
public function getGrpcService()
{
return $this->grpcService;
}
/**
* Optional. Specifies how to match against the name. If not specified, a
* default value of "EXACT" is used.
*
* Accepted values: TYPE_UNSPECIFIED, EXACT, REGULAR_EXPRESSION
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteMethodMatch::class, 'Google_Service_NetworkServices_GrpcRouteMethodMatch');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRouteRetryPolicy extends \Google\Collection
{
protected $collection_key = 'retryConditions';
/**
* Specifies the allowed number of retries. This number must be > 0. If not
* specified, default to 1.
*
* @var string
*/
public $numRetries;
/**
* - connect-failure: Router will retry on failures connecting to Backend
* Services, for example due to connection timeouts. - refused-stream: Router
* will retry if the backend service resets the stream with a REFUSED_STREAM
* error code. This reset type indicates that it is safe to retry. -
* cancelled: Router will retry if the gRPC status code in the response header
* is set to cancelled - deadline-exceeded: Router will retry if the gRPC
* status code in the response header is set to deadline-exceeded - resource-
* exhausted: Router will retry if the gRPC status code in the response header
* is set to resource-exhausted - unavailable: Router will retry if the gRPC
* status code in the response header is set to unavailable
*
* @var string[]
*/
public $retryConditions;
/**
* Specifies the allowed number of retries. This number must be > 0. If not
* specified, default to 1.
*
* @param string $numRetries
*/
public function setNumRetries($numRetries)
{
$this->numRetries = $numRetries;
}
/**
* @return string
*/
public function getNumRetries()
{
return $this->numRetries;
}
/**
* - connect-failure: Router will retry on failures connecting to Backend
* Services, for example due to connection timeouts. - refused-stream: Router
* will retry if the backend service resets the stream with a REFUSED_STREAM
* error code. This reset type indicates that it is safe to retry. -
* cancelled: Router will retry if the gRPC status code in the response header
* is set to cancelled - deadline-exceeded: Router will retry if the gRPC
* status code in the response header is set to deadline-exceeded - resource-
* exhausted: Router will retry if the gRPC status code in the response header
* is set to resource-exhausted - unavailable: Router will retry if the gRPC
* status code in the response header is set to unavailable
*
* @param string[] $retryConditions
*/
public function setRetryConditions($retryConditions)
{
$this->retryConditions = $retryConditions;
}
/**
* @return string[]
*/
public function getRetryConditions()
{
return $this->retryConditions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteRetryPolicy::class, 'Google_Service_NetworkServices_GrpcRouteRetryPolicy');

View File

@@ -0,0 +1,163 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRouteRouteAction extends \Google\Collection
{
protected $collection_key = 'destinations';
protected $destinationsType = GrpcRouteDestination::class;
protected $destinationsDataType = 'array';
protected $faultInjectionPolicyType = GrpcRouteFaultInjectionPolicy::class;
protected $faultInjectionPolicyDataType = '';
/**
* Optional. Specifies the idle timeout for the selected route. The idle
* timeout is defined as the period in which there are no bytes sent or
* received on either the upstream or downstream connection. If not set, the
* default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
*
* @var string
*/
public $idleTimeout;
protected $retryPolicyType = GrpcRouteRetryPolicy::class;
protected $retryPolicyDataType = '';
protected $statefulSessionAffinityType = GrpcRouteStatefulSessionAffinityPolicy::class;
protected $statefulSessionAffinityDataType = '';
/**
* Optional. Specifies the timeout for selected route. Timeout is computed
* from the time the request has been fully processed (i.e. end of stream) up
* until the response has been completely processed. Timeout includes all
* retries.
*
* @var string
*/
public $timeout;
/**
* Optional. The destination services to which traffic should be forwarded. If
* multiple destinations are specified, traffic will be split between Backend
* Service(s) according to the weight field of these destinations.
*
* @param GrpcRouteDestination[] $destinations
*/
public function setDestinations($destinations)
{
$this->destinations = $destinations;
}
/**
* @return GrpcRouteDestination[]
*/
public function getDestinations()
{
return $this->destinations;
}
/**
* Optional. The specification for fault injection introduced into traffic to
* test the resiliency of clients to destination service failure. As part of
* fault injection, when clients send requests to a destination, delays can be
* introduced on a percentage of requests before sending those requests to the
* destination service. Similarly requests from clients can be aborted by for
* a percentage of requests. timeout and retry_policy will be ignored by
* clients that are configured with a fault_injection_policy
*
* @param GrpcRouteFaultInjectionPolicy $faultInjectionPolicy
*/
public function setFaultInjectionPolicy(GrpcRouteFaultInjectionPolicy $faultInjectionPolicy)
{
$this->faultInjectionPolicy = $faultInjectionPolicy;
}
/**
* @return GrpcRouteFaultInjectionPolicy
*/
public function getFaultInjectionPolicy()
{
return $this->faultInjectionPolicy;
}
/**
* Optional. Specifies the idle timeout for the selected route. The idle
* timeout is defined as the period in which there are no bytes sent or
* received on either the upstream or downstream connection. If not set, the
* default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
*
* @param string $idleTimeout
*/
public function setIdleTimeout($idleTimeout)
{
$this->idleTimeout = $idleTimeout;
}
/**
* @return string
*/
public function getIdleTimeout()
{
return $this->idleTimeout;
}
/**
* Optional. Specifies the retry policy associated with this route.
*
* @param GrpcRouteRetryPolicy $retryPolicy
*/
public function setRetryPolicy(GrpcRouteRetryPolicy $retryPolicy)
{
$this->retryPolicy = $retryPolicy;
}
/**
* @return GrpcRouteRetryPolicy
*/
public function getRetryPolicy()
{
return $this->retryPolicy;
}
/**
* Optional. Specifies cookie-based stateful session affinity.
*
* @param GrpcRouteStatefulSessionAffinityPolicy $statefulSessionAffinity
*/
public function setStatefulSessionAffinity(GrpcRouteStatefulSessionAffinityPolicy $statefulSessionAffinity)
{
$this->statefulSessionAffinity = $statefulSessionAffinity;
}
/**
* @return GrpcRouteStatefulSessionAffinityPolicy
*/
public function getStatefulSessionAffinity()
{
return $this->statefulSessionAffinity;
}
/**
* Optional. Specifies the timeout for selected route. Timeout is computed
* from the time the request has been fully processed (i.e. end of stream) up
* until the response has been completely processed. Timeout includes all
* retries.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteRouteAction::class, 'Google_Service_NetworkServices_GrpcRouteRouteAction');

View File

@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRouteRouteMatch extends \Google\Collection
{
protected $collection_key = 'headers';
protected $headersType = GrpcRouteHeaderMatch::class;
protected $headersDataType = 'array';
protected $methodType = GrpcRouteMethodMatch::class;
protected $methodDataType = '';
/**
* Optional. Specifies a collection of headers to match.
*
* @param GrpcRouteHeaderMatch[] $headers
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return GrpcRouteHeaderMatch[]
*/
public function getHeaders()
{
return $this->headers;
}
/**
* Optional. A gRPC method to match against. If this field is empty or
* omitted, will match all methods.
*
* @param GrpcRouteMethodMatch $method
*/
public function setMethod(GrpcRouteMethodMatch $method)
{
$this->method = $method;
}
/**
* @return GrpcRouteMethodMatch
*/
public function getMethod()
{
return $this->method;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteRouteMatch::class, 'Google_Service_NetworkServices_GrpcRouteRouteMatch');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRouteRouteRule extends \Google\Collection
{
protected $collection_key = 'matches';
protected $actionType = GrpcRouteRouteAction::class;
protected $actionDataType = '';
protected $matchesType = GrpcRouteRouteMatch::class;
protected $matchesDataType = 'array';
/**
* Required. A detailed rule defining how to route traffic. This field is
* required.
*
* @param GrpcRouteRouteAction $action
*/
public function setAction(GrpcRouteRouteAction $action)
{
$this->action = $action;
}
/**
* @return GrpcRouteRouteAction
*/
public function getAction()
{
return $this->action;
}
/**
* Optional. Matches define conditions used for matching the rule against
* incoming gRPC requests. Each match is independent, i.e. this rule will be
* matched if ANY one of the matches is satisfied. If no matches field is
* specified, this rule will unconditionally match traffic.
*
* @param GrpcRouteRouteMatch[] $matches
*/
public function setMatches($matches)
{
$this->matches = $matches;
}
/**
* @return GrpcRouteRouteMatch[]
*/
public function getMatches()
{
return $this->matches;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteRouteRule::class, 'Google_Service_NetworkServices_GrpcRouteRouteRule');

View File

@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class GrpcRouteStatefulSessionAffinityPolicy extends \Google\Model
{
/**
* Required. The cookie TTL value for the Set-Cookie header generated by the
* data plane. The lifetime of the cookie may be set to a value from 0 to
* 86400 seconds (24 hours) inclusive. Set this to 0s to use a session cookie
* and disable cookie expiration.
*
* @var string
*/
public $cookieTtl;
/**
* Required. The cookie TTL value for the Set-Cookie header generated by the
* data plane. The lifetime of the cookie may be set to a value from 0 to
* 86400 seconds (24 hours) inclusive. Set this to 0s to use a session cookie
* and disable cookie expiration.
*
* @param string $cookieTtl
*/
public function setCookieTtl($cookieTtl)
{
$this->cookieTtl = $cookieTtl;
}
/**
* @return string
*/
public function getCookieTtl()
{
return $this->cookieTtl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GrpcRouteStatefulSessionAffinityPolicy::class, 'Google_Service_NetworkServices_GrpcRouteStatefulSessionAffinityPolicy');

View File

@@ -0,0 +1,292 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRoute extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A free-text description of the resource. Max length 1024
* characters.
*
* @var string
*/
public $description;
/**
* Optional. Gateways defines a list of gateways this HttpRoute is attached
* to, as one of the routing rules to route the requests served by the
* gateway. Each gateway reference should match the pattern:
* `projects/locations/gateways/`
*
* @var string[]
*/
public $gateways;
/**
* Required. Hostnames define a set of hosts that should match against the
* HTTP host header to select a HttpRoute to process the request. Hostname is
* the fully qualified domain name of a network host, as defined by RFC 1123
* with the exception that: - IPs are not allowed. - A hostname may be
* prefixed with a wildcard label (`*.`). The wildcard label must appear by
* itself as the first label. Hostname can be "precise" which is a domain name
* without the terminating dot of a network host (e.g. `foo.example.com`) or
* "wildcard", which is a domain name prefixed with a single wildcard label
* (e.g. `*.example.com`). Note that as per RFC1035 and RFC1123, a label must
* consist of lower case alphanumeric characters or '-', and must start and
* end with an alphanumeric character. No other punctuation is allowed. The
* routes associated with a Mesh or Gateways must have unique hostnames. If
* you attempt to attach multiple routes with conflicting hostnames, the
* configuration will be rejected. For example, while it is acceptable for
* routes for the hostnames `*.foo.bar.com` and `*.bar.com` to be associated
* with the same Mesh (or Gateways under the same scope), it is not possible
* to associate two routes both with `*.bar.com` or both with `bar.com`.
*
* @var string[]
*/
public $hostnames;
/**
* Optional. Set of label tags associated with the HttpRoute resource.
*
* @var string[]
*/
public $labels;
/**
* Optional. Meshes defines a list of meshes this HttpRoute is attached to, as
* one of the routing rules to route the requests served by the mesh. Each
* mesh reference should match the pattern: `projects/locations/meshes/` The
* attached Mesh should be of a type SIDECAR
*
* @var string[]
*/
public $meshes;
/**
* Identifier. Name of the HttpRoute resource. It matches pattern
* `projects/locations/httpRoutes/http_route_name>`.
*
* @var string
*/
public $name;
protected $rulesType = HttpRouteRouteRule::class;
protected $rulesDataType = 'array';
/**
* Output only. Server-defined URL of this resource
*
* @var string
*/
public $selfLink;
/**
* Output only. The timestamp when the resource was updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A free-text description of the resource. Max length 1024
* characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Gateways defines a list of gateways this HttpRoute is attached
* to, as one of the routing rules to route the requests served by the
* gateway. Each gateway reference should match the pattern:
* `projects/locations/gateways/`
*
* @param string[] $gateways
*/
public function setGateways($gateways)
{
$this->gateways = $gateways;
}
/**
* @return string[]
*/
public function getGateways()
{
return $this->gateways;
}
/**
* Required. Hostnames define a set of hosts that should match against the
* HTTP host header to select a HttpRoute to process the request. Hostname is
* the fully qualified domain name of a network host, as defined by RFC 1123
* with the exception that: - IPs are not allowed. - A hostname may be
* prefixed with a wildcard label (`*.`). The wildcard label must appear by
* itself as the first label. Hostname can be "precise" which is a domain name
* without the terminating dot of a network host (e.g. `foo.example.com`) or
* "wildcard", which is a domain name prefixed with a single wildcard label
* (e.g. `*.example.com`). Note that as per RFC1035 and RFC1123, a label must
* consist of lower case alphanumeric characters or '-', and must start and
* end with an alphanumeric character. No other punctuation is allowed. The
* routes associated with a Mesh or Gateways must have unique hostnames. If
* you attempt to attach multiple routes with conflicting hostnames, the
* configuration will be rejected. For example, while it is acceptable for
* routes for the hostnames `*.foo.bar.com` and `*.bar.com` to be associated
* with the same Mesh (or Gateways under the same scope), it is not possible
* to associate two routes both with `*.bar.com` or both with `bar.com`.
*
* @param string[] $hostnames
*/
public function setHostnames($hostnames)
{
$this->hostnames = $hostnames;
}
/**
* @return string[]
*/
public function getHostnames()
{
return $this->hostnames;
}
/**
* Optional. Set of label tags associated with the HttpRoute resource.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Meshes defines a list of meshes this HttpRoute is attached to, as
* one of the routing rules to route the requests served by the mesh. Each
* mesh reference should match the pattern: `projects/locations/meshes/` The
* attached Mesh should be of a type SIDECAR
*
* @param string[] $meshes
*/
public function setMeshes($meshes)
{
$this->meshes = $meshes;
}
/**
* @return string[]
*/
public function getMeshes()
{
return $this->meshes;
}
/**
* Identifier. Name of the HttpRoute resource. It matches pattern
* `projects/locations/httpRoutes/http_route_name>`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Rules that define how traffic is routed and handled. Rules will
* be matched sequentially based on the RouteMatch specified for the rule.
*
* @param HttpRouteRouteRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return HttpRouteRouteRule[]
*/
public function getRules()
{
return $this->rules;
}
/**
* Output only. Server-defined URL of this resource
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Output only. The timestamp when the resource was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRoute::class, 'Google_Service_NetworkServices_HttpRoute');

View File

@@ -0,0 +1,219 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteCorsPolicy extends \Google\Collection
{
protected $collection_key = 'exposeHeaders';
/**
* In response to a preflight request, setting this to true indicates that the
* actual request can include user credentials. This translates to the Access-
* Control-Allow-Credentials header. Default value is false.
*
* @var bool
*/
public $allowCredentials;
/**
* Specifies the content for Access-Control-Allow-Headers header.
*
* @var string[]
*/
public $allowHeaders;
/**
* Specifies the content for Access-Control-Allow-Methods header.
*
* @var string[]
*/
public $allowMethods;
/**
* Specifies the regular expression patterns that match allowed origins. For
* regular expression grammar, please see
* https://github.com/google/re2/wiki/Syntax.
*
* @var string[]
*/
public $allowOriginRegexes;
/**
* Specifies the list of origins that will be allowed to do CORS requests. An
* origin is allowed if it matches either an item in allow_origins or an item
* in allow_origin_regexes.
*
* @var string[]
*/
public $allowOrigins;
/**
* If true, the CORS policy is disabled. The default value is false, which
* indicates that the CORS policy is in effect.
*
* @var bool
*/
public $disabled;
/**
* Specifies the content for Access-Control-Expose-Headers header.
*
* @var string[]
*/
public $exposeHeaders;
/**
* Specifies how long result of a preflight request can be cached in seconds.
* This translates to the Access-Control-Max-Age header.
*
* @var string
*/
public $maxAge;
/**
* In response to a preflight request, setting this to true indicates that the
* actual request can include user credentials. This translates to the Access-
* Control-Allow-Credentials header. Default value is false.
*
* @param bool $allowCredentials
*/
public function setAllowCredentials($allowCredentials)
{
$this->allowCredentials = $allowCredentials;
}
/**
* @return bool
*/
public function getAllowCredentials()
{
return $this->allowCredentials;
}
/**
* Specifies the content for Access-Control-Allow-Headers header.
*
* @param string[] $allowHeaders
*/
public function setAllowHeaders($allowHeaders)
{
$this->allowHeaders = $allowHeaders;
}
/**
* @return string[]
*/
public function getAllowHeaders()
{
return $this->allowHeaders;
}
/**
* Specifies the content for Access-Control-Allow-Methods header.
*
* @param string[] $allowMethods
*/
public function setAllowMethods($allowMethods)
{
$this->allowMethods = $allowMethods;
}
/**
* @return string[]
*/
public function getAllowMethods()
{
return $this->allowMethods;
}
/**
* Specifies the regular expression patterns that match allowed origins. For
* regular expression grammar, please see
* https://github.com/google/re2/wiki/Syntax.
*
* @param string[] $allowOriginRegexes
*/
public function setAllowOriginRegexes($allowOriginRegexes)
{
$this->allowOriginRegexes = $allowOriginRegexes;
}
/**
* @return string[]
*/
public function getAllowOriginRegexes()
{
return $this->allowOriginRegexes;
}
/**
* Specifies the list of origins that will be allowed to do CORS requests. An
* origin is allowed if it matches either an item in allow_origins or an item
* in allow_origin_regexes.
*
* @param string[] $allowOrigins
*/
public function setAllowOrigins($allowOrigins)
{
$this->allowOrigins = $allowOrigins;
}
/**
* @return string[]
*/
public function getAllowOrigins()
{
return $this->allowOrigins;
}
/**
* If true, the CORS policy is disabled. The default value is false, which
* indicates that the CORS policy is in effect.
*
* @param bool $disabled
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* Specifies the content for Access-Control-Expose-Headers header.
*
* @param string[] $exposeHeaders
*/
public function setExposeHeaders($exposeHeaders)
{
$this->exposeHeaders = $exposeHeaders;
}
/**
* @return string[]
*/
public function getExposeHeaders()
{
return $this->exposeHeaders;
}
/**
* Specifies how long result of a preflight request can be cached in seconds.
* This translates to the Access-Control-Max-Age header.
*
* @param string $maxAge
*/
public function setMaxAge($maxAge)
{
$this->maxAge = $maxAge;
}
/**
* @return string
*/
public function getMaxAge()
{
return $this->maxAge;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteCorsPolicy::class, 'Google_Service_NetworkServices_HttpRouteCorsPolicy');

View File

@@ -0,0 +1,128 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteDestination extends \Google\Model
{
protected $requestHeaderModifierType = HttpRouteHeaderModifier::class;
protected $requestHeaderModifierDataType = '';
protected $responseHeaderModifierType = HttpRouteHeaderModifier::class;
protected $responseHeaderModifierDataType = '';
/**
* The URL of a BackendService to route traffic to.
*
* @var string
*/
public $serviceName;
/**
* Specifies the proportion of requests forwarded to the backend referenced by
* the serviceName field. This is computed as: - weight/Sum(weights in this
* destination list). For non-zero values, there may be some epsilon from the
* exact proportion defined here depending on the precision an implementation
* supports. If only one serviceName is specified and it has a weight greater
* than 0, 100% of the traffic is forwarded to that backend. If weights are
* specified for any one service name, they need to be specified for all of
* them. If weights are unspecified for all services, then, traffic is
* distributed in equal proportions to all of them.
*
* @var int
*/
public $weight;
/**
* Optional. The specification for modifying the headers of a matching request
* prior to delivery of the request to the destination. If HeaderModifiers are
* set on both the Destination and the RouteAction, they will be merged.
* Conflicts between the two will not be resolved on the configuration.
*
* @param HttpRouteHeaderModifier $requestHeaderModifier
*/
public function setRequestHeaderModifier(HttpRouteHeaderModifier $requestHeaderModifier)
{
$this->requestHeaderModifier = $requestHeaderModifier;
}
/**
* @return HttpRouteHeaderModifier
*/
public function getRequestHeaderModifier()
{
return $this->requestHeaderModifier;
}
/**
* Optional. The specification for modifying the headers of a response prior
* to sending the response back to the client. If HeaderModifiers are set on
* both the Destination and the RouteAction, they will be merged. Conflicts
* between the two will not be resolved on the configuration.
*
* @param HttpRouteHeaderModifier $responseHeaderModifier
*/
public function setResponseHeaderModifier(HttpRouteHeaderModifier $responseHeaderModifier)
{
$this->responseHeaderModifier = $responseHeaderModifier;
}
/**
* @return HttpRouteHeaderModifier
*/
public function getResponseHeaderModifier()
{
return $this->responseHeaderModifier;
}
/**
* The URL of a BackendService to route traffic to.
*
* @param string $serviceName
*/
public function setServiceName($serviceName)
{
$this->serviceName = $serviceName;
}
/**
* @return string
*/
public function getServiceName()
{
return $this->serviceName;
}
/**
* Specifies the proportion of requests forwarded to the backend referenced by
* the serviceName field. This is computed as: - weight/Sum(weights in this
* destination list). For non-zero values, there may be some epsilon from the
* exact proportion defined here depending on the precision an implementation
* supports. If only one serviceName is specified and it has a weight greater
* than 0, 100% of the traffic is forwarded to that backend. If weights are
* specified for any one service name, they need to be specified for all of
* them. If weights are unspecified for all services, then, traffic is
* distributed in equal proportions to all of them.
*
* @param int $weight
*/
public function setWeight($weight)
{
$this->weight = $weight;
}
/**
* @return int
*/
public function getWeight()
{
return $this->weight;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteDestination::class, 'Google_Service_NetworkServices_HttpRouteDestination');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteFaultInjectionPolicy extends \Google\Model
{
protected $abortType = HttpRouteFaultInjectionPolicyAbort::class;
protected $abortDataType = '';
protected $delayType = HttpRouteFaultInjectionPolicyDelay::class;
protected $delayDataType = '';
/**
* The specification for aborting to client requests.
*
* @param HttpRouteFaultInjectionPolicyAbort $abort
*/
public function setAbort(HttpRouteFaultInjectionPolicyAbort $abort)
{
$this->abort = $abort;
}
/**
* @return HttpRouteFaultInjectionPolicyAbort
*/
public function getAbort()
{
return $this->abort;
}
/**
* The specification for injecting delay to client requests.
*
* @param HttpRouteFaultInjectionPolicyDelay $delay
*/
public function setDelay(HttpRouteFaultInjectionPolicyDelay $delay)
{
$this->delay = $delay;
}
/**
* @return HttpRouteFaultInjectionPolicyDelay
*/
public function getDelay()
{
return $this->delay;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteFaultInjectionPolicy::class, 'Google_Service_NetworkServices_HttpRouteFaultInjectionPolicy');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteFaultInjectionPolicyAbort extends \Google\Model
{
/**
* The HTTP status code used to abort the request. The value must be between
* 200 and 599 inclusive.
*
* @var int
*/
public $httpStatus;
/**
* The percentage of traffic which will be aborted. The value must be between
* [0, 100]
*
* @var int
*/
public $percentage;
/**
* The HTTP status code used to abort the request. The value must be between
* 200 and 599 inclusive.
*
* @param int $httpStatus
*/
public function setHttpStatus($httpStatus)
{
$this->httpStatus = $httpStatus;
}
/**
* @return int
*/
public function getHttpStatus()
{
return $this->httpStatus;
}
/**
* The percentage of traffic which will be aborted. The value must be between
* [0, 100]
*
* @param int $percentage
*/
public function setPercentage($percentage)
{
$this->percentage = $percentage;
}
/**
* @return int
*/
public function getPercentage()
{
return $this->percentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteFaultInjectionPolicyAbort::class, 'Google_Service_NetworkServices_HttpRouteFaultInjectionPolicyAbort');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteFaultInjectionPolicyDelay extends \Google\Model
{
/**
* Specify a fixed delay before forwarding the request.
*
* @var string
*/
public $fixedDelay;
/**
* The percentage of traffic on which delay will be injected. The value must
* be between [0, 100]
*
* @var int
*/
public $percentage;
/**
* Specify a fixed delay before forwarding the request.
*
* @param string $fixedDelay
*/
public function setFixedDelay($fixedDelay)
{
$this->fixedDelay = $fixedDelay;
}
/**
* @return string
*/
public function getFixedDelay()
{
return $this->fixedDelay;
}
/**
* The percentage of traffic on which delay will be injected. The value must
* be between [0, 100]
*
* @param int $percentage
*/
public function setPercentage($percentage)
{
$this->percentage = $percentage;
}
/**
* @return int
*/
public function getPercentage()
{
return $this->percentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteFaultInjectionPolicyDelay::class, 'Google_Service_NetworkServices_HttpRouteFaultInjectionPolicyDelay');

View File

@@ -0,0 +1,207 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteHeaderMatch extends \Google\Model
{
/**
* The value of the header should match exactly the content of exact_match.
*
* @var string
*/
public $exactMatch;
/**
* The name of the HTTP header to match against.
*
* @var string
*/
public $header;
/**
* If specified, the match result will be inverted before checking. Default
* value is set to false.
*
* @var bool
*/
public $invertMatch;
/**
* The value of the header must start with the contents of prefix_match.
*
* @var string
*/
public $prefixMatch;
/**
* A header with header_name must exist. The match takes place whether or not
* the header has a value.
*
* @var bool
*/
public $presentMatch;
protected $rangeMatchType = HttpRouteHeaderMatchIntegerRange::class;
protected $rangeMatchDataType = '';
/**
* The value of the header must match the regular expression specified in
* regex_match. For regular expression grammar, please see:
* https://github.com/google/re2/wiki/Syntax
*
* @var string
*/
public $regexMatch;
/**
* The value of the header must end with the contents of suffix_match.
*
* @var string
*/
public $suffixMatch;
/**
* The value of the header should match exactly the content of exact_match.
*
* @param string $exactMatch
*/
public function setExactMatch($exactMatch)
{
$this->exactMatch = $exactMatch;
}
/**
* @return string
*/
public function getExactMatch()
{
return $this->exactMatch;
}
/**
* The name of the HTTP header to match against.
*
* @param string $header
*/
public function setHeader($header)
{
$this->header = $header;
}
/**
* @return string
*/
public function getHeader()
{
return $this->header;
}
/**
* If specified, the match result will be inverted before checking. Default
* value is set to false.
*
* @param bool $invertMatch
*/
public function setInvertMatch($invertMatch)
{
$this->invertMatch = $invertMatch;
}
/**
* @return bool
*/
public function getInvertMatch()
{
return $this->invertMatch;
}
/**
* The value of the header must start with the contents of prefix_match.
*
* @param string $prefixMatch
*/
public function setPrefixMatch($prefixMatch)
{
$this->prefixMatch = $prefixMatch;
}
/**
* @return string
*/
public function getPrefixMatch()
{
return $this->prefixMatch;
}
/**
* A header with header_name must exist. The match takes place whether or not
* the header has a value.
*
* @param bool $presentMatch
*/
public function setPresentMatch($presentMatch)
{
$this->presentMatch = $presentMatch;
}
/**
* @return bool
*/
public function getPresentMatch()
{
return $this->presentMatch;
}
/**
* If specified, the rule will match if the request header value is within the
* range.
*
* @param HttpRouteHeaderMatchIntegerRange $rangeMatch
*/
public function setRangeMatch(HttpRouteHeaderMatchIntegerRange $rangeMatch)
{
$this->rangeMatch = $rangeMatch;
}
/**
* @return HttpRouteHeaderMatchIntegerRange
*/
public function getRangeMatch()
{
return $this->rangeMatch;
}
/**
* The value of the header must match the regular expression specified in
* regex_match. For regular expression grammar, please see:
* https://github.com/google/re2/wiki/Syntax
*
* @param string $regexMatch
*/
public function setRegexMatch($regexMatch)
{
$this->regexMatch = $regexMatch;
}
/**
* @return string
*/
public function getRegexMatch()
{
return $this->regexMatch;
}
/**
* The value of the header must end with the contents of suffix_match.
*
* @param string $suffixMatch
*/
public function setSuffixMatch($suffixMatch)
{
$this->suffixMatch = $suffixMatch;
}
/**
* @return string
*/
public function getSuffixMatch()
{
return $this->suffixMatch;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteHeaderMatch::class, 'Google_Service_NetworkServices_HttpRouteHeaderMatch');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteHeaderMatchIntegerRange extends \Google\Model
{
/**
* End of the range (exclusive)
*
* @var int
*/
public $end;
/**
* Start of the range (inclusive)
*
* @var int
*/
public $start;
/**
* End of the range (exclusive)
*
* @param int $end
*/
public function setEnd($end)
{
$this->end = $end;
}
/**
* @return int
*/
public function getEnd()
{
return $this->end;
}
/**
* Start of the range (inclusive)
*
* @param int $start
*/
public function setStart($start)
{
$this->start = $start;
}
/**
* @return int
*/
public function getStart()
{
return $this->start;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteHeaderMatchIntegerRange::class, 'Google_Service_NetworkServices_HttpRouteHeaderMatchIntegerRange');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteHeaderModifier extends \Google\Collection
{
protected $collection_key = 'remove';
/**
* Add the headers with given map where key is the name of the header, value
* is the value of the header.
*
* @var string[]
*/
public $add;
/**
* Remove headers (matching by header names) specified in the list.
*
* @var string[]
*/
public $remove;
/**
* Completely overwrite/replace the headers with given map where key is the
* name of the header, value is the value of the header.
*
* @var string[]
*/
public $set;
/**
* Add the headers with given map where key is the name of the header, value
* is the value of the header.
*
* @param string[] $add
*/
public function setAdd($add)
{
$this->add = $add;
}
/**
* @return string[]
*/
public function getAdd()
{
return $this->add;
}
/**
* Remove headers (matching by header names) specified in the list.
*
* @param string[] $remove
*/
public function setRemove($remove)
{
$this->remove = $remove;
}
/**
* @return string[]
*/
public function getRemove()
{
return $this->remove;
}
/**
* Completely overwrite/replace the headers with given map where key is the
* name of the header, value is the value of the header.
*
* @param string[] $set
*/
public function setSet($set)
{
$this->set = $set;
}
/**
* @return string[]
*/
public function getSet()
{
return $this->set;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteHeaderModifier::class, 'Google_Service_NetworkServices_HttpRouteHeaderModifier');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteHttpDirectResponse extends \Google\Model
{
/**
* Optional. Response body as bytes. Maximum body size is 4096B.
*
* @var string
*/
public $bytesBody;
/**
* Required. Status to return as part of HTTP Response. Must be a positive
* integer.
*
* @var int
*/
public $status;
/**
* Optional. Response body as a string. Maximum body length is 1024
* characters.
*
* @var string
*/
public $stringBody;
/**
* Optional. Response body as bytes. Maximum body size is 4096B.
*
* @param string $bytesBody
*/
public function setBytesBody($bytesBody)
{
$this->bytesBody = $bytesBody;
}
/**
* @return string
*/
public function getBytesBody()
{
return $this->bytesBody;
}
/**
* Required. Status to return as part of HTTP Response. Must be a positive
* integer.
*
* @param int $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return int
*/
public function getStatus()
{
return $this->status;
}
/**
* Optional. Response body as a string. Maximum body length is 1024
* characters.
*
* @param string $stringBody
*/
public function setStringBody($stringBody)
{
$this->stringBody = $stringBody;
}
/**
* @return string
*/
public function getStringBody()
{
return $this->stringBody;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteHttpDirectResponse::class, 'Google_Service_NetworkServices_HttpRouteHttpDirectResponse');

View File

@@ -0,0 +1,128 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteQueryParameterMatch extends \Google\Model
{
/**
* The value of the query parameter must exactly match the contents of
* exact_match. Only one of exact_match, regex_match, or present_match must be
* set.
*
* @var string
*/
public $exactMatch;
/**
* Specifies that the QueryParameterMatcher matches if request contains query
* parameter, irrespective of whether the parameter has a value or not. Only
* one of exact_match, regex_match, or present_match must be set.
*
* @var bool
*/
public $presentMatch;
/**
* The name of the query parameter to match.
*
* @var string
*/
public $queryParameter;
/**
* The value of the query parameter must match the regular expression
* specified by regex_match. For regular expression grammar, please see
* https://github.com/google/re2/wiki/Syntax Only one of exact_match,
* regex_match, or present_match must be set.
*
* @var string
*/
public $regexMatch;
/**
* The value of the query parameter must exactly match the contents of
* exact_match. Only one of exact_match, regex_match, or present_match must be
* set.
*
* @param string $exactMatch
*/
public function setExactMatch($exactMatch)
{
$this->exactMatch = $exactMatch;
}
/**
* @return string
*/
public function getExactMatch()
{
return $this->exactMatch;
}
/**
* Specifies that the QueryParameterMatcher matches if request contains query
* parameter, irrespective of whether the parameter has a value or not. Only
* one of exact_match, regex_match, or present_match must be set.
*
* @param bool $presentMatch
*/
public function setPresentMatch($presentMatch)
{
$this->presentMatch = $presentMatch;
}
/**
* @return bool
*/
public function getPresentMatch()
{
return $this->presentMatch;
}
/**
* The name of the query parameter to match.
*
* @param string $queryParameter
*/
public function setQueryParameter($queryParameter)
{
$this->queryParameter = $queryParameter;
}
/**
* @return string
*/
public function getQueryParameter()
{
return $this->queryParameter;
}
/**
* The value of the query parameter must match the regular expression
* specified by regex_match. For regular expression grammar, please see
* https://github.com/google/re2/wiki/Syntax Only one of exact_match,
* regex_match, or present_match must be set.
*
* @param string $regexMatch
*/
public function setRegexMatch($regexMatch)
{
$this->regexMatch = $regexMatch;
}
/**
* @return string
*/
public function getRegexMatch()
{
return $this->regexMatch;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteQueryParameterMatch::class, 'Google_Service_NetworkServices_HttpRouteQueryParameterMatch');

View File

@@ -0,0 +1,229 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteRedirect extends \Google\Model
{
/**
* Default value
*/
public const RESPONSE_CODE_RESPONSE_CODE_UNSPECIFIED = 'RESPONSE_CODE_UNSPECIFIED';
/**
* Corresponds to 301.
*/
public const RESPONSE_CODE_MOVED_PERMANENTLY_DEFAULT = 'MOVED_PERMANENTLY_DEFAULT';
/**
* Corresponds to 302.
*/
public const RESPONSE_CODE_FOUND = 'FOUND';
/**
* Corresponds to 303.
*/
public const RESPONSE_CODE_SEE_OTHER = 'SEE_OTHER';
/**
* Corresponds to 307. In this case, the request method will be retained.
*/
public const RESPONSE_CODE_TEMPORARY_REDIRECT = 'TEMPORARY_REDIRECT';
/**
* Corresponds to 308. In this case, the request method will be retained.
*/
public const RESPONSE_CODE_PERMANENT_REDIRECT = 'PERMANENT_REDIRECT';
/**
* The host that will be used in the redirect response instead of the one that
* was supplied in the request.
*
* @var string
*/
public $hostRedirect;
/**
* If set to true, the URL scheme in the redirected request is set to https.
* If set to false, the URL scheme of the redirected request will remain the
* same as that of the request. The default is set to false.
*
* @var bool
*/
public $httpsRedirect;
/**
* The path that will be used in the redirect response instead of the one that
* was supplied in the request. path_redirect can not be supplied together
* with prefix_redirect. Supply one alone or neither. If neither is supplied,
* the path of the original request will be used for the redirect.
*
* @var string
*/
public $pathRedirect;
/**
* The port that will be used in the redirected request instead of the one
* that was supplied in the request.
*
* @var int
*/
public $portRedirect;
/**
* Indicates that during redirection, the matched prefix (or path) should be
* swapped with this value. This option allows URLs be dynamically created
* based on the request.
*
* @var string
*/
public $prefixRewrite;
/**
* The HTTP Status code to use for the redirect.
*
* @var string
*/
public $responseCode;
/**
* if set to true, any accompanying query portion of the original URL is
* removed prior to redirecting the request. If set to false, the query
* portion of the original URL is retained. The default is set to false.
*
* @var bool
*/
public $stripQuery;
/**
* The host that will be used in the redirect response instead of the one that
* was supplied in the request.
*
* @param string $hostRedirect
*/
public function setHostRedirect($hostRedirect)
{
$this->hostRedirect = $hostRedirect;
}
/**
* @return string
*/
public function getHostRedirect()
{
return $this->hostRedirect;
}
/**
* If set to true, the URL scheme in the redirected request is set to https.
* If set to false, the URL scheme of the redirected request will remain the
* same as that of the request. The default is set to false.
*
* @param bool $httpsRedirect
*/
public function setHttpsRedirect($httpsRedirect)
{
$this->httpsRedirect = $httpsRedirect;
}
/**
* @return bool
*/
public function getHttpsRedirect()
{
return $this->httpsRedirect;
}
/**
* The path that will be used in the redirect response instead of the one that
* was supplied in the request. path_redirect can not be supplied together
* with prefix_redirect. Supply one alone or neither. If neither is supplied,
* the path of the original request will be used for the redirect.
*
* @param string $pathRedirect
*/
public function setPathRedirect($pathRedirect)
{
$this->pathRedirect = $pathRedirect;
}
/**
* @return string
*/
public function getPathRedirect()
{
return $this->pathRedirect;
}
/**
* The port that will be used in the redirected request instead of the one
* that was supplied in the request.
*
* @param int $portRedirect
*/
public function setPortRedirect($portRedirect)
{
$this->portRedirect = $portRedirect;
}
/**
* @return int
*/
public function getPortRedirect()
{
return $this->portRedirect;
}
/**
* Indicates that during redirection, the matched prefix (or path) should be
* swapped with this value. This option allows URLs be dynamically created
* based on the request.
*
* @param string $prefixRewrite
*/
public function setPrefixRewrite($prefixRewrite)
{
$this->prefixRewrite = $prefixRewrite;
}
/**
* @return string
*/
public function getPrefixRewrite()
{
return $this->prefixRewrite;
}
/**
* The HTTP Status code to use for the redirect.
*
* Accepted values: RESPONSE_CODE_UNSPECIFIED, MOVED_PERMANENTLY_DEFAULT,
* FOUND, SEE_OTHER, TEMPORARY_REDIRECT, PERMANENT_REDIRECT
*
* @param self::RESPONSE_CODE_* $responseCode
*/
public function setResponseCode($responseCode)
{
$this->responseCode = $responseCode;
}
/**
* @return self::RESPONSE_CODE_*
*/
public function getResponseCode()
{
return $this->responseCode;
}
/**
* if set to true, any accompanying query portion of the original URL is
* removed prior to redirecting the request. If set to false, the query
* portion of the original URL is retained. The default is set to false.
*
* @param bool $stripQuery
*/
public function setStripQuery($stripQuery)
{
$this->stripQuery = $stripQuery;
}
/**
* @return bool
*/
public function getStripQuery()
{
return $this->stripQuery;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRedirect::class, 'Google_Service_NetworkServices_HttpRouteRedirect');

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteRequestMirrorPolicy extends \Google\Model
{
protected $destinationType = HttpRouteDestination::class;
protected $destinationDataType = '';
/**
* Optional. The percentage of requests to get mirrored to the desired
* destination.
*
* @var float
*/
public $mirrorPercent;
/**
* The destination the requests will be mirrored to. The weight of the
* destination will be ignored.
*
* @param HttpRouteDestination $destination
*/
public function setDestination(HttpRouteDestination $destination)
{
$this->destination = $destination;
}
/**
* @return HttpRouteDestination
*/
public function getDestination()
{
return $this->destination;
}
/**
* Optional. The percentage of requests to get mirrored to the desired
* destination.
*
* @param float $mirrorPercent
*/
public function setMirrorPercent($mirrorPercent)
{
$this->mirrorPercent = $mirrorPercent;
}
/**
* @return float
*/
public function getMirrorPercent()
{
return $this->mirrorPercent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRequestMirrorPolicy::class, 'Google_Service_NetworkServices_HttpRouteRequestMirrorPolicy');

View File

@@ -0,0 +1,119 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteRetryPolicy extends \Google\Collection
{
protected $collection_key = 'retryConditions';
/**
* Specifies the allowed number of retries. This number must be > 0. If not
* specified, default to 1.
*
* @var int
*/
public $numRetries;
/**
* Specifies a non-zero timeout per retry attempt.
*
* @var string
*/
public $perTryTimeout;
/**
* Specifies one or more conditions when this retry policy applies. Valid
* values are: 5xx: Proxy will attempt a retry if the destination service
* responds with any 5xx response code, of if the destination service does not
* respond at all, example: disconnect, reset, read timeout, connection
* failure and refused streams. gateway-error: Similar to 5xx, but only
* applies to response codes 502, 503, 504. reset: Proxy will attempt a retry
* if the destination service does not respond at all (disconnect/reset/read
* timeout) connect-failure: Proxy will retry on failures connecting to
* destination for example due to connection timeouts. retriable-4xx: Proxy
* will retry fro retriable 4xx response codes. Currently the only retriable
* error supported is 409. refused-stream: Proxy will retry if the destination
* resets the stream with a REFUSED_STREAM error code. This reset type
* indicates that it is safe to retry.
*
* @var string[]
*/
public $retryConditions;
/**
* Specifies the allowed number of retries. This number must be > 0. If not
* specified, default to 1.
*
* @param int $numRetries
*/
public function setNumRetries($numRetries)
{
$this->numRetries = $numRetries;
}
/**
* @return int
*/
public function getNumRetries()
{
return $this->numRetries;
}
/**
* Specifies a non-zero timeout per retry attempt.
*
* @param string $perTryTimeout
*/
public function setPerTryTimeout($perTryTimeout)
{
$this->perTryTimeout = $perTryTimeout;
}
/**
* @return string
*/
public function getPerTryTimeout()
{
return $this->perTryTimeout;
}
/**
* Specifies one or more conditions when this retry policy applies. Valid
* values are: 5xx: Proxy will attempt a retry if the destination service
* responds with any 5xx response code, of if the destination service does not
* respond at all, example: disconnect, reset, read timeout, connection
* failure and refused streams. gateway-error: Similar to 5xx, but only
* applies to response codes 502, 503, 504. reset: Proxy will attempt a retry
* if the destination service does not respond at all (disconnect/reset/read
* timeout) connect-failure: Proxy will retry on failures connecting to
* destination for example due to connection timeouts. retriable-4xx: Proxy
* will retry fro retriable 4xx response codes. Currently the only retriable
* error supported is 409. refused-stream: Proxy will retry if the destination
* resets the stream with a REFUSED_STREAM error code. This reset type
* indicates that it is safe to retry.
*
* @param string[] $retryConditions
*/
public function setRetryConditions($retryConditions)
{
$this->retryConditions = $retryConditions;
}
/**
* @return string[]
*/
public function getRetryConditions()
{
return $this->retryConditions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRetryPolicy::class, 'Google_Service_NetworkServices_HttpRouteRetryPolicy');

View File

@@ -0,0 +1,297 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteRouteAction extends \Google\Collection
{
protected $collection_key = 'destinations';
protected $corsPolicyType = HttpRouteCorsPolicy::class;
protected $corsPolicyDataType = '';
protected $destinationsType = HttpRouteDestination::class;
protected $destinationsDataType = 'array';
protected $directResponseType = HttpRouteHttpDirectResponse::class;
protected $directResponseDataType = '';
protected $faultInjectionPolicyType = HttpRouteFaultInjectionPolicy::class;
protected $faultInjectionPolicyDataType = '';
/**
* Optional. Specifies the idle timeout for the selected route. The idle
* timeout is defined as the period in which there are no bytes sent or
* received on either the upstream or downstream connection. If not set, the
* default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
*
* @var string
*/
public $idleTimeout;
protected $redirectType = HttpRouteRedirect::class;
protected $redirectDataType = '';
protected $requestHeaderModifierType = HttpRouteHeaderModifier::class;
protected $requestHeaderModifierDataType = '';
protected $requestMirrorPolicyType = HttpRouteRequestMirrorPolicy::class;
protected $requestMirrorPolicyDataType = '';
protected $responseHeaderModifierType = HttpRouteHeaderModifier::class;
protected $responseHeaderModifierDataType = '';
protected $retryPolicyType = HttpRouteRetryPolicy::class;
protected $retryPolicyDataType = '';
protected $statefulSessionAffinityType = HttpRouteStatefulSessionAffinityPolicy::class;
protected $statefulSessionAffinityDataType = '';
/**
* Specifies the timeout for selected route. Timeout is computed from the time
* the request has been fully processed (i.e. end of stream) up until the
* response has been completely processed. Timeout includes all retries.
*
* @var string
*/
public $timeout;
protected $urlRewriteType = HttpRouteURLRewrite::class;
protected $urlRewriteDataType = '';
/**
* The specification for allowing client side cross-origin requests.
*
* @param HttpRouteCorsPolicy $corsPolicy
*/
public function setCorsPolicy(HttpRouteCorsPolicy $corsPolicy)
{
$this->corsPolicy = $corsPolicy;
}
/**
* @return HttpRouteCorsPolicy
*/
public function getCorsPolicy()
{
return $this->corsPolicy;
}
/**
* The destination to which traffic should be forwarded.
*
* @param HttpRouteDestination[] $destinations
*/
public function setDestinations($destinations)
{
$this->destinations = $destinations;
}
/**
* @return HttpRouteDestination[]
*/
public function getDestinations()
{
return $this->destinations;
}
/**
* Optional. Static HTTP Response object to be returned regardless of the
* request.
*
* @param HttpRouteHttpDirectResponse $directResponse
*/
public function setDirectResponse(HttpRouteHttpDirectResponse $directResponse)
{
$this->directResponse = $directResponse;
}
/**
* @return HttpRouteHttpDirectResponse
*/
public function getDirectResponse()
{
return $this->directResponse;
}
/**
* The specification for fault injection introduced into traffic to test the
* resiliency of clients to backend service failure. As part of fault
* injection, when clients send requests to a backend service, delays can be
* introduced on a percentage of requests before sending those requests to the
* backend service. Similarly requests from clients can be aborted for a
* percentage of requests. timeout and retry_policy will be ignored by clients
* that are configured with a fault_injection_policy
*
* @param HttpRouteFaultInjectionPolicy $faultInjectionPolicy
*/
public function setFaultInjectionPolicy(HttpRouteFaultInjectionPolicy $faultInjectionPolicy)
{
$this->faultInjectionPolicy = $faultInjectionPolicy;
}
/**
* @return HttpRouteFaultInjectionPolicy
*/
public function getFaultInjectionPolicy()
{
return $this->faultInjectionPolicy;
}
/**
* Optional. Specifies the idle timeout for the selected route. The idle
* timeout is defined as the period in which there are no bytes sent or
* received on either the upstream or downstream connection. If not set, the
* default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.
*
* @param string $idleTimeout
*/
public function setIdleTimeout($idleTimeout)
{
$this->idleTimeout = $idleTimeout;
}
/**
* @return string
*/
public function getIdleTimeout()
{
return $this->idleTimeout;
}
/**
* If set, the request is directed as configured by this field.
*
* @param HttpRouteRedirect $redirect
*/
public function setRedirect(HttpRouteRedirect $redirect)
{
$this->redirect = $redirect;
}
/**
* @return HttpRouteRedirect
*/
public function getRedirect()
{
return $this->redirect;
}
/**
* The specification for modifying the headers of a matching request prior to
* delivery of the request to the destination. If HeaderModifiers are set on
* both the Destination and the RouteAction, they will be merged. Conflicts
* between the two will not be resolved on the configuration.
*
* @param HttpRouteHeaderModifier $requestHeaderModifier
*/
public function setRequestHeaderModifier(HttpRouteHeaderModifier $requestHeaderModifier)
{
$this->requestHeaderModifier = $requestHeaderModifier;
}
/**
* @return HttpRouteHeaderModifier
*/
public function getRequestHeaderModifier()
{
return $this->requestHeaderModifier;
}
/**
* Specifies the policy on how requests intended for the routes destination
* are shadowed to a separate mirrored destination. Proxy will not wait for
* the shadow destination to respond before returning the response. Prior to
* sending traffic to the shadow service, the host/authority header is
* suffixed with -shadow.
*
* @param HttpRouteRequestMirrorPolicy $requestMirrorPolicy
*/
public function setRequestMirrorPolicy(HttpRouteRequestMirrorPolicy $requestMirrorPolicy)
{
$this->requestMirrorPolicy = $requestMirrorPolicy;
}
/**
* @return HttpRouteRequestMirrorPolicy
*/
public function getRequestMirrorPolicy()
{
return $this->requestMirrorPolicy;
}
/**
* The specification for modifying the headers of a response prior to sending
* the response back to the client. If HeaderModifiers are set on both the
* Destination and the RouteAction, they will be merged. Conflicts between the
* two will not be resolved on the configuration.
*
* @param HttpRouteHeaderModifier $responseHeaderModifier
*/
public function setResponseHeaderModifier(HttpRouteHeaderModifier $responseHeaderModifier)
{
$this->responseHeaderModifier = $responseHeaderModifier;
}
/**
* @return HttpRouteHeaderModifier
*/
public function getResponseHeaderModifier()
{
return $this->responseHeaderModifier;
}
/**
* Specifies the retry policy associated with this route.
*
* @param HttpRouteRetryPolicy $retryPolicy
*/
public function setRetryPolicy(HttpRouteRetryPolicy $retryPolicy)
{
$this->retryPolicy = $retryPolicy;
}
/**
* @return HttpRouteRetryPolicy
*/
public function getRetryPolicy()
{
return $this->retryPolicy;
}
/**
* Optional. Specifies cookie-based stateful session affinity.
*
* @param HttpRouteStatefulSessionAffinityPolicy $statefulSessionAffinity
*/
public function setStatefulSessionAffinity(HttpRouteStatefulSessionAffinityPolicy $statefulSessionAffinity)
{
$this->statefulSessionAffinity = $statefulSessionAffinity;
}
/**
* @return HttpRouteStatefulSessionAffinityPolicy
*/
public function getStatefulSessionAffinity()
{
return $this->statefulSessionAffinity;
}
/**
* Specifies the timeout for selected route. Timeout is computed from the time
* the request has been fully processed (i.e. end of stream) up until the
* response has been completely processed. Timeout includes all retries.
*
* @param string $timeout
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
/**
* The specification for rewrite URL before forwarding requests to the
* destination.
*
* @param HttpRouteURLRewrite $urlRewrite
*/
public function setUrlRewrite(HttpRouteURLRewrite $urlRewrite)
{
$this->urlRewrite = $urlRewrite;
}
/**
* @return HttpRouteURLRewrite
*/
public function getUrlRewrite()
{
return $this->urlRewrite;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRouteAction::class, 'Google_Service_NetworkServices_HttpRouteRouteAction');

View File

@@ -0,0 +1,169 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteRouteMatch extends \Google\Collection
{
protected $collection_key = 'queryParameters';
/**
* The HTTP request path value should exactly match this value. Only one of
* full_path_match, prefix_match, or regex_match should be used.
*
* @var string
*/
public $fullPathMatch;
protected $headersType = HttpRouteHeaderMatch::class;
protected $headersDataType = 'array';
/**
* Specifies if prefix_match and full_path_match matches are case sensitive.
* The default value is false.
*
* @var bool
*/
public $ignoreCase;
/**
* The HTTP request path value must begin with specified prefix_match.
* prefix_match must begin with a /. Only one of full_path_match,
* prefix_match, or regex_match should be used.
*
* @var string
*/
public $prefixMatch;
protected $queryParametersType = HttpRouteQueryParameterMatch::class;
protected $queryParametersDataType = 'array';
/**
* The HTTP request path value must satisfy the regular expression specified
* by regex_match after removing any query parameters and anchor supplied with
* the original URL. For regular expression grammar, please see
* https://github.com/google/re2/wiki/Syntax Only one of full_path_match,
* prefix_match, or regex_match should be used.
*
* @var string
*/
public $regexMatch;
/**
* The HTTP request path value should exactly match this value. Only one of
* full_path_match, prefix_match, or regex_match should be used.
*
* @param string $fullPathMatch
*/
public function setFullPathMatch($fullPathMatch)
{
$this->fullPathMatch = $fullPathMatch;
}
/**
* @return string
*/
public function getFullPathMatch()
{
return $this->fullPathMatch;
}
/**
* Specifies a list of HTTP request headers to match against. ALL of the
* supplied headers must be matched.
*
* @param HttpRouteHeaderMatch[] $headers
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return HttpRouteHeaderMatch[]
*/
public function getHeaders()
{
return $this->headers;
}
/**
* Specifies if prefix_match and full_path_match matches are case sensitive.
* The default value is false.
*
* @param bool $ignoreCase
*/
public function setIgnoreCase($ignoreCase)
{
$this->ignoreCase = $ignoreCase;
}
/**
* @return bool
*/
public function getIgnoreCase()
{
return $this->ignoreCase;
}
/**
* The HTTP request path value must begin with specified prefix_match.
* prefix_match must begin with a /. Only one of full_path_match,
* prefix_match, or regex_match should be used.
*
* @param string $prefixMatch
*/
public function setPrefixMatch($prefixMatch)
{
$this->prefixMatch = $prefixMatch;
}
/**
* @return string
*/
public function getPrefixMatch()
{
return $this->prefixMatch;
}
/**
* Specifies a list of query parameters to match against. ALL of the query
* parameters must be matched.
*
* @param HttpRouteQueryParameterMatch[] $queryParameters
*/
public function setQueryParameters($queryParameters)
{
$this->queryParameters = $queryParameters;
}
/**
* @return HttpRouteQueryParameterMatch[]
*/
public function getQueryParameters()
{
return $this->queryParameters;
}
/**
* The HTTP request path value must satisfy the regular expression specified
* by regex_match after removing any query parameters and anchor supplied with
* the original URL. For regular expression grammar, please see
* https://github.com/google/re2/wiki/Syntax Only one of full_path_match,
* prefix_match, or regex_match should be used.
*
* @param string $regexMatch
*/
public function setRegexMatch($regexMatch)
{
$this->regexMatch = $regexMatch;
}
/**
* @return string
*/
public function getRegexMatch()
{
return $this->regexMatch;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRouteMatch::class, 'Google_Service_NetworkServices_HttpRouteRouteMatch');

View File

@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteRouteRule extends \Google\Collection
{
protected $collection_key = 'matches';
protected $actionType = HttpRouteRouteAction::class;
protected $actionDataType = '';
protected $matchesType = HttpRouteRouteMatch::class;
protected $matchesDataType = 'array';
/**
* The detailed rule defining how to route matched traffic.
*
* @param HttpRouteRouteAction $action
*/
public function setAction(HttpRouteRouteAction $action)
{
$this->action = $action;
}
/**
* @return HttpRouteRouteAction
*/
public function getAction()
{
return $this->action;
}
/**
* A list of matches define conditions used for matching the rule against
* incoming HTTP requests. Each match is independent, i.e. this rule will be
* matched if ANY one of the matches is satisfied. If no matches field is
* specified, this rule will unconditionally match traffic. If a default rule
* is desired to be configured, add a rule with no matches specified to the
* end of the rules list.
*
* @param HttpRouteRouteMatch[] $matches
*/
public function setMatches($matches)
{
$this->matches = $matches;
}
/**
* @return HttpRouteRouteMatch[]
*/
public function getMatches()
{
return $this->matches;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteRouteRule::class, 'Google_Service_NetworkServices_HttpRouteRouteRule');

View File

@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteStatefulSessionAffinityPolicy extends \Google\Model
{
/**
* Required. The cookie TTL value for the Set-Cookie header generated by the
* data plane. The lifetime of the cookie may be set to a value from 0 to
* 86400 seconds (24 hours) inclusive. Set this to 0s to use a session cookie
* and disable cookie expiration.
*
* @var string
*/
public $cookieTtl;
/**
* Required. The cookie TTL value for the Set-Cookie header generated by the
* data plane. The lifetime of the cookie may be set to a value from 0 to
* 86400 seconds (24 hours) inclusive. Set this to 0s to use a session cookie
* and disable cookie expiration.
*
* @param string $cookieTtl
*/
public function setCookieTtl($cookieTtl)
{
$this->cookieTtl = $cookieTtl;
}
/**
* @return string
*/
public function getCookieTtl()
{
return $this->cookieTtl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteStatefulSessionAffinityPolicy::class, 'Google_Service_NetworkServices_HttpRouteStatefulSessionAffinityPolicy');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class HttpRouteURLRewrite extends \Google\Model
{
/**
* Prior to forwarding the request to the selected destination, the requests
* host header is replaced by this value.
*
* @var string
*/
public $hostRewrite;
/**
* Prior to forwarding the request to the selected destination, the matching
* portion of the requests path is replaced by this value.
*
* @var string
*/
public $pathPrefixRewrite;
/**
* Prior to forwarding the request to the selected destination, the requests
* host header is replaced by this value.
*
* @param string $hostRewrite
*/
public function setHostRewrite($hostRewrite)
{
$this->hostRewrite = $hostRewrite;
}
/**
* @return string
*/
public function getHostRewrite()
{
return $this->hostRewrite;
}
/**
* Prior to forwarding the request to the selected destination, the matching
* portion of the requests path is replaced by this value.
*
* @param string $pathPrefixRewrite
*/
public function setPathPrefixRewrite($pathPrefixRewrite)
{
$this->pathPrefixRewrite = $pathPrefixRewrite;
}
/**
* @return string
*/
public function getPathPrefixRewrite()
{
return $this->pathPrefixRewrite;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRouteURLRewrite::class, 'Google_Service_NetworkServices_HttpRouteURLRewrite');

View File

@@ -0,0 +1,237 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class LbEdgeExtension extends \Google\Collection
{
/**
* Default value. Do not use.
*/
public const LOAD_BALANCING_SCHEME_LOAD_BALANCING_SCHEME_UNSPECIFIED = 'LOAD_BALANCING_SCHEME_UNSPECIFIED';
/**
* Signifies that this is used for Internal HTTP(S) Load Balancing.
*/
public const LOAD_BALANCING_SCHEME_INTERNAL_MANAGED = 'INTERNAL_MANAGED';
/**
* Signifies that this is used for External Managed HTTP(S) Load Balancing.
*/
public const LOAD_BALANCING_SCHEME_EXTERNAL_MANAGED = 'EXTERNAL_MANAGED';
protected $collection_key = 'forwardingRules';
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A human-readable description of the resource.
*
* @var string
*/
public $description;
protected $extensionChainsType = ExtensionChain::class;
protected $extensionChainsDataType = 'array';
/**
* Required. A list of references to the forwarding rules to which this
* service extension is attached. At least one forwarding rule is required.
* Only one `LbEdgeExtension` resource can be associated with a forwarding
* rule.
*
* @var string[]
*/
public $forwardingRules;
/**
* Optional. Set of labels associated with the `LbEdgeExtension` resource. The
* format must comply with [the requirements for
* labels](https://cloud.google.com/compute/docs/labeling-
* resources#requirements) for Google Cloud resources.
*
* @var string[]
*/
public $labels;
/**
* Required. All forwarding rules referenced by this extension must share the
* same load balancing scheme. Supported values: `EXTERNAL_MANAGED`.
*
* @var string
*/
public $loadBalancingScheme;
/**
* Required. Identifier. Name of the `LbEdgeExtension` resource in the
* following format: `projects/{project}/locations/{location}/lbEdgeExtensions
* /{lb_edge_extension}`.
*
* @var string
*/
public $name;
/**
* Output only. The timestamp when the resource was updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A human-readable description of the resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. A set of ordered extension chains that contain the match
* conditions and extensions to execute. Match conditions for each extension
* chain are evaluated in sequence for a given request. The first extension
* chain that has a condition that matches the request is executed. Any
* subsequent extension chains do not execute. Limited to 5 extension chains
* per resource.
*
* @param ExtensionChain[] $extensionChains
*/
public function setExtensionChains($extensionChains)
{
$this->extensionChains = $extensionChains;
}
/**
* @return ExtensionChain[]
*/
public function getExtensionChains()
{
return $this->extensionChains;
}
/**
* Required. A list of references to the forwarding rules to which this
* service extension is attached. At least one forwarding rule is required.
* Only one `LbEdgeExtension` resource can be associated with a forwarding
* rule.
*
* @param string[] $forwardingRules
*/
public function setForwardingRules($forwardingRules)
{
$this->forwardingRules = $forwardingRules;
}
/**
* @return string[]
*/
public function getForwardingRules()
{
return $this->forwardingRules;
}
/**
* Optional. Set of labels associated with the `LbEdgeExtension` resource. The
* format must comply with [the requirements for
* labels](https://cloud.google.com/compute/docs/labeling-
* resources#requirements) for Google Cloud resources.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Required. All forwarding rules referenced by this extension must share the
* same load balancing scheme. Supported values: `EXTERNAL_MANAGED`.
*
* Accepted values: LOAD_BALANCING_SCHEME_UNSPECIFIED, INTERNAL_MANAGED,
* EXTERNAL_MANAGED
*
* @param self::LOAD_BALANCING_SCHEME_* $loadBalancingScheme
*/
public function setLoadBalancingScheme($loadBalancingScheme)
{
$this->loadBalancingScheme = $loadBalancingScheme;
}
/**
* @return self::LOAD_BALANCING_SCHEME_*
*/
public function getLoadBalancingScheme()
{
return $this->loadBalancingScheme;
}
/**
* Required. Identifier. Name of the `LbEdgeExtension` resource in the
* following format: `projects/{project}/locations/{location}/lbEdgeExtensions
* /{lb_edge_extension}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The timestamp when the resource was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LbEdgeExtension::class, 'Google_Service_NetworkServices_LbEdgeExtension');

View File

@@ -0,0 +1,287 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class LbRouteExtension extends \Google\Collection
{
/**
* Default value. Do not use.
*/
public const LOAD_BALANCING_SCHEME_LOAD_BALANCING_SCHEME_UNSPECIFIED = 'LOAD_BALANCING_SCHEME_UNSPECIFIED';
/**
* Signifies that this is used for Internal HTTP(S) Load Balancing.
*/
public const LOAD_BALANCING_SCHEME_INTERNAL_MANAGED = 'INTERNAL_MANAGED';
/**
* Signifies that this is used for External Managed HTTP(S) Load Balancing.
*/
public const LOAD_BALANCING_SCHEME_EXTERNAL_MANAGED = 'EXTERNAL_MANAGED';
protected $collection_key = 'forwardingRules';
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A human-readable description of the resource.
*
* @var string
*/
public $description;
protected $extensionChainsType = ExtensionChain::class;
protected $extensionChainsDataType = 'array';
/**
* Required. A list of references to the forwarding rules to which this
* service extension is attached. At least one forwarding rule is required.
* Only one `LbRouteExtension` resource can be associated with a forwarding
* rule.
*
* @var string[]
*/
public $forwardingRules;
/**
* Optional. Set of labels associated with the `LbRouteExtension` resource.
* The format must comply with [the requirements for
* labels](https://cloud.google.com/compute/docs/labeling-
* resources#requirements) for Google Cloud resources.
*
* @var string[]
*/
public $labels;
/**
* Required. All backend services and forwarding rules referenced by this
* extension must share the same load balancing scheme. Supported values:
* `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
* [Backend services overview](https://cloud.google.com/load-
* balancing/docs/backend-service).
*
* @var string
*/
public $loadBalancingScheme;
/**
* Optional. The metadata provided here is included as part of the
* `metadata_context` (of type `google.protobuf.Struct`) in the
* `ProcessingRequest` message sent to the extension server. The metadata
* applies to all extensions in all extensions chains in this resource. The
* metadata is available under the key `com.google.lb_route_extension.`. The
* following variables are supported in the metadata: `{forwarding_rule_id}` -
* substituted with the forwarding rule's fully qualified resource name. This
* field must not be set if at least one of the extension chains contains
* plugin extensions. Setting it results in a validation error. You can set
* metadata at either the resource level or the extension level. The extension
* level metadata is recommended because you can pass a different set of
* metadata through each extension to the backend.
*
* @var array[]
*/
public $metadata;
/**
* Required. Identifier. Name of the `LbRouteExtension` resource in the
* following format: `projects/{project}/locations/{location}/lbRouteExtension
* s/{lb_route_extension}`.
*
* @var string
*/
public $name;
/**
* Output only. The timestamp when the resource was updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A human-readable description of the resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. A set of ordered extension chains that contain the match
* conditions and extensions to execute. Match conditions for each extension
* chain are evaluated in sequence for a given request. The first extension
* chain that has a condition that matches the request is executed. Any
* subsequent extension chains do not execute. Limited to 5 extension chains
* per resource.
*
* @param ExtensionChain[] $extensionChains
*/
public function setExtensionChains($extensionChains)
{
$this->extensionChains = $extensionChains;
}
/**
* @return ExtensionChain[]
*/
public function getExtensionChains()
{
return $this->extensionChains;
}
/**
* Required. A list of references to the forwarding rules to which this
* service extension is attached. At least one forwarding rule is required.
* Only one `LbRouteExtension` resource can be associated with a forwarding
* rule.
*
* @param string[] $forwardingRules
*/
public function setForwardingRules($forwardingRules)
{
$this->forwardingRules = $forwardingRules;
}
/**
* @return string[]
*/
public function getForwardingRules()
{
return $this->forwardingRules;
}
/**
* Optional. Set of labels associated with the `LbRouteExtension` resource.
* The format must comply with [the requirements for
* labels](https://cloud.google.com/compute/docs/labeling-
* resources#requirements) for Google Cloud resources.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Required. All backend services and forwarding rules referenced by this
* extension must share the same load balancing scheme. Supported values:
* `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
* [Backend services overview](https://cloud.google.com/load-
* balancing/docs/backend-service).
*
* Accepted values: LOAD_BALANCING_SCHEME_UNSPECIFIED, INTERNAL_MANAGED,
* EXTERNAL_MANAGED
*
* @param self::LOAD_BALANCING_SCHEME_* $loadBalancingScheme
*/
public function setLoadBalancingScheme($loadBalancingScheme)
{
$this->loadBalancingScheme = $loadBalancingScheme;
}
/**
* @return self::LOAD_BALANCING_SCHEME_*
*/
public function getLoadBalancingScheme()
{
return $this->loadBalancingScheme;
}
/**
* Optional. The metadata provided here is included as part of the
* `metadata_context` (of type `google.protobuf.Struct`) in the
* `ProcessingRequest` message sent to the extension server. The metadata
* applies to all extensions in all extensions chains in this resource. The
* metadata is available under the key `com.google.lb_route_extension.`. The
* following variables are supported in the metadata: `{forwarding_rule_id}` -
* substituted with the forwarding rule's fully qualified resource name. This
* field must not be set if at least one of the extension chains contains
* plugin extensions. Setting it results in a validation error. You can set
* metadata at either the resource level or the extension level. The extension
* level metadata is recommended because you can pass a different set of
* metadata through each extension to the backend.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Required. Identifier. Name of the `LbRouteExtension` resource in the
* following format: `projects/{project}/locations/{location}/lbRouteExtension
* s/{lb_route_extension}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The timestamp when the resource was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LbRouteExtension::class, 'Google_Service_NetworkServices_LbRouteExtension');

View File

@@ -0,0 +1,287 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class LbTrafficExtension extends \Google\Collection
{
/**
* Default value. Do not use.
*/
public const LOAD_BALANCING_SCHEME_LOAD_BALANCING_SCHEME_UNSPECIFIED = 'LOAD_BALANCING_SCHEME_UNSPECIFIED';
/**
* Signifies that this is used for Internal HTTP(S) Load Balancing.
*/
public const LOAD_BALANCING_SCHEME_INTERNAL_MANAGED = 'INTERNAL_MANAGED';
/**
* Signifies that this is used for External Managed HTTP(S) Load Balancing.
*/
public const LOAD_BALANCING_SCHEME_EXTERNAL_MANAGED = 'EXTERNAL_MANAGED';
protected $collection_key = 'forwardingRules';
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A human-readable description of the resource.
*
* @var string
*/
public $description;
protected $extensionChainsType = ExtensionChain::class;
protected $extensionChainsDataType = 'array';
/**
* Optional. A list of references to the forwarding rules to which this
* service extension is attached. At least one forwarding rule is required.
* Only one `LbTrafficExtension` resource can be associated with a forwarding
* rule.
*
* @var string[]
*/
public $forwardingRules;
/**
* Optional. Set of labels associated with the `LbTrafficExtension` resource.
* The format must comply with [the requirements for
* labels](https://cloud.google.com/compute/docs/labeling-
* resources#requirements) for Google Cloud resources.
*
* @var string[]
*/
public $labels;
/**
* Required. All backend services and forwarding rules referenced by this
* extension must share the same load balancing scheme. Supported values:
* `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer to
* [Backend services overview](https://cloud.google.com/load-
* balancing/docs/backend-service).
*
* @var string
*/
public $loadBalancingScheme;
/**
* Optional. The metadata provided here is included as part of the
* `metadata_context` (of type `google.protobuf.Struct`) in the
* `ProcessingRequest` message sent to the extension server. The metadata
* applies to all extensions in all extensions chains in this resource. The
* metadata is available under the key `com.google.lb_traffic_extension.`. The
* following variables are supported in the metadata: `{forwarding_rule_id}` -
* substituted with the forwarding rule's fully qualified resource name. This
* field must not be set if at least one of the extension chains contains
* plugin extensions. Setting it results in a validation error. You can set
* metadata at either the resource level or the extension level. The extension
* level metadata is recommended because you can pass a different set of
* metadata through each extension to the backend.
*
* @var array[]
*/
public $metadata;
/**
* Required. Identifier. Name of the `LbTrafficExtension` resource in the
* following format: `projects/{project}/locations/{location}/lbTrafficExtensi
* ons/{lb_traffic_extension}`.
*
* @var string
*/
public $name;
/**
* Output only. The timestamp when the resource was updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A human-readable description of the resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. A set of ordered extension chains that contain the match
* conditions and extensions to execute. Match conditions for each extension
* chain are evaluated in sequence for a given request. The first extension
* chain that has a condition that matches the request is executed. Any
* subsequent extension chains do not execute. Limited to 5 extension chains
* per resource.
*
* @param ExtensionChain[] $extensionChains
*/
public function setExtensionChains($extensionChains)
{
$this->extensionChains = $extensionChains;
}
/**
* @return ExtensionChain[]
*/
public function getExtensionChains()
{
return $this->extensionChains;
}
/**
* Optional. A list of references to the forwarding rules to which this
* service extension is attached. At least one forwarding rule is required.
* Only one `LbTrafficExtension` resource can be associated with a forwarding
* rule.
*
* @param string[] $forwardingRules
*/
public function setForwardingRules($forwardingRules)
{
$this->forwardingRules = $forwardingRules;
}
/**
* @return string[]
*/
public function getForwardingRules()
{
return $this->forwardingRules;
}
/**
* Optional. Set of labels associated with the `LbTrafficExtension` resource.
* The format must comply with [the requirements for
* labels](https://cloud.google.com/compute/docs/labeling-
* resources#requirements) for Google Cloud resources.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Required. All backend services and forwarding rules referenced by this
* extension must share the same load balancing scheme. Supported values:
* `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer to
* [Backend services overview](https://cloud.google.com/load-
* balancing/docs/backend-service).
*
* Accepted values: LOAD_BALANCING_SCHEME_UNSPECIFIED, INTERNAL_MANAGED,
* EXTERNAL_MANAGED
*
* @param self::LOAD_BALANCING_SCHEME_* $loadBalancingScheme
*/
public function setLoadBalancingScheme($loadBalancingScheme)
{
$this->loadBalancingScheme = $loadBalancingScheme;
}
/**
* @return self::LOAD_BALANCING_SCHEME_*
*/
public function getLoadBalancingScheme()
{
return $this->loadBalancingScheme;
}
/**
* Optional. The metadata provided here is included as part of the
* `metadata_context` (of type `google.protobuf.Struct`) in the
* `ProcessingRequest` message sent to the extension server. The metadata
* applies to all extensions in all extensions chains in this resource. The
* metadata is available under the key `com.google.lb_traffic_extension.`. The
* following variables are supported in the metadata: `{forwarding_rule_id}` -
* substituted with the forwarding rule's fully qualified resource name. This
* field must not be set if at least one of the extension chains contains
* plugin extensions. Setting it results in a validation error. You can set
* metadata at either the resource level or the extension level. The extension
* level metadata is recommended because you can pass a different set of
* metadata through each extension to the backend.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Required. Identifier. Name of the `LbTrafficExtension` resource in the
* following format: `projects/{project}/locations/{location}/lbTrafficExtensi
* ons/{lb_traffic_extension}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The timestamp when the resource was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LbTrafficExtension::class, 'Google_Service_NetworkServices_LbTrafficExtension');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListAuthzExtensionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $authzExtensionsType = AuthzExtension::class;
protected $authzExtensionsDataType = 'array';
/**
* A token identifying a page of results that the server returns.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of `AuthzExtension` resources.
*
* @param AuthzExtension[] $authzExtensions
*/
public function setAuthzExtensions($authzExtensions)
{
$this->authzExtensions = $authzExtensions;
}
/**
* @return AuthzExtension[]
*/
public function getAuthzExtensions()
{
return $this->authzExtensions;
}
/**
* A token identifying a page of results that the server returns.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAuthzExtensionsResponse::class, 'Google_Service_NetworkServices_ListAuthzExtensionsResponse');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListEndpointPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $endpointPoliciesType = EndpointPolicy::class;
protected $endpointPoliciesDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* Unreachable resources. Populated when the request opts into
* return_partial_success and reading across collections e.g. when attempting
* to list all resources across all supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* List of EndpointPolicy resources.
*
* @param EndpointPolicy[] $endpointPolicies
*/
public function setEndpointPolicies($endpointPolicies)
{
$this->endpointPolicies = $endpointPolicies;
}
/**
* @return EndpointPolicy[]
*/
public function getEndpointPolicies()
{
return $this->endpointPolicies;
}
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Unreachable resources. Populated when the request opts into
* return_partial_success and reading across collections e.g. when attempting
* to list all resources across all supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListEndpointPoliciesResponse::class, 'Google_Service_NetworkServices_ListEndpointPoliciesResponse');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListGatewayRouteViewsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $gatewayRouteViewsType = GatewayRouteView::class;
protected $gatewayRouteViewsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @var string[]
*/
public $unreachable;
/**
* List of GatewayRouteView resources.
*
* @param GatewayRouteView[] $gatewayRouteViews
*/
public function setGatewayRouteViews($gatewayRouteViews)
{
$this->gatewayRouteViews = $gatewayRouteViews;
}
/**
* @return GatewayRouteView[]
*/
public function getGatewayRouteViews()
{
return $this->gatewayRouteViews;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListGatewayRouteViewsResponse::class, 'Google_Service_NetworkServices_ListGatewayRouteViewsResponse');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListGatewaysResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $gatewaysType = Gateway::class;
protected $gatewaysDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* List of Gateway resources.
*
* @param Gateway[] $gateways
*/
public function setGateways($gateways)
{
$this->gateways = $gateways;
}
/**
* @return Gateway[]
*/
public function getGateways()
{
return $this->gateways;
}
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListGatewaysResponse::class, 'Google_Service_NetworkServices_ListGatewaysResponse');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListGrpcRoutesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $grpcRoutesType = GrpcRoute::class;
protected $grpcRoutesDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* Unreachable resources. Populated when the request opts into
* return_partial_success and reading across collections e.g. when attempting
* to list all resources across all supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* List of GrpcRoute resources.
*
* @param GrpcRoute[] $grpcRoutes
*/
public function setGrpcRoutes($grpcRoutes)
{
$this->grpcRoutes = $grpcRoutes;
}
/**
* @return GrpcRoute[]
*/
public function getGrpcRoutes()
{
return $this->grpcRoutes;
}
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Unreachable resources. Populated when the request opts into
* return_partial_success and reading across collections e.g. when attempting
* to list all resources across all supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListGrpcRoutesResponse::class, 'Google_Service_NetworkServices_ListGrpcRoutesResponse');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListHttpRoutesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $httpRoutesType = HttpRoute::class;
protected $httpRoutesDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* Unreachable resources. Populated when the request opts into
* return_partial_success and reading across collections e.g. when attempting
* to list all resources across all supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* List of HttpRoute resources.
*
* @param HttpRoute[] $httpRoutes
*/
public function setHttpRoutes($httpRoutes)
{
$this->httpRoutes = $httpRoutes;
}
/**
* @return HttpRoute[]
*/
public function getHttpRoutes()
{
return $this->httpRoutes;
}
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Unreachable resources. Populated when the request opts into
* return_partial_success and reading across collections e.g. when attempting
* to list all resources across all supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListHttpRoutesResponse::class, 'Google_Service_NetworkServices_ListHttpRoutesResponse');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListLbEdgeExtensionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $lbEdgeExtensionsType = LbEdgeExtension::class;
protected $lbEdgeExtensionsDataType = 'array';
/**
* A token identifying a page of results that the server returns.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of `LbEdgeExtension` resources.
*
* @param LbEdgeExtension[] $lbEdgeExtensions
*/
public function setLbEdgeExtensions($lbEdgeExtensions)
{
$this->lbEdgeExtensions = $lbEdgeExtensions;
}
/**
* @return LbEdgeExtension[]
*/
public function getLbEdgeExtensions()
{
return $this->lbEdgeExtensions;
}
/**
* A token identifying a page of results that the server returns.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLbEdgeExtensionsResponse::class, 'Google_Service_NetworkServices_ListLbEdgeExtensionsResponse');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListLbRouteExtensionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $lbRouteExtensionsType = LbRouteExtension::class;
protected $lbRouteExtensionsDataType = 'array';
/**
* A token identifying a page of results that the server returns.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of `LbRouteExtension` resources.
*
* @param LbRouteExtension[] $lbRouteExtensions
*/
public function setLbRouteExtensions($lbRouteExtensions)
{
$this->lbRouteExtensions = $lbRouteExtensions;
}
/**
* @return LbRouteExtension[]
*/
public function getLbRouteExtensions()
{
return $this->lbRouteExtensions;
}
/**
* A token identifying a page of results that the server returns.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLbRouteExtensionsResponse::class, 'Google_Service_NetworkServices_ListLbRouteExtensionsResponse');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListLbTrafficExtensionsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $lbTrafficExtensionsType = LbTrafficExtension::class;
protected $lbTrafficExtensionsDataType = 'array';
/**
* A token identifying a page of results that the server returns.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of `LbTrafficExtension` resources.
*
* @param LbTrafficExtension[] $lbTrafficExtensions
*/
public function setLbTrafficExtensions($lbTrafficExtensions)
{
$this->lbTrafficExtensions = $lbTrafficExtensions;
}
/**
* @return LbTrafficExtension[]
*/
public function getLbTrafficExtensions()
{
return $this->lbTrafficExtensions;
}
/**
* A token identifying a page of results that the server returns.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLbTrafficExtensionsResponse::class, 'Google_Service_NetworkServices_ListLbTrafficExtensionsResponse');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_NetworkServices_ListLocationsResponse');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListMeshRouteViewsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $meshRouteViewsType = MeshRouteView::class;
protected $meshRouteViewsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @var string[]
*/
public $unreachable;
/**
* List of MeshRouteView resources.
*
* @param MeshRouteView[] $meshRouteViews
*/
public function setMeshRouteViews($meshRouteViews)
{
$this->meshRouteViews = $meshRouteViews;
}
/**
* @return MeshRouteView[]
*/
public function getMeshRouteViews()
{
return $this->meshRouteViews;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListMeshRouteViewsResponse::class, 'Google_Service_NetworkServices_ListMeshRouteViewsResponse');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListMeshesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $meshesType = Mesh::class;
protected $meshesDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* Unreachable resources. Populated when the request opts into
* `return_partial_success` and reading across collections e.g. when
* attempting to list all resources across all supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* List of Mesh resources.
*
* @param Mesh[] $meshes
*/
public function setMeshes($meshes)
{
$this->meshes = $meshes;
}
/**
* @return Mesh[]
*/
public function getMeshes()
{
return $this->meshes;
}
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Unreachable resources. Populated when the request opts into
* `return_partial_success` and reading across collections e.g. when
* attempting to list all resources across all supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListMeshesResponse::class, 'Google_Service_NetworkServices_ListMeshesResponse');

View File

@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_NetworkServices_ListOperationsResponse');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListServiceBindingsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
protected $serviceBindingsType = ServiceBinding::class;
protected $serviceBindingsDataType = 'array';
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @var string[]
*/
public $unreachable;
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of ServiceBinding resources.
*
* @param ServiceBinding[] $serviceBindings
*/
public function setServiceBindings($serviceBindings)
{
$this->serviceBindings = $serviceBindings;
}
/**
* @return ServiceBinding[]
*/
public function getServiceBindings()
{
return $this->serviceBindings;
}
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServiceBindingsResponse::class, 'Google_Service_NetworkServices_ListServiceBindingsResponse');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListServiceLbPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
protected $serviceLbPoliciesType = ServiceLbPolicy::class;
protected $serviceLbPoliciesDataType = 'array';
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @var string[]
*/
public $unreachable;
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of ServiceLbPolicy resources.
*
* @param ServiceLbPolicy[] $serviceLbPolicies
*/
public function setServiceLbPolicies($serviceLbPolicies)
{
$this->serviceLbPolicies = $serviceLbPolicies;
}
/**
* @return ServiceLbPolicy[]
*/
public function getServiceLbPolicies()
{
return $this->serviceLbPolicies;
}
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServiceLbPoliciesResponse::class, 'Google_Service_NetworkServices_ListServiceLbPoliciesResponse');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListTcpRoutesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
protected $tcpRoutesType = TcpRoute::class;
protected $tcpRoutesDataType = 'array';
/**
* Unreachable resources. Populated when the request opts into
* return_partial_success and reading across collections e.g. when attempting
* to list all resources across all supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of TcpRoute resources.
*
* @param TcpRoute[] $tcpRoutes
*/
public function setTcpRoutes($tcpRoutes)
{
$this->tcpRoutes = $tcpRoutes;
}
/**
* @return TcpRoute[]
*/
public function getTcpRoutes()
{
return $this->tcpRoutes;
}
/**
* Unreachable resources. Populated when the request opts into
* return_partial_success and reading across collections e.g. when attempting
* to list all resources across all supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTcpRoutesResponse::class, 'Google_Service_NetworkServices_ListTcpRoutesResponse');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListTlsRoutesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
protected $tlsRoutesType = TlsRoute::class;
protected $tlsRoutesDataType = 'array';
/**
* Unreachable resources. Populated when the request opts into
* return_partial_success and reading across collections e.g. when attempting
* to list all resources across all supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of TlsRoute resources.
*
* @param TlsRoute[] $tlsRoutes
*/
public function setTlsRoutes($tlsRoutes)
{
$this->tlsRoutes = $tlsRoutes;
}
/**
* @return TlsRoute[]
*/
public function getTlsRoutes()
{
return $this->tlsRoutes;
}
/**
* Unreachable resources. Populated when the request opts into
* return_partial_success and reading across collections e.g. when attempting
* to list all resources across all supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTlsRoutesResponse::class, 'Google_Service_NetworkServices_ListTlsRoutesResponse');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListWasmPluginVersionsResponse extends \Google\Collection
{
protected $collection_key = 'wasmPluginVersions';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @var string[]
*/
public $unreachable;
protected $wasmPluginVersionsType = WasmPluginVersion::class;
protected $wasmPluginVersionsDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* List of `WasmPluginVersion` resources.
*
* @param WasmPluginVersion[] $wasmPluginVersions
*/
public function setWasmPluginVersions($wasmPluginVersions)
{
$this->wasmPluginVersions = $wasmPluginVersions;
}
/**
* @return WasmPluginVersion[]
*/
public function getWasmPluginVersions()
{
return $this->wasmPluginVersions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWasmPluginVersionsResponse::class, 'Google_Service_NetworkServices_ListWasmPluginVersionsResponse');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class ListWasmPluginsResponse extends \Google\Collection
{
protected $collection_key = 'wasmPlugins';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @var string[]
*/
public $unreachable;
protected $wasmPluginsType = WasmPlugin::class;
protected $wasmPluginsDataType = 'array';
/**
* If there might be more results than those appearing in this response, then
* `next_page_token` is included. To get the next set of results, call this
* method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Unreachable resources. Populated when the request attempts to list all
* resources across all supported locations, while some locations are
* temporarily unavailable.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* List of `WasmPlugin` resources.
*
* @param WasmPlugin[] $wasmPlugins
*/
public function setWasmPlugins($wasmPlugins)
{
$this->wasmPlugins = $wasmPlugins;
}
/**
* @return WasmPlugin[]
*/
public function getWasmPlugins()
{
return $this->wasmPlugins;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWasmPluginsResponse::class, 'Google_Service_NetworkServices_ListWasmPluginsResponse');

View File

@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_NetworkServices_Location');

View File

@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class LoggingConfig extends \Google\Model
{
/**
* Log severity is not specified. This value is treated the same as NONE, but
* is used to distinguish between no update and update to NONE in
* update_masks.
*/
public const LOG_SEVERITY_LOG_SEVERITY_UNSPECIFIED = 'LOG_SEVERITY_UNSPECIFIED';
/**
* Default value at resource creation, presence of this value must be treated
* as no logging/disable logging.
*/
public const LOG_SEVERITY_NONE = 'NONE';
/**
* Debug or trace level logging.
*/
public const LOG_SEVERITY_DEBUG = 'DEBUG';
/**
* Routine information, such as ongoing status or performance.
*/
public const LOG_SEVERITY_INFO = 'INFO';
/**
* Normal but significant events, such as start up, shut down, or a
* configuration change.
*/
public const LOG_SEVERITY_NOTICE = 'NOTICE';
/**
* Warning events might cause problems.
*/
public const LOG_SEVERITY_WARNING = 'WARNING';
/**
* Error events are likely to cause problems.
*/
public const LOG_SEVERITY_ERROR = 'ERROR';
/**
* Critical events cause more severe problems or outages.
*/
public const LOG_SEVERITY_CRITICAL = 'CRITICAL';
/**
* A person must take action immediately.
*/
public const LOG_SEVERITY_ALERT = 'ALERT';
/**
* One or more systems are unusable.
*/
public const LOG_SEVERITY_EMERGENCY = 'EMERGENCY';
/**
* Optional. The minimum severity of logs that will be sent to
* Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be
* sent, unless it is NONE.
*
* @var string
*/
public $logSeverity;
/**
* Optional. The minimum severity of logs that will be sent to
* Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be
* sent, unless it is NONE.
*
* Accepted values: LOG_SEVERITY_UNSPECIFIED, NONE, DEBUG, INFO, NOTICE,
* WARNING, ERROR, CRITICAL, ALERT, EMERGENCY
*
* @param self::LOG_SEVERITY_* $logSeverity
*/
public function setLogSeverity($logSeverity)
{
$this->logSeverity = $logSeverity;
}
/**
* @return self::LOG_SEVERITY_*
*/
public function getLogSeverity()
{
return $this->logSeverity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoggingConfig::class, 'Google_Service_NetworkServices_LoggingConfig');

View File

@@ -0,0 +1,236 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class Mesh extends \Google\Model
{
/**
* Defaults to NONE.
*/
public const ENVOY_HEADERS_ENVOY_HEADERS_UNSPECIFIED = 'ENVOY_HEADERS_UNSPECIFIED';
/**
* Suppress envoy debug headers.
*/
public const ENVOY_HEADERS_NONE = 'NONE';
/**
* Envoy will insert default internal debug headers into upstream requests:
* x-envoy-attempt-count, x-envoy-is-timeout-retry, x-envoy-expected-rq-
* timeout-ms, x-envoy-original-path, x-envoy-upstream-stream-duration-ms
*/
public const ENVOY_HEADERS_DEBUG_HEADERS = 'DEBUG_HEADERS';
/**
* Output only. The timestamp when the resource was created.
*
* @var string
*/
public $createTime;
/**
* Optional. A free-text description of the resource. Max length 1024
* characters.
*
* @var string
*/
public $description;
/**
* Optional. Determines if envoy will insert internal debug headers into
* upstream requests. Other Envoy headers may still be injected. By default,
* envoy will not insert any debug headers.
*
* @var string
*/
public $envoyHeaders;
/**
* Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy
* to listen on the specified port of localhost (127.0.0.1) address. The
* SIDECAR proxy will expect all traffic to be redirected to this port
* regardless of its actual ip:port destination. If unset, a port '15001' is
* used as the interception port. This is applicable only for sidecar proxy
* deployments.
*
* @var int
*/
public $interceptionPort;
/**
* Optional. Set of label tags associated with the Mesh resource.
*
* @var string[]
*/
public $labels;
/**
* Identifier. Name of the Mesh resource. It matches pattern
* `projects/locations/meshes/`.
*
* @var string
*/
public $name;
/**
* Output only. Server-defined URL of this resource
*
* @var string
*/
public $selfLink;
/**
* Output only. The timestamp when the resource was updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The timestamp when the resource was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. A free-text description of the resource. Max length 1024
* characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Determines if envoy will insert internal debug headers into
* upstream requests. Other Envoy headers may still be injected. By default,
* envoy will not insert any debug headers.
*
* Accepted values: ENVOY_HEADERS_UNSPECIFIED, NONE, DEBUG_HEADERS
*
* @param self::ENVOY_HEADERS_* $envoyHeaders
*/
public function setEnvoyHeaders($envoyHeaders)
{
$this->envoyHeaders = $envoyHeaders;
}
/**
* @return self::ENVOY_HEADERS_*
*/
public function getEnvoyHeaders()
{
return $this->envoyHeaders;
}
/**
* Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy
* to listen on the specified port of localhost (127.0.0.1) address. The
* SIDECAR proxy will expect all traffic to be redirected to this port
* regardless of its actual ip:port destination. If unset, a port '15001' is
* used as the interception port. This is applicable only for sidecar proxy
* deployments.
*
* @param int $interceptionPort
*/
public function setInterceptionPort($interceptionPort)
{
$this->interceptionPort = $interceptionPort;
}
/**
* @return int
*/
public function getInterceptionPort()
{
return $this->interceptionPort;
}
/**
* Optional. Set of label tags associated with the Mesh resource.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. Name of the Mesh resource. It matches pattern
* `projects/locations/meshes/`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Server-defined URL of this resource
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Output only. The timestamp when the resource was updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Mesh::class, 'Google_Service_NetworkServices_Mesh');

View File

@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class MeshRouteView extends \Google\Model
{
/**
* Output only. Identifier. Full path name of the MeshRouteView resource.
* Format: projects/{project_number}/locations/{location}/meshes/{mesh}/routeV
* iews/{route_view}
*
* @var string
*/
public $name;
/**
* Output only. The resource id for the route.
*
* @var string
*/
public $routeId;
/**
* Output only. Location where the route exists.
*
* @var string
*/
public $routeLocation;
/**
* Output only. Project number where the route exists.
*
* @var string
*/
public $routeProjectNumber;
/**
* Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
*
* @var string
*/
public $routeType;
/**
* Output only. Identifier. Full path name of the MeshRouteView resource.
* Format: projects/{project_number}/locations/{location}/meshes/{mesh}/routeV
* iews/{route_view}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The resource id for the route.
*
* @param string $routeId
*/
public function setRouteId($routeId)
{
$this->routeId = $routeId;
}
/**
* @return string
*/
public function getRouteId()
{
return $this->routeId;
}
/**
* Output only. Location where the route exists.
*
* @param string $routeLocation
*/
public function setRouteLocation($routeLocation)
{
$this->routeLocation = $routeLocation;
}
/**
* @return string
*/
public function getRouteLocation()
{
return $this->routeLocation;
}
/**
* Output only. Project number where the route exists.
*
* @param string $routeProjectNumber
*/
public function setRouteProjectNumber($routeProjectNumber)
{
$this->routeProjectNumber = $routeProjectNumber;
}
/**
* @return string
*/
public function getRouteProjectNumber()
{
return $this->routeProjectNumber;
}
/**
* Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
*
* @param string $routeType
*/
public function setRouteType($routeType)
{
$this->routeType = $routeType;
}
/**
* @return string
*/
public function getRouteType()
{
return $this->routeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MeshRouteView::class, 'Google_Service_NetworkServices_MeshRouteView');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class NetworkservicesEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkservicesEmpty::class, 'Google_Service_NetworkServices_NetworkservicesEmpty');

View File

@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_NetworkServices_Operation');

View File

@@ -0,0 +1,186 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have successfully been cancelled have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have successfully been cancelled have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Output only. Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. Name of the verb executed by the operation.
*
* @param string $verb
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_NetworkServices_OperationMetadata');

View File

@@ -0,0 +1,165 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* `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.
*
* @var string
*/
public $etag;
/**
* 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).
*
* @var int
*/
public $version;
/**
* Specifies cloud audit logging configuration for this policy.
*
* @param AuditConfig[] $auditConfigs
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* 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`.
*
* @param Binding[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* `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.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* 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).
*
* @param int $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_NetworkServices_Policy');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $projects = $networkservicesService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_NetworkServices_Resource_Projects');

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\ListLocationsResponse;
use Google\Service\NetworkServices\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $locations = $networkservicesService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
* unsupported and is ignored unless explicitly documented otherwise. This is
* primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_NetworkServices_Resource_ProjectsLocations');

View File

@@ -0,0 +1,167 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\AuthzExtension;
use Google\Service\NetworkServices\ListAuthzExtensionsResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "authzExtensions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $authzExtensions = $networkservicesService->projects_locations_authzExtensions;
* </code>
*/
class ProjectsLocationsAuthzExtensions extends \Google\Service\Resource
{
/**
* Creates a new `AuthzExtension` resource in a given project and location.
* (authzExtensions.create)
*
* @param string $parent Required. The parent resource of the `AuthzExtension`
* resource. Must be in the format `projects/{project}/locations/{location}`.
* @param AuthzExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string authzExtensionId Required. User-provided ID of the
* `AuthzExtension` resource to be created.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, AuthzExtension $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `AuthzExtension` resource. (authzExtensions.delete)
*
* @param string $name Required. The name of the `AuthzExtension` resource to
* delete. Must be in the format
* `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes after the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of the specified `AuthzExtension` resource.
* (authzExtensions.get)
*
* @param string $name Required. A name of the `AuthzExtension` resource to get.
* Must be in the format
* `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
* @param array $optParams Optional parameters.
* @return AuthzExtension
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AuthzExtension::class);
}
/**
* Lists `AuthzExtension` resources in a given project and location.
* (authzExtensions.listProjectsLocationsAuthzExtensions)
*
* @param string $parent Required. The project and location from which the
* `AuthzExtension` resources are listed. These values are specified in the
* following format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint about how to order the results.
* @opt_param int pageSize Optional. Requested page size. The server might
* return fewer items than requested. If unspecified, the server picks an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* that the server returns.
* @return ListAuthzExtensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsAuthzExtensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAuthzExtensionsResponse::class);
}
/**
* Updates the parameters of the specified `AuthzExtension` resource.
* (authzExtensions.patch)
*
* @param string $name Required. Identifier. Name of the `AuthzExtension`
* resource in the following format:
* `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
* @param AuthzExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Required. Used to specify the fields to be
* overwritten in the `AuthzExtension` resource by the update. The fields
* specified in the `update_mask` are relative to the resource, not the full
* request. A field is overwritten if it is in the mask. If the user does not
* specify a mask, then all fields are overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, AuthzExtension $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAuthzExtensions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsAuthzExtensions');

View File

@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "edgeCacheKeysets" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $edgeCacheKeysets = $networkservicesService->projects_locations_edgeCacheKeysets;
* </code>
*/
class ProjectsLocationsEdgeCacheKeysets extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (edgeCacheKeysets.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (edgeCacheKeysets.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (edgeCacheKeysets.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEdgeCacheKeysets::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEdgeCacheKeysets');

View File

@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "edgeCacheOrigins" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $edgeCacheOrigins = $networkservicesService->projects_locations_edgeCacheOrigins;
* </code>
*/
class ProjectsLocationsEdgeCacheOrigins extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (edgeCacheOrigins.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (edgeCacheOrigins.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (edgeCacheOrigins.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEdgeCacheOrigins::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEdgeCacheOrigins');

View File

@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "edgeCacheServices" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $edgeCacheServices = $networkservicesService->projects_locations_edgeCacheServices;
* </code>
*/
class ProjectsLocationsEdgeCacheServices extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (edgeCacheServices.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (edgeCacheServices.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (edgeCacheServices.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEdgeCacheServices::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEdgeCacheServices');

View File

@@ -0,0 +1,137 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\EndpointPolicy;
use Google\Service\NetworkServices\ListEndpointPoliciesResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "endpointPolicies" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $endpointPolicies = $networkservicesService->projects_locations_endpointPolicies;
* </code>
*/
class ProjectsLocationsEndpointPolicies extends \Google\Service\Resource
{
/**
* Creates a new EndpointPolicy in a given project and location.
* (endpointPolicies.create)
*
* @param string $parent Required. The parent resource of the EndpointPolicy.
* Must be in the format `projects/locations`.
* @param EndpointPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string endpointPolicyId Required. Short name of the EndpointPolicy
* resource to be created. E.g. "CustomECS".
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, EndpointPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single EndpointPolicy. (endpointPolicies.delete)
*
* @param string $name Required. A name of the EndpointPolicy to delete. Must be
* in the format `projects/locations/endpointPolicies`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single EndpointPolicy. (endpointPolicies.get)
*
* @param string $name Required. A name of the EndpointPolicy to get. Must be in
* the format `projects/locations/endpointPolicies`.
* @param array $optParams Optional parameters.
* @return EndpointPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], EndpointPolicy::class);
}
/**
* Lists EndpointPolicies in a given project and location.
* (endpointPolicies.listProjectsLocationsEndpointPolicies)
*
* @param string $parent Required. The project and location from which the
* EndpointPolicies should be listed, specified in the format
* `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of EndpointPolicies to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListEndpointPoliciesResponse` Indicates that this is a continuation of a
* prior `ListEndpointPolicies` call, and that the system should return the next
* page of data.
* @opt_param bool returnPartialSuccess Optional. If true, allow partial
* responses for multi-regional Aggregated List requests. Otherwise if one of
* the locations is down or unreachable, the Aggregated List request will fail.
* @return ListEndpointPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEndpointPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEndpointPoliciesResponse::class);
}
/**
* Updates the parameters of a single EndpointPolicy. (endpointPolicies.patch)
*
* @param string $name Identifier. Name of the EndpointPolicy resource. It
* matches pattern
* `projects/{project}/locations/endpointPolicies/{endpoint_policy}`.
* @param EndpointPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the EndpointPolicy resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it is in the mask. If the user
* does not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, EndpointPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsEndpointPolicies::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEndpointPolicies');

View File

@@ -0,0 +1,129 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Gateway;
use Google\Service\NetworkServices\ListGatewaysResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "gateways" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $gateways = $networkservicesService->projects_locations_gateways;
* </code>
*/
class ProjectsLocationsGateways extends \Google\Service\Resource
{
/**
* Creates a new Gateway in a given project and location. (gateways.create)
*
* @param string $parent Required. The parent resource of the Gateway. Must be
* in the format `projects/locations`.
* @param Gateway $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string gatewayId Required. Short name of the Gateway resource to
* be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Gateway $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Gateway. (gateways.delete)
*
* @param string $name Required. A name of the Gateway to delete. Must be in the
* format `projects/locations/gateways`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Gateway. (gateways.get)
*
* @param string $name Required. A name of the Gateway to get. Must be in the
* format `projects/locations/gateways`.
* @param array $optParams Optional parameters.
* @return Gateway
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Gateway::class);
}
/**
* Lists Gateways in a given project and location.
* (gateways.listProjectsLocationsGateways)
*
* @param string $parent Required. The project and location from which the
* Gateways should be listed, specified in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of Gateways to return per call.
* @opt_param string pageToken The value returned by the last
* `ListGatewaysResponse` Indicates that this is a continuation of a prior
* `ListGateways` call, and that the system should return the next page of data.
* @return ListGatewaysResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGateways($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGatewaysResponse::class);
}
/**
* Updates the parameters of a single Gateway. (gateways.patch)
*
* @param string $name Identifier. Name of the Gateway resource. It matches
* pattern `projects/locations/gateways/`.
* @param Gateway $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Gateway resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Gateway $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsGateways::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsGateways');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\GatewayRouteView;
use Google\Service\NetworkServices\ListGatewayRouteViewsResponse;
/**
* The "routeViews" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $routeViews = $networkservicesService->projects_locations_gateways_routeViews;
* </code>
*/
class ProjectsLocationsGatewaysRouteViews extends \Google\Service\Resource
{
/**
* Get a single RouteView of a Gateway. (routeViews.get)
*
* @param string $name Required. Name of the GatewayRouteView resource. Formats:
* projects/{project_number}/locations/{location}/gateways/{gateway}/routeViews/
* {route_view}
* @param array $optParams Optional parameters.
* @return GatewayRouteView
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GatewayRouteView::class);
}
/**
* Lists RouteViews (routeViews.listProjectsLocationsGatewaysRouteViews)
*
* @param string $parent Required. The Gateway to which a Route is associated.
* Formats: projects/{project_number}/locations/{location}/gateways/{gateway}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of GatewayRouteViews to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListGatewayRouteViewsResponse` Indicates that this is a continuation of a
* prior `ListGatewayRouteViews` call, and that the system should return the
* next page of data.
* @return ListGatewayRouteViewsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGatewaysRouteViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGatewayRouteViewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsGatewaysRouteViews::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsGatewaysRouteViews');

View File

@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\GrpcRoute;
use Google\Service\NetworkServices\ListGrpcRoutesResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "grpcRoutes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $grpcRoutes = $networkservicesService->projects_locations_grpcRoutes;
* </code>
*/
class ProjectsLocationsGrpcRoutes extends \Google\Service\Resource
{
/**
* Creates a new GrpcRoute in a given project and location. (grpcRoutes.create)
*
* @param string $parent Required. The parent resource of the GrpcRoute. Must be
* in the format `projects/locations`.
* @param GrpcRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string grpcRouteId Required. Short name of the GrpcRoute resource
* to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, GrpcRoute $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single GrpcRoute. (grpcRoutes.delete)
*
* @param string $name Required. A name of the GrpcRoute to delete. Must be in
* the format `projects/locations/grpcRoutes`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single GrpcRoute. (grpcRoutes.get)
*
* @param string $name Required. A name of the GrpcRoute to get. Must be in the
* format `projects/locations/grpcRoutes`.
* @param array $optParams Optional parameters.
* @return GrpcRoute
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GrpcRoute::class);
}
/**
* Lists GrpcRoutes in a given project and location.
* (grpcRoutes.listProjectsLocationsGrpcRoutes)
*
* @param string $parent Required. The project and location from which the
* GrpcRoutes should be listed, specified in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of GrpcRoutes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListGrpcRoutesResponse` Indicates that this is a continuation of a prior
* `ListGrpcRoutes` call, and that the system should return the next page of
* data.
* @opt_param bool returnPartialSuccess Optional. If true, allow partial
* responses for multi-regional Aggregated List requests. Otherwise if one of
* the locations is down or unreachable, the Aggregated List request will fail.
* @return ListGrpcRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGrpcRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGrpcRoutesResponse::class);
}
/**
* Updates the parameters of a single GrpcRoute. (grpcRoutes.patch)
*
* @param string $name Identifier. Name of the GrpcRoute resource. It matches
* pattern `projects/locations/grpcRoutes/`
* @param GrpcRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the GrpcRoute resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, GrpcRoute $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsGrpcRoutes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsGrpcRoutes');

View File

@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\HttpRoute;
use Google\Service\NetworkServices\ListHttpRoutesResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "httpRoutes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $httpRoutes = $networkservicesService->projects_locations_httpRoutes;
* </code>
*/
class ProjectsLocationsHttpRoutes extends \Google\Service\Resource
{
/**
* Creates a new HttpRoute in a given project and location. (httpRoutes.create)
*
* @param string $parent Required. The parent resource of the HttpRoute. Must be
* in the format `projects/locations`.
* @param HttpRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string httpRouteId Required. Short name of the HttpRoute resource
* to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, HttpRoute $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single HttpRoute. (httpRoutes.delete)
*
* @param string $name Required. A name of the HttpRoute to delete. Must be in
* the format `projects/locations/httpRoutes`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single HttpRoute. (httpRoutes.get)
*
* @param string $name Required. A name of the HttpRoute to get. Must be in the
* format `projects/locations/httpRoutes`.
* @param array $optParams Optional parameters.
* @return HttpRoute
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], HttpRoute::class);
}
/**
* Lists HttpRoute in a given project and location.
* (httpRoutes.listProjectsLocationsHttpRoutes)
*
* @param string $parent Required. The project and location from which the
* HttpRoutes should be listed, specified in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of HttpRoutes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListHttpRoutesResponse` Indicates that this is a continuation of a prior
* `ListHttpRoutes` call, and that the system should return the next page of
* data.
* @opt_param bool returnPartialSuccess Optional. If true, allow partial
* responses for multi-regional Aggregated List requests. Otherwise if one of
* the locations is down or unreachable, the Aggregated List request will fail.
* @return ListHttpRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsHttpRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListHttpRoutesResponse::class);
}
/**
* Updates the parameters of a single HttpRoute. (httpRoutes.patch)
*
* @param string $name Identifier. Name of the HttpRoute resource. It matches
* pattern `projects/locations/httpRoutes/http_route_name>`.
* @param HttpRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the HttpRoute resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, HttpRoute $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsHttpRoutes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsHttpRoutes');

View File

@@ -0,0 +1,167 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\LbEdgeExtension;
use Google\Service\NetworkServices\ListLbEdgeExtensionsResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "lbEdgeExtensions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $lbEdgeExtensions = $networkservicesService->projects_locations_lbEdgeExtensions;
* </code>
*/
class ProjectsLocationsLbEdgeExtensions extends \Google\Service\Resource
{
/**
* Creates a new `LbEdgeExtension` resource in a given project and location.
* (lbEdgeExtensions.create)
*
* @param string $parent Required. The parent resource of the `LbEdgeExtension`
* resource. Must be in the format `projects/{project}/locations/{location}`.
* @param LbEdgeExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string lbEdgeExtensionId Required. User-provided ID of the
* `LbEdgeExtension` resource to be created.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, LbEdgeExtension $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `LbEdgeExtension` resource. (lbEdgeExtensions.delete)
*
* @param string $name Required. The name of the `LbEdgeExtension` resource to
* delete. Must be in the format `projects/{project}/locations/{location}/lbEdge
* Extensions/{lb_edge_extension}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes after the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of the specified `LbEdgeExtension` resource.
* (lbEdgeExtensions.get)
*
* @param string $name Required. A name of the `LbEdgeExtension` resource to
* get. Must be in the format `projects/{project}/locations/{location}/lbEdgeExt
* ensions/{lb_edge_extension}`.
* @param array $optParams Optional parameters.
* @return LbEdgeExtension
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LbEdgeExtension::class);
}
/**
* Lists `LbEdgeExtension` resources in a given project and location.
* (lbEdgeExtensions.listProjectsLocationsLbEdgeExtensions)
*
* @param string $parent Required. The project and location from which the
* `LbEdgeExtension` resources are listed. These values are specified in the
* following format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint about how to order the results.
* @opt_param int pageSize Optional. Requested page size. The server might
* return fewer items than requested. If unspecified, the server picks an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* that the server returns.
* @return ListLbEdgeExtensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsLbEdgeExtensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLbEdgeExtensionsResponse::class);
}
/**
* Updates the parameters of the specified `LbEdgeExtension` resource.
* (lbEdgeExtensions.patch)
*
* @param string $name Required. Identifier. Name of the `LbEdgeExtension`
* resource in the following format: `projects/{project}/locations/{location}/lb
* EdgeExtensions/{lb_edge_extension}`.
* @param LbEdgeExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Used to specify the fields to be
* overwritten in the `LbEdgeExtension` resource by the update. The fields
* specified in the `update_mask` are relative to the resource, not the full
* request. A field is overwritten if it is in the mask. If the user does not
* specify a mask, then all fields are overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, LbEdgeExtension $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsLbEdgeExtensions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsLbEdgeExtensions');

View File

@@ -0,0 +1,167 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\LbRouteExtension;
use Google\Service\NetworkServices\ListLbRouteExtensionsResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "lbRouteExtensions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $lbRouteExtensions = $networkservicesService->projects_locations_lbRouteExtensions;
* </code>
*/
class ProjectsLocationsLbRouteExtensions extends \Google\Service\Resource
{
/**
* Creates a new `LbRouteExtension` resource in a given project and location.
* (lbRouteExtensions.create)
*
* @param string $parent Required. The parent resource of the `LbRouteExtension`
* resource. Must be in the format `projects/{project}/locations/{location}`.
* @param LbRouteExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string lbRouteExtensionId Required. User-provided ID of the
* `LbRouteExtension` resource to be created.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, LbRouteExtension $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `LbRouteExtension` resource. (lbRouteExtensions.delete)
*
* @param string $name Required. The name of the `LbRouteExtension` resource to
* delete. Must be in the format `projects/{project}/locations/{location}/lbRout
* eExtensions/{lb_route_extension}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes after the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of the specified `LbRouteExtension` resource.
* (lbRouteExtensions.get)
*
* @param string $name Required. A name of the `LbRouteExtension` resource to
* get. Must be in the format `projects/{project}/locations/{location}/lbRouteEx
* tensions/{lb_route_extension}`.
* @param array $optParams Optional parameters.
* @return LbRouteExtension
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LbRouteExtension::class);
}
/**
* Lists `LbRouteExtension` resources in a given project and location.
* (lbRouteExtensions.listProjectsLocationsLbRouteExtensions)
*
* @param string $parent Required. The project and location from which the
* `LbRouteExtension` resources are listed. These values are specified in the
* following format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint about how to order the results.
* @opt_param int pageSize Optional. Requested page size. The server might
* return fewer items than requested. If unspecified, the server picks an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* that the server returns.
* @return ListLbRouteExtensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsLbRouteExtensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLbRouteExtensionsResponse::class);
}
/**
* Updates the parameters of the specified `LbRouteExtension` resource.
* (lbRouteExtensions.patch)
*
* @param string $name Required. Identifier. Name of the `LbRouteExtension`
* resource in the following format: `projects/{project}/locations/{location}/lb
* RouteExtensions/{lb_route_extension}`.
* @param LbRouteExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Used to specify the fields to be
* overwritten in the `LbRouteExtension` resource by the update. The fields
* specified in the `update_mask` are relative to the resource, not the full
* request. A field is overwritten if it is in the mask. If the user does not
* specify a mask, then all fields are overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, LbRouteExtension $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsLbRouteExtensions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsLbRouteExtensions');

View File

@@ -0,0 +1,169 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\LbTrafficExtension;
use Google\Service\NetworkServices\ListLbTrafficExtensionsResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "lbTrafficExtensions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $lbTrafficExtensions = $networkservicesService->projects_locations_lbTrafficExtensions;
* </code>
*/
class ProjectsLocationsLbTrafficExtensions extends \Google\Service\Resource
{
/**
* Creates a new `LbTrafficExtension` resource in a given project and location.
* (lbTrafficExtensions.create)
*
* @param string $parent Required. The parent resource of the
* `LbTrafficExtension` resource. Must be in the format
* `projects/{project}/locations/{location}`.
* @param LbTrafficExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string lbTrafficExtensionId Required. User-provided ID of the
* `LbTrafficExtension` resource to be created.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, LbTrafficExtension $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `LbTrafficExtension` resource.
* (lbTrafficExtensions.delete)
*
* @param string $name Required. The name of the `LbTrafficExtension` resource
* to delete. Must be in the format `projects/{project}/locations/{location}/lbT
* rafficExtensions/{lb_traffic_extension}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes after the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of the specified `LbTrafficExtension` resource.
* (lbTrafficExtensions.get)
*
* @param string $name Required. A name of the `LbTrafficExtension` resource to
* get. Must be in the format `projects/{project}/locations/{location}/lbTraffic
* Extensions/{lb_traffic_extension}`.
* @param array $optParams Optional parameters.
* @return LbTrafficExtension
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LbTrafficExtension::class);
}
/**
* Lists `LbTrafficExtension` resources in a given project and location.
* (lbTrafficExtensions.listProjectsLocationsLbTrafficExtensions)
*
* @param string $parent Required. The project and location from which the
* `LbTrafficExtension` resources are listed. These values are specified in the
* following format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint about how to order the results.
* @opt_param int pageSize Optional. Requested page size. The server might
* return fewer items than requested. If unspecified, the server picks an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* that the server returns.
* @return ListLbTrafficExtensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsLbTrafficExtensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLbTrafficExtensionsResponse::class);
}
/**
* Updates the parameters of the specified `LbTrafficExtension` resource.
* (lbTrafficExtensions.patch)
*
* @param string $name Required. Identifier. Name of the `LbTrafficExtension`
* resource in the following format: `projects/{project}/locations/{location}/lb
* TrafficExtensions/{lb_traffic_extension}`.
* @param LbTrafficExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server can ignore the request if it has already been completed. The
* server guarantees that for 60 minutes since the first request. For example,
* consider a situation where you make an initial request and the request times
* out. If you make the request again with the same request ID, the server
* ignores the second request This prevents clients from accidentally creating
* duplicate commitments. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Optional. Used to specify the fields to be
* overwritten in the `LbTrafficExtension` resource by the update. The fields
* specified in the `update_mask` are relative to the resource, not the full
* request. A field is overwritten if it is in the mask. If the user does not
* specify a mask, then all fields are overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, LbTrafficExtension $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsLbTrafficExtensions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsLbTrafficExtensions');

View File

@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\ListMeshesResponse;
use Google\Service\NetworkServices\Mesh;
use Google\Service\NetworkServices\Operation;
/**
* The "meshes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $meshes = $networkservicesService->projects_locations_meshes;
* </code>
*/
class ProjectsLocationsMeshes extends \Google\Service\Resource
{
/**
* Creates a new Mesh in a given project and location. (meshes.create)
*
* @param string $parent Required. The parent resource of the Mesh. Must be in
* the format `projects/locations`.
* @param Mesh $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string meshId Required. Short name of the Mesh resource to be
* created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Mesh $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Mesh. (meshes.delete)
*
* @param string $name Required. A name of the Mesh to delete. Must be in the
* format `projects/locations/meshes`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single Mesh. (meshes.get)
*
* @param string $name Required. A name of the Mesh to get. Must be in the
* format `projects/locations/meshes`.
* @param array $optParams Optional parameters.
* @return Mesh
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Mesh::class);
}
/**
* Lists Meshes in a given project and location.
* (meshes.listProjectsLocationsMeshes)
*
* @param string $parent Required. The project and location from which the
* Meshes should be listed, specified in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of Meshes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListMeshesResponse` Indicates that this is a continuation of a prior
* `ListMeshes` call, and that the system should return the next page of data.
* @opt_param bool returnPartialSuccess Optional. If true, allow partial
* responses for multi-regional Aggregated List requests. Otherwise if one of
* the locations is down or unreachable, the Aggregated List request will fail.
* @return ListMeshesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsMeshes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMeshesResponse::class);
}
/**
* Updates the parameters of a single Mesh. (meshes.patch)
*
* @param string $name Identifier. Name of the Mesh resource. It matches pattern
* `projects/locations/meshes/`.
* @param Mesh $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Mesh resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Mesh $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMeshes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMeshes');

View File

@@ -0,0 +1,73 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\ListMeshRouteViewsResponse;
use Google\Service\NetworkServices\MeshRouteView;
/**
* The "routeViews" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $routeViews = $networkservicesService->projects_locations_meshes_routeViews;
* </code>
*/
class ProjectsLocationsMeshesRouteViews extends \Google\Service\Resource
{
/**
* Get a single RouteView of a Mesh. (routeViews.get)
*
* @param string $name Required. Name of the MeshRouteView resource. Format: pro
* jects/{project_number}/locations/{location}/meshes/{mesh}/routeViews/{route_v
* iew}
* @param array $optParams Optional parameters.
* @return MeshRouteView
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], MeshRouteView::class);
}
/**
* Lists RouteViews (routeViews.listProjectsLocationsMeshesRouteViews)
*
* @param string $parent Required. The Mesh to which a Route is associated.
* Format: projects/{project_number}/locations/{location}/meshes/{mesh}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of MeshRouteViews to return per call.
* @opt_param string pageToken The value returned by the last
* `ListMeshRouteViewsResponse` Indicates that this is a continuation of a prior
* `ListMeshRouteViews` call, and that the system should return the next page of
* data.
* @return ListMeshRouteViewsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsMeshesRouteViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMeshRouteViewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMeshesRouteViews::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMeshesRouteViews');

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastConsumerAssociations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastConsumerAssociations = $networkservicesService->projects_locations_multicastConsumerAssociations;
* </code>
*/
class ProjectsLocationsMulticastConsumerAssociations extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastConsumerAssociations.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastConsumerAssociations.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (multicastConsumerAssociations.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMulticastConsumerAssociations::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastConsumerAssociations');

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastDomainActivations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastDomainActivations = $networkservicesService->projects_locations_multicastDomainActivations;
* </code>
*/
class ProjectsLocationsMulticastDomainActivations extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastDomainActivations.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastDomainActivations.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (multicastDomainActivations.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMulticastDomainActivations::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastDomainActivations');

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastDomains" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastDomains = $networkservicesService->projects_locations_multicastDomains;
* </code>
*/
class ProjectsLocationsMulticastDomains extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastDomains.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastDomains.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (multicastDomains.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMulticastDomains::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastDomains');

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastGroupDefinitions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastGroupDefinitions = $networkservicesService->projects_locations_multicastGroupDefinitions;
* </code>
*/
class ProjectsLocationsMulticastGroupDefinitions extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastGroupDefinitions.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastGroupDefinitions.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (multicastGroupDefinitions.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMulticastGroupDefinitions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastGroupDefinitions');

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastGroups" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastGroups = $networkservicesService->projects_locations_multicastGroups;
* </code>
*/
class ProjectsLocationsMulticastGroups extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastGroups.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastGroups.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (multicastGroups.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMulticastGroups::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastGroups');

View File

@@ -0,0 +1,121 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\CancelOperationRequest;
use Google\Service\NetworkServices\ListOperationsResponse;
use Google\Service\NetworkServices\NetworkservicesEmpty;
use Google\Service\NetworkServices\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $operations = $networkservicesService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return NetworkservicesEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], NetworkservicesEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return NetworkservicesEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], NetworkservicesEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\ListServiceBindingsResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\ServiceBinding;
/**
* The "serviceBindings" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $serviceBindings = $networkservicesService->projects_locations_serviceBindings;
* </code>
*/
class ProjectsLocationsServiceBindings extends \Google\Service\Resource
{
/**
* Creates a new ServiceBinding in a given project and location.
* (serviceBindings.create)
*
* @param string $parent Required. The parent resource of the ServiceBinding.
* Must be in the format `projects/locations`.
* @param ServiceBinding $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string serviceBindingId Required. Short name of the ServiceBinding
* resource to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ServiceBinding $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single ServiceBinding. (serviceBindings.delete)
*
* @param string $name Required. A name of the ServiceBinding to delete. Must be
* in the format `projects/locations/serviceBindings`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single ServiceBinding. (serviceBindings.get)
*
* @param string $name Required. A name of the ServiceBinding to get. Must be in
* the format `projects/locations/serviceBindings`.
* @param array $optParams Optional parameters.
* @return ServiceBinding
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceBinding::class);
}
/**
* Lists ServiceBinding in a given project and location.
* (serviceBindings.listProjectsLocationsServiceBindings)
*
* @param string $parent Required. The project and location from which the
* ServiceBindings should be listed, specified in the format
* `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of ServiceBindings to return per call.
* @opt_param string pageToken The value returned by the last
* `ListServiceBindingsResponse` Indicates that this is a continuation of a
* prior `ListRouters` call, and that the system should return the next page of
* data.
* @return ListServiceBindingsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceBindings($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceBindingsResponse::class);
}
/**
* Updates the parameters of a single ServiceBinding. (serviceBindings.patch)
*
* @param string $name Identifier. Name of the ServiceBinding resource. It
* matches pattern `projects/locations/serviceBindings/`.
* @param ServiceBinding $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the ServiceBinding resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it is in the mask. If the user
* does not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, ServiceBinding $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServiceBindings::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsServiceBindings');

View File

@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkServices\Resource;
use Google\Service\NetworkServices\ListServiceLbPoliciesResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\ServiceLbPolicy;
/**
* The "serviceLbPolicies" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $serviceLbPolicies = $networkservicesService->projects_locations_serviceLbPolicies;
* </code>
*/
class ProjectsLocationsServiceLbPolicies extends \Google\Service\Resource
{
/**
* Creates a new ServiceLbPolicy in a given project and location.
* (serviceLbPolicies.create)
*
* @param string $parent Required. The parent resource of the ServiceLbPolicy.
* Must be in the format `projects/{project}/locations/{location}`.
* @param ServiceLbPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string serviceLbPolicyId Required. Short name of the
* ServiceLbPolicy resource to be created. E.g. for resource name `projects/{pro
* ject}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. the
* id is value of {service_lb_policy_name}
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ServiceLbPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single ServiceLbPolicy. (serviceLbPolicies.delete)
*
* @param string $name Required. A name of the ServiceLbPolicy to delete. Must
* be in the format `projects/{project}/locations/{location}/serviceLbPolicies`.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single ServiceLbPolicy. (serviceLbPolicies.get)
*
* @param string $name Required. A name of the ServiceLbPolicy to get. Must be
* in the format `projects/{project}/locations/{location}/serviceLbPolicies`.
* @param array $optParams Optional parameters.
* @return ServiceLbPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceLbPolicy::class);
}
/**
* Lists ServiceLbPolicies in a given project and location.
* (serviceLbPolicies.listProjectsLocationsServiceLbPolicies)
*
* @param string $parent Required. The project and location from which the
* ServiceLbPolicies should be listed, specified in the format
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of ServiceLbPolicies to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListServiceLbPoliciesResponse` Indicates that this is a continuation of a
* prior `ListRouters` call, and that the system should return the next page of
* data.
* @return ListServiceLbPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceLbPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceLbPoliciesResponse::class);
}
/**
* Updates the parameters of a single ServiceLbPolicy. (serviceLbPolicies.patch)
*
* @param string $name Identifier. Name of the ServiceLbPolicy resource. It
* matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{s
* ervice_lb_policy_name}`.
* @param ServiceLbPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the ServiceLbPolicy resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it is in the mask. If the user
* does not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, ServiceLbPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServiceLbPolicies::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsServiceLbPolicies');

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