target.apidocs.com.google.api.services.logging.v2.Logging.Projects.html Maven / Gradle / Ivy
Logging.Projects (Cloud Logging API v2-rev20240419-2.0.0)
com.google.api.services.logging.v2
Class Logging.Projects
- java.lang.Object
-
- com.google.api.services.logging.v2.Logging.Projects
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Logging.Projects.Exclusions
The "exclusions" collection of methods.
class
Logging.Projects.GetCmekSettings
class
Logging.Projects.GetSettings
class
Logging.Projects.Locations
The "locations" collection of methods.
class
Logging.Projects.Logs
The "logs" collection of methods.
class
Logging.Projects.Metrics
The "metrics" collection of methods.
class
Logging.Projects.Sinks
The "sinks" collection of methods.
-
Constructor Summary
Constructors
Constructor and Description
Projects()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Logging.Projects.Exclusions
exclusions()
An accessor for creating requests from the Exclusions collection.
Logging.Projects.GetCmekSettings
getCmekSettings(String name)
Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log Router can be
configured for Google Cloud projects, folders, organizations, and billing accounts.
Logging.Projects.GetSettings
getSettings(String name)
Gets the settings for the given resource.Note: Settings can be retrieved for Google Cloud
projects, folders, organizations, and billing accounts.See View default resource settings for
Logging (https://cloud.google.com/logging/docs/default-settings#view-org-settings) for more
information.
Logging.Projects.Locations
locations()
An accessor for creating requests from the Locations collection.
Logging.Projects.Logs
logs()
An accessor for creating requests from the Logs collection.
Logging.Projects.Metrics
metrics()
An accessor for creating requests from the Metrics collection.
Logging.Projects.Sinks
sinks()
An accessor for creating requests from the Sinks collection.
-
-
Method Detail
-
getCmekSettings
public Logging.Projects.GetCmekSettings getCmekSettings(String name)
throws IOException
Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log Router can be
configured for Google Cloud projects, folders, organizations, and billing accounts. Once
configured for an organization, it applies to all projects and folders in the Google Cloud
organization.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/routing
/managed-encryption) for more information.
Create a request for the method "projects.getCmekSettings".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The resource for which to retrieve CMEK settings. "projects/[PROJECT_ID]/cmekSettings"
"organizations/[ORGANIZATION_ID]/cmekSettings"
"billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/cmekSettings" For
example:"organizations/12345/cmekSettings"Note: CMEK for the Log Router can be configured
for Google Cloud projects, folders, organizations, and billing accounts. Once configured
for an organization, it applies to all projects and folders in the Google Cloud
organization.
- Returns:
- the request
- Throws:
IOException
-
getSettings
public Logging.Projects.GetSettings getSettings(String name)
throws IOException
Gets the settings for the given resource.Note: Settings can be retrieved for Google Cloud
projects, folders, organizations, and billing accounts.See View default resource settings for
Logging (https://cloud.google.com/logging/docs/default-settings#view-org-settings) for more
information.
Create a request for the method "projects.getSettings".
This request holds the parameters needed by the logging server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The resource for which to retrieve settings. "projects/[PROJECT_ID]/settings"
"organizations/[ORGANIZATION_ID]/settings" "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
"folders/[FOLDER_ID]/settings" For example:"organizations/12345/settings"Note: Settings
can be retrieved for Google Cloud projects, folders, organizations, and billing accounts.
- Returns:
- the request
- Throws:
IOException
-
exclusions
public Logging.Projects.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
-
locations
public Logging.Projects.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.Projects.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
-
metrics
public Logging.Projects.Metrics metrics()
An accessor for creating requests from the Metrics collection.
The typical use is:
Logging logging = new Logging(...);
Logging.Metrics.List request = logging.metrics().list(parameters ...)
- Returns:
- the resource collection
-
sinks
public Logging.Projects.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
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy