class AppsServicesVersions extends Resource (View source)

The "versions" collection of methods.

Typical usage is:

 $appengineService = new Google\Service\Appengine(...);
 $versions = $appengineService->apps_services_versions;

Methods

create(string $appsId, string $servicesId, Version $postBody, array $optParams = [])

Deploys code and resource files to a new version. (versions.create)

delete(string $appsId, string $servicesId, string $versionsId, array $optParams = [])

Deletes an existing Version resource. (versions.delete)

get(string $appsId, string $servicesId, string $versionsId, array $optParams = [])

Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.

listAppsServicesVersions(string $appsId, string $servicesId, array $optParams = [])

Lists the versions of a service. (versions.listAppsServicesVersions)

patch(string $appsId, string $servicesId, string $versionsId, Version $postBody, array $optParams = [])

Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:Standard environment instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.instance_class)automatic scaling in the standard environment: automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling) automaticScaling.standard_scheduler_settings.max_instances (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_cpu_utilization (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_throughput_utilization (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)basic scaling or manual scaling in the standard environment: serving_status (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status) manual_scaling.instances (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#manualscaling)Flexible environment serving_status (https://cloud.google.com/appengine/docs/admin-api /reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)autom atic scaling in the flexible environment: automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling)manual scaling in the flexible environment: manual_scaling.instances (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#manualscaling) (versions.patch)

Details

Operation create(string $appsId, string $servicesId, Version $postBody, array $optParams = [])

Deploys code and resource files to a new version. (versions.create)

Parameters

string $appsId

Part of parent. Name of the parent resource to create this version under. Example: apps/myapp/services/default.

string $servicesId

Part of parent. See documentation of appsId.

Version $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $appsId, string $servicesId, string $versionsId, array $optParams = [])

Deletes an existing Version resource. (versions.delete)

Parameters

string $appsId

Part of name. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.

string $servicesId

Part of name. See documentation of appsId.

string $versionsId

Part of name. See documentation of appsId.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Version get(string $appsId, string $servicesId, string $versionsId, array $optParams = [])

Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.

(versions.get)

Parameters

string $appsId

Part of name. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.

string $servicesId

Part of name. See documentation of appsId.

string $versionsId

Part of name. See documentation of appsId.

array $optParams

Optional parameters.

Return Value

Version

Exceptions

Exception

ListVersionsResponse listAppsServicesVersions(string $appsId, string $servicesId, array $optParams = [])

Lists the versions of a service. (versions.listAppsServicesVersions)

Parameters

string $appsId

Part of parent. Name of the parent Service resource. Example: apps/myapp/services/default.

string $servicesId

Part of parent. See documentation of appsId.

array $optParams

Optional parameters.

Return Value

ListVersionsResponse

Exceptions

Exception

Operation patch(string $appsId, string $servicesId, string $versionsId, Version $postBody, array $optParams = [])

Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:Standard environment instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.instance_class)automatic scaling in the standard environment: automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling) automaticScaling.standard_scheduler_settings.max_instances (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_cpu_utilization (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_throughput_utilization (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)basic scaling or manual scaling in the standard environment: serving_status (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status) manual_scaling.instances (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#manualscaling)Flexible environment serving_status (https://cloud.google.com/appengine/docs/admin-api /reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)autom atic scaling in the flexible environment: automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.ser vices.versions#Version.FIELDS.automatic_scaling)manual scaling in the flexible environment: manual_scaling.instances (https://cloud.google.com/appengine/docs/admin- api/reference/rest/v1/apps.services.versions#manualscaling) (versions.patch)

Parameters

string $appsId

Part of name. Name of the resource to update. Example: apps/myapp/services/default/versions/1.

string $servicesId

Part of name. See documentation of appsId.

string $versionsId

Part of name. See documentation of appsId.

Version $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception