diff --git a/Config/metadata/V1/Config.php b/Config/metadata/V1/Config.php index f32fd92cd74e..6cb6772390c1 100644 Binary files a/Config/metadata/V1/Config.php and b/Config/metadata/V1/Config.php differ diff --git a/Config/src/V1/Deployment.php b/Config/src/V1/Deployment.php index ff67c2b0aed2..b86ac98c947f 100644 --- a/Config/src/V1/Deployment.php +++ b/Config/src/V1/Deployment.php @@ -181,6 +181,12 @@ class Deployment extends \Google\Protobuf\Internal\Message * Generated from protobuf field map annotations = 24 [(.google.api.field_behavior) = OPTIONAL]; */ private $annotations; + /** + * Optional. This field specifies the provider configurations. + * + * Generated from protobuf field .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $provider_config = null; protected $blueprint; /** @@ -269,6 +275,8 @@ class Deployment extends \Google\Protobuf\Internal\Message * identify deployments during automation. See * https://google.aip.dev/148#annotations for details on format and size * limitations. + * @type \Google\Cloud\Config\V1\ProviderConfig $provider_config + * Optional. This field specifies the provider configurations. * } */ public function __construct($data = NULL) { @@ -1027,6 +1035,42 @@ public function setAnnotations($var) return $this; } + /** + * Optional. This field specifies the provider configurations. + * + * Generated from protobuf field .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Config\V1\ProviderConfig|null + */ + public function getProviderConfig() + { + return $this->provider_config; + } + + public function hasProviderConfig() + { + return isset($this->provider_config); + } + + public function clearProviderConfig() + { + unset($this->provider_config); + } + + /** + * Optional. This field specifies the provider configurations. + * + * Generated from protobuf field .google.cloud.config.v1.ProviderConfig provider_config = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Config\V1\ProviderConfig $var + * @return $this + */ + public function setProviderConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\ProviderConfig::class); + $this->provider_config = $var; + + return $this; + } + /** * @return string */ diff --git a/Config/src/V1/Preview.php b/Config/src/V1/Preview.php index 0c4da68daa49..dcb44513f29c 100644 --- a/Config/src/V1/Preview.php +++ b/Config/src/V1/Preview.php @@ -160,6 +160,12 @@ class Preview extends \Google\Protobuf\Internal\Message * Generated from protobuf field map annotations = 20 [(.google.api.field_behavior) = OPTIONAL]; */ private $annotations; + /** + * Optional. This field specifies the provider configurations. + * + * Generated from protobuf field .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $provider_config = null; protected $blueprint; /** @@ -237,6 +243,8 @@ class Preview extends \Google\Protobuf\Internal\Message * identify preview during automation. See * https://google.aip.dev/148#annotations for details on format and size * limitations. + * @type \Google\Cloud\Config\V1\ProviderConfig $provider_config + * Optional. This field specifies the provider configurations. * } */ public function __construct($data = NULL) { @@ -887,6 +895,42 @@ public function setAnnotations($var) return $this; } + /** + * Optional. This field specifies the provider configurations. + * + * Generated from protobuf field .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Config\V1\ProviderConfig|null + */ + public function getProviderConfig() + { + return $this->provider_config; + } + + public function hasProviderConfig() + { + return isset($this->provider_config); + } + + public function clearProviderConfig() + { + unset($this->provider_config); + } + + /** + * Optional. This field specifies the provider configurations. + * + * Generated from protobuf field .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Config\V1\ProviderConfig $var + * @return $this + */ + public function setProviderConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\ProviderConfig::class); + $this->provider_config = $var; + + return $this; + } + /** * @return string */ diff --git a/Config/src/V1/ProviderConfig.php b/Config/src/V1/ProviderConfig.php new file mode 100644 index 000000000000..d7f6365e7041 --- /dev/null +++ b/Config/src/V1/ProviderConfig.php @@ -0,0 +1,77 @@ +google.cloud.config.v1.ProviderConfig + */ +class ProviderConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. ProviderSource specifies the source type of the provider. + * + * Generated from protobuf field optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $source_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $source_type + * Optional. ProviderSource specifies the source type of the provider. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce(); + parent::__construct($data); + } + + /** + * Optional. ProviderSource specifies the source type of the provider. + * + * Generated from protobuf field optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSourceType() + { + return isset($this->source_type) ? $this->source_type : 0; + } + + public function hasSourceType() + { + return isset($this->source_type); + } + + public function clearSourceType() + { + unset($this->source_type); + } + + /** + * Optional. ProviderSource specifies the source type of the provider. + * + * Generated from protobuf field optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSourceType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\ProviderConfig\ProviderSource::class); + $this->source_type = $var; + + return $this; + } + +} + diff --git a/Config/src/V1/ProviderConfig/ProviderSource.php b/Config/src/V1/ProviderConfig/ProviderSource.php new file mode 100644 index 000000000000..7f971458ceea --- /dev/null +++ b/Config/src/V1/ProviderConfig/ProviderSource.php @@ -0,0 +1,55 @@ +google.cloud.config.v1.ProviderConfig.ProviderSource + */ +class ProviderSource +{ + /** + * Unspecified source type, default to public sources. + * + * Generated from protobuf enum PROVIDER_SOURCE_UNSPECIFIED = 0; + */ + const PROVIDER_SOURCE_UNSPECIFIED = 0; + /** + * Service maintained provider source type. + * + * Generated from protobuf enum SERVICE_MAINTAINED = 1; + */ + const SERVICE_MAINTAINED = 1; + + private static $valueToName = [ + self::PROVIDER_SOURCE_UNSPECIFIED => 'PROVIDER_SOURCE_UNSPECIFIED', + self::SERVICE_MAINTAINED => 'SERVICE_MAINTAINED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + + diff --git a/Config/src/V1/Revision.php b/Config/src/V1/Revision.php index d59d20bacce5..62361c965ff0 100644 --- a/Config/src/V1/Revision.php +++ b/Config/src/V1/Revision.php @@ -154,6 +154,12 @@ class Revision extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.config.v1.QuotaValidation quota_validation = 20 [(.google.api.field_behavior) = OPTIONAL]; */ protected $quota_validation = 0; + /** + * Output only. This field specifies the provider configurations. + * + * Generated from protobuf field .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $provider_config = null; protected $blueprint; /** @@ -226,6 +232,8 @@ class Revision extends \Google\Protobuf\Internal\Message * Optional. Input to control quota checks for resources in terraform * configuration files. There are limited resources on which quota validation * applies. + * @type \Google\Cloud\Config\V1\ProviderConfig $provider_config + * Output only. This field specifies the provider configurations. * } */ public function __construct($data = NULL) { @@ -836,6 +844,42 @@ public function setQuotaValidation($var) return $this; } + /** + * Output only. This field specifies the provider configurations. + * + * Generated from protobuf field .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Config\V1\ProviderConfig|null + */ + public function getProviderConfig() + { + return $this->provider_config; + } + + public function hasProviderConfig() + { + return isset($this->provider_config); + } + + public function clearProviderConfig() + { + unset($this->provider_config); + } + + /** + * Output only. This field specifies the provider configurations. + * + * Generated from protobuf field .google.cloud.config.v1.ProviderConfig provider_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Config\V1\ProviderConfig $var + * @return $this + */ + public function setProviderConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Config\V1\ProviderConfig::class); + $this->provider_config = $var; + + return $this; + } + /** * @return string */