Class ProjectsResource.LocationsResource.BackupPlansResource.BackupsResource.CreateRequest
Creates a Backup for the given BackupPlan.
Inheritance
ProjectsResource.LocationsResource.BackupPlansResource.BackupsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.BackupforGKE.v1
Assembly: Google.Apis.BackupforGKE.v1.dll
Syntax
public class ProjectsResource.LocationsResource.BackupPlansResource.BackupsResource.CreateRequest : BackupforGKEBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Backup, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Backup body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Backup | body | |
string | parent |
Properties
BackupId
Optional. The client-provided short name for the Backup resource. This name must: - be between 1 and 63 characters long (inclusive) - consist of only lower-case ASCII letters, numbers, and dashes - start with a lower-case letter - end with a lower-case letter or number - be unique within the set of Backups in this BackupPlan
Declaration
[RequestParameter("backupId", RequestParameterType.Query)]
public virtual string BackupId { 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 BackupPlan within which to create the Backup. Format:
projects/*/locations/*/backupPlans/*
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
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()