target.apidocs.com.google.api.services.logging.v2.Logging.V2.html Maven / Gradle / Ivy
Logging.V2 (Cloud Logging API v2-rev20240419-2.0.0)
com.google.api.services.logging.v2
Class Logging.V2
- java.lang.Object
-
- com.google.api.services.logging.v2.Logging.V2
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Logging.V2.GetCmekSettings
class
Logging.V2.GetSettings
class
Logging.V2.UpdateCmekSettings
class
Logging.V2.UpdateSettings
-
Constructor Summary
Constructors
Constructor and Description
V2()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Logging.V2.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.V2.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.V2.UpdateCmekSettings
updateCmekSettings(String name,
CmekSettings content)
Updates the Log Router CMEK settings for the given resource.Note: CMEK for the Log Router can
currently only be configured for Google Cloud organizations.
Logging.V2.UpdateSettings
updateSettings(String name,
Settings content)
Updates the settings for the given resource.
-
-
Method Detail
-
getCmekSettings
public Logging.V2.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 "v2.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.V2.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 "v2.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
-
updateCmekSettings
public Logging.V2.UpdateCmekSettings updateCmekSettings(String name,
CmekSettings content)
throws IOException
Updates the Log Router CMEK settings for the given resource.Note: CMEK for the Log Router can
currently only be configured for Google Cloud organizations. Once configured, it applies to all
projects and folders in the Google Cloud organization.UpdateCmekSettings fails when any of the
following are true: The value of kms_key_name is invalid. The associated service account doesn't
have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key. Access to
the key is disabled.See Enabling CMEK for Log Router
(https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
Create a request for the method "v2.updateCmekSettings".
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 name for the CMEK settings to update. "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 currently only
be configured for Google Cloud organizations. Once configured, it applies to all projects
and folders in the Google Cloud organization.
content
- the CmekSettings
- Returns:
- the request
- Throws:
IOException
-
updateSettings
public Logging.V2.UpdateSettings updateSettings(String name,
Settings content)
throws IOException
Updates the settings for the given resource. This method applies to all feature configurations
for organization and folders.UpdateSettings fails when any of the following are true: The value
of storage_location either isn't supported by Logging or violates the location OrgPolicy. The
default_sink_config field is set, but it has an unspecified filter write mode. The value of
kms_key_name is invalid. The associated service account doesn't have the required
roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key. Access to the key is
disabled.See Configure default settings for organizations and folders
(https://cloud.google.com/logging/docs/default-settings) for more information.
Create a request for the method "v2.updateSettings".
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 name for the settings to update. "organizations/[ORGANIZATION_ID]/settings"
For example:"organizations/12345/settings"
content
- the Settings
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy