Show / Hide Table of Contents

Class ProjectsResource

The "projects" collection of methods.

Inheritance
object
ProjectsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Logging.v2
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class ProjectsResource

Constructors

ProjectsResource(IClientService)

Constructs a new resource.

Declaration
public ProjectsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Exclusions

Gets the Exclusions resource.

Declaration
public virtual ProjectsResource.ExclusionsResource Exclusions { get; }
Property Value
Type Description
ProjectsResource.ExclusionsResource

Locations

Gets the Locations resource.

Declaration
public virtual ProjectsResource.LocationsResource Locations { get; }
Property Value
Type Description
ProjectsResource.LocationsResource

Logs

Gets the Logs resource.

Declaration
public virtual ProjectsResource.LogsResource Logs { get; }
Property Value
Type Description
ProjectsResource.LogsResource

Metrics

Gets the Metrics resource.

Declaration
public virtual ProjectsResource.MetricsResource Metrics { get; }
Property Value
Type Description
ProjectsResource.MetricsResource

Sinks

Gets the Sinks resource.

Declaration
public virtual ProjectsResource.SinksResource Sinks { get; }
Property Value
Type Description
ProjectsResource.SinksResource

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 ProjectsResource.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
ProjectsResource.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 ProjectsResource.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
ProjectsResource.GetSettingsRequest
In this article
Back to top Generated by DocFX