// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Generated code. DO NOT EDIT!
namespace Google.Apis.Analytics.v3
{
/// The Analytics Service.
public class AnalyticsService : Google.Apis.Services.BaseClientService
{
/// The API version.
public const string Version = "v3";
/// The discovery version used to generate this service.
public static Google.Apis.Discovery.DiscoveryVersion DiscoveryVersionUsed = Google.Apis.Discovery.DiscoveryVersion.Version_1_0;
/// Constructs a new service.
public AnalyticsService() : this(new Google.Apis.Services.BaseClientService.Initializer())
{
}
/// Constructs a new service.
/// The service initializer.
public AnalyticsService(Google.Apis.Services.BaseClientService.Initializer initializer) : base(initializer)
{
Data = new DataResource(this);
Management = new ManagementResource(this);
Metadata = new MetadataResource(this);
Provisioning = new ProvisioningResource(this);
UserDeletion = new UserDeletionResource(this);
BaseUri = GetEffectiveUri(BaseUriOverride, "https://analytics.googleapis.com/analytics/v3/");
BatchUri = GetEffectiveUri(null, "https://analytics.googleapis.com/batch/analytics/v3");
}
/// Gets the service supported features.
public override System.Collections.Generic.IList Features => new string[0];
/// Gets the service name.
public override string Name => "analytics";
/// Gets the service base URI.
public override string BaseUri { get; }
/// Gets the service base path.
public override string BasePath => "analytics/v3/";
/// Gets the batch base URI; null if unspecified.
public override string BatchUri { get; }
/// Gets the batch base path; null if unspecified.
public override string BatchPath => "batch/analytics/v3";
/// Available OAuth 2.0 scopes for use with the Google Analytics API.
public class Scope
{
/// View and manage your Google Analytics data
public static string Analytics = "https://www.googleapis.com/auth/analytics";
/// Edit Google Analytics management entities
public static string AnalyticsEdit = "https://www.googleapis.com/auth/analytics.edit";
/// Manage Google Analytics Account users by email address
public static string AnalyticsManageUsers = "https://www.googleapis.com/auth/analytics.manage.users";
/// View Google Analytics user permissions
public static string AnalyticsManageUsersReadonly = "https://www.googleapis.com/auth/analytics.manage.users.readonly";
/// Create a new Google Analytics account along with its default property and view
public static string AnalyticsProvision = "https://www.googleapis.com/auth/analytics.provision";
/// View your Google Analytics data
public static string AnalyticsReadonly = "https://www.googleapis.com/auth/analytics.readonly";
/// Manage Google Analytics user deletion requests
public static string AnalyticsUserDeletion = "https://www.googleapis.com/auth/analytics.user.deletion";
}
/// Available OAuth 2.0 scope constants for use with the Google Analytics API.
public static class ScopeConstants
{
/// View and manage your Google Analytics data
public const string Analytics = "https://www.googleapis.com/auth/analytics";
/// Edit Google Analytics management entities
public const string AnalyticsEdit = "https://www.googleapis.com/auth/analytics.edit";
/// Manage Google Analytics Account users by email address
public const string AnalyticsManageUsers = "https://www.googleapis.com/auth/analytics.manage.users";
/// View Google Analytics user permissions
public const string AnalyticsManageUsersReadonly = "https://www.googleapis.com/auth/analytics.manage.users.readonly";
/// Create a new Google Analytics account along with its default property and view
public const string AnalyticsProvision = "https://www.googleapis.com/auth/analytics.provision";
/// View your Google Analytics data
public const string AnalyticsReadonly = "https://www.googleapis.com/auth/analytics.readonly";
/// Manage Google Analytics user deletion requests
public const string AnalyticsUserDeletion = "https://www.googleapis.com/auth/analytics.user.deletion";
}
/// Gets the Data resource.
public virtual DataResource Data { get; }
/// Gets the Management resource.
public virtual ManagementResource Management { get; }
/// Gets the Metadata resource.
public virtual MetadataResource Metadata { get; }
/// Gets the Provisioning resource.
public virtual ProvisioningResource Provisioning { get; }
/// Gets the UserDeletion resource.
public virtual UserDeletionResource UserDeletion { get; }
}
/// A base abstract class for Analytics requests.
public abstract class AnalyticsBaseServiceRequest : Google.Apis.Requests.ClientServiceRequest
{
/// Constructs a new AnalyticsBaseServiceRequest instance.
protected AnalyticsBaseServiceRequest(Google.Apis.Services.IClientService service) : base(service)
{
}
/// Data format for the response.
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for the response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
}
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
///
/// API key. Your API key identifies your project and provides you with API access, quota, and reports. Required
/// unless you provide an OAuth 2.0 token.
///
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
///
/// An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
///
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Deprecated. Please use quotaUser instead.
[Google.Apis.Util.RequestParameterAttribute("userIp", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UserIp { get; set; }
/// Initializes Analytics parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("alt", new Google.Apis.Discovery.Parameter
{
Name = "alt",
IsRequired = false,
ParameterType = "query",
DefaultValue = "json",
Pattern = null,
});
RequestParameters.Add("fields", new Google.Apis.Discovery.Parameter
{
Name = "fields",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("key", new Google.Apis.Discovery.Parameter
{
Name = "key",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("oauth_token", new Google.Apis.Discovery.Parameter
{
Name = "oauth_token",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("prettyPrint", new Google.Apis.Discovery.Parameter
{
Name = "prettyPrint",
IsRequired = false,
ParameterType = "query",
DefaultValue = "false",
Pattern = null,
});
RequestParameters.Add("quotaUser", new Google.Apis.Discovery.Parameter
{
Name = "quotaUser",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("userIp", new Google.Apis.Discovery.Parameter
{
Name = "userIp",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// The "data" collection of methods.
public class DataResource
{
private const string Resource = "data";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public DataResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Ga = new GaResource(service);
Mcf = new McfResource(service);
Realtime = new RealtimeResource(service);
}
/// Gets the Ga resource.
public virtual GaResource Ga { get; }
/// The "ga" collection of methods.
public class GaResource
{
private const string Resource = "ga";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public GaResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Returns Analytics data for a view (profile).
///
/// Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the
/// Analytics view (profile) ID.
///
///
/// Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as
/// a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.
///
///
/// End date for fetching Analytics data. Request can should specify an end date formatted as YYYY-MM-DD, or
/// as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is yesterday.
///
///
/// A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must
/// be specified.
///
public virtual GetRequest Get(string ids, string startDate, string endDate, string metrics)
{
return new GetRequest(this.service, ids, startDate, endDate, metrics);
}
/// Returns Analytics data for a view (profile).
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string ids, string startDate, string endDate, string metrics) : base(service)
{
Ids = ids;
StartDate = startDate;
EndDate = endDate;
Metrics = metrics;
InitParameters();
}
///
/// Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the
/// Analytics view (profile) ID.
///
[Google.Apis.Util.RequestParameterAttribute("ids", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Ids { get; private set; }
///
/// Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD,
/// or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.
///
[Google.Apis.Util.RequestParameterAttribute("start-date", Google.Apis.Util.RequestParameterType.Query)]
public virtual string StartDate { get; private set; }
///
/// End date for fetching Analytics data. Request can should specify an end date formatted as
/// YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is
/// yesterday.
///
[Google.Apis.Util.RequestParameterAttribute("end-date", Google.Apis.Util.RequestParameterType.Query)]
public virtual string EndDate { get; private set; }
///
/// A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric
/// must be specified.
///
[Google.Apis.Util.RequestParameterAttribute("metrics", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Metrics { get; private set; }
/// A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
[Google.Apis.Util.RequestParameterAttribute("dimensions", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Dimensions { get; set; }
///
/// A comma-separated list of dimension or metric filters to be applied to Analytics data.
///
[Google.Apis.Util.RequestParameterAttribute("filters", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filters { get; set; }
///
/// The response will include empty rows if this parameter is set to true, the default is true
///
[Google.Apis.Util.RequestParameterAttribute("include-empty-rows", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable IncludeEmptyRows { get; set; }
/// The maximum number of entries to include in this feed.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
/// The selected format for the response. Default format is JSON.
[Google.Apis.Util.RequestParameterAttribute("output", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Output { get; set; }
/// The selected format for the response. Default format is JSON.
public enum OutputEnum
{
///
/// Returns the response in Google Charts Data Table format. This is useful in creating
/// visualization using Google Charts.
///
[Google.Apis.Util.StringValueAttribute("dataTable")]
DataTable = 0,
/// Returns the response in standard JSON format.
[Google.Apis.Util.StringValueAttribute("json")]
Json = 1,
}
/// The desired sampling level.
[Google.Apis.Util.RequestParameterAttribute("samplingLevel", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable SamplingLevel { get; set; }
/// The desired sampling level.
public enum SamplingLevelEnum
{
/// Returns response with a sample size that balances speed and accuracy.
[Google.Apis.Util.StringValueAttribute("DEFAULT")]
DEFAULT__ = 0,
/// Returns a fast response with a smaller sample size.
[Google.Apis.Util.StringValueAttribute("FASTER")]
FASTER = 1,
///
/// Returns a more accurate response using a large sample size, but this may result in the response
/// being slower.
///
[Google.Apis.Util.StringValueAttribute("HIGHER_PRECISION")]
HIGHERPRECISION = 2,
}
/// An Analytics segment to be applied to data.
[Google.Apis.Util.RequestParameterAttribute("segment", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Segment { get; set; }
///
/// A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.
///
[Google.Apis.Util.RequestParameterAttribute("sort", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Sort { get; set; }
///
/// An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "data/ga";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("ids", new Google.Apis.Discovery.Parameter
{
Name = "ids",
IsRequired = true,
ParameterType = "query",
DefaultValue = null,
Pattern = @"ga:[0-9]+",
});
RequestParameters.Add("start-date", new Google.Apis.Discovery.Parameter
{
Name = "start-date",
IsRequired = true,
ParameterType = "query",
DefaultValue = null,
Pattern = @"[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)",
});
RequestParameters.Add("end-date", new Google.Apis.Discovery.Parameter
{
Name = "end-date",
IsRequired = true,
ParameterType = "query",
DefaultValue = null,
Pattern = @"[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)",
});
RequestParameters.Add("metrics", new Google.Apis.Discovery.Parameter
{
Name = "metrics",
IsRequired = true,
ParameterType = "query",
DefaultValue = null,
Pattern = @"ga:.+",
});
RequestParameters.Add("dimensions", new Google.Apis.Discovery.Parameter
{
Name = "dimensions",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = @"(ga:.+)?",
});
RequestParameters.Add("filters", new Google.Apis.Discovery.Parameter
{
Name = "filters",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = @"ga:.+",
});
RequestParameters.Add("include-empty-rows", new Google.Apis.Discovery.Parameter
{
Name = "include-empty-rows",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("output", new Google.Apis.Discovery.Parameter
{
Name = "output",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("samplingLevel", new Google.Apis.Discovery.Parameter
{
Name = "samplingLevel",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("segment", new Google.Apis.Discovery.Parameter
{
Name = "segment",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("sort", new Google.Apis.Discovery.Parameter
{
Name = "sort",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = @"(-)?ga:.+",
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Mcf resource.
public virtual McfResource Mcf { get; }
/// The "mcf" collection of methods.
public class McfResource
{
private const string Resource = "mcf";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public McfResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Returns Analytics Multi-Channel Funnels data for a view (profile).
///
/// Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the
/// Analytics view (profile) ID.
///
///
/// Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as
/// a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.
///
///
/// End date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a
/// relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.
///
///
/// A comma-separated list of Multi-Channel Funnels metrics. E.g.,
/// 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.
///
public virtual GetRequest Get(string ids, string startDate, string endDate, string metrics)
{
return new GetRequest(this.service, ids, startDate, endDate, metrics);
}
/// Returns Analytics Multi-Channel Funnels data for a view (profile).
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string ids, string startDate, string endDate, string metrics) : base(service)
{
Ids = ids;
StartDate = startDate;
EndDate = endDate;
Metrics = metrics;
InitParameters();
}
///
/// Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the
/// Analytics view (profile) ID.
///
[Google.Apis.Util.RequestParameterAttribute("ids", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Ids { get; private set; }
///
/// Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD,
/// or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.
///
[Google.Apis.Util.RequestParameterAttribute("start-date", Google.Apis.Util.RequestParameterType.Query)]
public virtual string StartDate { get; private set; }
///
/// End date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or
/// as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo.
///
[Google.Apis.Util.RequestParameterAttribute("end-date", Google.Apis.Util.RequestParameterType.Query)]
public virtual string EndDate { get; private set; }
///
/// A comma-separated list of Multi-Channel Funnels metrics. E.g.,
/// 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.
///
[Google.Apis.Util.RequestParameterAttribute("metrics", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Metrics { get; private set; }
///
/// A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.
///
[Google.Apis.Util.RequestParameterAttribute("dimensions", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Dimensions { get; set; }
///
/// A comma-separated list of dimension or metric filters to be applied to the Analytics data.
///
[Google.Apis.Util.RequestParameterAttribute("filters", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filters { get; set; }
/// The maximum number of entries to include in this feed.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
/// The desired sampling level.
[Google.Apis.Util.RequestParameterAttribute("samplingLevel", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable SamplingLevel { get; set; }
/// The desired sampling level.
public enum SamplingLevelEnum
{
/// Returns response with a sample size that balances speed and accuracy.
[Google.Apis.Util.StringValueAttribute("DEFAULT")]
DEFAULT__ = 0,
/// Returns a fast response with a smaller sample size.
[Google.Apis.Util.StringValueAttribute("FASTER")]
FASTER = 1,
///
/// Returns a more accurate response using a large sample size, but this may result in the response
/// being slower.
///
[Google.Apis.Util.StringValueAttribute("HIGHER_PRECISION")]
HIGHERPRECISION = 2,
}
///
/// A comma-separated list of dimensions or metrics that determine the sort order for the Analytics
/// data.
///
[Google.Apis.Util.RequestParameterAttribute("sort", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Sort { get; set; }
///
/// An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "data/mcf";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("ids", new Google.Apis.Discovery.Parameter
{
Name = "ids",
IsRequired = true,
ParameterType = "query",
DefaultValue = null,
Pattern = @"ga:[0-9]+",
});
RequestParameters.Add("start-date", new Google.Apis.Discovery.Parameter
{
Name = "start-date",
IsRequired = true,
ParameterType = "query",
DefaultValue = null,
Pattern = @"[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)",
});
RequestParameters.Add("end-date", new Google.Apis.Discovery.Parameter
{
Name = "end-date",
IsRequired = true,
ParameterType = "query",
DefaultValue = null,
Pattern = @"[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)",
});
RequestParameters.Add("metrics", new Google.Apis.Discovery.Parameter
{
Name = "metrics",
IsRequired = true,
ParameterType = "query",
DefaultValue = null,
Pattern = @"mcf:.+",
});
RequestParameters.Add("dimensions", new Google.Apis.Discovery.Parameter
{
Name = "dimensions",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = @"(mcf:.+)?",
});
RequestParameters.Add("filters", new Google.Apis.Discovery.Parameter
{
Name = "filters",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = @"mcf:.+",
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("samplingLevel", new Google.Apis.Discovery.Parameter
{
Name = "samplingLevel",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("sort", new Google.Apis.Discovery.Parameter
{
Name = "sort",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = @"(-)?mcf:.+",
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Realtime resource.
public virtual RealtimeResource Realtime { get; }
/// The "realtime" collection of methods.
public class RealtimeResource
{
private const string Resource = "realtime";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public RealtimeResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Returns real time data for a view (profile).
///
/// Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is the
/// Analytics view (profile) ID.
///
///
/// A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be
/// specified.
///
public virtual GetRequest Get(string ids, string metrics)
{
return new GetRequest(this.service, ids, metrics);
}
/// Returns real time data for a view (profile).
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string ids, string metrics) : base(service)
{
Ids = ids;
Metrics = metrics;
InitParameters();
}
///
/// Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is the
/// Analytics view (profile) ID.
///
[Google.Apis.Util.RequestParameterAttribute("ids", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Ids { get; private set; }
///
/// A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be
/// specified.
///
[Google.Apis.Util.RequestParameterAttribute("metrics", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Metrics { get; private set; }
/// A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'.
[Google.Apis.Util.RequestParameterAttribute("dimensions", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Dimensions { get; set; }
///
/// A comma-separated list of dimension or metric filters to be applied to real time data.
///
[Google.Apis.Util.RequestParameterAttribute("filters", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Filters { get; set; }
/// The maximum number of entries to include in this feed.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// A comma-separated list of dimensions or metrics that determine the sort order for real time data.
///
[Google.Apis.Util.RequestParameterAttribute("sort", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Sort { get; set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "data/realtime";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("ids", new Google.Apis.Discovery.Parameter
{
Name = "ids",
IsRequired = true,
ParameterType = "query",
DefaultValue = null,
Pattern = @"ga:[0-9]+",
});
RequestParameters.Add("metrics", new Google.Apis.Discovery.Parameter
{
Name = "metrics",
IsRequired = true,
ParameterType = "query",
DefaultValue = null,
Pattern = @"(ga:.+)|(rt:.+)",
});
RequestParameters.Add("dimensions", new Google.Apis.Discovery.Parameter
{
Name = "dimensions",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = @"(ga:.+)|(rt:.+)",
});
RequestParameters.Add("filters", new Google.Apis.Discovery.Parameter
{
Name = "filters",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = @"(ga:.+)|(rt:.+)",
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("sort", new Google.Apis.Discovery.Parameter
{
Name = "sort",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = @"(-)?((ga:.+)|(rt:.+))",
});
}
}
}
}
/// The "management" collection of methods.
public class ManagementResource
{
private const string Resource = "management";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ManagementResource(Google.Apis.Services.IClientService service)
{
this.service = service;
AccountSummaries = new AccountSummariesResource(service);
AccountUserLinks = new AccountUserLinksResource(service);
Accounts = new AccountsResource(service);
ClientId = new ClientIdResource(service);
CustomDataSources = new CustomDataSourcesResource(service);
CustomDimensions = new CustomDimensionsResource(service);
CustomMetrics = new CustomMetricsResource(service);
Experiments = new ExperimentsResource(service);
Filters = new FiltersResource(service);
Goals = new GoalsResource(service);
ProfileFilterLinks = new ProfileFilterLinksResource(service);
ProfileUserLinks = new ProfileUserLinksResource(service);
Profiles = new ProfilesResource(service);
RemarketingAudience = new RemarketingAudienceResource(service);
Segments = new SegmentsResource(service);
UnsampledReports = new UnsampledReportsResource(service);
Uploads = new UploadsResource(service);
WebPropertyAdWordsLinks = new WebPropertyAdWordsLinksResource(service);
Webproperties = new WebpropertiesResource(service);
WebpropertyUserLinks = new WebpropertyUserLinksResource(service);
}
/// Gets the AccountSummaries resource.
public virtual AccountSummariesResource AccountSummaries { get; }
/// The "accountSummaries" collection of methods.
public class AccountSummariesResource
{
private const string Resource = "accountSummaries";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public AccountSummariesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
///
/// Lists account summaries (lightweight tree comprised of accounts/properties/profiles) to which the user
/// has access.
///
public virtual ListRequest List()
{
return new ListRequest(this.service);
}
///
/// Lists account summaries (lightweight tree comprised of accounts/properties/profiles) to which the user
/// has access.
///
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service) : base(service)
{
InitParameters();
}
///
/// The maximum number of account summaries to include in this response, where the largest acceptable
/// value is 1000.
///
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accountSummaries";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the AccountUserLinks resource.
public virtual AccountUserLinksResource AccountUserLinks { get; }
/// The "accountUserLinks" collection of methods.
public class AccountUserLinksResource
{
private const string Resource = "accountUserLinks";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public AccountUserLinksResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Removes a user from the given account.
/// Account ID to delete the user link for.
/// Link ID to delete the user link for.
public virtual DeleteRequest Delete(string accountId, string linkId)
{
return new DeleteRequest(this.service, accountId, linkId);
}
/// Removes a user from the given account.
public class DeleteRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string accountId, string linkId) : base(service)
{
AccountId = accountId;
LinkId = linkId;
InitParameters();
}
/// Account ID to delete the user link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Link ID to delete the user link for.
[Google.Apis.Util.RequestParameterAttribute("linkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string LinkId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/entityUserLinks/{linkId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("linkId", new Google.Apis.Discovery.Parameter
{
Name = "linkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Adds a new user to the given account.
/// The body of the request.
/// Account ID to create the user link for.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId)
{
return new InsertRequest(this.service, body, accountId);
}
/// Adds a new user to the given account.
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId) : base(service)
{
AccountId = accountId;
Body = body;
InitParameters();
}
/// Account ID to create the user link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.EntityUserLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/entityUserLinks";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists account-user links for a given account.
/// Account ID to retrieve the user links for.
public virtual ListRequest List(string accountId)
{
return new ListRequest(this.service, accountId);
}
/// Lists account-user links for a given account.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId) : base(service)
{
AccountId = accountId;
InitParameters();
}
/// Account ID to retrieve the user links for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// The maximum number of account-user links to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first account-user link to retrieve. Use this parameter as a pagination mechanism
/// along with the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/entityUserLinks";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates permissions for an existing user on the given account.
/// The body of the request.
/// Account ID to update the account-user link for.
/// Link ID to update the account-user link for.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId, string linkId)
{
return new UpdateRequest(this.service, body, accountId, linkId);
}
/// Updates permissions for an existing user on the given account.
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId, string linkId) : base(service)
{
AccountId = accountId;
LinkId = linkId;
Body = body;
InitParameters();
}
/// Account ID to update the account-user link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Link ID to update the account-user link for.
[Google.Apis.Util.RequestParameterAttribute("linkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string LinkId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.EntityUserLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/entityUserLinks/{linkId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("linkId", new Google.Apis.Discovery.Parameter
{
Name = "linkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Accounts resource.
public virtual AccountsResource Accounts { get; }
/// The "accounts" collection of methods.
public class AccountsResource
{
private const string Resource = "accounts";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public AccountsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Lists all accounts to which the user has access.
public virtual ListRequest List()
{
return new ListRequest(this.service);
}
/// Lists all accounts to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service) : base(service)
{
InitParameters();
}
/// The maximum number of accounts to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first account to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the ClientId resource.
public virtual ClientIdResource ClientId { get; }
/// The "clientId" collection of methods.
public class ClientIdResource
{
private const string Resource = "clientId";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ClientIdResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Hashes the given Client ID.
/// The body of the request.
public virtual HashClientIdRequest HashClientId(Google.Apis.Analytics.v3.Data.HashClientIdRequest body)
{
return new HashClientIdRequest(this.service, body);
}
/// Hashes the given Client ID.
public class HashClientIdRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new HashClientId request.
public HashClientIdRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.HashClientIdRequest body) : base(service)
{
Body = body;
InitParameters();
}
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.HashClientIdRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "hashClientId";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/clientId:hashClientId";
/// Initializes HashClientId parameter list.
protected override void InitParameters()
{
base.InitParameters();
}
}
}
/// Gets the CustomDataSources resource.
public virtual CustomDataSourcesResource CustomDataSources { get; }
/// The "customDataSources" collection of methods.
public class CustomDataSourcesResource
{
private const string Resource = "customDataSources";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public CustomDataSourcesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// List custom data sources to which the user has access.
/// Account Id for the custom data sources to retrieve.
/// Web property Id for the custom data sources to retrieve.
public virtual ListRequest List(string accountId, string webPropertyId)
{
return new ListRequest(this.service, accountId, webPropertyId);
}
/// List custom data sources to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
InitParameters();
}
/// Account Id for the custom data sources to retrieve.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property Id for the custom data sources to retrieve.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The maximum number of custom data sources to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination
/// mechanism along with the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-(\d+)-(\d+)",
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the CustomDimensions resource.
public virtual CustomDimensionsResource CustomDimensions { get; }
/// The "customDimensions" collection of methods.
public class CustomDimensionsResource
{
private const string Resource = "customDimensions";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public CustomDimensionsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Get a custom dimension to which the user has access.
/// Account ID for the custom dimension to retrieve.
/// Web property ID for the custom dimension to retrieve.
/// The ID of the custom dimension to retrieve.
public virtual GetRequest Get(string accountId, string webPropertyId, string customDimensionId)
{
return new GetRequest(this.service, accountId, webPropertyId, customDimensionId);
}
/// Get a custom dimension to which the user has access.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string customDimensionId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
CustomDimensionId = customDimensionId;
InitParameters();
}
/// Account ID for the custom dimension to retrieve.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID for the custom dimension to retrieve.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The ID of the custom dimension to retrieve.
[Google.Apis.Util.RequestParameterAttribute("customDimensionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string CustomDimensionId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("customDimensionId", new Google.Apis.Discovery.Parameter
{
Name = "customDimensionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Create a new custom dimension.
/// The body of the request.
/// Account ID for the custom dimension to create.
/// Web property ID for the custom dimension to create.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.CustomDimension body, string accountId, string webPropertyId)
{
return new InsertRequest(this.service, body, accountId, webPropertyId);
}
/// Create a new custom dimension.
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.CustomDimension body, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
Body = body;
InitParameters();
}
/// Account ID for the custom dimension to create.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID for the custom dimension to create.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.CustomDimension Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists custom dimensions to which the user has access.
/// Account ID for the custom dimensions to retrieve.
/// Web property ID for the custom dimensions to retrieve.
public virtual ListRequest List(string accountId, string webPropertyId)
{
return new ListRequest(this.service, accountId, webPropertyId);
}
/// Lists custom dimensions to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
InitParameters();
}
/// Account ID for the custom dimensions to retrieve.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID for the custom dimensions to retrieve.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The maximum number of custom dimensions to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing custom dimension. This method supports patch semantics.
/// The body of the request.
/// Account ID for the custom dimension to update.
/// Web property ID for the custom dimension to update.
/// Custom dimension ID for the custom dimension to update.
public virtual PatchRequest Patch(Google.Apis.Analytics.v3.Data.CustomDimension body, string accountId, string webPropertyId, string customDimensionId)
{
return new PatchRequest(this.service, body, accountId, webPropertyId, customDimensionId);
}
/// Updates an existing custom dimension. This method supports patch semantics.
public class PatchRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.CustomDimension body, string accountId, string webPropertyId, string customDimensionId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
CustomDimensionId = customDimensionId;
Body = body;
InitParameters();
}
/// Account ID for the custom dimension to update.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID for the custom dimension to update.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Custom dimension ID for the custom dimension to update.
[Google.Apis.Util.RequestParameterAttribute("customDimensionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string CustomDimensionId { get; private set; }
///
/// Force the update and ignore any warnings related to the custom dimension being linked to a custom
/// data source / data set.
///
[Google.Apis.Util.RequestParameterAttribute("ignoreCustomDataSourceLinks", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable IgnoreCustomDataSourceLinks { get; set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.CustomDimension Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("customDimensionId", new Google.Apis.Discovery.Parameter
{
Name = "customDimensionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("ignoreCustomDataSourceLinks", new Google.Apis.Discovery.Parameter
{
Name = "ignoreCustomDataSourceLinks",
IsRequired = false,
ParameterType = "query",
DefaultValue = "false",
Pattern = null,
});
}
}
/// Updates an existing custom dimension.
/// The body of the request.
/// Account ID for the custom dimension to update.
/// Web property ID for the custom dimension to update.
/// Custom dimension ID for the custom dimension to update.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.CustomDimension body, string accountId, string webPropertyId, string customDimensionId)
{
return new UpdateRequest(this.service, body, accountId, webPropertyId, customDimensionId);
}
/// Updates an existing custom dimension.
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.CustomDimension body, string accountId, string webPropertyId, string customDimensionId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
CustomDimensionId = customDimensionId;
Body = body;
InitParameters();
}
/// Account ID for the custom dimension to update.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID for the custom dimension to update.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Custom dimension ID for the custom dimension to update.
[Google.Apis.Util.RequestParameterAttribute("customDimensionId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string CustomDimensionId { get; private set; }
///
/// Force the update and ignore any warnings related to the custom dimension being linked to a custom
/// data source / data set.
///
[Google.Apis.Util.RequestParameterAttribute("ignoreCustomDataSourceLinks", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable IgnoreCustomDataSourceLinks { get; set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.CustomDimension Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("customDimensionId", new Google.Apis.Discovery.Parameter
{
Name = "customDimensionId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("ignoreCustomDataSourceLinks", new Google.Apis.Discovery.Parameter
{
Name = "ignoreCustomDataSourceLinks",
IsRequired = false,
ParameterType = "query",
DefaultValue = "false",
Pattern = null,
});
}
}
}
/// Gets the CustomMetrics resource.
public virtual CustomMetricsResource CustomMetrics { get; }
/// The "customMetrics" collection of methods.
public class CustomMetricsResource
{
private const string Resource = "customMetrics";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public CustomMetricsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Get a custom metric to which the user has access.
/// Account ID for the custom metric to retrieve.
/// Web property ID for the custom metric to retrieve.
/// The ID of the custom metric to retrieve.
public virtual GetRequest Get(string accountId, string webPropertyId, string customMetricId)
{
return new GetRequest(this.service, accountId, webPropertyId, customMetricId);
}
/// Get a custom metric to which the user has access.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string customMetricId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
CustomMetricId = customMetricId;
InitParameters();
}
/// Account ID for the custom metric to retrieve.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID for the custom metric to retrieve.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The ID of the custom metric to retrieve.
[Google.Apis.Util.RequestParameterAttribute("customMetricId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string CustomMetricId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("customMetricId", new Google.Apis.Discovery.Parameter
{
Name = "customMetricId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Create a new custom metric.
/// The body of the request.
/// Account ID for the custom metric to create.
/// Web property ID for the custom dimension to create.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.CustomMetric body, string accountId, string webPropertyId)
{
return new InsertRequest(this.service, body, accountId, webPropertyId);
}
/// Create a new custom metric.
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.CustomMetric body, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
Body = body;
InitParameters();
}
/// Account ID for the custom metric to create.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID for the custom dimension to create.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.CustomMetric Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists custom metrics to which the user has access.
/// Account ID for the custom metrics to retrieve.
/// Web property ID for the custom metrics to retrieve.
public virtual ListRequest List(string accountId, string webPropertyId)
{
return new ListRequest(this.service, accountId, webPropertyId);
}
/// Lists custom metrics to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
InitParameters();
}
/// Account ID for the custom metrics to retrieve.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID for the custom metrics to retrieve.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The maximum number of custom metrics to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing custom metric. This method supports patch semantics.
/// The body of the request.
/// Account ID for the custom metric to update.
/// Web property ID for the custom metric to update.
/// Custom metric ID for the custom metric to update.
public virtual PatchRequest Patch(Google.Apis.Analytics.v3.Data.CustomMetric body, string accountId, string webPropertyId, string customMetricId)
{
return new PatchRequest(this.service, body, accountId, webPropertyId, customMetricId);
}
/// Updates an existing custom metric. This method supports patch semantics.
public class PatchRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.CustomMetric body, string accountId, string webPropertyId, string customMetricId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
CustomMetricId = customMetricId;
Body = body;
InitParameters();
}
/// Account ID for the custom metric to update.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID for the custom metric to update.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Custom metric ID for the custom metric to update.
[Google.Apis.Util.RequestParameterAttribute("customMetricId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string CustomMetricId { get; private set; }
///
/// Force the update and ignore any warnings related to the custom metric being linked to a custom data
/// source / data set.
///
[Google.Apis.Util.RequestParameterAttribute("ignoreCustomDataSourceLinks", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable IgnoreCustomDataSourceLinks { get; set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.CustomMetric Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("customMetricId", new Google.Apis.Discovery.Parameter
{
Name = "customMetricId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("ignoreCustomDataSourceLinks", new Google.Apis.Discovery.Parameter
{
Name = "ignoreCustomDataSourceLinks",
IsRequired = false,
ParameterType = "query",
DefaultValue = "false",
Pattern = null,
});
}
}
/// Updates an existing custom metric.
/// The body of the request.
/// Account ID for the custom metric to update.
/// Web property ID for the custom metric to update.
/// Custom metric ID for the custom metric to update.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.CustomMetric body, string accountId, string webPropertyId, string customMetricId)
{
return new UpdateRequest(this.service, body, accountId, webPropertyId, customMetricId);
}
/// Updates an existing custom metric.
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.CustomMetric body, string accountId, string webPropertyId, string customMetricId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
CustomMetricId = customMetricId;
Body = body;
InitParameters();
}
/// Account ID for the custom metric to update.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID for the custom metric to update.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Custom metric ID for the custom metric to update.
[Google.Apis.Util.RequestParameterAttribute("customMetricId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string CustomMetricId { get; private set; }
///
/// Force the update and ignore any warnings related to the custom metric being linked to a custom data
/// source / data set.
///
[Google.Apis.Util.RequestParameterAttribute("ignoreCustomDataSourceLinks", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable IgnoreCustomDataSourceLinks { get; set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.CustomMetric Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("customMetricId", new Google.Apis.Discovery.Parameter
{
Name = "customMetricId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("ignoreCustomDataSourceLinks", new Google.Apis.Discovery.Parameter
{
Name = "ignoreCustomDataSourceLinks",
IsRequired = false,
ParameterType = "query",
DefaultValue = "false",
Pattern = null,
});
}
}
}
/// Gets the Experiments resource.
public virtual ExperimentsResource Experiments { get; }
/// The "experiments" collection of methods.
public class ExperimentsResource
{
private const string Resource = "experiments";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ExperimentsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Delete an experiment.
/// Account ID to which the experiment belongs
/// Web property ID to which the experiment belongs
/// View (Profile) ID to which the experiment belongs
/// ID of the experiment to delete
public virtual DeleteRequest Delete(string accountId, string webPropertyId, string profileId, string experimentId)
{
return new DeleteRequest(this.service, accountId, webPropertyId, profileId, experimentId);
}
/// Delete an experiment.
public class DeleteRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId, string experimentId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
ExperimentId = experimentId;
InitParameters();
}
/// Account ID to which the experiment belongs
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to which the experiment belongs
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to which the experiment belongs
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// ID of the experiment to delete
[Google.Apis.Util.RequestParameterAttribute("experimentId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ExperimentId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("experimentId", new Google.Apis.Discovery.Parameter
{
Name = "experimentId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns an experiment to which the user has access.
/// Account ID to retrieve the experiment for.
/// Web property ID to retrieve the experiment for.
/// View (Profile) ID to retrieve the experiment for.
/// Experiment ID to retrieve the experiment for.
public virtual GetRequest Get(string accountId, string webPropertyId, string profileId, string experimentId)
{
return new GetRequest(this.service, accountId, webPropertyId, profileId, experimentId);
}
/// Returns an experiment to which the user has access.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId, string experimentId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
ExperimentId = experimentId;
InitParameters();
}
/// Account ID to retrieve the experiment for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to retrieve the experiment for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to retrieve the experiment for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Experiment ID to retrieve the experiment for.
[Google.Apis.Util.RequestParameterAttribute("experimentId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ExperimentId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("experimentId", new Google.Apis.Discovery.Parameter
{
Name = "experimentId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Create a new experiment.
/// The body of the request.
/// Account ID to create the experiment for.
/// Web property ID to create the experiment for.
/// View (Profile) ID to create the experiment for.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.Experiment body, string accountId, string webPropertyId, string profileId)
{
return new InsertRequest(this.service, body, accountId, webPropertyId, profileId);
}
/// Create a new experiment.
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Experiment body, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
Body = body;
InitParameters();
}
/// Account ID to create the experiment for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to create the experiment for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to create the experiment for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Experiment Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists experiments to which the user has access.
/// Account ID to retrieve experiments for.
/// Web property ID to retrieve experiments for.
/// View (Profile) ID to retrieve experiments for.
public virtual ListRequest List(string accountId, string webPropertyId, string profileId)
{
return new ListRequest(this.service, accountId, webPropertyId, profileId);
}
/// Lists experiments to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
InitParameters();
}
/// Account ID to retrieve experiments for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to retrieve experiments for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to retrieve experiments for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// The maximum number of experiments to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along
/// with the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-(\d+)-(\d+)",
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Update an existing experiment. This method supports patch semantics.
/// The body of the request.
/// Account ID of the experiment to update.
/// Web property ID of the experiment to update.
/// View (Profile) ID of the experiment to update.
/// Experiment ID of the experiment to update.
public virtual PatchRequest Patch(Google.Apis.Analytics.v3.Data.Experiment body, string accountId, string webPropertyId, string profileId, string experimentId)
{
return new PatchRequest(this.service, body, accountId, webPropertyId, profileId, experimentId);
}
/// Update an existing experiment. This method supports patch semantics.
public class PatchRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Experiment body, string accountId, string webPropertyId, string profileId, string experimentId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
ExperimentId = experimentId;
Body = body;
InitParameters();
}
/// Account ID of the experiment to update.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID of the experiment to update.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID of the experiment to update.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Experiment ID of the experiment to update.
[Google.Apis.Util.RequestParameterAttribute("experimentId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ExperimentId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Experiment Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("experimentId", new Google.Apis.Discovery.Parameter
{
Name = "experimentId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Update an existing experiment.
/// The body of the request.
/// Account ID of the experiment to update.
/// Web property ID of the experiment to update.
/// View (Profile) ID of the experiment to update.
/// Experiment ID of the experiment to update.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.Experiment body, string accountId, string webPropertyId, string profileId, string experimentId)
{
return new UpdateRequest(this.service, body, accountId, webPropertyId, profileId, experimentId);
}
/// Update an existing experiment.
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Experiment body, string accountId, string webPropertyId, string profileId, string experimentId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
ExperimentId = experimentId;
Body = body;
InitParameters();
}
/// Account ID of the experiment to update.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID of the experiment to update.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID of the experiment to update.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Experiment ID of the experiment to update.
[Google.Apis.Util.RequestParameterAttribute("experimentId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ExperimentId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Experiment Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("experimentId", new Google.Apis.Discovery.Parameter
{
Name = "experimentId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Filters resource.
public virtual FiltersResource Filters { get; }
/// The "filters" collection of methods.
public class FiltersResource
{
private const string Resource = "filters";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public FiltersResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Delete a filter.
/// Account ID to delete the filter for.
/// ID of the filter to be deleted.
public virtual DeleteRequest Delete(string accountId, string filterId)
{
return new DeleteRequest(this.service, accountId, filterId);
}
/// Delete a filter.
public class DeleteRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string accountId, string filterId) : base(service)
{
AccountId = accountId;
FilterId = filterId;
InitParameters();
}
/// Account ID to delete the filter for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// ID of the filter to be deleted.
[Google.Apis.Util.RequestParameterAttribute("filterId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string FilterId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/filters/{filterId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("filterId", new Google.Apis.Discovery.Parameter
{
Name = "filterId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns filters to which the user has access.
/// Account ID to retrieve filters for.
/// Filter ID to retrieve filters for.
public virtual GetRequest Get(string accountId, string filterId)
{
return new GetRequest(this.service, accountId, filterId);
}
/// Returns filters to which the user has access.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string filterId) : base(service)
{
AccountId = accountId;
FilterId = filterId;
InitParameters();
}
/// Account ID to retrieve filters for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Filter ID to retrieve filters for.
[Google.Apis.Util.RequestParameterAttribute("filterId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string FilterId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/filters/{filterId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("filterId", new Google.Apis.Discovery.Parameter
{
Name = "filterId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Create a new filter.
/// The body of the request.
/// Account ID to create filter for.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.Filter body, string accountId)
{
return new InsertRequest(this.service, body, accountId);
}
/// Create a new filter.
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Filter body, string accountId) : base(service)
{
AccountId = accountId;
Body = body;
InitParameters();
}
/// Account ID to create filter for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Filter Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/filters";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists all filters for an account
/// Account ID to retrieve filters for.
public virtual ListRequest List(string accountId)
{
return new ListRequest(this.service, accountId);
}
/// Lists all filters for an account
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId) : base(service)
{
AccountId = accountId;
InitParameters();
}
/// Account ID to retrieve filters for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// The maximum number of filters to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/filters";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing filter. This method supports patch semantics.
/// The body of the request.
/// Account ID to which the filter belongs.
/// ID of the filter to be updated.
public virtual PatchRequest Patch(Google.Apis.Analytics.v3.Data.Filter body, string accountId, string filterId)
{
return new PatchRequest(this.service, body, accountId, filterId);
}
/// Updates an existing filter. This method supports patch semantics.
public class PatchRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Filter body, string accountId, string filterId) : base(service)
{
AccountId = accountId;
FilterId = filterId;
Body = body;
InitParameters();
}
/// Account ID to which the filter belongs.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// ID of the filter to be updated.
[Google.Apis.Util.RequestParameterAttribute("filterId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string FilterId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Filter Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/filters/{filterId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("filterId", new Google.Apis.Discovery.Parameter
{
Name = "filterId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing filter.
/// The body of the request.
/// Account ID to which the filter belongs.
/// ID of the filter to be updated.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.Filter body, string accountId, string filterId)
{
return new UpdateRequest(this.service, body, accountId, filterId);
}
/// Updates an existing filter.
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Filter body, string accountId, string filterId) : base(service)
{
AccountId = accountId;
FilterId = filterId;
Body = body;
InitParameters();
}
/// Account ID to which the filter belongs.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// ID of the filter to be updated.
[Google.Apis.Util.RequestParameterAttribute("filterId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string FilterId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Filter Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/filters/{filterId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("filterId", new Google.Apis.Discovery.Parameter
{
Name = "filterId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Goals resource.
public virtual GoalsResource Goals { get; }
/// The "goals" collection of methods.
public class GoalsResource
{
private const string Resource = "goals";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public GoalsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Gets a goal to which the user has access.
/// Account ID to retrieve the goal for.
/// Web property ID to retrieve the goal for.
/// View (Profile) ID to retrieve the goal for.
/// Goal ID to retrieve the goal for.
public virtual GetRequest Get(string accountId, string webPropertyId, string profileId, string goalId)
{
return new GetRequest(this.service, accountId, webPropertyId, profileId, goalId);
}
/// Gets a goal to which the user has access.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId, string goalId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
GoalId = goalId;
InitParameters();
}
/// Account ID to retrieve the goal for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to retrieve the goal for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to retrieve the goal for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Goal ID to retrieve the goal for.
[Google.Apis.Util.RequestParameterAttribute("goalId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string GoalId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("goalId", new Google.Apis.Discovery.Parameter
{
Name = "goalId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Create a new goal.
/// The body of the request.
/// Account ID to create the goal for.
/// Web property ID to create the goal for.
/// View (Profile) ID to create the goal for.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.Goal body, string accountId, string webPropertyId, string profileId)
{
return new InsertRequest(this.service, body, accountId, webPropertyId, profileId);
}
/// Create a new goal.
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Goal body, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
Body = body;
InitParameters();
}
/// Account ID to create the goal for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to create the goal for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to create the goal for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Goal Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists goals to which the user has access.
///
/// Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the
/// accounts that user has access to.
///
///
/// Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers
/// to all the web properties that user has access to.
///
///
/// View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which
/// refers to all the views (profiles) that user has access to.
///
public virtual ListRequest List(string accountId, string webPropertyId, string profileId)
{
return new ListRequest(this.service, accountId, webPropertyId, profileId);
}
/// Lists goals to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
InitParameters();
}
///
/// Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all
/// the accounts that user has access to.
///
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
///
/// Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which
/// refers to all the web properties that user has access to.
///
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
///
/// View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which
/// refers to all the views (profiles) that user has access to.
///
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// The maximum number of goals to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the
/// max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing goal. This method supports patch semantics.
/// The body of the request.
/// Account ID to update the goal.
/// Web property ID to update the goal.
/// View (Profile) ID to update the goal.
/// Index of the goal to be updated.
public virtual PatchRequest Patch(Google.Apis.Analytics.v3.Data.Goal body, string accountId, string webPropertyId, string profileId, string goalId)
{
return new PatchRequest(this.service, body, accountId, webPropertyId, profileId, goalId);
}
/// Updates an existing goal. This method supports patch semantics.
public class PatchRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Goal body, string accountId, string webPropertyId, string profileId, string goalId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
GoalId = goalId;
Body = body;
InitParameters();
}
/// Account ID to update the goal.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to update the goal.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to update the goal.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Index of the goal to be updated.
[Google.Apis.Util.RequestParameterAttribute("goalId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string GoalId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Goal Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("goalId", new Google.Apis.Discovery.Parameter
{
Name = "goalId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing goal.
/// The body of the request.
/// Account ID to update the goal.
/// Web property ID to update the goal.
/// View (Profile) ID to update the goal.
/// Index of the goal to be updated.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.Goal body, string accountId, string webPropertyId, string profileId, string goalId)
{
return new UpdateRequest(this.service, body, accountId, webPropertyId, profileId, goalId);
}
/// Updates an existing goal.
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Goal body, string accountId, string webPropertyId, string profileId, string goalId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
GoalId = goalId;
Body = body;
InitParameters();
}
/// Account ID to update the goal.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to update the goal.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to update the goal.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Index of the goal to be updated.
[Google.Apis.Util.RequestParameterAttribute("goalId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string GoalId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Goal Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("goalId", new Google.Apis.Discovery.Parameter
{
Name = "goalId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the ProfileFilterLinks resource.
public virtual ProfileFilterLinksResource ProfileFilterLinks { get; }
/// The "profileFilterLinks" collection of methods.
public class ProfileFilterLinksResource
{
private const string Resource = "profileFilterLinks";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ProfileFilterLinksResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Delete a profile filter link.
/// Account ID to which the profile filter link belongs.
/// Web property Id to which the profile filter link belongs.
/// Profile ID to which the filter link belongs.
/// ID of the profile filter link to delete.
public virtual DeleteRequest Delete(string accountId, string webPropertyId, string profileId, string linkId)
{
return new DeleteRequest(this.service, accountId, webPropertyId, profileId, linkId);
}
/// Delete a profile filter link.
public class DeleteRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId, string linkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
LinkId = linkId;
InitParameters();
}
/// Account ID to which the profile filter link belongs.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property Id to which the profile filter link belongs.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Profile ID to which the filter link belongs.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// ID of the profile filter link to delete.
[Google.Apis.Util.RequestParameterAttribute("linkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string LinkId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-(\d+)-(\d+)",
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("linkId", new Google.Apis.Discovery.Parameter
{
Name = "linkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+:\d+",
});
}
}
/// Returns a single profile filter link.
/// Account ID to retrieve profile filter link for.
/// Web property Id to retrieve profile filter link for.
/// Profile ID to retrieve filter link for.
/// ID of the profile filter link.
public virtual GetRequest Get(string accountId, string webPropertyId, string profileId, string linkId)
{
return new GetRequest(this.service, accountId, webPropertyId, profileId, linkId);
}
/// Returns a single profile filter link.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId, string linkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
LinkId = linkId;
InitParameters();
}
/// Account ID to retrieve profile filter link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property Id to retrieve profile filter link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Profile ID to retrieve filter link for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// ID of the profile filter link.
[Google.Apis.Util.RequestParameterAttribute("linkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string LinkId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-(\d+)-(\d+)",
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("linkId", new Google.Apis.Discovery.Parameter
{
Name = "linkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+:\d+",
});
}
}
/// Create a new profile filter link.
/// The body of the request.
/// Account ID to create profile filter link for.
/// Web property Id to create profile filter link for.
/// Profile ID to create filter link for.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.ProfileFilterLink body, string accountId, string webPropertyId, string profileId)
{
return new InsertRequest(this.service, body, accountId, webPropertyId, profileId);
}
/// Create a new profile filter link.
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.ProfileFilterLink body, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
Body = body;
InitParameters();
}
/// Account ID to create profile filter link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property Id to create profile filter link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Profile ID to create filter link for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.ProfileFilterLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-(\d+)-(\d+)",
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
}
}
/// Lists all profile filter links for a profile.
/// Account ID to retrieve profile filter links for.
///
/// Web property Id for profile filter links for. Can either be a specific web property ID or '~all', which
/// refers to all the web properties that user has access to.
///
///
/// Profile ID to retrieve filter links for. Can either be a specific profile ID or '~all', which refers to
/// all the profiles that user has access to.
///
public virtual ListRequest List(string accountId, string webPropertyId, string profileId)
{
return new ListRequest(this.service, accountId, webPropertyId, profileId);
}
/// Lists all profile filter links for a profile.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
InitParameters();
}
/// Account ID to retrieve profile filter links for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
///
/// Web property Id for profile filter links for. Can either be a specific web property ID or '~all',
/// which refers to all the web properties that user has access to.
///
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
///
/// Profile ID to retrieve filter links for. Can either be a specific profile ID or '~all', which refers
/// to all the profiles that user has access to.
///
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// The maximum number of profile filter links to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Update an existing profile filter link. This method supports patch semantics.
/// The body of the request.
/// Account ID to which profile filter link belongs.
/// Web property Id to which profile filter link belongs
/// Profile ID to which filter link belongs
/// ID of the profile filter link to be updated.
public virtual PatchRequest Patch(Google.Apis.Analytics.v3.Data.ProfileFilterLink body, string accountId, string webPropertyId, string profileId, string linkId)
{
return new PatchRequest(this.service, body, accountId, webPropertyId, profileId, linkId);
}
/// Update an existing profile filter link. This method supports patch semantics.
public class PatchRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.ProfileFilterLink body, string accountId, string webPropertyId, string profileId, string linkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
LinkId = linkId;
Body = body;
InitParameters();
}
/// Account ID to which profile filter link belongs.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property Id to which profile filter link belongs
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Profile ID to which filter link belongs
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// ID of the profile filter link to be updated.
[Google.Apis.Util.RequestParameterAttribute("linkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string LinkId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.ProfileFilterLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-(\d+)-(\d+)",
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("linkId", new Google.Apis.Discovery.Parameter
{
Name = "linkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+:\d+",
});
}
}
/// Update an existing profile filter link.
/// The body of the request.
/// Account ID to which profile filter link belongs.
/// Web property Id to which profile filter link belongs
/// Profile ID to which filter link belongs
/// ID of the profile filter link to be updated.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.ProfileFilterLink body, string accountId, string webPropertyId, string profileId, string linkId)
{
return new UpdateRequest(this.service, body, accountId, webPropertyId, profileId, linkId);
}
/// Update an existing profile filter link.
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.ProfileFilterLink body, string accountId, string webPropertyId, string profileId, string linkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
LinkId = linkId;
Body = body;
InitParameters();
}
/// Account ID to which profile filter link belongs.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property Id to which profile filter link belongs
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Profile ID to which filter link belongs
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// ID of the profile filter link to be updated.
[Google.Apis.Util.RequestParameterAttribute("linkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string LinkId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.ProfileFilterLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-(\d+)-(\d+)",
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("linkId", new Google.Apis.Discovery.Parameter
{
Name = "linkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+:\d+",
});
}
}
}
/// Gets the ProfileUserLinks resource.
public virtual ProfileUserLinksResource ProfileUserLinks { get; }
/// The "profileUserLinks" collection of methods.
public class ProfileUserLinksResource
{
private const string Resource = "profileUserLinks";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ProfileUserLinksResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Removes a user from the given view (profile).
/// Account ID to delete the user link for.
/// Web Property ID to delete the user link for.
/// View (Profile) ID to delete the user link for.
/// Link ID to delete the user link for.
public virtual DeleteRequest Delete(string accountId, string webPropertyId, string profileId, string linkId)
{
return new DeleteRequest(this.service, accountId, webPropertyId, profileId, linkId);
}
/// Removes a user from the given view (profile).
public class DeleteRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId, string linkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
LinkId = linkId;
InitParameters();
}
/// Account ID to delete the user link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web Property ID to delete the user link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to delete the user link for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Link ID to delete the user link for.
[Google.Apis.Util.RequestParameterAttribute("linkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string LinkId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("linkId", new Google.Apis.Discovery.Parameter
{
Name = "linkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Adds a new user to the given view (profile).
/// The body of the request.
/// Account ID to create the user link for.
/// Web Property ID to create the user link for.
/// View (Profile) ID to create the user link for.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId, string webPropertyId, string profileId)
{
return new InsertRequest(this.service, body, accountId, webPropertyId, profileId);
}
/// Adds a new user to the given view (profile).
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
Body = body;
InitParameters();
}
/// Account ID to create the user link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web Property ID to create the user link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to create the user link for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.EntityUserLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists profile-user links for a given view (profile).
/// Account ID which the given view (profile) belongs to.
///
/// Web Property ID which the given view (profile) belongs to. Can either be a specific web property ID or
/// '~all', which refers to all the web properties that user has access to.
///
///
/// View (Profile) ID to retrieve the profile-user links for. Can either be a specific profile ID or '~all',
/// which refers to all the profiles that user has access to.
///
public virtual ListRequest List(string accountId, string webPropertyId, string profileId)
{
return new ListRequest(this.service, accountId, webPropertyId, profileId);
}
/// Lists profile-user links for a given view (profile).
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
InitParameters();
}
/// Account ID which the given view (profile) belongs to.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
///
/// Web Property ID which the given view (profile) belongs to. Can either be a specific web property ID
/// or '~all', which refers to all the web properties that user has access to.
///
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
///
/// View (Profile) ID to retrieve the profile-user links for. Can either be a specific profile ID or
/// '~all', which refers to all the profiles that user has access to.
///
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// The maximum number of profile-user links to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first profile-user link to retrieve. Use this parameter as a pagination mechanism
/// along with the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates permissions for an existing user on the given view (profile).
/// The body of the request.
/// Account ID to update the user link for.
/// Web Property ID to update the user link for.
/// View (Profile ID) to update the user link for.
/// Link ID to update the user link for.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId, string webPropertyId, string profileId, string linkId)
{
return new UpdateRequest(this.service, body, accountId, webPropertyId, profileId, linkId);
}
/// Updates permissions for an existing user on the given view (profile).
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId, string webPropertyId, string profileId, string linkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
LinkId = linkId;
Body = body;
InitParameters();
}
/// Account ID to update the user link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web Property ID to update the user link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile ID) to update the user link for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Link ID to update the user link for.
[Google.Apis.Util.RequestParameterAttribute("linkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string LinkId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.EntityUserLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("linkId", new Google.Apis.Discovery.Parameter
{
Name = "linkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Profiles resource.
public virtual ProfilesResource Profiles { get; }
/// The "profiles" collection of methods.
public class ProfilesResource
{
private const string Resource = "profiles";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ProfilesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Deletes a view (profile).
/// Account ID to delete the view (profile) for.
/// Web property ID to delete the view (profile) for.
/// ID of the view (profile) to be deleted.
public virtual DeleteRequest Delete(string accountId, string webPropertyId, string profileId)
{
return new DeleteRequest(this.service, accountId, webPropertyId, profileId);
}
/// Deletes a view (profile).
public class DeleteRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
InitParameters();
}
/// Account ID to delete the view (profile) for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to delete the view (profile) for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// ID of the view (profile) to be deleted.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Gets a view (profile) to which the user has access.
/// Account ID to retrieve the view (profile) for.
/// Web property ID to retrieve the view (profile) for.
/// View (Profile) ID to retrieve the view (profile) for.
public virtual GetRequest Get(string accountId, string webPropertyId, string profileId)
{
return new GetRequest(this.service, accountId, webPropertyId, profileId);
}
/// Gets a view (profile) to which the user has access.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
InitParameters();
}
/// Account ID to retrieve the view (profile) for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to retrieve the view (profile) for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to retrieve the view (profile) for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"[0-9]+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-[0-9]+-[0-9]+",
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"[0-9]+",
});
}
}
/// Create a new view (profile).
/// The body of the request.
/// Account ID to create the view (profile) for.
/// Web property ID to create the view (profile) for.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.Profile body, string accountId, string webPropertyId)
{
return new InsertRequest(this.service, body, accountId, webPropertyId);
}
/// Create a new view (profile).
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Profile body, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
Body = body;
InitParameters();
}
/// Account ID to create the view (profile) for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to create the view (profile) for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Profile Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists views (profiles) to which the user has access.
///
/// Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', which
/// refers to all the accounts to which the user has access.
///
///
/// Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or
/// '~all', which refers to all the web properties to which the user has access.
///
public virtual ListRequest List(string accountId, string webPropertyId)
{
return new ListRequest(this.service, accountId, webPropertyId);
}
/// Lists views (profiles) to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
InitParameters();
}
///
/// Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', which
/// refers to all the accounts to which the user has access.
///
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
///
/// Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or
/// '~all', which refers to all the web properties to which the user has access.
///
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The maximum number of views (profiles) to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing view (profile). This method supports patch semantics.
/// The body of the request.
/// Account ID to which the view (profile) belongs
/// Web property ID to which the view (profile) belongs
/// ID of the view (profile) to be updated.
public virtual PatchRequest Patch(Google.Apis.Analytics.v3.Data.Profile body, string accountId, string webPropertyId, string profileId)
{
return new PatchRequest(this.service, body, accountId, webPropertyId, profileId);
}
/// Updates an existing view (profile). This method supports patch semantics.
public class PatchRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Profile body, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
Body = body;
InitParameters();
}
/// Account ID to which the view (profile) belongs
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to which the view (profile) belongs
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// ID of the view (profile) to be updated.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Profile Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing view (profile).
/// The body of the request.
/// Account ID to which the view (profile) belongs
/// Web property ID to which the view (profile) belongs
/// ID of the view (profile) to be updated.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.Profile body, string accountId, string webPropertyId, string profileId)
{
return new UpdateRequest(this.service, body, accountId, webPropertyId, profileId);
}
/// Updates an existing view (profile).
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Profile body, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
Body = body;
InitParameters();
}
/// Account ID to which the view (profile) belongs
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to which the view (profile) belongs
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// ID of the view (profile) to be updated.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Profile Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the RemarketingAudience resource.
public virtual RemarketingAudienceResource RemarketingAudience { get; }
/// The "remarketingAudience" collection of methods.
public class RemarketingAudienceResource
{
private const string Resource = "remarketingAudience";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public RemarketingAudienceResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Delete a remarketing audience.
/// Account ID to which the remarketing audience belongs.
/// Web property ID to which the remarketing audience belongs.
/// The ID of the remarketing audience to delete.
public virtual DeleteRequest Delete(string accountId, string webPropertyId, string remarketingAudienceId)
{
return new DeleteRequest(this.service, accountId, webPropertyId, remarketingAudienceId);
}
/// Delete a remarketing audience.
public class DeleteRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string remarketingAudienceId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
RemarketingAudienceId = remarketingAudienceId;
InitParameters();
}
/// Account ID to which the remarketing audience belongs.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to which the remarketing audience belongs.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The ID of the remarketing audience to delete.
[Google.Apis.Util.RequestParameterAttribute("remarketingAudienceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string RemarketingAudienceId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("remarketingAudienceId", new Google.Apis.Discovery.Parameter
{
Name = "remarketingAudienceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Gets a remarketing audience to which the user has access.
/// The account ID of the remarketing audience to retrieve.
/// The web property ID of the remarketing audience to retrieve.
/// The ID of the remarketing audience to retrieve.
public virtual GetRequest Get(string accountId, string webPropertyId, string remarketingAudienceId)
{
return new GetRequest(this.service, accountId, webPropertyId, remarketingAudienceId);
}
/// Gets a remarketing audience to which the user has access.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string remarketingAudienceId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
RemarketingAudienceId = remarketingAudienceId;
InitParameters();
}
/// The account ID of the remarketing audience to retrieve.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// The web property ID of the remarketing audience to retrieve.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The ID of the remarketing audience to retrieve.
[Google.Apis.Util.RequestParameterAttribute("remarketingAudienceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string RemarketingAudienceId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("remarketingAudienceId", new Google.Apis.Discovery.Parameter
{
Name = "remarketingAudienceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Creates a new remarketing audience.
/// The body of the request.
/// The account ID for which to create the remarketing audience.
/// Web property ID for which to create the remarketing audience.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.RemarketingAudience body, string accountId, string webPropertyId)
{
return new InsertRequest(this.service, body, accountId, webPropertyId);
}
/// Creates a new remarketing audience.
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.RemarketingAudience body, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
Body = body;
InitParameters();
}
/// The account ID for which to create the remarketing audience.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID for which to create the remarketing audience.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.RemarketingAudience Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists remarketing audiences to which the user has access.
/// The account ID of the remarketing audiences to retrieve.
/// The web property ID of the remarketing audiences to retrieve.
public virtual ListRequest List(string accountId, string webPropertyId)
{
return new ListRequest(this.service, accountId, webPropertyId);
}
/// Lists remarketing audiences to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
InitParameters();
}
/// The account ID of the remarketing audiences to retrieve.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// The web property ID of the remarketing audiences to retrieve.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The maximum number of remarketing audiences to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
[Google.Apis.Util.RequestParameterAttribute("type", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Type { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("type", new Google.Apis.Discovery.Parameter
{
Name = "type",
IsRequired = false,
ParameterType = "query",
DefaultValue = "all",
Pattern = null,
});
}
}
/// Updates an existing remarketing audience. This method supports patch semantics.
/// The body of the request.
/// The account ID of the remarketing audience to update.
/// The web property ID of the remarketing audience to update.
/// The ID of the remarketing audience to update.
public virtual PatchRequest Patch(Google.Apis.Analytics.v3.Data.RemarketingAudience body, string accountId, string webPropertyId, string remarketingAudienceId)
{
return new PatchRequest(this.service, body, accountId, webPropertyId, remarketingAudienceId);
}
/// Updates an existing remarketing audience. This method supports patch semantics.
public class PatchRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.RemarketingAudience body, string accountId, string webPropertyId, string remarketingAudienceId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
RemarketingAudienceId = remarketingAudienceId;
Body = body;
InitParameters();
}
/// The account ID of the remarketing audience to update.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// The web property ID of the remarketing audience to update.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The ID of the remarketing audience to update.
[Google.Apis.Util.RequestParameterAttribute("remarketingAudienceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string RemarketingAudienceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.RemarketingAudience Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("remarketingAudienceId", new Google.Apis.Discovery.Parameter
{
Name = "remarketingAudienceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing remarketing audience.
/// The body of the request.
/// The account ID of the remarketing audience to update.
/// The web property ID of the remarketing audience to update.
/// The ID of the remarketing audience to update.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.RemarketingAudience body, string accountId, string webPropertyId, string remarketingAudienceId)
{
return new UpdateRequest(this.service, body, accountId, webPropertyId, remarketingAudienceId);
}
/// Updates an existing remarketing audience.
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.RemarketingAudience body, string accountId, string webPropertyId, string remarketingAudienceId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
RemarketingAudienceId = remarketingAudienceId;
Body = body;
InitParameters();
}
/// The account ID of the remarketing audience to update.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// The web property ID of the remarketing audience to update.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The ID of the remarketing audience to update.
[Google.Apis.Util.RequestParameterAttribute("remarketingAudienceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string RemarketingAudienceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.RemarketingAudience Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("remarketingAudienceId", new Google.Apis.Discovery.Parameter
{
Name = "remarketingAudienceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Segments resource.
public virtual SegmentsResource Segments { get; }
/// The "segments" collection of methods.
public class SegmentsResource
{
private const string Resource = "segments";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public SegmentsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Lists segments to which the user has access.
public virtual ListRequest List()
{
return new ListRequest(this.service);
}
/// Lists segments to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service) : base(service)
{
InitParameters();
}
/// The maximum number of segments to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first segment to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/segments";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the UnsampledReports resource.
public virtual UnsampledReportsResource UnsampledReports { get; }
/// The "unsampledReports" collection of methods.
public class UnsampledReportsResource
{
private const string Resource = "unsampledReports";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public UnsampledReportsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Deletes an unsampled report.
/// Account ID to delete the unsampled report for.
/// Web property ID to delete the unsampled reports for.
/// View (Profile) ID to delete the unsampled report for.
/// ID of the unsampled report to be deleted.
public virtual DeleteRequest Delete(string accountId, string webPropertyId, string profileId, string unsampledReportId)
{
return new DeleteRequest(this.service, accountId, webPropertyId, profileId, unsampledReportId);
}
/// Deletes an unsampled report.
public class DeleteRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId, string unsampledReportId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
UnsampledReportId = unsampledReportId;
InitParameters();
}
/// Account ID to delete the unsampled report for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to delete the unsampled reports for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to delete the unsampled report for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// ID of the unsampled report to be deleted.
[Google.Apis.Util.RequestParameterAttribute("unsampledReportId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string UnsampledReportId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("unsampledReportId", new Google.Apis.Discovery.Parameter
{
Name = "unsampledReportId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns a single unsampled report.
/// Account ID to retrieve unsampled report for.
/// Web property ID to retrieve unsampled reports for.
/// View (Profile) ID to retrieve unsampled report for.
/// ID of the unsampled report to retrieve.
public virtual GetRequest Get(string accountId, string webPropertyId, string profileId, string unsampledReportId)
{
return new GetRequest(this.service, accountId, webPropertyId, profileId, unsampledReportId);
}
/// Returns a single unsampled report.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId, string unsampledReportId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
UnsampledReportId = unsampledReportId;
InitParameters();
}
/// Account ID to retrieve unsampled report for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to retrieve unsampled reports for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to retrieve unsampled report for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// ID of the unsampled report to retrieve.
[Google.Apis.Util.RequestParameterAttribute("unsampledReportId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string UnsampledReportId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("unsampledReportId", new Google.Apis.Discovery.Parameter
{
Name = "unsampledReportId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Create a new unsampled report.
/// The body of the request.
/// Account ID to create the unsampled report for.
/// Web property ID to create the unsampled report for.
/// View (Profile) ID to create the unsampled report for.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.UnsampledReport body, string accountId, string webPropertyId, string profileId)
{
return new InsertRequest(this.service, body, accountId, webPropertyId, profileId);
}
/// Create a new unsampled report.
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.UnsampledReport body, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
Body = body;
InitParameters();
}
/// Account ID to create the unsampled report for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to create the unsampled report for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// View (Profile) ID to create the unsampled report for.
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.UnsampledReport Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists unsampled reports to which the user has access.
///
/// Account ID to retrieve unsampled reports for. Must be a specific account ID, ~all is not supported.
///
///
/// Web property ID to retrieve unsampled reports for. Must be a specific web property ID, ~all is not
/// supported.
///
///
/// View (Profile) ID to retrieve unsampled reports for. Must be a specific view (profile) ID, ~all is not
/// supported.
///
public virtual ListRequest List(string accountId, string webPropertyId, string profileId)
{
return new ListRequest(this.service, accountId, webPropertyId, profileId);
}
/// Lists unsampled reports to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string profileId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
ProfileId = profileId;
InitParameters();
}
///
/// Account ID to retrieve unsampled reports for. Must be a specific account ID, ~all is not supported.
///
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
///
/// Web property ID to retrieve unsampled reports for. Must be a specific web property ID, ~all is not
/// supported.
///
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
///
/// View (Profile) ID to retrieve unsampled reports for. Must be a specific view (profile) ID, ~all is
/// not supported.
///
[Google.Apis.Util.RequestParameterAttribute("profileId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ProfileId { get; private set; }
/// The maximum number of unsampled reports to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first unsampled report to retrieve. Use this parameter as a pagination mechanism
/// along with the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("profileId", new Google.Apis.Discovery.Parameter
{
Name = "profileId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Uploads resource.
public virtual UploadsResource Uploads { get; }
/// The "uploads" collection of methods.
public class UploadsResource
{
private const string Resource = "uploads";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public UploadsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Delete data associated with a previous upload.
/// The body of the request.
/// Account Id for the uploads to be deleted.
/// Web property Id for the uploads to be deleted.
/// Custom data source Id for the uploads to be deleted.
public virtual DeleteUploadDataRequest DeleteUploadData(Google.Apis.Analytics.v3.Data.AnalyticsDataimportDeleteUploadDataRequest body, string accountId, string webPropertyId, string customDataSourceId)
{
return new DeleteUploadDataRequest(this.service, body, accountId, webPropertyId, customDataSourceId);
}
/// Delete data associated with a previous upload.
public class DeleteUploadDataRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new DeleteUploadData request.
public DeleteUploadDataRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.AnalyticsDataimportDeleteUploadDataRequest body, string accountId, string webPropertyId, string customDataSourceId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
CustomDataSourceId = customDataSourceId;
Body = body;
InitParameters();
}
/// Account Id for the uploads to be deleted.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property Id for the uploads to be deleted.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Custom data source Id for the uploads to be deleted.
[Google.Apis.Util.RequestParameterAttribute("customDataSourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string CustomDataSourceId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.AnalyticsDataimportDeleteUploadDataRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "deleteUploadData";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData";
/// Initializes DeleteUploadData parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-(\d+)-(\d+)",
});
RequestParameters.Add("customDataSourceId", new Google.Apis.Discovery.Parameter
{
Name = "customDataSourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @".{22}",
});
}
}
/// List uploads to which the user has access.
/// Account Id for the upload to retrieve.
/// Web property Id for the upload to retrieve.
/// Custom data source Id for upload to retrieve.
/// Upload Id to retrieve.
public virtual GetRequest Get(string accountId, string webPropertyId, string customDataSourceId, string uploadId)
{
return new GetRequest(this.service, accountId, webPropertyId, customDataSourceId, uploadId);
}
/// List uploads to which the user has access.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string customDataSourceId, string uploadId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
CustomDataSourceId = customDataSourceId;
UploadId = uploadId;
InitParameters();
}
/// Account Id for the upload to retrieve.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property Id for the upload to retrieve.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Custom data source Id for upload to retrieve.
[Google.Apis.Util.RequestParameterAttribute("customDataSourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string CustomDataSourceId { get; private set; }
/// Upload Id to retrieve.
[Google.Apis.Util.RequestParameterAttribute("uploadId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string UploadId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-(\d+)-(\d+)",
});
RequestParameters.Add("customDataSourceId", new Google.Apis.Discovery.Parameter
{
Name = "customDataSourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @".{22}",
});
RequestParameters.Add("uploadId", new Google.Apis.Discovery.Parameter
{
Name = "uploadId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @".{22}",
});
}
}
/// List uploads to which the user has access.
/// Account Id for the uploads to retrieve.
/// Web property Id for the uploads to retrieve.
/// Custom data source Id for uploads to retrieve.
public virtual ListRequest List(string accountId, string webPropertyId, string customDataSourceId)
{
return new ListRequest(this.service, accountId, webPropertyId, customDataSourceId);
}
/// List uploads to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string customDataSourceId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
CustomDataSourceId = customDataSourceId;
InitParameters();
}
/// Account Id for the uploads to retrieve.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property Id for the uploads to retrieve.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Custom data source Id for uploads to retrieve.
[Google.Apis.Util.RequestParameterAttribute("customDataSourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string CustomDataSourceId { get; private set; }
/// The maximum number of uploads to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism along
/// with the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-(\d+)-(\d+)",
});
RequestParameters.Add("customDataSourceId", new Google.Apis.Discovery.Parameter
{
Name = "customDataSourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @".{22}",
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Upload data for a custom data source.
/// Account Id associated with the upload.
/// Web property UA-string associated with the upload.
/// Custom data source Id to which the data being uploaded belongs.
public virtual UploadDataRequest UploadData(string accountId, string webPropertyId, string customDataSourceId)
{
return new UploadDataRequest(this.service, accountId, webPropertyId, customDataSourceId);
}
/// Upload data for a custom data source.
public class UploadDataRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new UploadData request.
public UploadDataRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string customDataSourceId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
CustomDataSourceId = customDataSourceId;
InitParameters();
}
/// Account Id associated with the upload.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property UA-string associated with the upload.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Custom data source Id to which the data being uploaded belongs.
[Google.Apis.Util.RequestParameterAttribute("customDataSourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string CustomDataSourceId { get; private set; }
/// Gets the method name.
public override string MethodName => "uploadData";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads";
/// Initializes UploadData parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-\d+-\d+",
});
RequestParameters.Add("customDataSourceId", new Google.Apis.Discovery.Parameter
{
Name = "customDataSourceId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Upload data for a custom data source.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its current
/// position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is completed
///
///
/// - Caller is responsible for closing the
///
///
/// Account Id associated with the upload.
/// Web property UA-string associated with the upload.
/// Custom data source Id to which the data being uploaded belongs.
/// The stream to upload. See remarks for further information.
/// The content type of the stream to upload.
public virtual UploadDataMediaUpload UploadData(string accountId, string webPropertyId, string customDataSourceId, System.IO.Stream stream, string contentType)
{
return new UploadDataMediaUpload(service, accountId, webPropertyId, customDataSourceId, stream, contentType);
}
/// UploadData media upload which supports resumable upload.
public class UploadDataMediaUpload : Google.Apis.Upload.ResumableUpload
{
/// Data format for the response.
[Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable Alt { get; set; }
/// Data format for the response.
public enum AltEnum
{
/// Responses with Content-Type of application/json
[Google.Apis.Util.StringValueAttribute("json")]
Json = 0,
}
/// Selector specifying which fields to include in a partial response.
[Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Fields { get; set; }
///
/// API key. Your API key identifies your project and provides you with API access, quota, and reports.
/// Required unless you provide an OAuth 2.0 token.
///
[Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)]
public virtual string Key { get; set; }
/// OAuth 2.0 token for the current user.
[Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)]
public virtual string OauthToken { get; set; }
/// Returns response with indentations and line breaks.
[Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable PrettyPrint { get; set; }
///
/// An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
///
[Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)]
public virtual string QuotaUser { get; set; }
/// Deprecated. Please use quotaUser instead.
[Google.Apis.Util.RequestParameterAttribute("userIp", Google.Apis.Util.RequestParameterType.Query)]
public virtual string UserIp { get; set; }
/// Account Id associated with the upload.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property UA-string associated with the upload.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Custom data source Id to which the data being uploaded belongs.
[Google.Apis.Util.RequestParameterAttribute("customDataSourceId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string CustomDataSourceId { get; private set; }
/// Constructs a new UploadData media upload instance.
///
/// Considerations regarding :
///
/// -
///
/// If is seekable, then the stream position will be reset to 0 before
/// reading commences. If is not seekable, then it will be read from its
/// current position
///
///
/// -
///
/// Caller is responsible for maintaining the open until the upload is
/// completed
///
///
/// -
/// Caller is responsible for closing the
///
///
///
public UploadDataMediaUpload(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string customDataSourceId, System.IO.Stream stream, string contentType)
: base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads"), "POST", stream, contentType)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
CustomDataSourceId = customDataSourceId;
}
}
}
/// Gets the WebPropertyAdWordsLinks resource.
public virtual WebPropertyAdWordsLinksResource WebPropertyAdWordsLinks { get; }
/// The "webPropertyAdWordsLinks" collection of methods.
public class WebPropertyAdWordsLinksResource
{
private const string Resource = "webPropertyAdWordsLinks";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public WebPropertyAdWordsLinksResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Deletes a web property-Google Ads link.
/// ID of the account which the given web property belongs to.
/// Web property ID to delete the Google Ads link for.
/// Web property Google Ads link ID.
public virtual DeleteRequest Delete(string accountId, string webPropertyId, string webPropertyAdWordsLinkId)
{
return new DeleteRequest(this.service, accountId, webPropertyId, webPropertyAdWordsLinkId);
}
/// Deletes a web property-Google Ads link.
public class DeleteRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string webPropertyAdWordsLinkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
WebPropertyAdWordsLinkId = webPropertyAdWordsLinkId;
InitParameters();
}
/// ID of the account which the given web property belongs to.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to delete the Google Ads link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Web property Google Ads link ID.
[Google.Apis.Util.RequestParameterAttribute("webPropertyAdWordsLinkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyAdWordsLinkId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyAdWordsLinkId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyAdWordsLinkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Returns a web property-Google Ads link to which the user has access.
/// ID of the account which the given web property belongs to.
/// Web property ID to retrieve the Google Ads link for.
/// Web property-Google Ads link ID.
public virtual GetRequest Get(string accountId, string webPropertyId, string webPropertyAdWordsLinkId)
{
return new GetRequest(this.service, accountId, webPropertyId, webPropertyAdWordsLinkId);
}
/// Returns a web property-Google Ads link to which the user has access.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string webPropertyAdWordsLinkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
WebPropertyAdWordsLinkId = webPropertyAdWordsLinkId;
InitParameters();
}
/// ID of the account which the given web property belongs to.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to retrieve the Google Ads link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Web property-Google Ads link ID.
[Google.Apis.Util.RequestParameterAttribute("webPropertyAdWordsLinkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyAdWordsLinkId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyAdWordsLinkId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyAdWordsLinkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Creates a webProperty-Google Ads link.
/// The body of the request.
/// ID of the Google Analytics account to create the link for.
/// Web property ID to create the link for.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.EntityAdWordsLink body, string accountId, string webPropertyId)
{
return new InsertRequest(this.service, body, accountId, webPropertyId);
}
/// Creates a webProperty-Google Ads link.
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.EntityAdWordsLink body, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
Body = body;
InitParameters();
}
/// ID of the Google Analytics account to create the link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to create the link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.EntityAdWordsLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists webProperty-Google Ads links for a given web property.
/// ID of the account which the given web property belongs to.
/// Web property ID to retrieve the Google Ads links for.
public virtual ListRequest List(string accountId, string webPropertyId)
{
return new ListRequest(this.service, accountId, webPropertyId);
}
/// Lists webProperty-Google Ads links for a given web property.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
InitParameters();
}
/// ID of the account which the given web property belongs to.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to retrieve the Google Ads links for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The maximum number of webProperty-Google Ads links to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first webProperty-Google Ads link to retrieve. Use this parameter as a pagination
/// mechanism along with the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"\d+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
///
/// Updates an existing webProperty-Google Ads link. This method supports patch semantics.
///
/// The body of the request.
/// ID of the account which the given web property belongs to.
/// Web property ID to retrieve the Google Ads link for.
/// Web property-Google Ads link ID.
public virtual PatchRequest Patch(Google.Apis.Analytics.v3.Data.EntityAdWordsLink body, string accountId, string webPropertyId, string webPropertyAdWordsLinkId)
{
return new PatchRequest(this.service, body, accountId, webPropertyId, webPropertyAdWordsLinkId);
}
///
/// Updates an existing webProperty-Google Ads link. This method supports patch semantics.
///
public class PatchRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.EntityAdWordsLink body, string accountId, string webPropertyId, string webPropertyAdWordsLinkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
WebPropertyAdWordsLinkId = webPropertyAdWordsLinkId;
Body = body;
InitParameters();
}
/// ID of the account which the given web property belongs to.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to retrieve the Google Ads link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Web property-Google Ads link ID.
[Google.Apis.Util.RequestParameterAttribute("webPropertyAdWordsLinkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyAdWordsLinkId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.EntityAdWordsLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyAdWordsLinkId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyAdWordsLinkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing webProperty-Google Ads link.
/// The body of the request.
/// ID of the account which the given web property belongs to.
/// Web property ID to retrieve the Google Ads link for.
/// Web property-Google Ads link ID.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.EntityAdWordsLink body, string accountId, string webPropertyId, string webPropertyAdWordsLinkId)
{
return new UpdateRequest(this.service, body, accountId, webPropertyId, webPropertyAdWordsLinkId);
}
/// Updates an existing webProperty-Google Ads link.
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.EntityAdWordsLink body, string accountId, string webPropertyId, string webPropertyAdWordsLinkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
WebPropertyAdWordsLinkId = webPropertyAdWordsLinkId;
Body = body;
InitParameters();
}
/// ID of the account which the given web property belongs to.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to retrieve the Google Ads link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Web property-Google Ads link ID.
[Google.Apis.Util.RequestParameterAttribute("webPropertyAdWordsLinkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyAdWordsLinkId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.EntityAdWordsLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyAdWordsLinkId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyAdWordsLinkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the Webproperties resource.
public virtual WebpropertiesResource Webproperties { get; }
/// The "webproperties" collection of methods.
public class WebpropertiesResource
{
private const string Resource = "webproperties";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public WebpropertiesResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Gets a web property to which the user has access.
/// Account ID to retrieve the web property for.
/// ID to retrieve the web property for.
public virtual GetRequest Get(string accountId, string webPropertyId)
{
return new GetRequest(this.service, accountId, webPropertyId);
}
/// Gets a web property to which the user has access.
public class GetRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Get request.
public GetRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
InitParameters();
}
/// Account ID to retrieve the web property for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// ID to retrieve the web property for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Gets the method name.
public override string MethodName => "get";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}";
/// Initializes Get parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"[0-9]+",
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"UA-[0-9]+-[0-9]+",
});
}
}
///
/// Create a new property if the account has fewer than 20 properties. Web properties are visible in the
/// Google Analytics interface only if they have at least one profile.
///
/// The body of the request.
/// Account ID to create the web property for.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.Webproperty body, string accountId)
{
return new InsertRequest(this.service, body, accountId);
}
///
/// Create a new property if the account has fewer than 20 properties. Web properties are visible in the
/// Google Analytics interface only if they have at least one profile.
///
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Webproperty body, string accountId) : base(service)
{
AccountId = accountId;
Body = body;
InitParameters();
}
/// Account ID to create the web property for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Webproperty Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists web properties to which the user has access.
///
/// Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers
/// to all the accounts that user has access to.
///
public virtual ListRequest List(string accountId)
{
return new ListRequest(this.service, accountId);
}
/// Lists web properties to which the user has access.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId) : base(service)
{
AccountId = accountId;
InitParameters();
}
///
/// Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which
/// refers to all the accounts that user has access to.
///
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// The maximum number of web properties to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with
/// the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing web property. This method supports patch semantics.
/// The body of the request.
/// Account ID to which the web property belongs
/// Web property ID
public virtual PatchRequest Patch(Google.Apis.Analytics.v3.Data.Webproperty body, string accountId, string webPropertyId)
{
return new PatchRequest(this.service, body, accountId, webPropertyId);
}
/// Updates an existing web property. This method supports patch semantics.
public class PatchRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Patch request.
public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Webproperty body, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
Body = body;
InitParameters();
}
/// Account ID to which the web property belongs
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Webproperty Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "patch";
/// Gets the HTTP method.
public override string HttpMethod => "PATCH";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}";
/// Initializes Patch parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates an existing web property.
/// The body of the request.
/// Account ID to which the web property belongs
/// Web property ID
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.Webproperty body, string accountId, string webPropertyId)
{
return new UpdateRequest(this.service, body, accountId, webPropertyId);
}
/// Updates an existing web property.
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.Webproperty body, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
Body = body;
InitParameters();
}
/// Account ID to which the web property belongs
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.Webproperty Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
/// Gets the WebpropertyUserLinks resource.
public virtual WebpropertyUserLinksResource WebpropertyUserLinks { get; }
/// The "webpropertyUserLinks" collection of methods.
public class WebpropertyUserLinksResource
{
private const string Resource = "webpropertyUserLinks";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public WebpropertyUserLinksResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Removes a user from the given web property.
/// Account ID to delete the user link for.
/// Web Property ID to delete the user link for.
/// Link ID to delete the user link for.
public virtual DeleteRequest Delete(string accountId, string webPropertyId, string linkId)
{
return new DeleteRequest(this.service, accountId, webPropertyId, linkId);
}
/// Removes a user from the given web property.
public class DeleteRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Delete request.
public DeleteRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId, string linkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
LinkId = linkId;
InitParameters();
}
/// Account ID to delete the user link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web Property ID to delete the user link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Link ID to delete the user link for.
[Google.Apis.Util.RequestParameterAttribute("linkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string LinkId { get; private set; }
/// Gets the method name.
public override string MethodName => "delete";
/// Gets the HTTP method.
public override string HttpMethod => "DELETE";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}";
/// Initializes Delete parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("linkId", new Google.Apis.Discovery.Parameter
{
Name = "linkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Adds a new user to the given web property.
/// The body of the request.
/// Account ID to create the user link for.
/// Web Property ID to create the user link for.
public virtual InsertRequest Insert(Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId, string webPropertyId)
{
return new InsertRequest(this.service, body, accountId, webPropertyId);
}
/// Adds a new user to the given web property.
public class InsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Insert request.
public InsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
Body = body;
InitParameters();
}
/// Account ID to create the user link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web Property ID to create the user link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.EntityUserLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "insert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks";
/// Initializes Insert parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
/// Lists webProperty-user links for a given web property.
/// Account ID which the given web property belongs to.
///
/// Web Property ID for the webProperty-user links to retrieve. Can either be a specific web property ID or
/// '~all', which refers to all the web properties that user has access to.
///
public virtual ListRequest List(string accountId, string webPropertyId)
{
return new ListRequest(this.service, accountId, webPropertyId);
}
/// Lists webProperty-user links for a given web property.
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string accountId, string webPropertyId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
InitParameters();
}
/// Account ID which the given web property belongs to.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
///
/// Web Property ID for the webProperty-user links to retrieve. Can either be a specific web property ID
/// or '~all', which refers to all the web properties that user has access to.
///
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// The maximum number of webProperty-user Links to include in this response.
[Google.Apis.Util.RequestParameterAttribute("max-results", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable MaxResults { get; set; }
///
/// An index of the first webProperty-user link to retrieve. Use this parameter as a pagination
/// mechanism along with the max-results parameter.
///
[Google.Apis.Util.RequestParameterAttribute("start-index", Google.Apis.Util.RequestParameterType.Query)]
public virtual System.Nullable StartIndex { get; set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("max-results", new Google.Apis.Discovery.Parameter
{
Name = "max-results",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("start-index", new Google.Apis.Discovery.Parameter
{
Name = "start-index",
IsRequired = false,
ParameterType = "query",
DefaultValue = null,
Pattern = null,
});
}
}
/// Updates permissions for an existing user on the given web property.
/// The body of the request.
/// Account ID to update the account-user link for.
/// Web property ID to update the account-user link for.
/// Link ID to update the account-user link for.
public virtual UpdateRequest Update(Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId, string webPropertyId, string linkId)
{
return new UpdateRequest(this.service, body, accountId, webPropertyId, linkId);
}
/// Updates permissions for an existing user on the given web property.
public class UpdateRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Update request.
public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.EntityUserLink body, string accountId, string webPropertyId, string linkId) : base(service)
{
AccountId = accountId;
WebPropertyId = webPropertyId;
LinkId = linkId;
Body = body;
InitParameters();
}
/// Account ID to update the account-user link for.
[Google.Apis.Util.RequestParameterAttribute("accountId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string AccountId { get; private set; }
/// Web property ID to update the account-user link for.
[Google.Apis.Util.RequestParameterAttribute("webPropertyId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string WebPropertyId { get; private set; }
/// Link ID to update the account-user link for.
[Google.Apis.Util.RequestParameterAttribute("linkId", Google.Apis.Util.RequestParameterType.Path)]
public virtual string LinkId { get; private set; }
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.EntityUserLink Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "update";
/// Gets the HTTP method.
public override string HttpMethod => "PUT";
/// Gets the REST path.
public override string RestPath => "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}";
/// Initializes Update parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("accountId", new Google.Apis.Discovery.Parameter
{
Name = "accountId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("webPropertyId", new Google.Apis.Discovery.Parameter
{
Name = "webPropertyId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
RequestParameters.Add("linkId", new Google.Apis.Discovery.Parameter
{
Name = "linkId",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = null,
});
}
}
}
}
/// The "metadata" collection of methods.
public class MetadataResource
{
private const string Resource = "metadata";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public MetadataResource(Google.Apis.Services.IClientService service)
{
this.service = service;
Columns = new ColumnsResource(service);
}
/// Gets the Columns resource.
public virtual ColumnsResource Columns { get; }
/// The "columns" collection of methods.
public class ColumnsResource
{
private const string Resource = "columns";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ColumnsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Lists all columns for a report type
///
/// Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API
///
public virtual ListRequest List(string reportType)
{
return new ListRequest(this.service, reportType);
}
/// Lists all columns for a report type
public class ListRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new List request.
public ListRequest(Google.Apis.Services.IClientService service, string reportType) : base(service)
{
ReportType = reportType;
InitParameters();
}
///
/// Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API
///
[Google.Apis.Util.RequestParameterAttribute("reportType", Google.Apis.Util.RequestParameterType.Path)]
public virtual string ReportType { get; private set; }
/// Gets the method name.
public override string MethodName => "list";
/// Gets the HTTP method.
public override string HttpMethod => "GET";
/// Gets the REST path.
public override string RestPath => "metadata/{reportType}/columns";
/// Initializes List parameter list.
protected override void InitParameters()
{
base.InitParameters();
RequestParameters.Add("reportType", new Google.Apis.Discovery.Parameter
{
Name = "reportType",
IsRequired = true,
ParameterType = "path",
DefaultValue = null,
Pattern = @"ga",
});
}
}
}
}
/// The "provisioning" collection of methods.
public class ProvisioningResource
{
private const string Resource = "provisioning";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public ProvisioningResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Creates an account ticket.
/// The body of the request.
public virtual CreateAccountTicketRequest CreateAccountTicket(Google.Apis.Analytics.v3.Data.AccountTicket body)
{
return new CreateAccountTicketRequest(this.service, body);
}
/// Creates an account ticket.
public class CreateAccountTicketRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new CreateAccountTicket request.
public CreateAccountTicketRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.AccountTicket body) : base(service)
{
Body = body;
InitParameters();
}
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.AccountTicket Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "createAccountTicket";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "provisioning/createAccountTicket";
/// Initializes CreateAccountTicket parameter list.
protected override void InitParameters()
{
base.InitParameters();
}
}
/// Provision account.
/// The body of the request.
public virtual CreateAccountTreeRequest CreateAccountTree(Google.Apis.Analytics.v3.Data.AccountTreeRequest body)
{
return new CreateAccountTreeRequest(this.service, body);
}
/// Provision account.
public class CreateAccountTreeRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new CreateAccountTree request.
public CreateAccountTreeRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.AccountTreeRequest body) : base(service)
{
Body = body;
InitParameters();
}
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.AccountTreeRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "createAccountTree";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "provisioning/createAccountTree";
/// Initializes CreateAccountTree parameter list.
protected override void InitParameters()
{
base.InitParameters();
}
}
}
/// The "userDeletion" collection of methods.
public class UserDeletionResource
{
private const string Resource = "userDeletion";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public UserDeletionResource(Google.Apis.Services.IClientService service)
{
this.service = service;
UserDeletionRequest = new UserDeletionRequestResource(service);
}
/// Gets the UserDeletionRequest resource.
public virtual UserDeletionRequestResource UserDeletionRequest { get; }
/// The "userDeletionRequest" collection of methods.
public class UserDeletionRequestResource
{
private const string Resource = "userDeletionRequest";
/// The service which this resource belongs to.
private readonly Google.Apis.Services.IClientService service;
/// Constructs a new resource.
public UserDeletionRequestResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}
/// Insert or update a user deletion requests.
/// The body of the request.
public virtual UpsertRequest Upsert(Google.Apis.Analytics.v3.Data.UserDeletionRequest body)
{
return new UpsertRequest(this.service, body);
}
/// Insert or update a user deletion requests.
public class UpsertRequest : AnalyticsBaseServiceRequest
{
/// Constructs a new Upsert request.
public UpsertRequest(Google.Apis.Services.IClientService service, Google.Apis.Analytics.v3.Data.UserDeletionRequest body) : base(service)
{
Body = body;
InitParameters();
}
/// Gets or sets the body of this request.
Google.Apis.Analytics.v3.Data.UserDeletionRequest Body { get; set; }
/// Returns the body of the request.
protected override object GetBody() => Body;
/// Gets the method name.
public override string MethodName => "upsert";
/// Gets the HTTP method.
public override string HttpMethod => "POST";
/// Gets the REST path.
public override string RestPath => "userDeletion/userDeletionRequests:upsert";
/// Initializes Upsert parameter list.
protected override void InitParameters()
{
base.InitParameters();
}
}
}
}
}
namespace Google.Apis.Analytics.v3.Data
{
/// JSON template for Analytics account entry.
public class Account : Google.Apis.Requests.IDirectResponseSchema
{
/// Child link for an account entry. Points to the list of web properties for this account.
[Newtonsoft.Json.JsonPropertyAttribute("childLink")]
public virtual ChildLinkData ChildLink { get; set; }
/// Time the account was created.
[Newtonsoft.Json.JsonPropertyAttribute("created")]
public virtual string CreatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreatedDateTimeOffset instead.")]
public virtual System.DateTime? Created
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Account ID.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Resource type for Analytics account.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Account name.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Permissions the user has for this account.
[Newtonsoft.Json.JsonPropertyAttribute("permissions")]
public virtual PermissionsData Permissions { get; set; }
/// Link for this account.
[Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
public virtual string SelfLink { get; set; }
/// Indicates whether this account is starred or not.
[Newtonsoft.Json.JsonPropertyAttribute("starred")]
public virtual System.Nullable Starred { get; set; }
/// Time the account was last modified.
[Newtonsoft.Json.JsonPropertyAttribute("updated")]
public virtual string UpdatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdatedDateTimeOffset instead.")]
public virtual System.DateTime? Updated
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// The ETag of the item.
public virtual string ETag { get; set; }
/// Child link for an account entry. Points to the list of web properties for this account.
public class ChildLinkData
{
/// Link to the list of web properties for this account.
[Newtonsoft.Json.JsonPropertyAttribute("href")]
public virtual string Href { get; set; }
/// Type of the child link. Its value is "analytics#webproperties".
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
}
/// Permissions the user has for this account.
public class PermissionsData
{
///
/// All the permissions that the user has for this account. These include any implied permissions (e.g.,
/// EDIT implies VIEW).
///
[Newtonsoft.Json.JsonPropertyAttribute("effective")]
public virtual System.Collections.Generic.IList Effective { get; set; }
}
}
/// JSON template for a linked account.
public class AccountRef : Google.Apis.Requests.IDirectResponseSchema
{
/// Link for this account.
[Newtonsoft.Json.JsonPropertyAttribute("href")]
public virtual string Href { get; set; }
/// Account ID.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Analytics account reference.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Account name.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// An AccountSummary collection lists a summary of accounts, properties and views (profiles) to which the user has
/// access. Each resource in the collection corresponds to a single AccountSummary.
///
public class AccountSummaries : Google.Apis.Requests.IDirectResponseSchema
{
/// A list of AccountSummaries.
[Newtonsoft.Json.JsonPropertyAttribute("items")]
public virtual System.Collections.Generic.IList Items { get; set; }
///
/// The maximum number of resources the response can contain, regardless of the actual number of resources
/// returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the
/// max-results query parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("itemsPerPage")]
public virtual System.Nullable ItemsPerPage { get; set; }
/// Collection type.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Link to next page for this AccountSummary collection.
[Newtonsoft.Json.JsonPropertyAttribute("nextLink")]
public virtual string NextLink { get; set; }
/// Link to previous page for this AccountSummary collection.
[Newtonsoft.Json.JsonPropertyAttribute("previousLink")]
public virtual string PreviousLink { get; set; }
///
/// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query
/// parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("startIndex")]
public virtual System.Nullable StartIndex { get; set; }
///
/// The total number of results for the query, regardless of the number of results in the response.
///
[Newtonsoft.Json.JsonPropertyAttribute("totalResults")]
public virtual System.Nullable TotalResults { get; set; }
/// Email ID of the authenticated user
[Newtonsoft.Json.JsonPropertyAttribute("username")]
public virtual string Username { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// JSON template for an Analytics AccountSummary. An AccountSummary is a lightweight tree comprised of
/// properties/profiles.
///
public class AccountSummary : Google.Apis.Requests.IDirectResponseSchema
{
/// Account ID.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Resource type for Analytics AccountSummary.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Account name.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Indicates whether this account is starred or not.
[Newtonsoft.Json.JsonPropertyAttribute("starred")]
public virtual System.Nullable Starred { get; set; }
/// List of web properties under this account.
[Newtonsoft.Json.JsonPropertyAttribute("webProperties")]
public virtual System.Collections.Generic.IList WebProperties { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// JSON template for an Analytics account ticket. The account ticket consists of the ticket ID and the basic
/// information for the account, property and profile.
///
public class AccountTicket : Google.Apis.Requests.IDirectResponseSchema
{
/// Account for this ticket.
[Newtonsoft.Json.JsonPropertyAttribute("account")]
public virtual Account Account { get; set; }
/// Account ticket ID used to access the account ticket.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Resource type for account ticket.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// View (Profile) for the account.
[Newtonsoft.Json.JsonPropertyAttribute("profile")]
public virtual Profile Profile { get; set; }
///
/// Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in APIs
/// console as a callback URL.
///
[Newtonsoft.Json.JsonPropertyAttribute("redirectUri")]
public virtual string RedirectUri { get; set; }
/// Web property for the account.
[Newtonsoft.Json.JsonPropertyAttribute("webproperty")]
public virtual Webproperty Webproperty { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// JSON template for an Analytics account tree requests. The account tree request is used in the provisioning api
/// to create an account, property, and view (profile). It contains the basic information required to make these
/// fields.
///
public class AccountTreeRequest : Google.Apis.Requests.IDirectResponseSchema
{
[Newtonsoft.Json.JsonPropertyAttribute("accountName")]
public virtual string AccountName { get; set; }
/// Resource type for account ticket.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("profileName")]
public virtual string ProfileName { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("timezone")]
public virtual string Timezone { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("webpropertyName")]
public virtual string WebpropertyName { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("websiteUrl")]
public virtual string WebsiteUrl { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// JSON template for an Analytics account tree response. The account tree response is used in the provisioning api
/// to return the result of creating an account, property, and view (profile).
///
public class AccountTreeResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// The account created.
[Newtonsoft.Json.JsonPropertyAttribute("account")]
public virtual Account Account { get; set; }
/// Resource type for account ticket.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// View (Profile) for the account.
[Newtonsoft.Json.JsonPropertyAttribute("profile")]
public virtual Profile Profile { get; set; }
/// Web property for the account.
[Newtonsoft.Json.JsonPropertyAttribute("webproperty")]
public virtual Webproperty Webproperty { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// An account collection provides a list of Analytics accounts to which a user has access. The account collection
/// is the entry point to all management information. Each resource in the collection corresponds to a single
/// Analytics account.
///
public class Accounts : Google.Apis.Requests.IDirectResponseSchema
{
/// A list of accounts.
[Newtonsoft.Json.JsonPropertyAttribute("items")]
public virtual System.Collections.Generic.IList Items { get; set; }
///
/// The maximum number of entries the response can contain, regardless of the actual number of entries returned.
/// Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results
/// query parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("itemsPerPage")]
public virtual System.Nullable ItemsPerPage { get; set; }
/// Collection type.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Next link for this account collection.
[Newtonsoft.Json.JsonPropertyAttribute("nextLink")]
public virtual string NextLink { get; set; }
/// Previous link for this account collection.
[Newtonsoft.Json.JsonPropertyAttribute("previousLink")]
public virtual string PreviousLink { get; set; }
///
/// The starting index of the entries, which is 1 by default or otherwise specified by the start-index query
/// parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("startIndex")]
public virtual System.Nullable StartIndex { get; set; }
///
/// The total number of results for the query, regardless of the number of results in the response.
///
[Newtonsoft.Json.JsonPropertyAttribute("totalResults")]
public virtual System.Nullable TotalResults { get; set; }
/// Email ID of the authenticated user
[Newtonsoft.Json.JsonPropertyAttribute("username")]
public virtual string Username { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// JSON template for an Google Ads account.
public class AdWordsAccount : Google.Apis.Requests.IDirectResponseSchema
{
///
/// True if auto-tagging is enabled on the Google Ads account. Read-only after the insert operation.
///
[Newtonsoft.Json.JsonPropertyAttribute("autoTaggingEnabled")]
public virtual System.Nullable AutoTaggingEnabled { get; set; }
/// Customer ID. This field is required when creating a Google Ads link.
[Newtonsoft.Json.JsonPropertyAttribute("customerId")]
public virtual string CustomerId { get; set; }
/// Resource type for Google Ads account.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Request template for the delete upload data request.
public class AnalyticsDataimportDeleteUploadDataRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// A list of upload UIDs.
[Newtonsoft.Json.JsonPropertyAttribute("customDataImportUids")]
public virtual System.Collections.Generic.IList CustomDataImportUids { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// JSON template for a metadata column.
public class Column : Google.Apis.Requests.IDirectResponseSchema
{
/// Map of attribute name and value for this column.
[Newtonsoft.Json.JsonPropertyAttribute("attributes")]
public virtual System.Collections.Generic.IDictionary Attributes { get; set; }
/// Column id.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Resource type for Analytics column.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Lists columns (dimensions and metrics) for a particular report type.
public class Columns : Google.Apis.Requests.IDirectResponseSchema
{
/// List of attributes names returned by columns.
[Newtonsoft.Json.JsonPropertyAttribute("attributeNames")]
public virtual System.Collections.Generic.IList AttributeNames { get; set; }
///
/// Etag of collection. This etag can be compared with the last response etag to check if response has changed.
///
[Newtonsoft.Json.JsonPropertyAttribute("etag")]
public virtual string ETag { get; set; }
/// List of columns for a report type.
[Newtonsoft.Json.JsonPropertyAttribute("items")]
public virtual System.Collections.Generic.IList Items { get; set; }
/// Collection type.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Total number of columns returned in the response.
[Newtonsoft.Json.JsonPropertyAttribute("totalResults")]
public virtual System.Nullable TotalResults { get; set; }
}
/// JSON template for an Analytics custom data source.
public class CustomDataSource : Google.Apis.Requests.IDirectResponseSchema
{
/// Account ID to which this custom data source belongs.
[Newtonsoft.Json.JsonPropertyAttribute("accountId")]
public virtual string AccountId { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("childLink")]
public virtual ChildLinkData ChildLink { get; set; }
/// Time this custom data source was created.
[Newtonsoft.Json.JsonPropertyAttribute("created")]
public virtual string CreatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreatedDateTimeOffset instead.")]
public virtual System.DateTime? Created
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Description of custom data source.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
/// Custom data source ID.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("importBehavior")]
public virtual string ImportBehavior { get; set; }
/// Resource type for Analytics custom data source.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Name of this custom data source.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Parent link for this custom data source. Points to the web property to which this custom data source
/// belongs.
///
[Newtonsoft.Json.JsonPropertyAttribute("parentLink")]
public virtual ParentLinkData ParentLink { get; set; }
/// IDs of views (profiles) linked to the custom data source.
[Newtonsoft.Json.JsonPropertyAttribute("profilesLinked")]
public virtual System.Collections.Generic.IList ProfilesLinked { get; set; }
/// Collection of schema headers of the custom data source.
[Newtonsoft.Json.JsonPropertyAttribute("schema")]
public virtual System.Collections.Generic.IList Schema { get; set; }
/// Link for this Analytics custom data source.
[Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
public virtual string SelfLink { get; set; }
/// Type of the custom data source.
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
/// Time this custom data source was last modified.
[Newtonsoft.Json.JsonPropertyAttribute("updated")]
public virtual string UpdatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdatedDateTimeOffset instead.")]
public virtual System.DateTime? Updated
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Upload type of the custom data source.
[Newtonsoft.Json.JsonPropertyAttribute("uploadType")]
public virtual string UploadType { get; set; }
/// Web property ID of the form UA-XXXXX-YY to which this custom data source belongs.
[Newtonsoft.Json.JsonPropertyAttribute("webPropertyId")]
public virtual string WebPropertyId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
public class ChildLinkData
{
///
/// Link to the list of daily uploads for this custom data source. Link to the list of uploads for this
/// custom data source.
///
[Newtonsoft.Json.JsonPropertyAttribute("href")]
public virtual string Href { get; set; }
/// Value is "analytics#dailyUploads". Value is "analytics#uploads".
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
}
///
/// Parent link for this custom data source. Points to the web property to which this custom data source
/// belongs.
///
public class ParentLinkData
{
/// Link to the web property to which this custom data source belongs.
[Newtonsoft.Json.JsonPropertyAttribute("href")]
public virtual string Href { get; set; }
/// Value is "analytics#webproperty".
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
}
}
///
/// Lists Analytics custom data sources to which the user has access. Each resource in the collection corresponds to
/// a single Analytics custom data source.
///
public class CustomDataSources : Google.Apis.Requests.IDirectResponseSchema
{
/// Collection of custom data sources.
[Newtonsoft.Json.JsonPropertyAttribute("items")]
public virtual System.Collections.Generic.IList Items { get; set; }
///
/// The maximum number of resources the response can contain, regardless of the actual number of resources
/// returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the
/// max-results query parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("itemsPerPage")]
public virtual System.Nullable ItemsPerPage { get; set; }
/// Collection type.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Link to next page for this custom data source collection.
[Newtonsoft.Json.JsonPropertyAttribute("nextLink")]
public virtual string NextLink { get; set; }
/// Link to previous page for this custom data source collection.
[Newtonsoft.Json.JsonPropertyAttribute("previousLink")]
public virtual string PreviousLink { get; set; }
///
/// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query
/// parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("startIndex")]
public virtual System.Nullable StartIndex { get; set; }
///
/// The total number of results for the query, regardless of the number of results in the response.
///
[Newtonsoft.Json.JsonPropertyAttribute("totalResults")]
public virtual System.Nullable TotalResults { get; set; }
/// Email ID of the authenticated user
[Newtonsoft.Json.JsonPropertyAttribute("username")]
public virtual string Username { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// JSON template for Analytics Custom Dimension.
public class CustomDimension : Google.Apis.Requests.IDirectResponseSchema
{
/// Account ID.
[Newtonsoft.Json.JsonPropertyAttribute("accountId")]
public virtual string AccountId { get; set; }
/// Boolean indicating whether the custom dimension is active.
[Newtonsoft.Json.JsonPropertyAttribute("active")]
public virtual System.Nullable Active { get; set; }
/// Time the custom dimension was created.
[Newtonsoft.Json.JsonPropertyAttribute("created")]
public virtual string CreatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreatedDateTimeOffset instead.")]
public virtual System.DateTime? Created
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Custom dimension ID.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Index of the custom dimension.
[Newtonsoft.Json.JsonPropertyAttribute("index")]
public virtual System.Nullable Index { get; set; }
///
/// Kind value for a custom dimension. Set to "analytics#customDimension". It is a read-only field.
///
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Name of the custom dimension.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Parent link for the custom dimension. Points to the property to which the custom dimension belongs.
///
[Newtonsoft.Json.JsonPropertyAttribute("parentLink")]
public virtual ParentLinkData ParentLink { get; set; }
/// Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
[Newtonsoft.Json.JsonPropertyAttribute("scope")]
public virtual string Scope { get; set; }
/// Link for the custom dimension
[Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
public virtual string SelfLink { get; set; }
/// Time the custom dimension was last modified.
[Newtonsoft.Json.JsonPropertyAttribute("updated")]
public virtual string UpdatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdatedDateTimeOffset instead.")]
public virtual System.DateTime? Updated
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Property ID.
[Newtonsoft.Json.JsonPropertyAttribute("webPropertyId")]
public virtual string WebPropertyId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
///
/// Parent link for the custom dimension. Points to the property to which the custom dimension belongs.
///
public class ParentLinkData
{
/// Link to the property to which the custom dimension belongs.
[Newtonsoft.Json.JsonPropertyAttribute("href")]
public virtual string Href { get; set; }
/// Type of the parent link. Set to "analytics#webproperty".
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
}
}
///
/// A custom dimension collection lists Analytics custom dimensions to which the user has access. Each resource in
/// the collection corresponds to a single Analytics custom dimension.
///
public class CustomDimensions : Google.Apis.Requests.IDirectResponseSchema
{
/// Collection of custom dimensions.
[Newtonsoft.Json.JsonPropertyAttribute("items")]
public virtual System.Collections.Generic.IList Items { get; set; }
///
/// The maximum number of resources the response can contain, regardless of the actual number of resources
/// returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the
/// max-results query parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("itemsPerPage")]
public virtual System.Nullable ItemsPerPage { get; set; }
/// Collection type.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Link to next page for this custom dimension collection.
[Newtonsoft.Json.JsonPropertyAttribute("nextLink")]
public virtual string NextLink { get; set; }
/// Link to previous page for this custom dimension collection.
[Newtonsoft.Json.JsonPropertyAttribute("previousLink")]
public virtual string PreviousLink { get; set; }
///
/// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query
/// parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("startIndex")]
public virtual System.Nullable StartIndex { get; set; }
///
/// The total number of results for the query, regardless of the number of results in the response.
///
[Newtonsoft.Json.JsonPropertyAttribute("totalResults")]
public virtual System.Nullable TotalResults { get; set; }
/// Email ID of the authenticated user
[Newtonsoft.Json.JsonPropertyAttribute("username")]
public virtual string Username { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// JSON template for Analytics Custom Metric.
public class CustomMetric : Google.Apis.Requests.IDirectResponseSchema
{
/// Account ID.
[Newtonsoft.Json.JsonPropertyAttribute("accountId")]
public virtual string AccountId { get; set; }
/// Boolean indicating whether the custom metric is active.
[Newtonsoft.Json.JsonPropertyAttribute("active")]
public virtual System.Nullable Active { get; set; }
/// Time the custom metric was created.
[Newtonsoft.Json.JsonPropertyAttribute("created")]
public virtual string CreatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreatedDateTimeOffset instead.")]
public virtual System.DateTime? Created
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Custom metric ID.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Index of the custom metric.
[Newtonsoft.Json.JsonPropertyAttribute("index")]
public virtual System.Nullable Index { get; set; }
/// Kind value for a custom metric. Set to "analytics#customMetric". It is a read-only field.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Max value of custom metric.
[Newtonsoft.Json.JsonPropertyAttribute("max_value")]
public virtual string MaxValue { get; set; }
/// Min value of custom metric.
[Newtonsoft.Json.JsonPropertyAttribute("min_value")]
public virtual string MinValue { get; set; }
/// Name of the custom metric.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Parent link for the custom metric. Points to the property to which the custom metric belongs.
///
[Newtonsoft.Json.JsonPropertyAttribute("parentLink")]
public virtual ParentLinkData ParentLink { get; set; }
/// Scope of the custom metric: HIT or PRODUCT.
[Newtonsoft.Json.JsonPropertyAttribute("scope")]
public virtual string Scope { get; set; }
/// Link for the custom metric
[Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
public virtual string SelfLink { get; set; }
/// Data type of custom metric.
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
/// Time the custom metric was last modified.
[Newtonsoft.Json.JsonPropertyAttribute("updated")]
public virtual string UpdatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdatedDateTimeOffset instead.")]
public virtual System.DateTime? Updated
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Property ID.
[Newtonsoft.Json.JsonPropertyAttribute("webPropertyId")]
public virtual string WebPropertyId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
///
/// Parent link for the custom metric. Points to the property to which the custom metric belongs.
///
public class ParentLinkData
{
/// Link to the property to which the custom metric belongs.
[Newtonsoft.Json.JsonPropertyAttribute("href")]
public virtual string Href { get; set; }
/// Type of the parent link. Set to "analytics#webproperty".
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
}
}
///
/// A custom metric collection lists Analytics custom metrics to which the user has access. Each resource in the
/// collection corresponds to a single Analytics custom metric.
///
public class CustomMetrics : Google.Apis.Requests.IDirectResponseSchema
{
/// Collection of custom metrics.
[Newtonsoft.Json.JsonPropertyAttribute("items")]
public virtual System.Collections.Generic.IList Items { get; set; }
///
/// The maximum number of resources the response can contain, regardless of the actual number of resources
/// returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the
/// max-results query parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("itemsPerPage")]
public virtual System.Nullable ItemsPerPage { get; set; }
/// Collection type.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Link to next page for this custom metric collection.
[Newtonsoft.Json.JsonPropertyAttribute("nextLink")]
public virtual string NextLink { get; set; }
/// Link to previous page for this custom metric collection.
[Newtonsoft.Json.JsonPropertyAttribute("previousLink")]
public virtual string PreviousLink { get; set; }
///
/// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query
/// parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("startIndex")]
public virtual System.Nullable StartIndex { get; set; }
///
/// The total number of results for the query, regardless of the number of results in the response.
///
[Newtonsoft.Json.JsonPropertyAttribute("totalResults")]
public virtual System.Nullable TotalResults { get; set; }
/// Email ID of the authenticated user
[Newtonsoft.Json.JsonPropertyAttribute("username")]
public virtual string Username { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// JSON template for Analytics Entity Google Ads Link.
public class EntityAdWordsLink : Google.Apis.Requests.IDirectResponseSchema
{
///
/// A list of Google Ads client accounts. These cannot be MCC accounts. This field is required when creating a
/// Google Ads link. It cannot be empty.
///
[Newtonsoft.Json.JsonPropertyAttribute("adWordsAccounts")]
public virtual System.Collections.Generic.IList AdWordsAccounts { get; set; }
/// Web property being linked.
[Newtonsoft.Json.JsonPropertyAttribute("entity")]
public virtual EntityData Entity { get; set; }
/// Entity Google Ads link ID
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Resource type for entity Google Ads link.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Name of the link. This field is required when creating a Google Ads link.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// IDs of linked Views (Profiles) represented as strings.
[Newtonsoft.Json.JsonPropertyAttribute("profileIds")]
public virtual System.Collections.Generic.IList ProfileIds { get; set; }
/// URL link for this Google Analytics - Google Ads link.
[Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
public virtual string SelfLink { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
/// Web property being linked.
public class EntityData
{
[Newtonsoft.Json.JsonPropertyAttribute("webPropertyRef")]
public virtual WebPropertyRef WebPropertyRef { get; set; }
}
}
///
/// An entity Google Ads link collection provides a list of GA-Google Ads links Each resource in this collection
/// corresponds to a single link.
///
public class EntityAdWordsLinks : Google.Apis.Requests.IDirectResponseSchema
{
/// A list of entity Google Ads links.
[Newtonsoft.Json.JsonPropertyAttribute("items")]
public virtual System.Collections.Generic.IList Items { get; set; }
///
/// The maximum number of entries the response can contain, regardless of the actual number of entries returned.
/// Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results
/// query parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("itemsPerPage")]
public virtual System.Nullable ItemsPerPage { get; set; }
/// Collection type.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Next link for this Google Ads link collection.
[Newtonsoft.Json.JsonPropertyAttribute("nextLink")]
public virtual string NextLink { get; set; }
/// Previous link for this Google Ads link collection.
[Newtonsoft.Json.JsonPropertyAttribute("previousLink")]
public virtual string PreviousLink { get; set; }
///
/// The starting index of the entries, which is 1 by default or otherwise specified by the start-index query
/// parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("startIndex")]
public virtual System.Nullable StartIndex { get; set; }
///
/// The total number of results for the query, regardless of the number of results in the response.
///
[Newtonsoft.Json.JsonPropertyAttribute("totalResults")]
public virtual System.Nullable TotalResults { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// JSON template for an Analytics Entity-User Link. Returns permissions that a user has for an entity.
///
public class EntityUserLink : Google.Apis.Requests.IDirectResponseSchema
{
/// Entity for this link. It can be an account, a web property, or a view (profile).
[Newtonsoft.Json.JsonPropertyAttribute("entity")]
public virtual EntityData Entity { get; set; }
/// Entity user link ID
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Resource type for entity user link.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Permissions the user has for this entity.
[Newtonsoft.Json.JsonPropertyAttribute("permissions")]
public virtual PermissionsData Permissions { get; set; }
/// Self link for this resource.
[Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
public virtual string SelfLink { get; set; }
/// User reference.
[Newtonsoft.Json.JsonPropertyAttribute("userRef")]
public virtual UserRef UserRef { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
/// Entity for this link. It can be an account, a web property, or a view (profile).
public class EntityData
{
/// Account for this link.
[Newtonsoft.Json.JsonPropertyAttribute("accountRef")]
public virtual AccountRef AccountRef { get; set; }
/// View (Profile) for this link.
[Newtonsoft.Json.JsonPropertyAttribute("profileRef")]
public virtual ProfileRef ProfileRef { get; set; }
/// Web property for this link.
[Newtonsoft.Json.JsonPropertyAttribute("webPropertyRef")]
public virtual WebPropertyRef WebPropertyRef { get; set; }
}
/// Permissions the user has for this entity.
public class PermissionsData
{
///
/// Effective permissions represent all the permissions that a user has for this entity. These include any
/// implied permissions (e.g., EDIT implies VIEW) or inherited permissions from the parent entity. Effective
/// permissions are read-only.
///
[Newtonsoft.Json.JsonPropertyAttribute("effective")]
public virtual System.Collections.Generic.IList Effective { get; set; }
///
/// Permissions that a user has been assigned at this very level. Does not include any implied or inherited
/// permissions. Local permissions are modifiable.
///
[Newtonsoft.Json.JsonPropertyAttribute("local")]
public virtual System.Collections.Generic.IList Local { get; set; }
}
}
///
/// An entity user link collection provides a list of Analytics ACL links Each resource in this collection
/// corresponds to a single link.
///
public class EntityUserLinks : Google.Apis.Requests.IDirectResponseSchema
{
/// A list of entity user links.
[Newtonsoft.Json.JsonPropertyAttribute("items")]
public virtual System.Collections.Generic.IList Items { get; set; }
///
/// The maximum number of entries the response can contain, regardless of the actual number of entries returned.
/// Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results
/// query parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("itemsPerPage")]
public virtual System.Nullable ItemsPerPage { get; set; }
/// Collection type.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Next link for this account collection.
[Newtonsoft.Json.JsonPropertyAttribute("nextLink")]
public virtual string NextLink { get; set; }
/// Previous link for this account collection.
[Newtonsoft.Json.JsonPropertyAttribute("previousLink")]
public virtual string PreviousLink { get; set; }
///
/// The starting index of the entries, which is 1 by default or otherwise specified by the start-index query
/// parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("startIndex")]
public virtual System.Nullable StartIndex { get; set; }
///
/// The total number of results for the query, regardless of the number of results in the response.
///
[Newtonsoft.Json.JsonPropertyAttribute("totalResults")]
public virtual System.Nullable TotalResults { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// JSON template for Analytics experiment resource.
public class Experiment : Google.Apis.Requests.IDirectResponseSchema
{
/// Account ID to which this experiment belongs. This field is read-only.
[Newtonsoft.Json.JsonPropertyAttribute("accountId")]
public virtual string AccountId { get; set; }
/// Time the experiment was created. This field is read-only.
[Newtonsoft.Json.JsonPropertyAttribute("created")]
public virtual string CreatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreatedDateTimeOffset instead.")]
public virtual System.DateTime? Created
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Notes about this experiment.
[Newtonsoft.Json.JsonPropertyAttribute("description")]
public virtual string Description { get; set; }
///
/// If true, the end user will be able to edit the experiment via the Google Analytics user interface.
///
[Newtonsoft.Json.JsonPropertyAttribute("editableInGaUi")]
public virtual System.Nullable EditableInGaUi { get; set; }
///
/// The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present
/// only if the experiment has ended. This field is read-only.
///
[Newtonsoft.Json.JsonPropertyAttribute("endTime")]
public virtual string EndTimeRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? EndTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(EndTimeRaw);
set => EndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")]
public virtual System.DateTime? EndTime
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(EndTimeRaw);
set => EndTimeRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
///
/// Boolean specifying whether to distribute traffic evenly across all variations. If the value is False,
/// content experiments follows the default behavior of adjusting traffic dynamically based on variation
/// performance. Optional -- defaults to False. This field may not be changed for an experiment whose status is
/// ENDED.
///
[Newtonsoft.Json.JsonPropertyAttribute("equalWeighting")]
public virtual System.Nullable EqualWeighting { get; set; }
/// Experiment ID. Required for patch and update. Disallowed for create.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
///
/// Internal ID for the web property to which this experiment belongs. This field is read-only.
///
[Newtonsoft.Json.JsonPropertyAttribute("internalWebPropertyId")]
public virtual string InternalWebPropertyId { get; set; }
/// Resource type for an Analytics experiment. This field is read-only.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
///
/// An integer number in [3, 90]. Specifies the minimum length of the experiment. Can be changed for a running
/// experiment. This field may not be changed for an experiments whose status is ENDED.
///
[Newtonsoft.Json.JsonPropertyAttribute("minimumExperimentLengthInDays")]
public virtual System.Nullable MinimumExperimentLengthInDays { get; set; }
///
/// Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is
/// required when creating an experiment.
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:adsenseAdsClicks",
/// "ga:adsenseAdsViewed", "ga:adsenseRevenue", "ga:bounces", "ga:pageviews", "ga:sessionDuration",
/// "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and
/// servingFramework is one of "REDIRECT" or "API".
///
[Newtonsoft.Json.JsonPropertyAttribute("objectiveMetric")]
public virtual string ObjectiveMetric { get; set; }
///
/// Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM".
/// Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status
/// is "RUNNING" or "ENDED".
///
[Newtonsoft.Json.JsonPropertyAttribute("optimizationType")]
public virtual string OptimizationType { get; set; }
///
/// Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
///
[Newtonsoft.Json.JsonPropertyAttribute("parentLink")]
public virtual ParentLinkData ParentLink { get; set; }
/// View (Profile) ID to which this experiment belongs. This field is read-only.
[Newtonsoft.Json.JsonPropertyAttribute("profileId")]
public virtual string ProfileId { get; set; }
///
/// Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED",
/// "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't
/// expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED
/// this field is set to STOPPED_BY_USER. This field is read-only.
///
[Newtonsoft.Json.JsonPropertyAttribute("reasonExperimentEnded")]
public virtual string ReasonExperimentEnded { get; set; }
///
/// Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not
/// be changed for an experiments whose status is ENDED.
///
[Newtonsoft.Json.JsonPropertyAttribute("rewriteVariationUrlsAsOriginal")]
public virtual System.Nullable RewriteVariationUrlsAsOriginal { get; set; }
/// Link for this experiment. This field is read-only.
[Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
public virtual string SelfLink { get; set; }
///
/// The framework used to serve the experiment variations and evaluate the results. One of: - REDIRECT: Google
/// Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the
/// results. - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the
/// caller is responsible for serving the selected variation. - EXTERNAL: The variations will be served
/// externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the
/// selected variation and evaluating the results.
///
[Newtonsoft.Json.JsonPropertyAttribute("servingFramework")]
public virtual string ServingFramework { get; set; }
/// The snippet of code to include on the control page(s). This field is read-only.
[Newtonsoft.Json.JsonPropertyAttribute("snippet")]
public virtual string Snippet { get; set; }
///
/// The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field
/// is present only if the experiment has started. This field is read-only.
///
[Newtonsoft.Json.JsonPropertyAttribute("startTime")]
public virtual string StartTimeRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? StartTimeDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(StartTimeRaw);
set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")]
public virtual System.DateTime? StartTime
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(StartTimeRaw);
set => StartTimeRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
///
/// Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created
/// in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment.
///
[Newtonsoft.Json.JsonPropertyAttribute("status")]
public virtual string Status { get; set; }
///
/// A floating-point number in (0, 1]. Specifies the fraction of the traffic that participates in the
/// experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose
/// status is ENDED.
///
[Newtonsoft.Json.JsonPropertyAttribute("trafficCoverage")]
public virtual System.Nullable TrafficCoverage { get; set; }
/// Time the experiment was last modified. This field is read-only.
[Newtonsoft.Json.JsonPropertyAttribute("updated")]
public virtual string UpdatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdatedDateTimeOffset instead.")]
public virtual System.DateTime? Updated
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
///
/// Array of variations. The first variation in the array is the original. The number of variations may not
/// change once an experiment is in the RUNNING state. At least two variations are required before status can be
/// set to RUNNING.
///
[Newtonsoft.Json.JsonPropertyAttribute("variations")]
public virtual System.Collections.Generic.IList Variations { get; set; }
///
/// Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field
/// is read-only.
///
[Newtonsoft.Json.JsonPropertyAttribute("webPropertyId")]
public virtual string WebPropertyId { get; set; }
///
/// A floating-point number in (0, 1). Specifies the necessary confidence level to choose a winner. This field
/// may not be changed for an experiments whose status is ENDED.
///
[Newtonsoft.Json.JsonPropertyAttribute("winnerConfidenceLevel")]
public virtual System.Nullable WinnerConfidenceLevel { get; set; }
///
/// Boolean specifying whether a winner has been found for this experiment. This field is read-only.
///
[Newtonsoft.Json.JsonPropertyAttribute("winnerFound")]
public virtual System.Nullable WinnerFound { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
///
/// Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
///
public class ParentLinkData
{
/// Link to the view (profile) to which this experiment belongs. This field is read-only.
[Newtonsoft.Json.JsonPropertyAttribute("href")]
public virtual string Href { get; set; }
/// Value is "analytics#profile". This field is read-only.
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
}
///
/// Array of variations. The first variation in the array is the original. The number of variations may not
/// change once an experiment is in the RUNNING state. At least two variations are required before status can be
/// set to RUNNING.
///
public class VariationsData
{
///
/// The name of the variation. This field is required when creating an experiment. This field may not be
/// changed for an experiment whose status is ENDED.
///
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
///
/// Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This
/// field may not be changed for an experiment whose status is ENDED.
///
[Newtonsoft.Json.JsonPropertyAttribute("status")]
public virtual string Status { get; set; }
///
/// The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or
/// ENDED.
///
[Newtonsoft.Json.JsonPropertyAttribute("url")]
public virtual string Url { get; set; }
///
/// Weight that this variation should receive. Only present if the experiment is running. This field is
/// read-only.
///
[Newtonsoft.Json.JsonPropertyAttribute("weight")]
public virtual System.Nullable Weight { get; set; }
///
/// True if the experiment has ended and this variation performed (statistically) significantly better than
/// the original. This field is read-only.
///
[Newtonsoft.Json.JsonPropertyAttribute("won")]
public virtual System.Nullable Won { get; set; }
}
}
///
/// An experiment collection lists Analytics experiments to which the user has access. Each view (profile) can have
/// a set of experiments. Each resource in the Experiment collection corresponds to a single Analytics experiment.
///
public class Experiments : Google.Apis.Requests.IDirectResponseSchema
{
/// A list of experiments.
[Newtonsoft.Json.JsonPropertyAttribute("items")]
public virtual System.Collections.Generic.IList Items { get; set; }
///
/// The maximum number of resources the response can contain, regardless of the actual number of resources
/// returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the
/// max-results query parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("itemsPerPage")]
public virtual System.Nullable ItemsPerPage { get; set; }
/// Collection type.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Link to next page for this experiment collection.
[Newtonsoft.Json.JsonPropertyAttribute("nextLink")]
public virtual string NextLink { get; set; }
/// Link to previous page for this experiment collection.
[Newtonsoft.Json.JsonPropertyAttribute("previousLink")]
public virtual string PreviousLink { get; set; }
///
/// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query
/// parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("startIndex")]
public virtual System.Nullable StartIndex { get; set; }
///
/// The total number of results for the query, regardless of the number of resources in the result.
///
[Newtonsoft.Json.JsonPropertyAttribute("totalResults")]
public virtual System.Nullable TotalResults { get; set; }
/// Email ID of the authenticated user
[Newtonsoft.Json.JsonPropertyAttribute("username")]
public virtual string Username { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// JSON template for an Analytics account filter.
public class Filter : Google.Apis.Requests.IDirectResponseSchema
{
/// Account ID to which this filter belongs.
[Newtonsoft.Json.JsonPropertyAttribute("accountId")]
public virtual string AccountId { get; set; }
/// Details for the filter of the type ADVANCED.
[Newtonsoft.Json.JsonPropertyAttribute("advancedDetails")]
public virtual AdvancedDetailsData AdvancedDetails { get; set; }
/// Time this filter was created.
[Newtonsoft.Json.JsonPropertyAttribute("created")]
public virtual string CreatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreatedDateTimeOffset instead.")]
public virtual System.DateTime? Created
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Details for the filter of the type EXCLUDE.
[Newtonsoft.Json.JsonPropertyAttribute("excludeDetails")]
public virtual FilterExpression ExcludeDetails { get; set; }
/// Filter ID.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Details for the filter of the type INCLUDE.
[Newtonsoft.Json.JsonPropertyAttribute("includeDetails")]
public virtual FilterExpression IncludeDetails { get; set; }
/// Resource type for Analytics filter.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Details for the filter of the type LOWER.
[Newtonsoft.Json.JsonPropertyAttribute("lowercaseDetails")]
public virtual LowercaseDetailsData LowercaseDetails { get; set; }
/// Name of this filter.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Parent link for this filter. Points to the account to which this filter belongs.
[Newtonsoft.Json.JsonPropertyAttribute("parentLink")]
public virtual ParentLinkData ParentLink { get; set; }
/// Details for the filter of the type SEARCH_AND_REPLACE.
[Newtonsoft.Json.JsonPropertyAttribute("searchAndReplaceDetails")]
public virtual SearchAndReplaceDetailsData SearchAndReplaceDetails { get; set; }
/// Link for this filter.
[Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
public virtual string SelfLink { get; set; }
///
/// Type of this filter. Possible values are INCLUDE, EXCLUDE, LOWERCASE, UPPERCASE, SEARCH_AND_REPLACE and
/// ADVANCED.
///
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
/// Time this filter was last modified.
[Newtonsoft.Json.JsonPropertyAttribute("updated")]
public virtual string UpdatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdatedDateTimeOffset instead.")]
public virtual System.DateTime? Updated
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Details for the filter of the type UPPER.
[Newtonsoft.Json.JsonPropertyAttribute("uppercaseDetails")]
public virtual UppercaseDetailsData UppercaseDetails { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
/// Details for the filter of the type ADVANCED.
public class AdvancedDetailsData
{
/// Indicates if the filter expressions are case sensitive.
[Newtonsoft.Json.JsonPropertyAttribute("caseSensitive")]
public virtual System.Nullable CaseSensitive { get; set; }
/// Expression to extract from field A.
[Newtonsoft.Json.JsonPropertyAttribute("extractA")]
public virtual string ExtractA { get; set; }
/// Expression to extract from field B.
[Newtonsoft.Json.JsonPropertyAttribute("extractB")]
public virtual string ExtractB { get; set; }
/// Field A.
[Newtonsoft.Json.JsonPropertyAttribute("fieldA")]
public virtual string FieldA { get; set; }
/// The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
[Newtonsoft.Json.JsonPropertyAttribute("fieldAIndex")]
public virtual System.Nullable FieldAIndex { get; set; }
/// Indicates if field A is required to match.
[Newtonsoft.Json.JsonPropertyAttribute("fieldARequired")]
public virtual System.Nullable FieldARequired { get; set; }
/// Field B.
[Newtonsoft.Json.JsonPropertyAttribute("fieldB")]
public virtual string FieldB { get; set; }
/// The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
[Newtonsoft.Json.JsonPropertyAttribute("fieldBIndex")]
public virtual System.Nullable FieldBIndex { get; set; }
/// Indicates if field B is required to match.
[Newtonsoft.Json.JsonPropertyAttribute("fieldBRequired")]
public virtual System.Nullable FieldBRequired { get; set; }
/// Expression used to construct the output value.
[Newtonsoft.Json.JsonPropertyAttribute("outputConstructor")]
public virtual string OutputConstructor { get; set; }
/// Output field.
[Newtonsoft.Json.JsonPropertyAttribute("outputToField")]
public virtual string OutputToField { get; set; }
/// The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
[Newtonsoft.Json.JsonPropertyAttribute("outputToFieldIndex")]
public virtual System.Nullable OutputToFieldIndex { get; set; }
///
/// Indicates if the existing value of the output field, if any, should be overridden by the output
/// expression.
///
[Newtonsoft.Json.JsonPropertyAttribute("overrideOutputField")]
public virtual System.Nullable OverrideOutputField { get; set; }
}
/// Details for the filter of the type LOWER.
public class LowercaseDetailsData
{
/// Field to use in the filter.
[Newtonsoft.Json.JsonPropertyAttribute("field")]
public virtual string Field { get; set; }
/// The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
[Newtonsoft.Json.JsonPropertyAttribute("fieldIndex")]
public virtual System.Nullable FieldIndex { get; set; }
}
/// Parent link for this filter. Points to the account to which this filter belongs.
public class ParentLinkData
{
/// Link to the account to which this filter belongs.
[Newtonsoft.Json.JsonPropertyAttribute("href")]
public virtual string Href { get; set; }
/// Value is "analytics#account".
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
}
/// Details for the filter of the type SEARCH_AND_REPLACE.
public class SearchAndReplaceDetailsData
{
/// Determines if the filter is case sensitive.
[Newtonsoft.Json.JsonPropertyAttribute("caseSensitive")]
public virtual System.Nullable CaseSensitive { get; set; }
/// Field to use in the filter.
[Newtonsoft.Json.JsonPropertyAttribute("field")]
public virtual string Field { get; set; }
/// The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
[Newtonsoft.Json.JsonPropertyAttribute("fieldIndex")]
public virtual System.Nullable FieldIndex { get; set; }
/// Term to replace the search term with.
[Newtonsoft.Json.JsonPropertyAttribute("replaceString")]
public virtual string ReplaceString { get; set; }
/// Term to search.
[Newtonsoft.Json.JsonPropertyAttribute("searchString")]
public virtual string SearchString { get; set; }
}
/// Details for the filter of the type UPPER.
public class UppercaseDetailsData
{
/// Field to use in the filter.
[Newtonsoft.Json.JsonPropertyAttribute("field")]
public virtual string Field { get; set; }
/// The Index of the custom dimension. Required if field is a CUSTOM_DIMENSION.
[Newtonsoft.Json.JsonPropertyAttribute("fieldIndex")]
public virtual System.Nullable FieldIndex { get; set; }
}
}
/// JSON template for an Analytics filter expression.
public class FilterExpression : Google.Apis.Requests.IDirectResponseSchema
{
/// Determines if the filter is case sensitive.
[Newtonsoft.Json.JsonPropertyAttribute("caseSensitive")]
public virtual System.Nullable CaseSensitive { get; set; }
/// Filter expression value
[Newtonsoft.Json.JsonPropertyAttribute("expressionValue")]
public virtual string ExpressionValue { get; set; }
///
/// Field to filter. Possible values: - Content and Traffic - PAGE_REQUEST_URI, - PAGE_HOSTNAME, -
/// PAGE_TITLE, - REFERRAL, - COST_DATA_URI (Campaign target URL), - HIT_TYPE, - INTERNAL_SEARCH_TERM, -
/// INTERNAL_SEARCH_TYPE, - SOURCE_PROPERTY_TRACKING_ID, - Campaign or AdGroup - CAMPAIGN_SOURCE, -
/// CAMPAIGN_MEDIUM, - CAMPAIGN_NAME, - CAMPAIGN_AD_GROUP, - CAMPAIGN_TERM, - CAMPAIGN_CONTENT, -
/// CAMPAIGN_CODE, - CAMPAIGN_REFERRAL_PATH, - E-Commerce - TRANSACTION_COUNTRY, - TRANSACTION_REGION, -
/// TRANSACTION_CITY, - TRANSACTION_AFFILIATION (Store or order location), - ITEM_NAME, - ITEM_CODE, -
/// ITEM_VARIATION, - TRANSACTION_ID, - TRANSACTION_CURRENCY_CODE, - PRODUCT_ACTION_TYPE, - Audience/Users
/// - BROWSER, - BROWSER_VERSION, - BROWSER_SIZE, - PLATFORM, - PLATFORM_VERSION, - LANGUAGE, -
/// SCREEN_RESOLUTION, - SCREEN_COLORS, - JAVA_ENABLED (Boolean Field), - FLASH_VERSION, - GEO_SPEED
/// (Connection speed), - VISITOR_TYPE, - GEO_ORGANIZATION (ISP organization), - GEO_DOMAIN, -
/// GEO_IP_ADDRESS, - GEO_IP_VERSION, - Location - GEO_COUNTRY, - GEO_REGION, - GEO_CITY, - Event -
/// EVENT_CATEGORY, - EVENT_ACTION, - EVENT_LABEL, - Other - CUSTOM_FIELD_1, - CUSTOM_FIELD_2, -
/// USER_DEFINED_VALUE, - Application - APP_ID, - APP_INSTALLER_ID, - APP_NAME, - APP_VERSION, -
/// SCREEN, - IS_APP (Boolean Field), - IS_FATAL_EXCEPTION (Boolean Field), - EXCEPTION_DESCRIPTION, -
/// Mobile device - IS_MOBILE (Boolean Field, Deprecated. Use DEVICE_CATEGORY=mobile), - IS_TABLET (Boolean
/// Field, Deprecated. Use DEVICE_CATEGORY=tablet), - DEVICE_CATEGORY, - MOBILE_HAS_QWERTY_KEYBOARD (Boolean
/// Field), - MOBILE_HAS_NFC_SUPPORT (Boolean Field), - MOBILE_HAS_CELLULAR_RADIO (Boolean Field), -
/// MOBILE_HAS_WIFI_SUPPORT (Boolean Field), - MOBILE_BRAND_NAME, - MOBILE_MODEL_NAME, -
/// MOBILE_MARKETING_NAME, - MOBILE_POINTING_METHOD, - Social - SOCIAL_NETWORK, - SOCIAL_ACTION, -
/// SOCIAL_ACTION_TARGET, - Custom dimension - CUSTOM_DIMENSION (See accompanying field index),
///
[Newtonsoft.Json.JsonPropertyAttribute("field")]
public virtual string Field { get; set; }
/// The Index of the custom dimension. Set only if the field is a is CUSTOM_DIMENSION.
[Newtonsoft.Json.JsonPropertyAttribute("fieldIndex")]
public virtual System.Nullable FieldIndex { get; set; }
/// Kind value for filter expression
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
///
/// Match type for this filter. Possible values are BEGINS_WITH, EQUAL, ENDS_WITH, CONTAINS, or MATCHES.
/// GEO_DOMAIN, GEO_IP_ADDRESS, PAGE_REQUEST_URI, or PAGE_HOSTNAME filters can use any match type; all other
/// filters must use MATCHES.
///
[Newtonsoft.Json.JsonPropertyAttribute("matchType")]
public virtual string MatchType { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// JSON template for a profile filter link.
public class FilterRef : Google.Apis.Requests.IDirectResponseSchema
{
/// Account ID to which this filter belongs.
[Newtonsoft.Json.JsonPropertyAttribute("accountId")]
public virtual string AccountId { get; set; }
/// Link for this filter.
[Newtonsoft.Json.JsonPropertyAttribute("href")]
public virtual string Href { get; set; }
/// Filter ID.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Kind value for filter reference.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Name of this filter.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
///
/// A filter collection lists filters created by users in an Analytics account. Each resource in the collection
/// corresponds to a filter.
///
public class Filters : Google.Apis.Requests.IDirectResponseSchema
{
/// A list of filters.
[Newtonsoft.Json.JsonPropertyAttribute("items")]
public virtual System.Collections.Generic.IList Items { get; set; }
///
/// The maximum number of resources the response can contain, regardless of the actual number of resources
/// returned. Its value ranges from 1 to 1,000 with a value of 1000 by default, or otherwise specified by the
/// max-results query parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("itemsPerPage")]
public virtual System.Nullable ItemsPerPage { get; set; }
/// Collection type.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Link to next page for this filter collection.
[Newtonsoft.Json.JsonPropertyAttribute("nextLink")]
public virtual string NextLink { get; set; }
/// Link to previous page for this filter collection.
[Newtonsoft.Json.JsonPropertyAttribute("previousLink")]
public virtual string PreviousLink { get; set; }
///
/// The starting index of the resources, which is 1 by default or otherwise specified by the start-index query
/// parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("startIndex")]
public virtual System.Nullable StartIndex { get; set; }
///
/// The total number of results for the query, regardless of the number of results in the response.
///
[Newtonsoft.Json.JsonPropertyAttribute("totalResults")]
public virtual System.Nullable TotalResults { get; set; }
/// Email ID of the authenticated user
[Newtonsoft.Json.JsonPropertyAttribute("username")]
public virtual string Username { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
}
/// Analytics data for a given view (profile).
public class GaData : Google.Apis.Requests.IDirectResponseSchema
{
///
/// Column headers that list dimension names followed by the metric names. The order of dimensions and metrics
/// is same as specified in the request.
///
[Newtonsoft.Json.JsonPropertyAttribute("columnHeaders")]
public virtual System.Collections.Generic.IList ColumnHeaders { get; set; }
/// Determines if Analytics data contains samples.
[Newtonsoft.Json.JsonPropertyAttribute("containsSampledData")]
public virtual System.Nullable ContainsSampledData { get; set; }
/// The last refreshed time in seconds for Analytics data.
[Newtonsoft.Json.JsonPropertyAttribute("dataLastRefreshed")]
public virtual System.Nullable DataLastRefreshed { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("dataTable")]
public virtual DataTableData DataTable { get; set; }
/// Unique ID for this data response.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
///
/// The maximum number of rows the response can contain, regardless of the actual number of rows returned. Its
/// value ranges from 1 to 10,000 with a value of 1000 by default, or otherwise specified by the max-results
/// query parameter.
///
[Newtonsoft.Json.JsonPropertyAttribute("itemsPerPage")]
public virtual System.Nullable ItemsPerPage { get; set; }
/// Resource type.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Link to next page for this Analytics data query.
[Newtonsoft.Json.JsonPropertyAttribute("nextLink")]
public virtual string NextLink { get; set; }
/// Link to previous page for this Analytics data query.
[Newtonsoft.Json.JsonPropertyAttribute("previousLink")]
public virtual string PreviousLink { get; set; }
/// Information for the view (profile), for which the Analytics data was requested.
[Newtonsoft.Json.JsonPropertyAttribute("profileInfo")]
public virtual ProfileInfoData ProfileInfo { get; set; }
/// Analytics data request query parameters.
[Newtonsoft.Json.JsonPropertyAttribute("query")]
public virtual QueryData Query { get; set; }
///
/// Analytics data rows, where each row contains a list of dimension values followed by the metric values. The
/// order of dimensions and metrics is same as specified in the request.
///
[Newtonsoft.Json.JsonPropertyAttribute("rows")]
public virtual System.Collections.Generic.IList> Rows { get; set; }
/// The number of samples used to calculate the result.
[Newtonsoft.Json.JsonPropertyAttribute("sampleSize")]
public virtual System.Nullable SampleSize { get; set; }
/// Total size of the sample space from which the samples were selected.
[Newtonsoft.Json.JsonPropertyAttribute("sampleSpace")]
public virtual System.Nullable SampleSpace { get; set; }
/// Link to this page.
[Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
public virtual string SelfLink { get; set; }
/// The total number of rows for the query, regardless of the number of rows in the response.
[Newtonsoft.Json.JsonPropertyAttribute("totalResults")]
public virtual System.Nullable TotalResults { get; set; }
///
/// Total values for the requested metrics over all the results, not just the results returned in this response.
/// The order of the metric totals is same as the metric order specified in the request.
///
[Newtonsoft.Json.JsonPropertyAttribute("totalsForAllResults")]
public virtual System.Collections.Generic.IDictionary TotalsForAllResults { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
///
/// Column headers that list dimension names followed by the metric names. The order of dimensions and metrics
/// is same as specified in the request.
///
public class ColumnHeadersData
{
/// Column Type. Either DIMENSION or METRIC.
[Newtonsoft.Json.JsonPropertyAttribute("columnType")]
public virtual string ColumnType { get; set; }
///
/// Data type. Dimension column headers have only STRING as the data type. Metric column headers have data
/// types for metric values such as INTEGER, DOUBLE, CURRENCY etc.
///
[Newtonsoft.Json.JsonPropertyAttribute("dataType")]
public virtual string DataType { get; set; }
/// Column name.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
}
public class DataTableData
{
[Newtonsoft.Json.JsonPropertyAttribute("cols")]
public virtual System.Collections.Generic.IList Cols { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("rows")]
public virtual System.Collections.Generic.IList Rows { get; set; }
public class ColsData
{
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("label")]
public virtual string Label { get; set; }
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
}
public class RowsData
{
[Newtonsoft.Json.JsonPropertyAttribute("c")]
public virtual System.Collections.Generic.IList C { get; set; }
public class CData
{
[Newtonsoft.Json.JsonPropertyAttribute("v")]
public virtual string V { get; set; }
}
}
}
/// Information for the view (profile), for which the Analytics data was requested.
public class ProfileInfoData
{
/// Account ID to which this view (profile) belongs.
[Newtonsoft.Json.JsonPropertyAttribute("accountId")]
public virtual string AccountId { get; set; }
/// Internal ID for the web property to which this view (profile) belongs.
[Newtonsoft.Json.JsonPropertyAttribute("internalWebPropertyId")]
public virtual string InternalWebPropertyId { get; set; }
/// View (Profile) ID.
[Newtonsoft.Json.JsonPropertyAttribute("profileId")]
public virtual string ProfileId { get; set; }
/// View (Profile) name.
[Newtonsoft.Json.JsonPropertyAttribute("profileName")]
public virtual string ProfileName { get; set; }
/// Table ID for view (profile).
[Newtonsoft.Json.JsonPropertyAttribute("tableId")]
public virtual string TableId { get; set; }
/// Web Property ID to which this view (profile) belongs.
[Newtonsoft.Json.JsonPropertyAttribute("webPropertyId")]
public virtual string WebPropertyId { get; set; }
}
/// Analytics data request query parameters.
public class QueryData
{
/// List of analytics dimensions.
[Newtonsoft.Json.JsonPropertyAttribute("dimensions")]
public virtual string Dimensions { get; set; }
/// End date.
[Newtonsoft.Json.JsonPropertyAttribute("end-date")]
public virtual string EndDate { get; set; }
/// Comma-separated list of dimension or metric filters.
[Newtonsoft.Json.JsonPropertyAttribute("filters")]
public virtual string Filters { get; set; }
/// Unique table ID.
[Newtonsoft.Json.JsonPropertyAttribute("ids")]
public virtual string Ids { get; set; }
/// Maximum results per page.
[Newtonsoft.Json.JsonPropertyAttribute("max-results")]
public virtual System.Nullable MaxResults { get; set; }
/// List of analytics metrics.
[Newtonsoft.Json.JsonPropertyAttribute("metrics")]
public virtual System.Collections.Generic.IList Metrics { get; set; }
/// Desired sampling level
[Newtonsoft.Json.JsonPropertyAttribute("samplingLevel")]
public virtual string SamplingLevel { get; set; }
/// Analytics advanced segment.
[Newtonsoft.Json.JsonPropertyAttribute("segment")]
public virtual string Segment { get; set; }
/// List of dimensions or metrics based on which Analytics data is sorted.
[Newtonsoft.Json.JsonPropertyAttribute("sort")]
public virtual System.Collections.Generic.IList Sort { get; set; }
/// Start date.
[Newtonsoft.Json.JsonPropertyAttribute("start-date")]
public virtual string StartDate { get; set; }
/// Start index.
[Newtonsoft.Json.JsonPropertyAttribute("start-index")]
public virtual System.Nullable StartIndex { get; set; }
}
}
/// JSON template for Analytics goal resource.
public class Goal : Google.Apis.Requests.IDirectResponseSchema
{
/// Account ID to which this goal belongs.
[Newtonsoft.Json.JsonPropertyAttribute("accountId")]
public virtual string AccountId { get; set; }
/// Determines whether this goal is active.
[Newtonsoft.Json.JsonPropertyAttribute("active")]
public virtual System.Nullable Active { get; set; }
/// Time this goal was created.
[Newtonsoft.Json.JsonPropertyAttribute("created")]
public virtual string CreatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? CreatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreatedDateTimeOffset instead.")]
public virtual System.DateTime? Created
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(CreatedRaw);
set => CreatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Details for the goal of the type EVENT.
[Newtonsoft.Json.JsonPropertyAttribute("eventDetails")]
public virtual EventDetailsData EventDetails { get; set; }
/// Goal ID.
[Newtonsoft.Json.JsonPropertyAttribute("id")]
public virtual string Id { get; set; }
/// Internal ID for the web property to which this goal belongs.
[Newtonsoft.Json.JsonPropertyAttribute("internalWebPropertyId")]
public virtual string InternalWebPropertyId { get; set; }
/// Resource type for an Analytics goal.
[Newtonsoft.Json.JsonPropertyAttribute("kind")]
public virtual string Kind { get; set; }
/// Goal name.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Parent link for a goal. Points to the view (profile) to which this goal belongs.
[Newtonsoft.Json.JsonPropertyAttribute("parentLink")]
public virtual ParentLinkData ParentLink { get; set; }
/// View (Profile) ID to which this goal belongs.
[Newtonsoft.Json.JsonPropertyAttribute("profileId")]
public virtual string ProfileId { get; set; }
/// Link for this goal.
[Newtonsoft.Json.JsonPropertyAttribute("selfLink")]
public virtual string SelfLink { get; set; }
///
/// Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
///
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
/// Time this goal was last modified.
[Newtonsoft.Json.JsonPropertyAttribute("updated")]
public virtual string UpdatedRaw { get; set; }
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
public virtual System.DateTimeOffset? UpdatedDateTimeOffset
{
get => Google.Apis.Util.DiscoveryFormat.ParseDateTimeToDateTimeOffset(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToDateTime(value);
}
/// representation of .
[Newtonsoft.Json.JsonIgnoreAttribute]
[System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdatedDateTimeOffset instead.")]
public virtual System.DateTime? Updated
{
get => Google.Apis.Util.Utilities.GetDateTimeFromString(UpdatedRaw);
set => UpdatedRaw = Google.Apis.Util.Utilities.GetStringFromDateTime(value);
}
/// Details for the goal of the type URL_DESTINATION.
[Newtonsoft.Json.JsonPropertyAttribute("urlDestinationDetails")]
public virtual UrlDestinationDetailsData UrlDestinationDetails { get; set; }
/// Goal value.
[Newtonsoft.Json.JsonPropertyAttribute("value")]
public virtual System.Nullable Value { get; set; }
/// Details for the goal of the type VISIT_NUM_PAGES.
[Newtonsoft.Json.JsonPropertyAttribute("visitNumPagesDetails")]
public virtual VisitNumPagesDetailsData VisitNumPagesDetails { get; set; }
/// Details for the goal of the type VISIT_TIME_ON_SITE.
[Newtonsoft.Json.JsonPropertyAttribute("visitTimeOnSiteDetails")]
public virtual VisitTimeOnSiteDetailsData VisitTimeOnSiteDetails { get; set; }
///
/// Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
///
[Newtonsoft.Json.JsonPropertyAttribute("webPropertyId")]
public virtual string WebPropertyId { get; set; }
/// The ETag of the item.
public virtual string ETag { get; set; }
/// Details for the goal of the type EVENT.
public class EventDetailsData
{
/// List of event conditions.
[Newtonsoft.Json.JsonPropertyAttribute("eventConditions")]
public virtual System.Collections.Generic.IList EventConditions { get; set; }
/// Determines if the event value should be used as the value for this goal.
[Newtonsoft.Json.JsonPropertyAttribute("useEventValue")]
public virtual System.Nullable UseEventValue { get; set; }
/// List of event conditions.
public class EventConditionsData
{
/// Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
[Newtonsoft.Json.JsonPropertyAttribute("comparisonType")]
public virtual string ComparisonType { get; set; }
/// Value used for this comparison.
[Newtonsoft.Json.JsonPropertyAttribute("comparisonValue")]
public virtual System.Nullable ComparisonValue { get; set; }
/// Expression used for this match.
[Newtonsoft.Json.JsonPropertyAttribute("expression")]
public virtual string Expression { get; set; }
///
/// Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
///
[Newtonsoft.Json.JsonPropertyAttribute("matchType")]
public virtual string MatchType { get; set; }
///
/// Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
///
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
}
}
/// Parent link for a goal. Points to the view (profile) to which this goal belongs.
public class ParentLinkData
{
/// Link to the view (profile) to which this goal belongs.
[Newtonsoft.Json.JsonPropertyAttribute("href")]
public virtual string Href { get; set; }
/// Value is "analytics#profile".
[Newtonsoft.Json.JsonPropertyAttribute("type")]
public virtual string Type { get; set; }
}
/// Details for the goal of the type URL_DESTINATION.
public class UrlDestinationDetailsData
{
/// Determines if the goal URL must exactly match the capitalization of visited URLs.
[Newtonsoft.Json.JsonPropertyAttribute("caseSensitive")]
public virtual System.Nullable CaseSensitive { get; set; }
/// Determines if the first step in this goal is required.
[Newtonsoft.Json.JsonPropertyAttribute("firstStepRequired")]
public virtual System.Nullable FirstStepRequired { get; set; }
/// Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
[Newtonsoft.Json.JsonPropertyAttribute("matchType")]
public virtual string MatchType { get; set; }
/// List of steps configured for this goal funnel.
[Newtonsoft.Json.JsonPropertyAttribute("steps")]
public virtual System.Collections.Generic.IList Steps { get; set; }
/// URL for this goal.
[Newtonsoft.Json.JsonPropertyAttribute("url")]
public virtual string Url { get; set; }
/// List of steps configured for this goal funnel.
public class StepsData
{
/// Step name.
[Newtonsoft.Json.JsonPropertyAttribute("name")]
public virtual string Name { get; set; }
/// Step number.
[Newtonsoft.Json.JsonPropertyAttribute("number")]
public virtual System.Nullable Number { get; set; }
/// URL for this step.
[Newtonsoft.Json.JsonPropertyAttribute("url")]
public virtual string Url { get; set; }
}
}
/// Details for the goal of the type VISIT_NUM_PAGES.
public class VisitNumPagesDetailsData
{
/// Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
[Newtonsoft.Json.JsonPropertyAttribute("comparisonType")]
public virtual string ComparisonType { get; set; }
/// Value used for this comparison.
[Newtonsoft.Json.JsonPropertyAttribute("comparisonValue")]
public virtual System.Nullable ComparisonValue { get; set; }
}
/// Details for the goal of the type VISIT_TIME_ON_SITE.
public class VisitTimeOnSiteDetailsData
{
/// Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
[Newtonsoft.Json.JsonPropertyAttribute("comparisonType")]
public virtual string ComparisonType { get; set; }
/// Value used for this comparison.
[Newtonsoft.Json.JsonPropertyAttribute("comparisonValue")]
public virtual System.Nullable ComparisonValue { get; set; }
}
}
///
/// A goal collection lists Analytics goals to which the user has access. Each view (profile) can have a set of
/// goals. Each resource in the Goal collection corresponds to a single Analytics goal.
///
public class Goals : Google.Apis.Requests.IDirectResponseSchema
{
/// A list of goals.
[Newtonsoft.Json.JsonPropertyAttribute("items")]
public virtual System.Collections.Generic.IList Items { get; set; }
///