autoCreatedSubnetInfo = $autoCreatedSubnetInfo; } /** * @return AutoCreatedSubnetworkInfo */ public function getAutoCreatedSubnetInfo() { return $this->autoCreatedSubnetInfo; } /** * Output only. Time when the ServiceConnectionPolicy was created. * * @param string $createTime */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * A description of this resource. * * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * Optional. The etag is computed by the server, and may be sent on update and * delete requests to ensure the client has an up-to-date value before * proceeding. * * @param string $etag */ public function setEtag($etag) { $this->etag = $etag; } /** * @return string */ public function getEtag() { return $this->etag; } /** * Output only. The type of underlying resources used to create the * connection. * * Accepted values: INFRASTRUCTURE_UNSPECIFIED, PSC * * @param self::INFRASTRUCTURE_* $infrastructure */ public function setInfrastructure($infrastructure) { $this->infrastructure = $infrastructure; } /** * @return self::INFRASTRUCTURE_* */ public function getInfrastructure() { return $this->infrastructure; } /** * User-defined labels. * * @param string[] $labels */ public function setLabels($labels) { $this->labels = $labels; } /** * @return string[] */ public function getLabels() { return $this->labels; } /** * Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project * }/locations/{location}/serviceConnectionPolicies/{service_connection_policy * } See: https://google.aip.dev/122#fields-representing-resource-names * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * The resource path of the consumer network. Example: - * projects/{projectNumOrId}/global/networks/{resourceId}. * * @param string $network */ public function setNetwork($network) { $this->network = $network; } /** * @return string */ public function getNetwork() { return $this->network; } /** * Configuration used for Private Service Connect connections. Used when * Infrastructure is PSC. * * @param PscConfig $pscConfig */ public function setPscConfig(PscConfig $pscConfig) { $this->pscConfig = $pscConfig; } /** * @return PscConfig */ public function getPscConfig() { return $this->pscConfig; } /** * Output only. [Output only] Information about each Private Service Connect * connection. * * @param PscConnection[] $pscConnections */ public function setPscConnections($pscConnections) { $this->pscConnections = $pscConnections; } /** * @return PscConnection[] */ public function getPscConnections() { return $this->pscConnections; } /** * The service class identifier for which this ServiceConnectionPolicy is for. * The service class identifier is a unique, symbolic representation of a * ServiceClass. It is provided by the Service Producer. Google services have * a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or * google-cloud-sql. 3rd party services do not. For example, test- * service-a3dfcx. * * @param string $serviceClass */ public function setServiceClass($serviceClass) { $this->serviceClass = $serviceClass; } /** * @return string */ public function getServiceClass() { return $this->serviceClass; } /** * Output only. Time when the ServiceConnectionPolicy 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(ServiceConnectionPolicy::class, 'Google_Service_Networkconnectivity_ServiceConnectionPolicy');