pub struct ProjectMethods<'a, C>where
C: 'a,{ /* private fields */ }Expand description
A builder providing access to all methods supported on project resources.
It is not used directly, but through the Appengine hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_appengine1 as appengine1;
use appengine1::{Appengine, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_only()
.enable_http2()
.build();
let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
yup_oauth2::client::CustomHyperClientBuilder::from(
hyper_util::client::legacy::Client::builder(executor).build(connector),
),
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http2()
.build()
);
let mut hub = Appengine::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_applications_authorized_certificates_create(...)`, `locations_applications_authorized_certificates_delete(...)`, `locations_applications_authorized_certificates_get(...)`, `locations_applications_authorized_certificates_list(...)`, `locations_applications_authorized_certificates_patch(...)`, `locations_applications_authorized_domains_list(...)`, `locations_applications_domain_mappings_create(...)`, `locations_applications_domain_mappings_delete(...)`, `locations_applications_domain_mappings_get(...)`, `locations_applications_domain_mappings_list(...)`, `locations_applications_domain_mappings_patch(...)`, `locations_applications_patch(...)`, `locations_applications_services_delete(...)`, `locations_applications_services_patch(...)`, `locations_applications_services_versions_delete(...)`, `locations_applications_services_versions_export_app_image(...)` and `locations_applications_services_versions_patch(...)`
// to build up your call.
let rb = hub.projects();Implementations§
Source§impl<'a, C> ProjectMethods<'a, C>
impl<'a, C> ProjectMethods<'a, C>
Create a builder to help you perform the following task:
Uploads the specified SSL certificate.
§Arguments
request- No description provided.projectsId- Part ofparent. Required. Name of the parent Application resource. Example: apps/myapp.locationsId- Part ofparent. See documentation ofprojectsId.applicationsId- Part ofparent. See documentation ofprojectsId.
Create a builder to help you perform the following task:
Deletes the specified SSL certificate.
§Arguments
projectsId- Part ofname. Required. Name of the resource to delete. Example: apps/myapp/authorizedCertificates/12345.locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.authorizedCertificatesId- Part ofname. See documentation ofprojectsId.
Create a builder to help you perform the following task:
Gets the specified SSL certificate.
§Arguments
projectsId- Part ofname. Required. Name of the resource requested. Example: apps/myapp/authorizedCertificates/12345.locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.authorizedCertificatesId- Part ofname. See documentation ofprojectsId.
Create a builder to help you perform the following task:
Lists all SSL certificates the user is authorized to administer.
§Arguments
projectsId- Part ofparent. Required. Name of the parent Application resource. Example: apps/myapp.locationsId- Part ofparent. See documentation ofprojectsId.applicationsId- Part ofparent. See documentation ofprojectsId.
Create a builder to help you perform the following task:
Updates the specified SSL certificate. To renew a certificate and maintain its existing domain mappings, update certificate_data with a new certificate. The new certificate must be applicable to the same domains as the original certificate. The certificate display_name may also be updated.
§Arguments
request- No description provided.projectsId- Part ofname. Required. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345.locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.authorizedCertificatesId- Part ofname. See documentation ofprojectsId.
Create a builder to help you perform the following task:
Lists all domains the user is authorized to administer.
§Arguments
projectsId- Part ofparent. Required. Name of the parent Application resource. Example: apps/myapp.locationsId- Part ofparent. See documentation ofprojectsId.applicationsId- Part ofparent. See documentation ofprojectsId.
Sourcepub fn locations_applications_domain_mappings_create(
&self,
request: DomainMapping,
projects_id: &str,
locations_id: &str,
applications_id: &str,
) -> ProjectLocationApplicationDomainMappingCreateCall<'a, C>
pub fn locations_applications_domain_mappings_create( &self, request: DomainMapping, projects_id: &str, locations_id: &str, applications_id: &str, ) -> ProjectLocationApplicationDomainMappingCreateCall<'a, C>
Create a builder to help you perform the following task:
Maps a domain to an application. A user must be authorized to administer a domain in order to map it to an application. For a list of available authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
§Arguments
request- No description provided.projectsId- Part ofparent. Required. Name of the parent Application resource. Example: apps/myapp.locationsId- Part ofparent. See documentation ofprojectsId.applicationsId- Part ofparent. See documentation ofprojectsId.
Sourcepub fn locations_applications_domain_mappings_delete(
&self,
projects_id: &str,
locations_id: &str,
applications_id: &str,
domain_mappings_id: &str,
) -> ProjectLocationApplicationDomainMappingDeleteCall<'a, C>
pub fn locations_applications_domain_mappings_delete( &self, projects_id: &str, locations_id: &str, applications_id: &str, domain_mappings_id: &str, ) -> ProjectLocationApplicationDomainMappingDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a DomainMapping resource.
§Arguments
projectsId- Part ofname. Required. Name of the resource to delete. Example: apps/myapp/domainMappings/example.com.locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.domainMappingsId- Part ofname. See documentation ofprojectsId.
Sourcepub fn locations_applications_domain_mappings_get(
&self,
projects_id: &str,
locations_id: &str,
applications_id: &str,
domain_mappings_id: &str,
) -> ProjectLocationApplicationDomainMappingGetCall<'a, C>
pub fn locations_applications_domain_mappings_get( &self, projects_id: &str, locations_id: &str, applications_id: &str, domain_mappings_id: &str, ) -> ProjectLocationApplicationDomainMappingGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the specified domain mapping.
§Arguments
projectsId- Part ofname. Required. Name of the resource requested. Example: apps/myapp/domainMappings/example.com.locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.domainMappingsId- Part ofname. See documentation ofprojectsId.
Sourcepub fn locations_applications_domain_mappings_list(
&self,
projects_id: &str,
locations_id: &str,
applications_id: &str,
) -> ProjectLocationApplicationDomainMappingListCall<'a, C>
pub fn locations_applications_domain_mappings_list( &self, projects_id: &str, locations_id: &str, applications_id: &str, ) -> ProjectLocationApplicationDomainMappingListCall<'a, C>
Create a builder to help you perform the following task:
Lists the domain mappings on an application.
§Arguments
projectsId- Part ofparent. Required. Name of the parent Application resource. Example: apps/myapp.locationsId- Part ofparent. See documentation ofprojectsId.applicationsId- Part ofparent. See documentation ofprojectsId.
Sourcepub fn locations_applications_domain_mappings_patch(
&self,
request: DomainMapping,
projects_id: &str,
locations_id: &str,
applications_id: &str,
domain_mappings_id: &str,
) -> ProjectLocationApplicationDomainMappingPatchCall<'a, C>
pub fn locations_applications_domain_mappings_patch( &self, request: DomainMapping, projects_id: &str, locations_id: &str, applications_id: &str, domain_mappings_id: &str, ) -> ProjectLocationApplicationDomainMappingPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the specified domain mapping. To map an SSL certificate to a domain mapping, update certificate_id to point to an AuthorizedCertificate resource. A user must be authorized to administer the associated domain in order to update a DomainMapping resource.
§Arguments
request- No description provided.projectsId- Part ofname. Required. Name of the resource to update. Example: apps/myapp/domainMappings/example.com.locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.domainMappingsId- Part ofname. See documentation ofprojectsId.
Sourcepub fn locations_applications_services_versions_delete(
&self,
projects_id: &str,
locations_id: &str,
applications_id: &str,
services_id: &str,
versions_id: &str,
) -> ProjectLocationApplicationServiceVersionDeleteCall<'a, C>
pub fn locations_applications_services_versions_delete( &self, projects_id: &str, locations_id: &str, applications_id: &str, services_id: &str, versions_id: &str, ) -> ProjectLocationApplicationServiceVersionDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes an existing Version resource.
§Arguments
projectsId- Part ofname. Required. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.servicesId- Part ofname. See documentation ofprojectsId.versionsId- Part ofname. See documentation ofprojectsId.
Sourcepub fn locations_applications_services_versions_export_app_image(
&self,
request: ExportAppImageRequest,
projects_id: &str,
locations_id: &str,
applications_id: &str,
services_id: &str,
versions_id: &str,
) -> ProjectLocationApplicationServiceVersionExportAppImageCall<'a, C>
pub fn locations_applications_services_versions_export_app_image( &self, request: ExportAppImageRequest, projects_id: &str, locations_id: &str, applications_id: &str, services_id: &str, versions_id: &str, ) -> ProjectLocationApplicationServiceVersionExportAppImageCall<'a, C>
Create a builder to help you perform the following task:
Exports a user image to Artifact Registry.
§Arguments
request- No description provided.projectsId- Part ofname. Required. Name of the App Engine version resource. Format: apps/{app}/services/{service}/versions/{version}locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.servicesId- Part ofname. See documentation ofprojectsId.versionsId- Part ofname. See documentation ofprojectsId.
Sourcepub fn locations_applications_services_versions_patch(
&self,
request: Version,
projects_id: &str,
locations_id: &str,
applications_id: &str,
services_id: &str,
versions_id: &str,
) -> ProjectLocationApplicationServiceVersionPatchCall<'a, C>
pub fn locations_applications_services_versions_patch( &self, request: Version, projects_id: &str, locations_id: &str, applications_id: &str, services_id: &str, versions_id: &str, ) -> ProjectLocationApplicationServiceVersionPatchCall<'a, C>
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:Standard environment instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.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.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.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)automatic scaling in the flexible environment: automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.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)
§Arguments
request- No description provided.projectsId- Part ofname. Required. Name of the resource to update. Example: apps/myapp/services/default/versions/1.locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.servicesId- Part ofname. See documentation ofprojectsId.versionsId- Part ofname. See documentation ofprojectsId.
Sourcepub fn locations_applications_services_delete(
&self,
projects_id: &str,
locations_id: &str,
applications_id: &str,
services_id: &str,
) -> ProjectLocationApplicationServiceDeleteCall<'a, C>
pub fn locations_applications_services_delete( &self, projects_id: &str, locations_id: &str, applications_id: &str, services_id: &str, ) -> ProjectLocationApplicationServiceDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes the specified service and all enclosed versions.
§Arguments
projectsId- Part ofname. Required. Name of the resource requested. Example: apps/myapp/services/default.locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.servicesId- Part ofname. See documentation ofprojectsId.
Sourcepub fn locations_applications_services_patch(
&self,
request: Service,
projects_id: &str,
locations_id: &str,
applications_id: &str,
services_id: &str,
) -> ProjectLocationApplicationServicePatchCall<'a, C>
pub fn locations_applications_services_patch( &self, request: Service, projects_id: &str, locations_id: &str, applications_id: &str, services_id: &str, ) -> ProjectLocationApplicationServicePatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the configuration of the specified service.
§Arguments
request- No description provided.projectsId- Part ofname. Required. Name of the resource to update. Example: apps/myapp/services/default.locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.servicesId- Part ofname. See documentation ofprojectsId.
Sourcepub fn locations_applications_patch(
&self,
request: Application,
projects_id: &str,
locations_id: &str,
applications_id: &str,
) -> ProjectLocationApplicationPatchCall<'a, C>
pub fn locations_applications_patch( &self, request: Application, projects_id: &str, locations_id: &str, applications_id: &str, ) -> ProjectLocationApplicationPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the specified Application resource. You can update the following fields: auth_domain - Google authentication domain for controlling user access to the application. default_cookie_expiration - Cookie expiration policy for the application. iap - Identity-Aware Proxy properties for the application.
§Arguments
request- No description provided.projectsId- Part ofname. Required. Name of the Application resource to update. Example: apps/myapp.locationsId- Part ofname. See documentation ofprojectsId.applicationsId- Part ofname. See documentation ofprojectsId.