Class ProjectsResource.SinksResource.CreateRequest
Creates a sink that exports specified log entries to a destination. The export begins upon ingress, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.
Inheritance
Inherited Members
Namespace: Google.Apis.Logging.v2
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class ProjectsResource.SinksResource.CreateRequest : LoggingBaseServiceRequest<LogSink>, IClientServiceRequest<LogSink>, IClientServiceRequest
Constructors
CreateRequest(IClientService, LogSink, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, LogSink body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
LogSink | body | |
string | parent |
Properties
CustomWriterIdentity
Optional. The service account provided by the caller that will be used to write the log entries. The format must be serviceAccount:some@email. This field can only be specified when you are routing logs to a log bucket that is in a different project than the sink. When not specified, a Logging service account will automatically be generated.
Declaration
[RequestParameter("customWriterIdentity", RequestParameterType.Query)]
public virtual string CustomWriterIdentity { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For examples:"projects/my-project" "organizations/123456789"
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UniqueWriterIdentity
Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Cloud Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a service agent (https://cloud.google.com/iam/docs/service-account-types#service-agents) used by the sinks with the same parent. For more information, see writer_identity in LogSink.
Declaration
[RequestParameter("uniqueWriterIdentity", RequestParameterType.Query)]
public virtual bool? UniqueWriterIdentity { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()