diff --git a/src/VMwareEngine.php b/src/VMwareEngine.php index 2d6e0f92fb..343981fa90 100644 --- a/src/VMwareEngine.php +++ b/src/VMwareEngine.php @@ -40,6 +40,7 @@ class VMwareEngine extends \Google\Service "https://www.googleapis.com/auth/cloud-platform"; public $projects_locations; + public $projects_locations_announcements; public $projects_locations_dnsBindPermission; public $projects_locations_networkPeerings; public $projects_locations_networkPeerings_peeringRoutes; @@ -55,6 +56,7 @@ class VMwareEngine extends \Google\Service public $projects_locations_privateClouds_loggingServers; public $projects_locations_privateClouds_managementDnsZoneBindings; public $projects_locations_privateClouds_subnets; + public $projects_locations_privateClouds_upgrades; public $projects_locations_privateConnections; public $projects_locations_privateConnections_peeringRoutes; public $projects_locations_vmwareEngineNetworks; @@ -129,6 +131,52 @@ public function __construct($clientOrConfig = [], $rootUrl = null) ] ] ); + $this->projects_locations_announcements = new VMwareEngine\Resource\ProjectsLocationsAnnouncements( + $this, + $this->serviceName, + 'announcements', + [ + 'methods' => [ + 'get' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'list' => [ + 'path' => 'v1/{+parent}/announcements', + 'httpMethod' => 'GET', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'orderBy' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); $this->projects_locations_dnsBindPermission = new VMwareEngine\Resource\ProjectsLocationsDnsBindPermission( $this, $this->serviceName, @@ -1431,6 +1479,70 @@ public function __construct($clientOrConfig = [], $rootUrl = null) ] ] ); + $this->projects_locations_privateClouds_upgrades = new VMwareEngine\Resource\ProjectsLocationsPrivateCloudsUpgrades( + $this, + $this->serviceName, + 'upgrades', + [ + 'methods' => [ + 'get' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'list' => [ + 'path' => 'v1/{+parent}/upgrades', + 'httpMethod' => 'GET', + 'parameters' => [ + 'parent' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'orderBy' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageSize' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'patch' => [ + 'path' => 'v1/{+name}', + 'httpMethod' => 'PATCH', + 'parameters' => [ + 'name' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'updateMask' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ], + ] + ] + ); $this->projects_locations_privateConnections = new VMwareEngine\Resource\ProjectsLocationsPrivateConnections( $this, $this->serviceName, diff --git a/src/VMwareEngine/Announcement.php b/src/VMwareEngine/Announcement.php new file mode 100644 index 0000000000..d3dcd09bcd --- /dev/null +++ b/src/VMwareEngine/Announcement.php @@ -0,0 +1,224 @@ +activityType = $activityType; + } + /** + * @return string + */ + public function getActivityType() + { + return $this->activityType; + } + /** + * @param string + */ + public function setCluster($cluster) + { + $this->cluster = $cluster; + } + /** + * @return string + */ + public function getCluster() + { + return $this->cluster; + } + /** + * @param string + */ + public function setCode($code) + { + $this->code = $code; + } + /** + * @return string + */ + public function getCode() + { + return $this->code; + } + /** + * @param string + */ + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + /** + * @return string + */ + public function getCreateTime() + { + return $this->createTime; + } + /** + * @param string + */ + public function setDescription($description) + { + $this->description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * @param string[] + */ + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + /** + * @return string[] + */ + public function getMetadata() + { + return $this->metadata; + } + /** + * @param string + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * @param string + */ + public function setPrivateCloud($privateCloud) + { + $this->privateCloud = $privateCloud; + } + /** + * @return string + */ + public function getPrivateCloud() + { + return $this->privateCloud; + } + /** + * @param string + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return string + */ + public function getState() + { + return $this->state; + } + /** + * @param string + */ + public function setTargetResourceType($targetResourceType) + { + $this->targetResourceType = $targetResourceType; + } + /** + * @return string + */ + public function getTargetResourceType() + { + return $this->targetResourceType; + } + /** + * @param string + */ + 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(Announcement::class, 'Google_Service_VMwareEngine_Announcement'); diff --git a/src/VMwareEngine/Constraints.php b/src/VMwareEngine/Constraints.php new file mode 100644 index 0000000000..303aec3a9f --- /dev/null +++ b/src/VMwareEngine/Constraints.php @@ -0,0 +1,78 @@ +minHoursDay = $minHoursDay; + } + /** + * @return int + */ + public function getMinHoursDay() + { + return $this->minHoursDay; + } + /** + * @param int + */ + public function setMinHoursWeek($minHoursWeek) + { + $this->minHoursWeek = $minHoursWeek; + } + /** + * @return int + */ + public function getMinHoursWeek() + { + return $this->minHoursWeek; + } + /** + * @param Interval + */ + public function setRescheduleDateRange(Interval $rescheduleDateRange) + { + $this->rescheduleDateRange = $rescheduleDateRange; + } + /** + * @return Interval + */ + public function getRescheduleDateRange() + { + return $this->rescheduleDateRange; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Constraints::class, 'Google_Service_VMwareEngine_Constraints'); diff --git a/src/VMwareEngine/Interval.php b/src/VMwareEngine/Interval.php new file mode 100644 index 0000000000..2dcb3b7809 --- /dev/null +++ b/src/VMwareEngine/Interval.php @@ -0,0 +1,62 @@ +endTime = $endTime; + } + /** + * @return string + */ + public function getEndTime() + { + return $this->endTime; + } + /** + * @param string + */ + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + /** + * @return string + */ + public function getStartTime() + { + return $this->startTime; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Interval::class, 'Google_Service_VMwareEngine_Interval'); diff --git a/src/VMwareEngine/ListAnnouncementsResponse.php b/src/VMwareEngine/ListAnnouncementsResponse.php new file mode 100644 index 0000000000..35734cd6ae --- /dev/null +++ b/src/VMwareEngine/ListAnnouncementsResponse.php @@ -0,0 +1,79 @@ +announcements = $announcements; + } + /** + * @return Announcement[] + */ + public function getAnnouncements() + { + return $this->announcements; + } + /** + * @param string + */ + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + /** + * @return string + */ + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param string[] + */ + 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(ListAnnouncementsResponse::class, 'Google_Service_VMwareEngine_ListAnnouncementsResponse'); diff --git a/src/VMwareEngine/ListUpgradesResponse.php b/src/VMwareEngine/ListUpgradesResponse.php new file mode 100644 index 0000000000..ecb5b29a41 --- /dev/null +++ b/src/VMwareEngine/ListUpgradesResponse.php @@ -0,0 +1,79 @@ +nextPageToken = $nextPageToken; + } + /** + * @return string + */ + public function getNextPageToken() + { + return $this->nextPageToken; + } + /** + * @param string[] + */ + public function setUnreachable($unreachable) + { + $this->unreachable = $unreachable; + } + /** + * @return string[] + */ + public function getUnreachable() + { + return $this->unreachable; + } + /** + * @param Upgrade[] + */ + public function setUpgrades($upgrades) + { + $this->upgrades = $upgrades; + } + /** + * @return Upgrade[] + */ + public function getUpgrades() + { + return $this->upgrades; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ListUpgradesResponse::class, 'Google_Service_VMwareEngine_ListUpgradesResponse'); diff --git a/src/VMwareEngine/Resource/ProjectsLocationsAnnouncements.php b/src/VMwareEngine/Resource/ProjectsLocationsAnnouncements.php new file mode 100644 index 0000000000..517152bc97 --- /dev/null +++ b/src/VMwareEngine/Resource/ProjectsLocationsAnnouncements.php @@ -0,0 +1,96 @@ + + * $vmwareengineService = new Google\Service\VMwareEngine(...); + * $announcements = $vmwareengineService->projects_locations_announcements; + * + */ +class ProjectsLocationsAnnouncements extends \Google\Service\Resource +{ + /** + * Retrieves a `Announcement` by its resource name. (announcements.get) + * + * @param string $name Required. The resource name of the announcement to + * retrieve. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/announcements/announcement-uuid` + * @param array $optParams Optional parameters. + * @return Announcement + * @throws \Google\Service\Exception + */ + public function get($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], Announcement::class); + } + /** + * Lists `Announcements` for a given region and project + * (announcements.listProjectsLocationsAnnouncements) + * + * @param string $parent Required. The resource name of the location to be + * queried for announcements. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/us-west1-a` + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that matches resources returned + * in the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be `=`, `!=`, + * `>`, or `<`. For example, if you are filtering a list of announcement runs, + * you can exclude the ones named `example-announcement` by specifying `name != + * "example-announcement"`. You can also filter nested fields. To filter on + * multiple expressions, provide each separate expression within parentheses. + * For example: ``` (name = "example-announcement") (createTime > + * "2021-04-12T08:15:10.40Z") ``` By default, each expression is an `AND` + * expression. However, you can include `AND` and `OR` expressions explicitly. + * For example: ``` (name = "announcement-1") AND (createTime > + * "2021-04-12T08:15:10.40Z") OR (name = "announcement-2") ``` + * @opt_param string orderBy Sorts list results by a certain order. By default, + * returned results are ordered by `name` in ascending order. You can also sort + * results in descending order based on the `name` value using `orderBy="name + * desc"`. Currently, only ordering by `name` is supported. + * @opt_param int pageSize The maximum number of announcements to return in one + * page. The service may return fewer than this value. The maximum value is + * coerced to 1000. The default value of this field is 500. + * @opt_param string pageToken A page token, received from a previous + * `ListAnnouncements` call. Provide this to retrieve the subsequent page. When + * paginating, all other parameters provided to `ListAnnouncements` must match + * the call that provided the page token. + * @return ListAnnouncementsResponse + * @throws \Google\Service\Exception + */ + public function listProjectsLocationsAnnouncements($parent, $optParams = []) + { + $params = ['parent' => $parent]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], ListAnnouncementsResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsAnnouncements::class, 'Google_Service_VMwareEngine_Resource_ProjectsLocationsAnnouncements'); diff --git a/src/VMwareEngine/Resource/ProjectsLocationsPrivateCloudsUpgrades.php b/src/VMwareEngine/Resource/ProjectsLocationsPrivateCloudsUpgrades.php new file mode 100644 index 0000000000..c0fbe77c6a --- /dev/null +++ b/src/VMwareEngine/Resource/ProjectsLocationsPrivateCloudsUpgrades.php @@ -0,0 +1,138 @@ + + * $vmwareengineService = new Google\Service\VMwareEngine(...); + * $upgrades = $vmwareengineService->projects_locations_privateClouds_upgrades; + * + */ +class ProjectsLocationsPrivateCloudsUpgrades extends \Google\Service\Resource +{ + /** + * Retrieves a private cloud `Upgrade` resource by its resource name. + * (upgrades.get) + * + * @param string $name Required. The name of the `Upgrade` resource to be + * retrieved. Resource names are schemeless URIs that follow the conventions in + * https://cloud.google.com/apis/design/resource_names. For example: + * `projects/my-project/locations/us-west1-a/privateClouds/my-cloud/upgrades/my- + * upgrade` + * @param array $optParams Optional parameters. + * @return Upgrade + * @throws \Google\Service\Exception + */ + public function get($name, $optParams = []) + { + $params = ['name' => $name]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], Upgrade::class); + } + /** + * Lists past, ongoing and upcoming `Upgrades` for the given private cloud. + * (upgrades.listProjectsLocationsPrivateCloudsUpgrades) + * + * @param string $parent Required. Query a list of `Upgrades` for the given + * private cloud resource name. Resource names are schemeless URIs that follow + * the conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/us-west1-a/privateClouds/my-cloud` + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that matches resources returned + * in the response. The expression must specify the field name, a comparison + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The comparison operator must be `=`, `!=`, + * `>`, or `<`. For example, if you are filtering a list of upgrades, you can + * exclude the ones named `example-upgrade1` by specifying `name != "example- + * upgrade1"`. You can also filter nested fields. To filter on multiple + * expressions, provide each separate expression within parentheses. For + * example: ``` (name = "example-upgrade") (createTime > + * "2021-04-12T08:15:10.40Z") ``` By default, each expression is an `AND` + * expression. However, you can include `AND` and `OR` expressions explicitly. + * For example: ``` (name = "upgrade-1") AND (createTime > + * "2021-04-12T08:15:10.40Z") OR (name = "upgrade-2") ``` + * @opt_param string orderBy Sorts list results by a certain order. By default, + * returned results are ordered by `name` in ascending order. You can also sort + * results in descending order based on the `name` value using `orderBy="name + * desc"`. Currently, only ordering by `name` is supported. + * @opt_param int pageSize The maximum number of `Upgrades` to return in one + * page. The service may return fewer resources than this value. The maximum + * value is coerced to 1000. The default value of this field is 500. + * @opt_param string pageToken A page token, received from a previous + * `ListUpgrades` call. Provide this to retrieve the subsequent page. When + * paginating, all other parameters provided to `ListUpgrades` must match the + * call that provided the page token. + * @return ListUpgradesResponse + * @throws \Google\Service\Exception + */ + public function listProjectsLocationsPrivateCloudsUpgrades($parent, $optParams = []) + { + $params = ['parent' => $parent]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], ListUpgradesResponse::class); + } + /** + * Update the private cloud `Upgrade` resource. Only `schedule` field can + * updated. The schedule can only be updated when the upgrade has not started + * and schedule edit window is open. Only fields specified in `update_mask` are + * considered. (upgrades.patch) + * + * @param string $name Output only. Identifier. The resource name of the private + * cloud `Upgrade`. Resource names are schemeless URIs that follow the + * conventions in https://cloud.google.com/apis/design/resource_names. For + * example: `projects/my-project/locations/us-west1-a/privateClouds/my- + * cloud/upgrades/my-upgrade` + * @param Upgrade $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId Optional. A request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. The + * server guarantees that a request doesn't result in creation of duplicate + * commitments for at least 60 minutes. 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 can check if original + * operation with the same request ID was received, and if so, will ignore 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. Field mask is used to specify the + * fields to be overwritten in the `Upgrade` 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, Upgrade $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(ProjectsLocationsPrivateCloudsUpgrades::class, 'Google_Service_VMwareEngine_Resource_ProjectsLocationsPrivateCloudsUpgrades'); diff --git a/src/VMwareEngine/Schedule.php b/src/VMwareEngine/Schedule.php new file mode 100644 index 0000000000..9c21db805e --- /dev/null +++ b/src/VMwareEngine/Schedule.php @@ -0,0 +1,111 @@ +constraints = $constraints; + } + /** + * @return Constraints + */ + public function getConstraints() + { + return $this->constraints; + } + /** + * @param Interval + */ + public function setEditWindow(Interval $editWindow) + { + $this->editWindow = $editWindow; + } + /** + * @return Interval + */ + public function getEditWindow() + { + return $this->editWindow; + } + /** + * @param string + */ + public function setLastEditor($lastEditor) + { + $this->lastEditor = $lastEditor; + } + /** + * @return string + */ + public function getLastEditor() + { + return $this->lastEditor; + } + /** + * @param string + */ + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + /** + * @return string + */ + public function getStartTime() + { + return $this->startTime; + } + /** + * @param TimeWindow[] + */ + public function setWeeklyWindows($weeklyWindows) + { + $this->weeklyWindows = $weeklyWindows; + } + /** + * @return TimeWindow[] + */ + public function getWeeklyWindows() + { + return $this->weeklyWindows; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Schedule::class, 'Google_Service_VMwareEngine_Schedule'); diff --git a/src/VMwareEngine/TimeOfDay.php b/src/VMwareEngine/TimeOfDay.php new file mode 100644 index 0000000000..43a686c95b --- /dev/null +++ b/src/VMwareEngine/TimeOfDay.php @@ -0,0 +1,98 @@ +hours = $hours; + } + /** + * @return int + */ + public function getHours() + { + return $this->hours; + } + /** + * @param int + */ + public function setMinutes($minutes) + { + $this->minutes = $minutes; + } + /** + * @return int + */ + public function getMinutes() + { + return $this->minutes; + } + /** + * @param int + */ + public function setNanos($nanos) + { + $this->nanos = $nanos; + } + /** + * @return int + */ + public function getNanos() + { + return $this->nanos; + } + /** + * @param int + */ + public function setSeconds($seconds) + { + $this->seconds = $seconds; + } + /** + * @return int + */ + public function getSeconds() + { + return $this->seconds; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TimeOfDay::class, 'Google_Service_VMwareEngine_TimeOfDay'); diff --git a/src/VMwareEngine/TimeWindow.php b/src/VMwareEngine/TimeWindow.php new file mode 100644 index 0000000000..bcfbe33a5b --- /dev/null +++ b/src/VMwareEngine/TimeWindow.php @@ -0,0 +1,78 @@ +dayOfWeek = $dayOfWeek; + } + /** + * @return string + */ + public function getDayOfWeek() + { + return $this->dayOfWeek; + } + /** + * @param string + */ + public function setDuration($duration) + { + $this->duration = $duration; + } + /** + * @return string + */ + public function getDuration() + { + return $this->duration; + } + /** + * @param TimeOfDay + */ + public function setStartTime(TimeOfDay $startTime) + { + $this->startTime = $startTime; + } + /** + * @return TimeOfDay + */ + public function getStartTime() + { + return $this->startTime; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TimeWindow::class, 'Google_Service_VMwareEngine_TimeWindow'); diff --git a/src/VMwareEngine/Upgrade.php b/src/VMwareEngine/Upgrade.php new file mode 100644 index 0000000000..504ac130b3 --- /dev/null +++ b/src/VMwareEngine/Upgrade.php @@ -0,0 +1,293 @@ +componentUpgrades = $componentUpgrades; + } + /** + * @return VmwareUpgradeComponent[] + */ + public function getComponentUpgrades() + { + return $this->componentUpgrades; + } + /** + * @param string + */ + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + /** + * @return string + */ + public function getCreateTime() + { + return $this->createTime; + } + /** + * @param string + */ + public function setDescription($description) + { + $this->description = $description; + } + /** + * @return string + */ + public function getDescription() + { + return $this->description; + } + /** + * @param string + */ + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + /** + * @return string + */ + public function getEndTime() + { + return $this->endTime; + } + /** + * @param string + */ + public function setEstimatedDuration($estimatedDuration) + { + $this->estimatedDuration = $estimatedDuration; + } + /** + * @return string + */ + public function getEstimatedDuration() + { + return $this->estimatedDuration; + } + /** + * @param string + */ + public function setEtag($etag) + { + $this->etag = $etag; + } + /** + * @return string + */ + public function getEtag() + { + return $this->etag; + } + /** + * @param string + */ + public function setName($name) + { + $this->name = $name; + } + /** + * @return string + */ + public function getName() + { + return $this->name; + } + /** + * @param Schedule + */ + public function setSchedule(Schedule $schedule) + { + $this->schedule = $schedule; + } + /** + * @return Schedule + */ + public function getSchedule() + { + return $this->schedule; + } + /** + * @param string + */ + public function setStartVersion($startVersion) + { + $this->startVersion = $startVersion; + } + /** + * @return string + */ + public function getStartVersion() + { + return $this->startVersion; + } + /** + * @param string + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return string + */ + public function getState() + { + return $this->state; + } + /** + * @param string + */ + public function setTargetVersion($targetVersion) + { + $this->targetVersion = $targetVersion; + } + /** + * @return string + */ + public function getTargetVersion() + { + return $this->targetVersion; + } + /** + * @param string + */ + public function setType($type) + { + $this->type = $type; + } + /** + * @return string + */ + public function getType() + { + return $this->type; + } + /** + * @param string + */ + public function setUid($uid) + { + $this->uid = $uid; + } + /** + * @return string + */ + public function getUid() + { + return $this->uid; + } + /** + * @param string + */ + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + /** + * @return string + */ + public function getUpdateTime() + { + return $this->updateTime; + } + /** + * @param string + */ + public function setVersion($version) + { + $this->version = $version; + } + /** + * @return string + */ + public function getVersion() + { + return $this->version; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Upgrade::class, 'Google_Service_VMwareEngine_Upgrade'); diff --git a/src/VMwareEngine/VmwareUpgradeComponent.php b/src/VMwareEngine/VmwareUpgradeComponent.php new file mode 100644 index 0000000000..5f8e317dc7 --- /dev/null +++ b/src/VMwareEngine/VmwareUpgradeComponent.php @@ -0,0 +1,62 @@ +componentType = $componentType; + } + /** + * @return string + */ + public function getComponentType() + { + return $this->componentType; + } + /** + * @param string + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return string + */ + public function getState() + { + return $this->state; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(VmwareUpgradeComponent::class, 'Google_Service_VMwareEngine_VmwareUpgradeComponent');