ProjectMethods

Struct ProjectMethods 

Source
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>

Source

pub fn locations_applications_authorized_certificates_create( &self, request: AuthorizedCertificate, projects_id: &str, locations_id: &str, applications_id: &str, ) -> ProjectLocationApplicationAuthorizedCertificateCreateCall<'a, C>

Create a builder to help you perform the following task:

Uploads the specified SSL certificate.

§Arguments
  • request - No description provided.
  • projectsId - Part of parent. Required. Name of the parent Application resource. Example: apps/myapp.
  • locationsId - Part of parent. See documentation of projectsId.
  • applicationsId - Part of parent. See documentation of projectsId.
Source

pub fn locations_applications_authorized_certificates_delete( &self, projects_id: &str, locations_id: &str, applications_id: &str, authorized_certificates_id: &str, ) -> ProjectLocationApplicationAuthorizedCertificateDeleteCall<'a, C>

Create a builder to help you perform the following task:

Deletes the specified SSL certificate.

§Arguments
  • projectsId - Part of name. Required. Name of the resource to delete. Example: apps/myapp/authorizedCertificates/12345.
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.
  • authorizedCertificatesId - Part of name. See documentation of projectsId.
Source

pub fn locations_applications_authorized_certificates_get( &self, projects_id: &str, locations_id: &str, applications_id: &str, authorized_certificates_id: &str, ) -> ProjectLocationApplicationAuthorizedCertificateGetCall<'a, C>

Create a builder to help you perform the following task:

Gets the specified SSL certificate.

§Arguments
  • projectsId - Part of name. Required. Name of the resource requested. Example: apps/myapp/authorizedCertificates/12345.
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.
  • authorizedCertificatesId - Part of name. See documentation of projectsId.
Source

pub fn locations_applications_authorized_certificates_list( &self, projects_id: &str, locations_id: &str, applications_id: &str, ) -> ProjectLocationApplicationAuthorizedCertificateListCall<'a, C>

Create a builder to help you perform the following task:

Lists all SSL certificates the user is authorized to administer.

§Arguments
  • projectsId - Part of parent. Required. Name of the parent Application resource. Example: apps/myapp.
  • locationsId - Part of parent. See documentation of projectsId.
  • applicationsId - Part of parent. See documentation of projectsId.
Source

pub fn locations_applications_authorized_certificates_patch( &self, request: AuthorizedCertificate, projects_id: &str, locations_id: &str, applications_id: &str, authorized_certificates_id: &str, ) -> ProjectLocationApplicationAuthorizedCertificatePatchCall<'a, C>

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 of name. Required. Name of the resource to update. Example: apps/myapp/authorizedCertificates/12345.
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.
  • authorizedCertificatesId - Part of name. See documentation of projectsId.
Source

pub fn locations_applications_authorized_domains_list( &self, projects_id: &str, locations_id: &str, applications_id: &str, ) -> ProjectLocationApplicationAuthorizedDomainListCall<'a, C>

Create a builder to help you perform the following task:

Lists all domains the user is authorized to administer.

§Arguments
  • projectsId - Part of parent. Required. Name of the parent Application resource. Example: apps/myapp.
  • locationsId - Part of parent. See documentation of projectsId.
  • applicationsId - Part of parent. See documentation of projectsId.
Source

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 of parent. Required. Name of the parent Application resource. Example: apps/myapp.
  • locationsId - Part of parent. See documentation of projectsId.
  • applicationsId - Part of parent. See documentation of projectsId.
Source

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 of name. Required. Name of the resource to delete. Example: apps/myapp/domainMappings/example.com.
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.
  • domainMappingsId - Part of name. See documentation of projectsId.
Source

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 of name. Required. Name of the resource requested. Example: apps/myapp/domainMappings/example.com.
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.
  • domainMappingsId - Part of name. See documentation of projectsId.
Source

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 of parent. Required. Name of the parent Application resource. Example: apps/myapp.
  • locationsId - Part of parent. See documentation of projectsId.
  • applicationsId - Part of parent. See documentation of projectsId.
Source

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 of name. Required. Name of the resource to update. Example: apps/myapp/domainMappings/example.com.
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.
  • domainMappingsId - Part of name. See documentation of projectsId.
Source

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 of name. Required. Name of the resource requested. Example: apps/myapp/services/default/versions/v1.
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.
  • servicesId - Part of name. See documentation of projectsId.
  • versionsId - Part of name. See documentation of projectsId.
Source

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 of name. Required. Name of the App Engine version resource. Format: apps/{app}/services/{service}/versions/{version}
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.
  • servicesId - Part of name. See documentation of projectsId.
  • versionsId - Part of name. See documentation of projectsId.
Source

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 of name. Required. Name of the resource to update. Example: apps/myapp/services/default/versions/1.
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.
  • servicesId - Part of name. See documentation of projectsId.
  • versionsId - Part of name. See documentation of projectsId.
Source

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 of name. Required. Name of the resource requested. Example: apps/myapp/services/default.
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.
  • servicesId - Part of name. See documentation of projectsId.
Source

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 of name. Required. Name of the resource to update. Example: apps/myapp/services/default.
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.
  • servicesId - Part of name. See documentation of projectsId.
Source

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 of name. Required. Name of the Application resource to update. Example: apps/myapp.
  • locationsId - Part of name. See documentation of projectsId.
  • applicationsId - Part of name. See documentation of projectsId.

Trait Implementations§

Source§

impl<'a, C> MethodsBuilder for ProjectMethods<'a, C>

Auto Trait Implementations§

§

impl<'a, C> Freeze for ProjectMethods<'a, C>

§

impl<'a, C> !RefUnwindSafe for ProjectMethods<'a, C>

§

impl<'a, C> Send for ProjectMethods<'a, C>
where C: Sync,

§

impl<'a, C> Sync for ProjectMethods<'a, C>
where C: Sync,

§

impl<'a, C> Unpin for ProjectMethods<'a, C>

§

impl<'a, C> !UnwindSafe for ProjectMethods<'a, C>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more