Class V2Resource
The "v2" collection of methods.
Inherited Members
Namespace: Google.Apis.Logging.v2
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class V2Resource
Constructors
V2Resource(IClientService)
Constructs a new resource.
Declaration
public V2Resource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
GetCmekSettings(string)
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.
Declaration
public virtual V2Resource.GetCmekSettingsRequest GetCmekSettings(string name)
Parameters
Type | Name | Description |
---|---|---|
string | 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
Type | Description |
---|---|
V2Resource.GetCmekSettingsRequest |
GetSettings(string)
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.
Declaration
public virtual V2Resource.GetSettingsRequest GetSettings(string name)
Parameters
Type | Name | Description |
---|---|---|
string | 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
Type | Description |
---|---|
V2Resource.GetSettingsRequest |
UpdateCmekSettings(CmekSettings, string)
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.
Declaration
public virtual V2Resource.UpdateCmekSettingsRequest UpdateCmekSettings(CmekSettings body, string name)
Parameters
Type | Name | Description |
---|---|---|
CmekSettings | body | The body of the request. |
string | 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. |
Returns
Type | Description |
---|---|
V2Resource.UpdateCmekSettingsRequest |
UpdateSettings(Settings, string)
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.
Declaration
public virtual V2Resource.UpdateSettingsRequest UpdateSettings(Settings body, string name)
Parameters
Type | Name | Description |
---|---|---|
Settings | body | The body of the request. |
string | name | Required. The resource name for the settings to update. "organizations/[ORGANIZATION_ID]/settings" "folders/[FOLDER_ID]/settings" For example:"organizations/12345/settings" |
Returns
Type | Description |
---|---|
V2Resource.UpdateSettingsRequest |