From a620ee12d0458d41fb53142321e22ae2662b693a Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Fri, 20 Feb 2026 17:03:18 -0800 Subject: [PATCH] Regenerate servicenetworking client --- src/ServiceNetworking/Aspect.php | 21 +++++++- src/ServiceNetworking/AspectRule.php | 76 ++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 src/ServiceNetworking/AspectRule.php diff --git a/src/ServiceNetworking/Aspect.php b/src/ServiceNetworking/Aspect.php index 9ec97a5a406..220c030990e 100644 --- a/src/ServiceNetworking/Aspect.php +++ b/src/ServiceNetworking/Aspect.php @@ -17,14 +17,17 @@ namespace Google\Service\ServiceNetworking; -class Aspect extends \Google\Model +class Aspect extends \Google\Collection { + protected $collection_key = 'rules'; /** * The type of this aspect configuration. * * @var string */ public $kind; + protected $rulesType = AspectRule::class; + protected $rulesDataType = 'array'; /** * Content of the configuration. The underlying schema should be defined by * Aspect owners as protobuf message under `google/api/configaspects/proto`. @@ -49,6 +52,22 @@ public function getKind() { return $this->kind; } + /** + * Optional. Rules of the Configuration. + * + * @param AspectRule[] $rules + */ + public function setRules($rules) + { + $this->rules = $rules; + } + /** + * @return AspectRule[] + */ + public function getRules() + { + return $this->rules; + } /** * Content of the configuration. The underlying schema should be defined by * Aspect owners as protobuf message under `google/api/configaspects/proto`. diff --git a/src/ServiceNetworking/AspectRule.php b/src/ServiceNetworking/AspectRule.php new file mode 100644 index 00000000000..7c22267d744 --- /dev/null +++ b/src/ServiceNetworking/AspectRule.php @@ -0,0 +1,76 @@ +config = $config; + } + /** + * @return array[] + */ + public function getConfig() + { + return $this->config; + } + /** + * Required. Selects the RPC methods to which this rule applies. Refer to + * selector for syntax details. + * + * @param string $selector + */ + public function setSelector($selector) + { + $this->selector = $selector; + } + /** + * @return string + */ + public function getSelector() + { + return $this->selector; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(AspectRule::class, 'Google_Service_ServiceNetworking_AspectRule');