Class ManagementResource.CustomMetricsResource.UpdateRequest
Updates an existing custom metric.
Inheritance
ManagementResource.CustomMetricsResource.UpdateRequest
Inherited Members
Namespace: Google.Apis.Analytics.v3
Assembly: Google.Apis.Analytics.v3.dll
Syntax
public class ManagementResource.CustomMetricsResource.UpdateRequest : AnalyticsBaseServiceRequest<CustomMetric>, IClientServiceRequest<CustomMetric>, IClientServiceRequest
Constructors
UpdateRequest(IClientService, CustomMetric, string, string, string)
Constructs a new Update request.
Declaration
public UpdateRequest(IClientService service, CustomMetric body, string accountId, string webPropertyId, string customMetricId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CustomMetric | body | |
string | accountId | |
string | webPropertyId | |
string | customMetricId |
Properties
AccountId
Account ID for the custom metric to update.
Declaration
[RequestParameter("accountId", RequestParameterType.Path)]
public virtual string AccountId { get; }
Property Value
Type | Description |
---|---|
string |
CustomMetricId
Custom metric ID for the custom metric to update.
Declaration
[RequestParameter("customMetricId", RequestParameterType.Path)]
public virtual string CustomMetricId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Analytics.v3.Data.CustomMetric>.HttpMethod
IgnoreCustomDataSourceLinks
Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set.
Declaration
[RequestParameter("ignoreCustomDataSourceLinks", RequestParameterType.Query)]
public virtual bool? IgnoreCustomDataSourceLinks { get; set; }
Property Value
Type | Description |
---|---|
bool? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Analytics.v3.Data.CustomMetric>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Analytics.v3.Data.CustomMetric>.RestPath
WebPropertyId
Web property ID for the custom metric to update.
Declaration
[RequestParameter("webPropertyId", RequestParameterType.Path)]
public virtual string WebPropertyId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Analytics.v3.Data.CustomMetric>.GetBody()
InitParameters()
Initializes Update parameter list.
Declaration
protected override void InitParameters()