Class UrlResource.InsertRequest
Creates a new short URL.
Inheritance
System.Object
UrlResource.InsertRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Urlshortener.v1
Assembly: Google.Apis.Urlshortener.v1.dll
Syntax
public class InsertRequest : UrlshortenerBaseServiceRequest<Url>, IClientServiceRequest<Url>, IClientServiceRequest
Constructors
InsertRequest(IClientService, Url)
Constructs a new Insert request.
Declaration
public InsertRequest(IClientService service, Url body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Url | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Urlshortener.v1.Data.Url>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Urlshortener.v1.Data.Url>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Urlshortener.v1.Data.Url>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Urlshortener.v1.Data.Url>.GetBody()
InitParameters()
Initializes Insert parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Urlshortener.v1.UrlshortenerBaseServiceRequest<Google.Apis.Urlshortener.v1.Data.Url>.InitParameters()