diff --git a/src/DeploymentManager/BulkInsertOperationStatus.php b/src/DeploymentManager/BulkInsertOperationStatus.php index f91b97741f..6c5e4849ce 100644 --- a/src/DeploymentManager/BulkInsertOperationStatus.php +++ b/src/DeploymentManager/BulkInsertOperationStatus.php @@ -32,6 +32,10 @@ class BulkInsertOperationStatus extends \Google\Model * Done */ public const STATUS_DONE = 'DONE'; + /** + * Pending - waiting until the capacity is available. + */ + public const STATUS_PENDING = 'PENDING'; /** * [Output Only] Count of VMs successfully created so far. * @@ -116,7 +120,7 @@ public function getFailedToCreateVmCount() * [Output Only] Creation status of BulkInsert operation - information if the * flow is rolling forward or rolling back. * - * Accepted values: STATUS_UNSPECIFIED, CREATING, ROLLING_BACK, DONE + * Accepted values: STATUS_UNSPECIFIED, CREATING, ROLLING_BACK, DONE, PENDING * * @param self::STATUS_* $status */ diff --git a/src/DeploymentManager/DeploymentmanagerResourceWarnings.php b/src/DeploymentManager/DeploymentmanagerResourceWarnings.php index dfc8314933..7e3114b9a1 100644 --- a/src/DeploymentManager/DeploymentmanagerResourceWarnings.php +++ b/src/DeploymentManager/DeploymentmanagerResourceWarnings.php @@ -245,7 +245,7 @@ public function getCode() } /** * [Output Only] Metadata about this warning in key: value format. For - * example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }] * * @param DeploymentmanagerResourceWarningsData[] $data */ diff --git a/src/DeploymentManager/FirewallPolicyRuleOperationMetadata.php b/src/DeploymentManager/FirewallPolicyRuleOperationMetadata.php index b6cfb21311..8bbbede7e2 100644 --- a/src/DeploymentManager/FirewallPolicyRuleOperationMetadata.php +++ b/src/DeploymentManager/FirewallPolicyRuleOperationMetadata.php @@ -20,16 +20,16 @@ class FirewallPolicyRuleOperationMetadata extends \Google\Model { /** - * The priority allocated for the firewall policy rule if query parameters - * specified minPriority/maxPriority. + * Output only. [Output Only] The priority allocated for the firewall policy + * rule if query parameters specified minPriority/maxPriority. * * @var int */ public $allocatedPriority; /** - * The priority allocated for the firewall policy rule if query parameters - * specified minPriority/maxPriority. + * Output only. [Output Only] The priority allocated for the firewall policy + * rule if query parameters specified minPriority/maxPriority. * * @param int $allocatedPriority */ diff --git a/src/DeploymentManager/GetHealthOperationMetadata.php b/src/DeploymentManager/GetHealthOperationMetadata.php new file mode 100644 index 0000000000..28969877e7 --- /dev/null +++ b/src/DeploymentManager/GetHealthOperationMetadata.php @@ -0,0 +1,44 @@ +healthInfo = $healthInfo; + } + /** + * @return GetHealthOperationMetadataHealthInfo + */ + public function getHealthInfo() + { + return $this->healthInfo; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GetHealthOperationMetadata::class, 'Google_Service_DeploymentManager_GetHealthOperationMetadata'); diff --git a/src/DeploymentManager/GetHealthOperationMetadataHealthInfo.php b/src/DeploymentManager/GetHealthOperationMetadataHealthInfo.php new file mode 100644 index 0000000000..e3bd8299a6 --- /dev/null +++ b/src/DeploymentManager/GetHealthOperationMetadataHealthInfo.php @@ -0,0 +1,217 @@ +availabilitySloStatus = $availabilitySloStatus; + } + /** + * @return self::AVAILABILITY_SLO_STATUS_* + */ + public function getAvailabilitySloStatus() + { + return $this->availabilitySloStatus; + } + /** + * Output only. The health status. + * + * Accepted values: HEALTH_STATUS_UNSPECIFIED, HEALTH_STATUS_HEALTHY, + * HEALTH_STATUS_UNHEALTHY + * + * @param self::HEALTH_STATUS_* $healthStatus + */ + public function setHealthStatus($healthStatus) + { + $this->healthStatus = $healthStatus; + } + /** + * @return self::HEALTH_STATUS_* + */ + public function getHealthStatus() + { + return $this->healthStatus; + } + /** + * Output only. The repair category. + * + * Accepted values: REPAIR_CATEGORY_UNSPECIFIED, + * REPAIR_CATEGORY_PLANNED_MAINTENANCE, REPAIR_CATEGORY_EMERGENT_MAINTENANCE, + * REPAIR_CATEGORY_USER_REPORTED_FAULT, REPAIR_CATEGORY_CRITICAL_FAILURE + * + * @param self::REPAIR_CATEGORY_* $repairCategory + */ + public function setRepairCategory($repairCategory) + { + $this->repairCategory = $repairCategory; + } + /** + * @return self::REPAIR_CATEGORY_* + */ + public function getRepairCategory() + { + return $this->repairCategory; + } + /** + * Output only. The reason for unhealthy status. + * + * Accepted values: UNHEALTHY_REASON_UNSPECIFIED, UNHEALTHY_REASON_REPAIRING, + * UNHEALTHY_REASON_PENDING_USER_APPROVAL, UNHEALTHY_REASON_UNSCHEDULABLE + * + * @param self::UNHEALTHY_REASON_* $unhealthyReason + */ + public function setUnhealthyReason($unhealthyReason) + { + $this->unhealthyReason = $unhealthyReason; + } + /** + * @return self::UNHEALTHY_REASON_* + */ + public function getUnhealthyReason() + { + return $this->unhealthyReason; + } + /** + * Output only. The time when health info 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(GetHealthOperationMetadataHealthInfo::class, 'Google_Service_DeploymentManager_GetHealthOperationMetadataHealthInfo'); diff --git a/src/DeploymentManager/GetVersionOperationMetadataSbomInfo.php b/src/DeploymentManager/GetVersionOperationMetadataSbomInfo.php index 6b5737dcf2..4cab814041 100644 --- a/src/DeploymentManager/GetVersionOperationMetadataSbomInfo.php +++ b/src/DeploymentManager/GetVersionOperationMetadataSbomInfo.php @@ -20,23 +20,23 @@ class GetVersionOperationMetadataSbomInfo extends \Google\Model { /** - * SBOM versions currently applied to the resource. The key is the component - * name and the value is the version. + * A mapping of components to their currently-applied versions or other + * appropriate identifiers. * * @var string[] */ public $currentComponentVersions; /** - * SBOM versions scheduled for the next maintenance. The key is the component - * name and the value is the version. + * A mapping of components to their target versions or other appropriate + * identifiers. * * @var string[] */ public $targetComponentVersions; /** - * SBOM versions currently applied to the resource. The key is the component - * name and the value is the version. + * A mapping of components to their currently-applied versions or other + * appropriate identifiers. * * @param string[] $currentComponentVersions */ @@ -52,8 +52,8 @@ public function getCurrentComponentVersions() return $this->currentComponentVersions; } /** - * SBOM versions scheduled for the next maintenance. The key is the component - * name and the value is the version. + * A mapping of components to their target versions or other appropriate + * identifiers. * * @param string[] $targetComponentVersions */ diff --git a/src/DeploymentManager/InstancesTroubleshootOperationMetadata.php b/src/DeploymentManager/InstancesTroubleshootOperationMetadata.php new file mode 100644 index 0000000000..1df24337e5 --- /dev/null +++ b/src/DeploymentManager/InstancesTroubleshootOperationMetadata.php @@ -0,0 +1,50 @@ +troubleshootOutput = $troubleshootOutput; + } + /** + * @return string + */ + public function getTroubleshootOutput() + { + return $this->troubleshootOutput; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstancesTroubleshootOperationMetadata::class, 'Google_Service_DeploymentManager_InstancesTroubleshootOperationMetadata'); diff --git a/src/DeploymentManager/Operation.php b/src/DeploymentManager/Operation.php index 71376bb7c4..100a9524dd 100644 --- a/src/DeploymentManager/Operation.php +++ b/src/DeploymentManager/Operation.php @@ -19,8 +19,17 @@ class Operation extends \Google\Collection { + /** + * The operation is waiting to be processed. + */ public const STATUS_PENDING = 'PENDING'; + /** + * The operation is actively being processed. + */ public const STATUS_RUNNING = 'RUNNING'; + /** + * The operation has completed processing successfully or with an error. + */ public const STATUS_DONE = 'DONE'; protected $collection_key = 'warnings'; /** @@ -43,6 +52,8 @@ class Operation extends \Google\Collection * @var string */ public $description; + protected $detailsType = OperationDetails::class; + protected $detailsDataType = ''; /** * [Output Only] The time that this operation was completed. This value is in * RFC3339 text format. @@ -54,6 +65,8 @@ class Operation extends \Google\Collection protected $errorDataType = ''; protected $firewallPolicyRuleOperationMetadataType = FirewallPolicyRuleOperationMetadata::class; protected $firewallPolicyRuleOperationMetadataDataType = ''; + protected $getHealthOperationMetadataType = GetHealthOperationMetadata::class; + protected $getHealthOperationMetadataDataType = ''; protected $getVersionOperationMetadataType = GetVersionOperationMetadata::class; protected $getVersionOperationMetadataDataType = ''; /** @@ -87,6 +100,8 @@ class Operation extends \Google\Collection public $insertTime; protected $instancesBulkInsertOperationMetadataType = InstancesBulkInsertOperationMetadata::class; protected $instancesBulkInsertOperationMetadataDataType = ''; + protected $instancesTroubleshootOperationMetadataType = InstancesTroubleshootOperationMetadata::class; + protected $instancesTroubleshootOperationMetadataDataType = ''; /** * Output only. [Output Only] Type of the resource. Always `compute#operation` * for Operation resources. @@ -252,6 +267,22 @@ public function getDescription() { return $this->description; } + /** + * [Output Only] Extended details about the operation's execution. + * + * @param OperationDetails $details + */ + public function setDetails(OperationDetails $details) + { + $this->details = $details; + } + /** + * @return OperationDetails + */ + public function getDetails() + { + return $this->details; + } /** * [Output Only] The time that this operation was completed. This value is in * RFC3339 text format. @@ -287,6 +318,11 @@ public function getError() return $this->error; } /** + * Output only. [Output Only] Metadata containing the allocated priority from + * the networkFirewallPolicies.addRule and + * regionNetworkFirewallPolicies.addRule methods if not explicitly provided by + * the user. + * * @param FirewallPolicyRuleOperationMetadata $firewallPolicyRuleOperationMetadata */ public function setFirewallPolicyRuleOperationMetadata(FirewallPolicyRuleOperationMetadata $firewallPolicyRuleOperationMetadata) @@ -300,6 +336,22 @@ public function getFirewallPolicyRuleOperationMetadata() { return $this->firewallPolicyRuleOperationMetadata; } + /** + * Output only. Metadata for GetHealth operations. + * + * @param GetHealthOperationMetadata $getHealthOperationMetadata + */ + public function setGetHealthOperationMetadata(GetHealthOperationMetadata $getHealthOperationMetadata) + { + $this->getHealthOperationMetadata = $getHealthOperationMetadata; + } + /** + * @return GetHealthOperationMetadata + */ + public function getGetHealthOperationMetadata() + { + return $this->getHealthOperationMetadata; + } /** * @param GetVersionOperationMetadata $getVersionOperationMetadata */ @@ -397,6 +449,22 @@ public function getInstancesBulkInsertOperationMetadata() { return $this->instancesBulkInsertOperationMetadata; } + /** + * Output only. [Output Only] Operation metadata for instances.troubleshoot. + * + * @param InstancesTroubleshootOperationMetadata $instancesTroubleshootOperationMetadata + */ + public function setInstancesTroubleshootOperationMetadata(InstancesTroubleshootOperationMetadata $instancesTroubleshootOperationMetadata) + { + $this->instancesTroubleshootOperationMetadata = $instancesTroubleshootOperationMetadata; + } + /** + * @return InstancesTroubleshootOperationMetadata + */ + public function getInstancesTroubleshootOperationMetadata() + { + return $this->instancesTroubleshootOperationMetadata; + } /** * Output only. [Output Only] Type of the resource. Always `compute#operation` * for Operation resources. diff --git a/src/DeploymentManager/OperationDetails.php b/src/DeploymentManager/OperationDetails.php new file mode 100644 index 0000000000..a6a1bf2e02 --- /dev/null +++ b/src/DeploymentManager/OperationDetails.php @@ -0,0 +1,70 @@ +data = $data; + } + /** + * @return array[] + */ + public function getData() + { + return $this->data; + } + /** + * Human or AI readable details on execution of the operation. + * + * @param string $message + */ + public function setMessage($message) + { + $this->message = $message; + } + /** + * @return string + */ + public function getMessage() + { + return $this->message; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OperationDetails::class, 'Google_Service_DeploymentManager_OperationDetails'); diff --git a/src/DeploymentManager/OperationErrorErrors.php b/src/DeploymentManager/OperationErrorErrors.php index d42672c680..c3c45c23a7 100644 --- a/src/DeploymentManager/OperationErrorErrors.php +++ b/src/DeploymentManager/OperationErrorErrors.php @@ -91,6 +91,9 @@ public function getCode() return $this->code; } /** + * Output only. [Output Only] Advanced debugging information with stack traces + * and other diagnostic details for the error. + * * @param DebugInfo $debugInfo */ public function setDebugInfo(DebugInfo $debugInfo) diff --git a/src/DeploymentManager/OperationErrorErrorsErrorDetails.php b/src/DeploymentManager/OperationErrorErrorsErrorDetails.php index 284fb3c163..c4392c5e69 100644 --- a/src/DeploymentManager/OperationErrorErrorsErrorDetails.php +++ b/src/DeploymentManager/OperationErrorErrorsErrorDetails.php @@ -29,6 +29,8 @@ class OperationErrorErrorsErrorDetails extends \Google\Model protected $quotaInfoDataType = ''; /** + * Error information containing structured domain, reason, and metadata. + * * @param ErrorInfo $errorInfo */ public function setErrorInfo(ErrorInfo $errorInfo) @@ -43,6 +45,8 @@ public function getErrorInfo() return $this->errorInfo; } /** + * Links and information to help the user resolve the error. + * * @param Help $help */ public function setHelp(Help $help) @@ -57,6 +61,8 @@ public function getHelp() return $this->help; } /** + * A localized human-readable error message intended for end users. + * * @param LocalizedMessage $localizedMessage */ public function setLocalizedMessage(LocalizedMessage $localizedMessage) @@ -71,6 +77,8 @@ public function getLocalizedMessage() return $this->localizedMessage; } /** + * Details about quota limits and metrics when a quota is exceeded. + * * @param QuotaExceededInfo $quotaInfo */ public function setQuotaInfo(QuotaExceededInfo $quotaInfo) diff --git a/src/DeploymentManager/OperationWarnings.php b/src/DeploymentManager/OperationWarnings.php index d7630f13e6..6c539bfbd5 100644 --- a/src/DeploymentManager/OperationWarnings.php +++ b/src/DeploymentManager/OperationWarnings.php @@ -245,7 +245,7 @@ public function getCode() } /** * [Output Only] Metadata about this warning in key: value format. For - * example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }] * * @param OperationWarningsData[] $data */ diff --git a/src/DeploymentManager/ResourceUpdateErrorErrors.php b/src/DeploymentManager/ResourceUpdateErrorErrors.php index e0b599afe5..848de2f698 100644 --- a/src/DeploymentManager/ResourceUpdateErrorErrors.php +++ b/src/DeploymentManager/ResourceUpdateErrorErrors.php @@ -91,6 +91,9 @@ public function getCode() return $this->code; } /** + * Output only. [Output Only] Advanced debugging information with stack traces + * and other diagnostic details for the error. + * * @param DebugInfo $debugInfo */ public function setDebugInfo(DebugInfo $debugInfo) diff --git a/src/DeploymentManager/ResourceUpdateErrorErrorsErrorDetails.php b/src/DeploymentManager/ResourceUpdateErrorErrorsErrorDetails.php index baa4e2a89f..420e2abddb 100644 --- a/src/DeploymentManager/ResourceUpdateErrorErrorsErrorDetails.php +++ b/src/DeploymentManager/ResourceUpdateErrorErrorsErrorDetails.php @@ -29,6 +29,8 @@ class ResourceUpdateErrorErrorsErrorDetails extends \Google\Model protected $quotaInfoDataType = ''; /** + * Error information containing structured domain, reason, and metadata. + * * @param ErrorInfo $errorInfo */ public function setErrorInfo(ErrorInfo $errorInfo) @@ -43,6 +45,8 @@ public function getErrorInfo() return $this->errorInfo; } /** + * Links and information to help the user resolve the error. + * * @param Help $help */ public function setHelp(Help $help) @@ -57,6 +61,8 @@ public function getHelp() return $this->help; } /** + * A localized human-readable error message intended for end users. + * * @param LocalizedMessage $localizedMessage */ public function setLocalizedMessage(LocalizedMessage $localizedMessage) @@ -71,6 +77,8 @@ public function getLocalizedMessage() return $this->localizedMessage; } /** + * Details about quota limits and metrics when a quota is exceeded. + * * @param QuotaExceededInfo $quotaInfo */ public function setQuotaInfo(QuotaExceededInfo $quotaInfo) diff --git a/src/DeploymentManager/ResourceUpdateWarnings.php b/src/DeploymentManager/ResourceUpdateWarnings.php index 891339b27c..8cbaf8be5e 100644 --- a/src/DeploymentManager/ResourceUpdateWarnings.php +++ b/src/DeploymentManager/ResourceUpdateWarnings.php @@ -245,7 +245,7 @@ public function getCode() } /** * [Output Only] Metadata about this warning in key: value format. For - * example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } + * example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }] * * @param ResourceUpdateWarningsData[] $data */