Struct google_appengine1::AppMethods
[−]
[src]
pub struct AppMethods<'a, C, A> where C: 'a, A: 'a { /* fields omitted */ }
A builder providing access to all methods supported on app resources.
It is not used directly, but through the Appengine
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate yup_oauth2 as oauth2; extern crate google_appengine1 as appengine1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use appengine1::Appengine; let secret: ApplicationSecret = Default::default(); let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::new(), <MemoryStorage as Default>::default(), None); let mut hub = Appengine::new(hyper::Client::new(), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `create(...)`, `get(...)`, `locations_get(...)`, `locations_list(...)`, `operations_get(...)`, `operations_list(...)`, `patch(...)`, `repair(...)`, `services_delete(...)`, `services_get(...)`, `services_list(...)`, `services_patch(...)`, `services_versions_create(...)`, `services_versions_delete(...)`, `services_versions_get(...)`, `services_versions_instances_debug(...)`, `services_versions_instances_delete(...)`, `services_versions_instances_get(...)`, `services_versions_instances_list(...)`, `services_versions_list(...)` and `services_versions_patch(...)` // to build up your call. let rb = hub.apps();
Methods
impl<'a, C, A> AppMethods<'a, C, A>
[src]
fn services_versions_instances_list(&self,
apps_id: &str,
services_id: &str,
versions_id: &str)
-> AppServiceVersionInstanceListCall<'a, C, A>
apps_id: &str,
services_id: &str,
versions_id: &str)
-> AppServiceVersionInstanceListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists the instances of a version.
Arguments
appsId
- Part ofparent
. Name of the parent Version resource. Example: apps/myapp/services/default/versions/v1.servicesId
- Part ofparent
. See documentation ofappsId
.versionsId
- Part ofparent
. See documentation ofappsId
.
fn services_versions_create(&self,
request: Version,
apps_id: &str,
services_id: &str)
-> AppServiceVersionCreateCall<'a, C, A>
request: Version,
apps_id: &str,
services_id: &str)
-> AppServiceVersionCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Deploys code and resource files to a new version.
Arguments
request
- No description provided.appsId
- Part ofparent
. Name of the parent resource to create this version under. Example: apps/myapp/services/default.servicesId
- Part ofparent
. See documentation ofappsId
.
fn repair(&self,
request: RepairApplicationRequest,
apps_id: &str)
-> AppRepairCall<'a, C, A>
request: RepairApplicationRequest,
apps_id: &str)
-> AppRepairCall<'a, C, A>
Create a builder to help you perform the following task:
Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account.
Arguments
request
- No description provided.appsId
- Part ofname
. Name of the application to repair. Example: apps/myapp
fn services_versions_instances_debug(&self,
request: DebugInstanceRequest,
apps_id: &str,
services_id: &str,
versions_id: &str,
instances_id: &str)
-> AppServiceVersionInstanceDebugCall<'a, C, A>
request: DebugInstanceRequest,
apps_id: &str,
services_id: &str,
versions_id: &str,
instances_id: &str)
-> AppServiceVersionInstanceDebugCall<'a, C, A>
Create a builder to help you perform the following task:
Enables debugging on a VM instance. This allows you to use the SSH command to connect to the virtual machine where the instance lives. While in "debug mode", the instance continues to serve live traffic. You should delete the instance when you are done debugging and then allow the system to take over and determine if another instance should be started.Only applicable for instances in App Engine flexible environment.
Arguments
request
- No description provided.appsId
- Part ofname
. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.servicesId
- Part ofname
. See documentation ofappsId
.versionsId
- Part ofname
. See documentation ofappsId
.instancesId
- Part ofname
. See documentation ofappsId
.
fn services_get(&self,
apps_id: &str,
services_id: &str)
-> AppServiceGetCall<'a, C, A>
apps_id: &str,
services_id: &str)
-> AppServiceGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets the current configuration of the specified service.
Arguments
appsId
- Part ofname
. Name of the resource requested. Example: apps/myapp/services/default.servicesId
- Part ofname
. See documentation ofappsId
.
fn patch(&self, request: Application, apps_id: &str) -> AppPatchCall<'a, C, A>
Create a builder to help you perform the following task:
Updates the specified Application resource. You can update the following fields: auth_domain (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps#Application.FIELDS.auth_domain) default_cookie_expiration (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps#Application.FIELDS.default_cookie_expiration)
Arguments
request
- No description provided.appsId
- Part ofname
. Name of the Application resource to update. Example: apps/myapp.
fn services_versions_instances_delete(&self,
apps_id: &str,
services_id: &str,
versions_id: &str,
instances_id: &str)
-> AppServiceVersionInstanceDeleteCall<'a, C, A>
apps_id: &str,
services_id: &str,
versions_id: &str,
instances_id: &str)
-> AppServiceVersionInstanceDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Stops a running instance.
Arguments
appsId
- Part ofname
. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.servicesId
- Part ofname
. See documentation ofappsId
.versionsId
- Part ofname
. See documentation ofappsId
.instancesId
- Part ofname
. See documentation ofappsId
.
fn services_versions_patch(&self,
request: Version,
apps_id: &str,
services_id: &str,
versions_id: &str)
-> AppServiceVersionPatchCall<'a, C, A>
request: Version,
apps_id: &str,
services_id: &str,
versions_id: &str)
-> AppServiceVersionPatchCall<'a, C, A>
Create a builder to help you perform the following task:
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: serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment. instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment. automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment. automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.
Arguments
request
- No description provided.appsId
- Part ofname
. Name of the resource to update. Example: apps/myapp/services/default/versions/1.servicesId
- Part ofname
. See documentation ofappsId
.versionsId
- Part ofname
. See documentation ofappsId
.
fn services_versions_list(&self,
apps_id: &str,
services_id: &str)
-> AppServiceVersionListCall<'a, C, A>
apps_id: &str,
services_id: &str)
-> AppServiceVersionListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists the versions of a service.
Arguments
appsId
- Part ofparent
. Name of the parent Service resource. Example: apps/myapp/services/default.servicesId
- Part ofparent
. See documentation ofappsId
.
fn operations_get(&self,
apps_id: &str,
operations_id: &str)
-> AppOperationGetCall<'a, C, A>
apps_id: &str,
operations_id: &str)
-> AppOperationGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
Arguments
appsId
- Part ofname
. The name of the operation resource.operationsId
- Part ofname
. See documentation ofappsId
.
fn services_list(&self, apps_id: &str) -> AppServiceListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists all the services in the application.
Arguments
appsId
- Part ofparent
. Name of the parent Application resource. Example: apps/myapp.
fn locations_list(&self, apps_id: &str) -> AppLocationListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists information about the supported locations for this service.
Arguments
appsId
- Part ofname
. The resource that owns the locations collection, if applicable.
fn services_versions_instances_get(&self,
apps_id: &str,
services_id: &str,
versions_id: &str,
instances_id: &str)
-> AppServiceVersionInstanceGetCall<'a, C, A>
apps_id: &str,
services_id: &str,
versions_id: &str,
instances_id: &str)
-> AppServiceVersionInstanceGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets instance information.
Arguments
appsId
- Part ofname
. Name of the resource requested. Example: apps/myapp/services/default/versions/v1/instances/instance-1.servicesId
- Part ofname
. See documentation ofappsId
.versionsId
- Part ofname
. See documentation ofappsId
.instancesId
- Part ofname
. See documentation ofappsId
.
fn operations_list(&self, apps_id: &str) -> AppOperationListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding below allows API services to override the binding to use different resource name schemes, such as users/*/operations.
Arguments
appsId
- Part ofname
. The name of the operation collection.
fn services_versions_delete(&self,
apps_id: &str,
services_id: &str,
versions_id: &str)
-> AppServiceVersionDeleteCall<'a, C, A>
apps_id: &str,
services_id: &str,
versions_id: &str)
-> AppServiceVersionDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes an existing Version resource.
Arguments
appsId
- Part ofname
. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.servicesId
- Part ofname
. See documentation ofappsId
.versionsId
- Part ofname
. See documentation ofappsId
.
fn locations_get(&self,
apps_id: &str,
locations_id: &str)
-> AppLocationGetCall<'a, C, A>
apps_id: &str,
locations_id: &str)
-> AppLocationGetCall<'a, C, A>
Create a builder to help you perform the following task:
Get information about a location.
Arguments
appsId
- Part ofname
. Resource name for the location.locationsId
- Part ofname
. See documentation ofappsId
.
fn services_patch(&self,
request: Service,
apps_id: &str,
services_id: &str)
-> AppServicePatchCall<'a, C, A>
request: Service,
apps_id: &str,
services_id: &str)
-> AppServicePatchCall<'a, C, A>
Create a builder to help you perform the following task:
Updates the configuration of the specified service.
Arguments
request
- No description provided.appsId
- Part ofname
. Name of the resource to update. Example: apps/myapp/services/default.servicesId
- Part ofname
. See documentation ofappsId
.
fn get(&self, apps_id: &str) -> AppGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets information about an application.
Arguments
appsId
- Part ofname
. Name of the Application resource to get. Example: apps/myapp.
fn services_delete(&self,
apps_id: &str,
services_id: &str)
-> AppServiceDeleteCall<'a, C, A>
apps_id: &str,
services_id: &str)
-> AppServiceDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes the specified service and all enclosed versions.
Arguments
appsId
- Part ofname
. Name of the resource requested. Example: apps/myapp/services/default.servicesId
- Part ofname
. See documentation ofappsId
.
fn create(&self, request: Application) -> AppCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates an App Engine application for a Google Cloud Platform project. This requires a project that excludes an App Engine application. For details about creating a project without an application, see the Google Cloud Resource Manager create project topic (https://cloud.google.com/resource-manager/docs/creating-project).
Arguments
request
- No description provided.
fn services_versions_get(&self,
apps_id: &str,
services_id: &str,
versions_id: &str)
-> AppServiceVersionGetCall<'a, C, A>
apps_id: &str,
services_id: &str,
versions_id: &str)
-> AppServiceVersionGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.
Arguments
appsId
- Part ofname
. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.servicesId
- Part ofname
. See documentation ofappsId
.versionsId
- Part ofname
. See documentation ofappsId
.