target.apidocs.com.google.api.services.logging.v2.Logging.html Maven / Gradle / Ivy
Logging (Cloud Logging API v2-rev20240419-2.0.0)
com.google.api.services.logging.v2
Class Logging
- java.lang.Object
-
- com.google.api.client.googleapis.services.AbstractGoogleClient
-
- com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
-
- com.google.api.services.logging.v2.Logging
-
public class Logging
extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
Service definition for Logging (v2).
Writes log entries and manages your Cloud Logging configuration.
For more information about this service, see the
API Documentation
This service uses LoggingRequestInitializer
to initialize global parameters via its
Logging.Builder
.
- Since:
- 1.3
- Author:
- Google, Inc.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Logging.BillingAccounts
The "billingAccounts" collection of methods.
static class
Logging.Builder
Builder for Logging
.
class
Logging.Entries
The "entries" collection of methods.
class
Logging.Exclusions
The "exclusions" collection of methods.
class
Logging.Folders
The "folders" collection of methods.
class
Logging.Locations
The "locations" collection of methods.
class
Logging.Logs
The "logs" collection of methods.
class
Logging.MonitoredResourceDescriptors
The "monitoredResourceDescriptors" collection of methods.
class
Logging.Organizations
The "organizations" collection of methods.
class
Logging.Projects
The "projects" collection of methods.
class
Logging.Sinks
The "sinks" collection of methods.
class
Logging.V2
The "v2" collection of methods.
-
Field Summary
Fields
Modifier and Type
Field and Description
static String
DEFAULT_BASE_URL
The default encoded base URL of the service.
static String
DEFAULT_BATCH_PATH
The default encoded batch path of the service.
static String
DEFAULT_MTLS_ROOT_URL
The default encoded mTLS root URL of the service.
static String
DEFAULT_ROOT_URL
The default encoded root URL of the service.
static String
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
-
Constructor Summary
Constructors
Constructor and Description
Logging(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Logging.BillingAccounts
billingAccounts()
An accessor for creating requests from the BillingAccounts collection.
Logging.Entries
entries()
An accessor for creating requests from the Entries collection.
Logging.Exclusions
exclusions()
An accessor for creating requests from the Exclusions collection.
Logging.Folders
folders()
An accessor for creating requests from the Folders collection.
protected void
initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest)
Logging.Locations
locations()
An accessor for creating requests from the Locations collection.
Logging.Logs
logs()
An accessor for creating requests from the Logs collection.
Logging.MonitoredResourceDescriptors
monitoredResourceDescriptors()
An accessor for creating requests from the MonitoredResourceDescriptors collection.
Logging.Organizations
organizations()
An accessor for creating requests from the Organizations collection.
Logging.Projects
projects()
An accessor for creating requests from the Projects collection.
Logging.Sinks
sinks()
An accessor for creating requests from the Sinks collection.
Logging.V2
v2()
An accessor for creating requests from the V2 collection.
-
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
getJsonFactory, getObjectParser
-
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClient
batch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks, getSuppressRequiredParameterChecks, getUniverseDomain, validateUniverseDomain
-
-
Field Detail
-
DEFAULT_ROOT_URL
public static final String DEFAULT_ROOT_URL
The default encoded root URL of the service. This is determined when the library is generated
and normally should not be changed.
- Since:
- 1.7
- See Also:
- Constant Field Values
-
DEFAULT_MTLS_ROOT_URL
public static final String DEFAULT_MTLS_ROOT_URL
The default encoded mTLS root URL of the service. This is determined when the library is generated
and normally should not be changed.
- Since:
- 1.31
- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_PATH
public static final String DEFAULT_SERVICE_PATH
The default encoded service path of the service. This is determined when the library is
generated and normally should not be changed.
- Since:
- 1.7
- See Also:
- Constant Field Values
-
DEFAULT_BATCH_PATH
public static final String DEFAULT_BATCH_PATH
The default encoded batch path of the service. This is determined when the library is
generated and normally should not be changed.
- Since:
- 1.23
- See Also:
- Constant Field Values
-
DEFAULT_BASE_URL
public static final String DEFAULT_BASE_URL
The default encoded base URL of the service. This is determined when the library is generated
and normally should not be changed.
- See Also:
- Constant Field Values
-
Constructor Detail
-
Logging
public Logging(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Constructor.
Use Logging.Builder
if you need to specify any of the optional parameters.
- Parameters:
transport
- HTTP transport, which should normally be:
- Google App Engine:
com.google.api.client.extensions.appengine.http.UrlFetchTransport
- Android:
newCompatibleTransport
from
com.google.api.client.extensions.android.http.AndroidHttp
- Java:
com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
jsonFactory
- JSON factory, which may be:
- Jackson:
com.google.api.client.json.jackson2.JacksonFactory
- Google GSON:
com.google.api.client.json.gson.GsonFactory
- Android Honeycomb or higher:
com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer
- HTTP request initializer or null
for none
- Since:
- 1.7
-
Method Detail
-
initialize
protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest)
throws IOException
- Overrides:
initialize
in class com.google.api.client.googleapis.services.AbstractGoogleClient
- Throws:
IOException
-
billingAccounts
public Logging.BillingAccounts billingAccounts()
An accessor for creating requests from the BillingAccounts collection.
The typical use is:
Logging logging = new Logging(...);
Logging.BillingAccounts.List request = logging.billingAccounts().list(parameters ...)
- Returns:
- the resource collection
-
entries
public Logging.Entries entries()
An accessor for creating requests from the Entries collection.
The typical use is:
Logging logging = new Logging(...);
Logging.Entries.List request = logging.entries().list(parameters ...)
- Returns:
- the resource collection
-
exclusions
public Logging.Exclusions exclusions()
An accessor for creating requests from the Exclusions collection.
The typical use is:
Logging logging = new Logging(...);
Logging.Exclusions.List request = logging.exclusions().list(parameters ...)
- Returns:
- the resource collection
-
folders
public Logging.Folders folders()
An accessor for creating requests from the Folders collection.
The typical use is:
Logging logging = new Logging(...);
Logging.Folders.List request = logging.folders().list(parameters ...)
- Returns:
- the resource collection
-
locations
public Logging.Locations locations()
An accessor for creating requests from the Locations collection.
The typical use is:
Logging logging = new Logging(...);
Logging.Locations.List request = logging.locations().list(parameters ...)
- Returns:
- the resource collection
-
logs
public Logging.Logs logs()
An accessor for creating requests from the Logs collection.
The typical use is:
Logging logging = new Logging(...);
Logging.Logs.List request = logging.logs().list(parameters ...)
- Returns:
- the resource collection
-
monitoredResourceDescriptors
public Logging.MonitoredResourceDescriptors monitoredResourceDescriptors()
An accessor for creating requests from the MonitoredResourceDescriptors collection.
The typical use is:
Logging logging = new Logging(...);
Logging.MonitoredResourceDescriptors.List request = logging.monitoredResourceDescriptors().list(parameters ...)
- Returns:
- the resource collection
-
organizations
public Logging.Organizations organizations()
An accessor for creating requests from the Organizations collection.
The typical use is:
Logging logging = new Logging(...);
Logging.Organizations.List request = logging.organizations().list(parameters ...)
- Returns:
- the resource collection
-
projects
public Logging.Projects projects()
An accessor for creating requests from the Projects collection.
The typical use is:
Logging logging = new Logging(...);
Logging.Projects.List request = logging.projects().list(parameters ...)
- Returns:
- the resource collection
-
sinks
public Logging.Sinks sinks()
An accessor for creating requests from the Sinks collection.
The typical use is:
Logging logging = new Logging(...);
Logging.Sinks.List request = logging.sinks().list(parameters ...)
- Returns:
- the resource collection
-
v2
public Logging.V2 v2()
An accessor for creating requests from the V2 collection.
The typical use is:
Logging logging = new Logging(...);
Logging.V2.List request = logging.v2().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy