google-cloud-appengine-admin overview (2.6.0)

Stay organized with collections Save and categorize content based on your preferences.

com.google.appengine.v1

The interfaces provided are listed below, along with usage samples.

ApplicationsClient

Service Description: Manages App Engine applications.

Sample for ApplicationsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ApplicationsClient applicationsClient = ApplicationsClient.create()) {
   String name = "name3373707";
   Application response = applicationsClient.getApplication(name);
 }
 

ServicesClient

Service Description: Manages services of an application.

Sample for ServicesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ServicesClient servicesClient = ServicesClient.create()) {
   GetServiceRequest request = GetServiceRequest.newBuilder().setName("name3373707").build();
   Service response = servicesClient.getService(request);
 }
 

VersionsClient

Service Description: Manages versions of a service.

Sample for VersionsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (VersionsClient versionsClient = VersionsClient.create()) {
   GetVersionRequest request =
       GetVersionRequest.newBuilder()
           .setName("name3373707")
           .setView(VersionView.forNumber(0))
           .build();
   Version response = versionsClient.getVersion(request);
 }
 

InstancesClient

Service Description: Manages instances of a version.

Sample for InstancesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (InstancesClient instancesClient = InstancesClient.create()) {
   GetInstanceRequest request = GetInstanceRequest.newBuilder().setName("name3373707").build();
   Instance response = instancesClient.getInstance(request);
 }
 

FirewallClient

Service Description: Firewall resources are used to define a collection of access control rules for an Application. Each rule is defined with a position which specifies the rule's order in the sequence of rules, an IP range to be matched against requests, and an action to take upon matching requests.

Every request is evaluated against the Firewall rules in priority order. Processesing stops at the first rule which matches the request's IP address. A final rule always specifies an action that applies to all remaining IP addresses. The default final rule for a newly-created application will be set to "allow" if not otherwise specified by the user.

Sample for FirewallClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (FirewallClient firewallClient = FirewallClient.create()) {
   BatchUpdateIngressRulesRequest request =
       BatchUpdateIngressRulesRequest.newBuilder()
           .setName("name3373707")
           .addAllIngressRules(new ArrayList<FirewallRule>())
           .build();
   BatchUpdateIngressRulesResponse response = firewallClient.batchUpdateIngressRules(request);
 }
 

AuthorizedDomainsClient

Service Description: Manages domains a user is authorized to administer. To authorize use of a domain, verify ownership via Webmaster Central.

Sample for AuthorizedDomainsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AuthorizedDomainsClient authorizedDomainsClient = AuthorizedDomainsClient.create()) {
   ListAuthorizedDomainsRequest request =
       ListAuthorizedDomainsRequest.newBuilder()
           .setParent("parent-995424086")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (AuthorizedDomain element :
       authorizedDomainsClient.listAuthorizedDomains(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 

AuthorizedCertificatesClient

Service Description: Manages SSL certificates a user is authorized to administer. A user can administer any SSL certificates applicable to their authorized domains.

Sample for AuthorizedCertificatesClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (AuthorizedCertificatesClient authorizedCertificatesClient =
     AuthorizedCertificatesClient.create()) {
   GetAuthorizedCertificateRequest request =
       GetAuthorizedCertificateRequest.newBuilder()
           .setName("name3373707")
           .setView(AuthorizedCertificateView.forNumber(0))
           .build();
   AuthorizedCertificate response =
       authorizedCertificatesClient.getAuthorizedCertificate(request);
 }
 

DomainMappingsClient

Service Description: Manages domains serving an application.

Sample for DomainMappingsClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DomainMappingsClient domainMappingsClient = DomainMappingsClient.create()) {
   GetDomainMappingRequest request =
       GetDomainMappingRequest.newBuilder().setName("name3373707").build();
   DomainMapping response = domainMappingsClient.getDomainMapping(request);
 }
 

com.google.appengine.v1.firewall

com.google.appengine.v1.stub