Show / Hide Table of Contents

Class CdnConfigServiceClient

CdnConfigService client wrapper, for convenient use.

Inheritance
object
CdnConfigServiceClient
CdnConfigServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public abstract class CdnConfigServiceClient
Remarks

Provides methods for handling CdnConfig objects.

Properties

DefaultEndpoint

The default endpoint for the CdnConfigService service, which is a host of "admanager.googleapis.com" and a port of 443.

Declaration
public static string DefaultEndpoint { get; }
Property Value
Type Description
string

DefaultScopes

The default CdnConfigService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

The default CdnConfigService scopes are:

  • https://www.googleapis.com/auth/admanager
  • https://www.googleapis.com/auth/admanager.readonly

GrpcClient

The underlying gRPC CdnConfigService client

Declaration
public virtual CdnConfigService.CdnConfigServiceClient GrpcClient { get; }
Property Value
Type Description
CdnConfigService.CdnConfigServiceClient

ServiceMetadata

The service metadata associated with this client type.

Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type Description
ServiceMetadata

Methods

BatchActivateCdnConfigs(BatchActivateCdnConfigsRequest, CallSettings)

Batch activates CdnConfig objects.

Declaration
public virtual BatchActivateCdnConfigsResponse BatchActivateCdnConfigs(BatchActivateCdnConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchActivateCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchActivateCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
BatchActivateCdnConfigsRequest request = new BatchActivateCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CdnConfigNames =
    {
        CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
    },
};
// Make the request
BatchActivateCdnConfigsResponse response = cdnConfigServiceClient.BatchActivateCdnConfigs(request);

BatchActivateCdnConfigs(NetworkName, IEnumerable<CdnConfigName>, CallSettings)

Batch activates CdnConfig objects.

Declaration
public virtual BatchActivateCdnConfigsResponse BatchActivateCdnConfigs(NetworkName parent, IEnumerable<CdnConfigName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CdnConfigName> names

Required. The resource names of the CdnConfig objects to activate. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchActivateCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CdnConfigName> names = new CdnConfigName[]
{
    CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
};
// Make the request
BatchActivateCdnConfigsResponse response = cdnConfigServiceClient.BatchActivateCdnConfigs(parent, names);

BatchActivateCdnConfigs(string, IEnumerable<string>, CallSettings)

Batch activates CdnConfig objects.

Declaration
public virtual BatchActivateCdnConfigsResponse BatchActivateCdnConfigs(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CdnConfig objects to activate. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchActivateCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/cdnConfigs/[CDN_CONFIG]",
};
// Make the request
BatchActivateCdnConfigsResponse response = cdnConfigServiceClient.BatchActivateCdnConfigs(parent, names);

BatchActivateCdnConfigsAsync(BatchActivateCdnConfigsRequest, CallSettings)

Batch activates CdnConfig objects.

Declaration
public virtual Task<BatchActivateCdnConfigsResponse> BatchActivateCdnConfigsAsync(BatchActivateCdnConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchActivateCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchActivateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BatchActivateCdnConfigsRequest request = new BatchActivateCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CdnConfigNames =
    {
        CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
    },
};
// Make the request
BatchActivateCdnConfigsResponse response = await cdnConfigServiceClient.BatchActivateCdnConfigsAsync(request);

BatchActivateCdnConfigsAsync(BatchActivateCdnConfigsRequest, CancellationToken)

Batch activates CdnConfig objects.

Declaration
public virtual Task<BatchActivateCdnConfigsResponse> BatchActivateCdnConfigsAsync(BatchActivateCdnConfigsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchActivateCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BatchActivateCdnConfigsRequest request = new BatchActivateCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CdnConfigNames =
    {
        CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
    },
};
// Make the request
BatchActivateCdnConfigsResponse response = await cdnConfigServiceClient.BatchActivateCdnConfigsAsync(request);

BatchActivateCdnConfigsAsync(NetworkName, IEnumerable<CdnConfigName>, CallSettings)

Batch activates CdnConfig objects.

Declaration
public virtual Task<BatchActivateCdnConfigsResponse> BatchActivateCdnConfigsAsync(NetworkName parent, IEnumerable<CdnConfigName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CdnConfigName> names

Required. The resource names of the CdnConfig objects to activate. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchActivateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CdnConfigName> names = new CdnConfigName[]
{
    CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
};
// Make the request
BatchActivateCdnConfigsResponse response = await cdnConfigServiceClient.BatchActivateCdnConfigsAsync(parent, names);

BatchActivateCdnConfigsAsync(NetworkName, IEnumerable<CdnConfigName>, CancellationToken)

Batch activates CdnConfig objects.

Declaration
public virtual Task<BatchActivateCdnConfigsResponse> BatchActivateCdnConfigsAsync(NetworkName parent, IEnumerable<CdnConfigName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CdnConfigName> names

Required. The resource names of the CdnConfig objects to activate. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CdnConfigName> names = new CdnConfigName[]
{
    CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
};
// Make the request
BatchActivateCdnConfigsResponse response = await cdnConfigServiceClient.BatchActivateCdnConfigsAsync(parent, names);

BatchActivateCdnConfigsAsync(string, IEnumerable<string>, CallSettings)

Batch activates CdnConfig objects.

Declaration
public virtual Task<BatchActivateCdnConfigsResponse> BatchActivateCdnConfigsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CdnConfig objects to activate. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchActivateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/cdnConfigs/[CDN_CONFIG]",
};
// Make the request
BatchActivateCdnConfigsResponse response = await cdnConfigServiceClient.BatchActivateCdnConfigsAsync(parent, names);

BatchActivateCdnConfigsAsync(string, IEnumerable<string>, CancellationToken)

Batch activates CdnConfig objects.

Declaration
public virtual Task<BatchActivateCdnConfigsResponse> BatchActivateCdnConfigsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CdnConfig objects to activate. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/cdnConfigs/[CDN_CONFIG]",
};
// Make the request
BatchActivateCdnConfigsResponse response = await cdnConfigServiceClient.BatchActivateCdnConfigsAsync(parent, names);

BatchArchiveCdnConfigs(BatchArchiveCdnConfigsRequest, CallSettings)

Batch archives CdnConfig objects.

Declaration
public virtual BatchArchiveCdnConfigsResponse BatchArchiveCdnConfigs(BatchArchiveCdnConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchArchiveCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
BatchArchiveCdnConfigsRequest request = new BatchArchiveCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CdnConfigNames =
    {
        CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
    },
};
// Make the request
BatchArchiveCdnConfigsResponse response = cdnConfigServiceClient.BatchArchiveCdnConfigs(request);

BatchArchiveCdnConfigs(NetworkName, IEnumerable<CdnConfigName>, CallSettings)

Batch archives CdnConfig objects.

Declaration
public virtual BatchArchiveCdnConfigsResponse BatchArchiveCdnConfigs(NetworkName parent, IEnumerable<CdnConfigName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CdnConfigName> names

Required. The resource names of the CdnConfig objects to archive. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CdnConfigName> names = new CdnConfigName[]
{
    CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
};
// Make the request
BatchArchiveCdnConfigsResponse response = cdnConfigServiceClient.BatchArchiveCdnConfigs(parent, names);

BatchArchiveCdnConfigs(string, IEnumerable<string>, CallSettings)

Batch archives CdnConfig objects.

Declaration
public virtual BatchArchiveCdnConfigsResponse BatchArchiveCdnConfigs(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CdnConfig objects to archive. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/cdnConfigs/[CDN_CONFIG]",
};
// Make the request
BatchArchiveCdnConfigsResponse response = cdnConfigServiceClient.BatchArchiveCdnConfigs(parent, names);

BatchArchiveCdnConfigsAsync(BatchArchiveCdnConfigsRequest, CallSettings)

Batch archives CdnConfig objects.

Declaration
public virtual Task<BatchArchiveCdnConfigsResponse> BatchArchiveCdnConfigsAsync(BatchArchiveCdnConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchArchiveCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveCdnConfigsRequest request = new BatchArchiveCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CdnConfigNames =
    {
        CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
    },
};
// Make the request
BatchArchiveCdnConfigsResponse response = await cdnConfigServiceClient.BatchArchiveCdnConfigsAsync(request);

BatchArchiveCdnConfigsAsync(BatchArchiveCdnConfigsRequest, CancellationToken)

Batch archives CdnConfig objects.

Declaration
public virtual Task<BatchArchiveCdnConfigsResponse> BatchArchiveCdnConfigsAsync(BatchArchiveCdnConfigsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchArchiveCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveCdnConfigsRequest request = new BatchArchiveCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CdnConfigNames =
    {
        CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
    },
};
// Make the request
BatchArchiveCdnConfigsResponse response = await cdnConfigServiceClient.BatchArchiveCdnConfigsAsync(request);

BatchArchiveCdnConfigsAsync(NetworkName, IEnumerable<CdnConfigName>, CallSettings)

Batch archives CdnConfig objects.

Declaration
public virtual Task<BatchArchiveCdnConfigsResponse> BatchArchiveCdnConfigsAsync(NetworkName parent, IEnumerable<CdnConfigName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CdnConfigName> names

Required. The resource names of the CdnConfig objects to archive. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CdnConfigName> names = new CdnConfigName[]
{
    CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
};
// Make the request
BatchArchiveCdnConfigsResponse response = await cdnConfigServiceClient.BatchArchiveCdnConfigsAsync(parent, names);

BatchArchiveCdnConfigsAsync(NetworkName, IEnumerable<CdnConfigName>, CancellationToken)

Batch archives CdnConfig objects.

Declaration
public virtual Task<BatchArchiveCdnConfigsResponse> BatchArchiveCdnConfigsAsync(NetworkName parent, IEnumerable<CdnConfigName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<CdnConfigName> names

Required. The resource names of the CdnConfig objects to archive. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CdnConfigName> names = new CdnConfigName[]
{
    CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
};
// Make the request
BatchArchiveCdnConfigsResponse response = await cdnConfigServiceClient.BatchArchiveCdnConfigsAsync(parent, names);

BatchArchiveCdnConfigsAsync(string, IEnumerable<string>, CallSettings)

Batch archives CdnConfig objects.

Declaration
public virtual Task<BatchArchiveCdnConfigsResponse> BatchArchiveCdnConfigsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CdnConfig objects to archive. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/cdnConfigs/[CDN_CONFIG]",
};
// Make the request
BatchArchiveCdnConfigsResponse response = await cdnConfigServiceClient.BatchArchiveCdnConfigsAsync(parent, names);

BatchArchiveCdnConfigsAsync(string, IEnumerable<string>, CancellationToken)

Batch archives CdnConfig objects.

Declaration
public virtual Task<BatchArchiveCdnConfigsResponse> BatchArchiveCdnConfigsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. The resource names of the CdnConfig objects to archive. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/cdnConfigs/[CDN_CONFIG]",
};
// Make the request
BatchArchiveCdnConfigsResponse response = await cdnConfigServiceClient.BatchArchiveCdnConfigsAsync(parent, names);

BatchCreateCdnConfigs(BatchCreateCdnConfigsRequest, CallSettings)

Batch creates CdnConfig objects.

Declaration
public virtual BatchCreateCdnConfigsResponse BatchCreateCdnConfigs(BatchCreateCdnConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
BatchCreateCdnConfigsRequest request = new BatchCreateCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateCdnConfigRequest(),
    },
};
// Make the request
BatchCreateCdnConfigsResponse response = cdnConfigServiceClient.BatchCreateCdnConfigs(request);

BatchCreateCdnConfigs(NetworkName, IEnumerable<CreateCdnConfigRequest>, CallSettings)

Batch creates CdnConfig objects.

Declaration
public virtual BatchCreateCdnConfigsResponse BatchCreateCdnConfigs(NetworkName parent, IEnumerable<CreateCdnConfigRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CdnConfigs will be created. Format: networks/{network_code} The parent field in the CreateCdnConfigRequest must match this field.

IEnumerable<CreateCdnConfigRequest> requests

Required. The CdnConfig objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateCdnConfigRequest> requests = new CreateCdnConfigRequest[]
{
    new CreateCdnConfigRequest(),
};
// Make the request
BatchCreateCdnConfigsResponse response = cdnConfigServiceClient.BatchCreateCdnConfigs(parent, requests);

BatchCreateCdnConfigs(string, IEnumerable<CreateCdnConfigRequest>, CallSettings)

Batch creates CdnConfig objects.

Declaration
public virtual BatchCreateCdnConfigsResponse BatchCreateCdnConfigs(string parent, IEnumerable<CreateCdnConfigRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where CdnConfigs will be created. Format: networks/{network_code} The parent field in the CreateCdnConfigRequest must match this field.

IEnumerable<CreateCdnConfigRequest> requests

Required. The CdnConfig objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateCdnConfigRequest> requests = new CreateCdnConfigRequest[]
{
    new CreateCdnConfigRequest(),
};
// Make the request
BatchCreateCdnConfigsResponse response = cdnConfigServiceClient.BatchCreateCdnConfigs(parent, requests);

BatchCreateCdnConfigsAsync(BatchCreateCdnConfigsRequest, CallSettings)

Batch creates CdnConfig objects.

Declaration
public virtual Task<BatchCreateCdnConfigsResponse> BatchCreateCdnConfigsAsync(BatchCreateCdnConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateCdnConfigsRequest request = new BatchCreateCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateCdnConfigRequest(),
    },
};
// Make the request
BatchCreateCdnConfigsResponse response = await cdnConfigServiceClient.BatchCreateCdnConfigsAsync(request);

BatchCreateCdnConfigsAsync(BatchCreateCdnConfigsRequest, CancellationToken)

Batch creates CdnConfig objects.

Declaration
public virtual Task<BatchCreateCdnConfigsResponse> BatchCreateCdnConfigsAsync(BatchCreateCdnConfigsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchCreateCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateCdnConfigsRequest request = new BatchCreateCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateCdnConfigRequest(),
    },
};
// Make the request
BatchCreateCdnConfigsResponse response = await cdnConfigServiceClient.BatchCreateCdnConfigsAsync(request);

BatchCreateCdnConfigsAsync(NetworkName, IEnumerable<CreateCdnConfigRequest>, CallSettings)

Batch creates CdnConfig objects.

Declaration
public virtual Task<BatchCreateCdnConfigsResponse> BatchCreateCdnConfigsAsync(NetworkName parent, IEnumerable<CreateCdnConfigRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CdnConfigs will be created. Format: networks/{network_code} The parent field in the CreateCdnConfigRequest must match this field.

IEnumerable<CreateCdnConfigRequest> requests

Required. The CdnConfig objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateCdnConfigRequest> requests = new CreateCdnConfigRequest[]
{
    new CreateCdnConfigRequest(),
};
// Make the request
BatchCreateCdnConfigsResponse response = await cdnConfigServiceClient.BatchCreateCdnConfigsAsync(parent, requests);

BatchCreateCdnConfigsAsync(NetworkName, IEnumerable<CreateCdnConfigRequest>, CancellationToken)

Batch creates CdnConfig objects.

Declaration
public virtual Task<BatchCreateCdnConfigsResponse> BatchCreateCdnConfigsAsync(NetworkName parent, IEnumerable<CreateCdnConfigRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CdnConfigs will be created. Format: networks/{network_code} The parent field in the CreateCdnConfigRequest must match this field.

IEnumerable<CreateCdnConfigRequest> requests

Required. The CdnConfig objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateCdnConfigRequest> requests = new CreateCdnConfigRequest[]
{
    new CreateCdnConfigRequest(),
};
// Make the request
BatchCreateCdnConfigsResponse response = await cdnConfigServiceClient.BatchCreateCdnConfigsAsync(parent, requests);

BatchCreateCdnConfigsAsync(string, IEnumerable<CreateCdnConfigRequest>, CallSettings)

Batch creates CdnConfig objects.

Declaration
public virtual Task<BatchCreateCdnConfigsResponse> BatchCreateCdnConfigsAsync(string parent, IEnumerable<CreateCdnConfigRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where CdnConfigs will be created. Format: networks/{network_code} The parent field in the CreateCdnConfigRequest must match this field.

IEnumerable<CreateCdnConfigRequest> requests

Required. The CdnConfig objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateCdnConfigRequest> requests = new CreateCdnConfigRequest[]
{
    new CreateCdnConfigRequest(),
};
// Make the request
BatchCreateCdnConfigsResponse response = await cdnConfigServiceClient.BatchCreateCdnConfigsAsync(parent, requests);

BatchCreateCdnConfigsAsync(string, IEnumerable<CreateCdnConfigRequest>, CancellationToken)

Batch creates CdnConfig objects.

Declaration
public virtual Task<BatchCreateCdnConfigsResponse> BatchCreateCdnConfigsAsync(string parent, IEnumerable<CreateCdnConfigRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where CdnConfigs will be created. Format: networks/{network_code} The parent field in the CreateCdnConfigRequest must match this field.

IEnumerable<CreateCdnConfigRequest> requests

Required. The CdnConfig objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateCdnConfigRequest> requests = new CreateCdnConfigRequest[]
{
    new CreateCdnConfigRequest(),
};
// Make the request
BatchCreateCdnConfigsResponse response = await cdnConfigServiceClient.BatchCreateCdnConfigsAsync(parent, requests);

BatchUpdateCdnConfigs(BatchUpdateCdnConfigsRequest, CallSettings)

Batch updates CdnConfig objects.

Declaration
public virtual BatchUpdateCdnConfigsResponse BatchUpdateCdnConfigs(BatchUpdateCdnConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
BatchUpdateCdnConfigsRequest request = new BatchUpdateCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateCdnConfigRequest(),
    },
};
// Make the request
BatchUpdateCdnConfigsResponse response = cdnConfigServiceClient.BatchUpdateCdnConfigs(request);

BatchUpdateCdnConfigs(NetworkName, IEnumerable<UpdateCdnConfigRequest>, CallSettings)

Batch updates CdnConfig objects.

Declaration
public virtual BatchUpdateCdnConfigsResponse BatchUpdateCdnConfigs(NetworkName parent, IEnumerable<UpdateCdnConfigRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CdnConfigs will be updated. Format: networks/{network_code} The parent field in the UpdateCdnConfigRequest must match this field.

IEnumerable<UpdateCdnConfigRequest> requests

Required. The CdnConfig objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateCdnConfigRequest> requests = new UpdateCdnConfigRequest[]
{
    new UpdateCdnConfigRequest(),
};
// Make the request
BatchUpdateCdnConfigsResponse response = cdnConfigServiceClient.BatchUpdateCdnConfigs(parent, requests);

BatchUpdateCdnConfigs(string, IEnumerable<UpdateCdnConfigRequest>, CallSettings)

Batch updates CdnConfig objects.

Declaration
public virtual BatchUpdateCdnConfigsResponse BatchUpdateCdnConfigs(string parent, IEnumerable<UpdateCdnConfigRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where CdnConfigs will be updated. Format: networks/{network_code} The parent field in the UpdateCdnConfigRequest must match this field.

IEnumerable<UpdateCdnConfigRequest> requests

Required. The CdnConfig objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateCdnConfigsResponse

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateCdnConfigRequest> requests = new UpdateCdnConfigRequest[]
{
    new UpdateCdnConfigRequest(),
};
// Make the request
BatchUpdateCdnConfigsResponse response = cdnConfigServiceClient.BatchUpdateCdnConfigs(parent, requests);

BatchUpdateCdnConfigsAsync(BatchUpdateCdnConfigsRequest, CallSettings)

Batch updates CdnConfig objects.

Declaration
public virtual Task<BatchUpdateCdnConfigsResponse> BatchUpdateCdnConfigsAsync(BatchUpdateCdnConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateCdnConfigsRequest request = new BatchUpdateCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateCdnConfigRequest(),
    },
};
// Make the request
BatchUpdateCdnConfigsResponse response = await cdnConfigServiceClient.BatchUpdateCdnConfigsAsync(request);

BatchUpdateCdnConfigsAsync(BatchUpdateCdnConfigsRequest, CancellationToken)

Batch updates CdnConfig objects.

Declaration
public virtual Task<BatchUpdateCdnConfigsResponse> BatchUpdateCdnConfigsAsync(BatchUpdateCdnConfigsRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchUpdateCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateCdnConfigsRequest request = new BatchUpdateCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateCdnConfigRequest(),
    },
};
// Make the request
BatchUpdateCdnConfigsResponse response = await cdnConfigServiceClient.BatchUpdateCdnConfigsAsync(request);

BatchUpdateCdnConfigsAsync(NetworkName, IEnumerable<UpdateCdnConfigRequest>, CallSettings)

Batch updates CdnConfig objects.

Declaration
public virtual Task<BatchUpdateCdnConfigsResponse> BatchUpdateCdnConfigsAsync(NetworkName parent, IEnumerable<UpdateCdnConfigRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CdnConfigs will be updated. Format: networks/{network_code} The parent field in the UpdateCdnConfigRequest must match this field.

IEnumerable<UpdateCdnConfigRequest> requests

Required. The CdnConfig objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateCdnConfigRequest> requests = new UpdateCdnConfigRequest[]
{
    new UpdateCdnConfigRequest(),
};
// Make the request
BatchUpdateCdnConfigsResponse response = await cdnConfigServiceClient.BatchUpdateCdnConfigsAsync(parent, requests);

BatchUpdateCdnConfigsAsync(NetworkName, IEnumerable<UpdateCdnConfigRequest>, CancellationToken)

Batch updates CdnConfig objects.

Declaration
public virtual Task<BatchUpdateCdnConfigsResponse> BatchUpdateCdnConfigsAsync(NetworkName parent, IEnumerable<UpdateCdnConfigRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where CdnConfigs will be updated. Format: networks/{network_code} The parent field in the UpdateCdnConfigRequest must match this field.

IEnumerable<UpdateCdnConfigRequest> requests

Required. The CdnConfig objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateCdnConfigRequest> requests = new UpdateCdnConfigRequest[]
{
    new UpdateCdnConfigRequest(),
};
// Make the request
BatchUpdateCdnConfigsResponse response = await cdnConfigServiceClient.BatchUpdateCdnConfigsAsync(parent, requests);

BatchUpdateCdnConfigsAsync(string, IEnumerable<UpdateCdnConfigRequest>, CallSettings)

Batch updates CdnConfig objects.

Declaration
public virtual Task<BatchUpdateCdnConfigsResponse> BatchUpdateCdnConfigsAsync(string parent, IEnumerable<UpdateCdnConfigRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where CdnConfigs will be updated. Format: networks/{network_code} The parent field in the UpdateCdnConfigRequest must match this field.

IEnumerable<UpdateCdnConfigRequest> requests

Required. The CdnConfig objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateCdnConfigRequest> requests = new UpdateCdnConfigRequest[]
{
    new UpdateCdnConfigRequest(),
};
// Make the request
BatchUpdateCdnConfigsResponse response = await cdnConfigServiceClient.BatchUpdateCdnConfigsAsync(parent, requests);

BatchUpdateCdnConfigsAsync(string, IEnumerable<UpdateCdnConfigRequest>, CancellationToken)

Batch updates CdnConfig objects.

Declaration
public virtual Task<BatchUpdateCdnConfigsResponse> BatchUpdateCdnConfigsAsync(string parent, IEnumerable<UpdateCdnConfigRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where CdnConfigs will be updated. Format: networks/{network_code} The parent field in the UpdateCdnConfigRequest must match this field.

IEnumerable<UpdateCdnConfigRequest> requests

Required. The CdnConfig objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateCdnConfigsResponse>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateCdnConfigRequest> requests = new UpdateCdnConfigRequest[]
{
    new UpdateCdnConfigRequest(),
};
// Make the request
BatchUpdateCdnConfigsResponse response = await cdnConfigServiceClient.BatchUpdateCdnConfigsAsync(parent, requests);

Create()

Synchronously creates a CdnConfigServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CdnConfigServiceClientBuilder.

Declaration
public static CdnConfigServiceClient Create()
Returns
Type Description
CdnConfigServiceClient

The created CdnConfigServiceClient.

CreateAsync(CancellationToken)

Asynchronously creates a CdnConfigServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CdnConfigServiceClientBuilder.

Declaration
public static Task<CdnConfigServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<CdnConfigServiceClient>

The task representing the created CdnConfigServiceClient.

CreateCdnConfig(CreateCdnConfigRequest, CallSettings)

Creates a CdnConfig object.

Declaration
public virtual CdnConfig CreateCdnConfig(CreateCdnConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateCdnConfigRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CdnConfig

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
CreateCdnConfigRequest request = new CreateCdnConfigRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CdnConfig = new CdnConfig(),
};
// Make the request
CdnConfig response = cdnConfigServiceClient.CreateCdnConfig(request);

CreateCdnConfig(NetworkName, CdnConfig, CallSettings)

Creates a CdnConfig object.

Declaration
public virtual CdnConfig CreateCdnConfig(NetworkName parent, CdnConfig cdnConfig, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this CdnConfig will be created. Format: networks/{network_code}

CdnConfig cdnConfig

Required. The CdnConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CdnConfig

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
CdnConfig cdnConfig = new CdnConfig();
// Make the request
CdnConfig response = cdnConfigServiceClient.CreateCdnConfig(parent, cdnConfig);

CreateCdnConfig(string, CdnConfig, CallSettings)

Creates a CdnConfig object.

Declaration
public virtual CdnConfig CreateCdnConfig(string parent, CdnConfig cdnConfig, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this CdnConfig will be created. Format: networks/{network_code}

CdnConfig cdnConfig

Required. The CdnConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CdnConfig

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
CdnConfig cdnConfig = new CdnConfig();
// Make the request
CdnConfig response = cdnConfigServiceClient.CreateCdnConfig(parent, cdnConfig);

CreateCdnConfigAsync(CreateCdnConfigRequest, CallSettings)

Creates a CdnConfig object.

Declaration
public virtual Task<CdnConfig> CreateCdnConfigAsync(CreateCdnConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateCdnConfigRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCdnConfigRequest request = new CreateCdnConfigRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CdnConfig = new CdnConfig(),
};
// Make the request
CdnConfig response = await cdnConfigServiceClient.CreateCdnConfigAsync(request);

CreateCdnConfigAsync(CreateCdnConfigRequest, CancellationToken)

Creates a CdnConfig object.

Declaration
public virtual Task<CdnConfig> CreateCdnConfigAsync(CreateCdnConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
CreateCdnConfigRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
CreateCdnConfigRequest request = new CreateCdnConfigRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    CdnConfig = new CdnConfig(),
};
// Make the request
CdnConfig response = await cdnConfigServiceClient.CreateCdnConfigAsync(request);

CreateCdnConfigAsync(NetworkName, CdnConfig, CallSettings)

Creates a CdnConfig object.

Declaration
public virtual Task<CdnConfig> CreateCdnConfigAsync(NetworkName parent, CdnConfig cdnConfig, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this CdnConfig will be created. Format: networks/{network_code}

CdnConfig cdnConfig

Required. The CdnConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
CdnConfig cdnConfig = new CdnConfig();
// Make the request
CdnConfig response = await cdnConfigServiceClient.CreateCdnConfigAsync(parent, cdnConfig);

CreateCdnConfigAsync(NetworkName, CdnConfig, CancellationToken)

Creates a CdnConfig object.

Declaration
public virtual Task<CdnConfig> CreateCdnConfigAsync(NetworkName parent, CdnConfig cdnConfig, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this CdnConfig will be created. Format: networks/{network_code}

CdnConfig cdnConfig

Required. The CdnConfig to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
CdnConfig cdnConfig = new CdnConfig();
// Make the request
CdnConfig response = await cdnConfigServiceClient.CreateCdnConfigAsync(parent, cdnConfig);

CreateCdnConfigAsync(string, CdnConfig, CallSettings)

Creates a CdnConfig object.

Declaration
public virtual Task<CdnConfig> CreateCdnConfigAsync(string parent, CdnConfig cdnConfig, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this CdnConfig will be created. Format: networks/{network_code}

CdnConfig cdnConfig

Required. The CdnConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
CdnConfig cdnConfig = new CdnConfig();
// Make the request
CdnConfig response = await cdnConfigServiceClient.CreateCdnConfigAsync(parent, cdnConfig);

CreateCdnConfigAsync(string, CdnConfig, CancellationToken)

Creates a CdnConfig object.

Declaration
public virtual Task<CdnConfig> CreateCdnConfigAsync(string parent, CdnConfig cdnConfig, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where this CdnConfig will be created. Format: networks/{network_code}

CdnConfig cdnConfig

Required. The CdnConfig to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
CdnConfig cdnConfig = new CdnConfig();
// Make the request
CdnConfig response = await cdnConfigServiceClient.CreateCdnConfigAsync(parent, cdnConfig);

GetCdnConfig(CdnConfigName, CallSettings)

Retrieves a CdnConfig object.

Declaration
public virtual CdnConfig GetCdnConfig(CdnConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
CdnConfigName name

Required. The resource name of the CdnConfig. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CdnConfig

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
CdnConfigName name = CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]");
// Make the request
CdnConfig response = cdnConfigServiceClient.GetCdnConfig(name);

GetCdnConfig(GetCdnConfigRequest, CallSettings)

Retrieves a CdnConfig object.

Declaration
public virtual CdnConfig GetCdnConfig(GetCdnConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCdnConfigRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CdnConfig

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
GetCdnConfigRequest request = new GetCdnConfigRequest
{
    CdnConfigName = CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
};
// Make the request
CdnConfig response = cdnConfigServiceClient.GetCdnConfig(request);

GetCdnConfig(string, CallSettings)

Retrieves a CdnConfig object.

Declaration
public virtual CdnConfig GetCdnConfig(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the CdnConfig. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CdnConfig

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/cdnConfigs/[CDN_CONFIG]";
// Make the request
CdnConfig response = cdnConfigServiceClient.GetCdnConfig(name);

GetCdnConfigAsync(CdnConfigName, CallSettings)

Retrieves a CdnConfig object.

Declaration
public virtual Task<CdnConfig> GetCdnConfigAsync(CdnConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
CdnConfigName name

Required. The resource name of the CdnConfig. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
CdnConfigName name = CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]");
// Make the request
CdnConfig response = await cdnConfigServiceClient.GetCdnConfigAsync(name);

GetCdnConfigAsync(CdnConfigName, CancellationToken)

Retrieves a CdnConfig object.

Declaration
public virtual Task<CdnConfig> GetCdnConfigAsync(CdnConfigName name, CancellationToken cancellationToken)
Parameters
Type Name Description
CdnConfigName name

Required. The resource name of the CdnConfig. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
CdnConfigName name = CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]");
// Make the request
CdnConfig response = await cdnConfigServiceClient.GetCdnConfigAsync(name);

GetCdnConfigAsync(GetCdnConfigRequest, CallSettings)

Retrieves a CdnConfig object.

Declaration
public virtual Task<CdnConfig> GetCdnConfigAsync(GetCdnConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetCdnConfigRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
GetCdnConfigRequest request = new GetCdnConfigRequest
{
    CdnConfigName = CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
};
// Make the request
CdnConfig response = await cdnConfigServiceClient.GetCdnConfigAsync(request);

GetCdnConfigAsync(GetCdnConfigRequest, CancellationToken)

Retrieves a CdnConfig object.

Declaration
public virtual Task<CdnConfig> GetCdnConfigAsync(GetCdnConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetCdnConfigRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
GetCdnConfigRequest request = new GetCdnConfigRequest
{
    CdnConfigName = CdnConfigName.FromNetworkCodeCdnConfig("[NETWORK_CODE]", "[CDN_CONFIG]"),
};
// Make the request
CdnConfig response = await cdnConfigServiceClient.GetCdnConfigAsync(request);

GetCdnConfigAsync(string, CallSettings)

Retrieves a CdnConfig object.

Declaration
public virtual Task<CdnConfig> GetCdnConfigAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the CdnConfig. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/cdnConfigs/[CDN_CONFIG]";
// Make the request
CdnConfig response = await cdnConfigServiceClient.GetCdnConfigAsync(name);

GetCdnConfigAsync(string, CancellationToken)

Retrieves a CdnConfig object.

Declaration
public virtual Task<CdnConfig> GetCdnConfigAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The resource name of the CdnConfig. Format: networks/{network_code}/cdnConfigs/{cdn_config_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/cdnConfigs/[CDN_CONFIG]";
// Make the request
CdnConfig response = await cdnConfigServiceClient.GetCdnConfigAsync(name);

ListCdnConfigs(ListCdnConfigsRequest, CallSettings)

Lists CdnConfig objects.

Declaration
public virtual PagedEnumerable<ListCdnConfigsResponse, CdnConfig> ListCdnConfigs(ListCdnConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCdnConfigsResponse, CdnConfig>

A pageable sequence of CdnConfig resources.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
ListCdnConfigsRequest request = new ListCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedEnumerable<ListCdnConfigsResponse, CdnConfig> response = cdnConfigServiceClient.ListCdnConfigs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (CdnConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCdnConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CdnConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CdnConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CdnConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCdnConfigs(NetworkName, string, int?, CallSettings)

Lists CdnConfig objects.

Declaration
public virtual PagedEnumerable<ListCdnConfigsResponse, CdnConfig> ListCdnConfigs(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of CdnConfigs. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCdnConfigsResponse, CdnConfig>

A pageable sequence of CdnConfig resources.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedEnumerable<ListCdnConfigsResponse, CdnConfig> response = cdnConfigServiceClient.ListCdnConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CdnConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCdnConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CdnConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CdnConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CdnConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCdnConfigs(string, string, int?, CallSettings)

Lists CdnConfig objects.

Declaration
public virtual PagedEnumerable<ListCdnConfigsResponse, CdnConfig> ListCdnConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of CdnConfigs. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListCdnConfigsResponse, CdnConfig>

A pageable sequence of CdnConfig resources.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedEnumerable<ListCdnConfigsResponse, CdnConfig> response = cdnConfigServiceClient.ListCdnConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (CdnConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListCdnConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CdnConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CdnConfig> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CdnConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCdnConfigsAsync(ListCdnConfigsRequest, CallSettings)

Lists CdnConfig objects.

Declaration
public virtual PagedAsyncEnumerable<ListCdnConfigsResponse, CdnConfig> ListCdnConfigsAsync(ListCdnConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListCdnConfigsRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCdnConfigsResponse, CdnConfig>

A pageable asynchronous sequence of CdnConfig resources.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
ListCdnConfigsRequest request = new ListCdnConfigsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedAsyncEnumerable<ListCdnConfigsResponse, CdnConfig> response = cdnConfigServiceClient.ListCdnConfigsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await foreach (CdnConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListCdnConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CdnConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CdnConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CdnConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCdnConfigsAsync(NetworkName, string, int?, CallSettings)

Lists CdnConfig objects.

Declaration
public virtual PagedAsyncEnumerable<ListCdnConfigsResponse, CdnConfig> ListCdnConfigsAsync(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of CdnConfigs. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCdnConfigsResponse, CdnConfig>

A pageable asynchronous sequence of CdnConfig resources.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedAsyncEnumerable<ListCdnConfigsResponse, CdnConfig> response = cdnConfigServiceClient.ListCdnConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (CdnConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListCdnConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CdnConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CdnConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CdnConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListCdnConfigsAsync(string, string, int?, CallSettings)

Lists CdnConfig objects.

Declaration
public virtual PagedAsyncEnumerable<ListCdnConfigsResponse, CdnConfig> ListCdnConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of CdnConfigs. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListCdnConfigsResponse, CdnConfig>

A pageable asynchronous sequence of CdnConfig resources.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedAsyncEnumerable<ListCdnConfigsResponse, CdnConfig> response = cdnConfigServiceClient.ListCdnConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await foreach (CdnConfig item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListCdnConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (CdnConfig item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<CdnConfig> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (CdnConfig item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateCdnConfig(CdnConfig, FieldMask, CallSettings)

Updates a CdnConfig object.

Declaration
public virtual CdnConfig UpdateCdnConfig(CdnConfig cdnConfig, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
CdnConfig cdnConfig

Required. The CdnConfig to update.

The CdnConfig's name is used to identify the CdnConfig to update.

FieldMask updateMask

Optional. The list of fields to update.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CdnConfig

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
CdnConfig cdnConfig = new CdnConfig();
FieldMask updateMask = new FieldMask();
// Make the request
CdnConfig response = cdnConfigServiceClient.UpdateCdnConfig(cdnConfig, updateMask);

UpdateCdnConfig(UpdateCdnConfigRequest, CallSettings)

Updates a CdnConfig object.

Declaration
public virtual CdnConfig UpdateCdnConfig(UpdateCdnConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateCdnConfigRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
CdnConfig

The RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = CdnConfigServiceClient.Create();
// Initialize request argument(s)
UpdateCdnConfigRequest request = new UpdateCdnConfigRequest
{
    CdnConfig = new CdnConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
CdnConfig response = cdnConfigServiceClient.UpdateCdnConfig(request);

UpdateCdnConfigAsync(CdnConfig, FieldMask, CallSettings)

Updates a CdnConfig object.

Declaration
public virtual Task<CdnConfig> UpdateCdnConfigAsync(CdnConfig cdnConfig, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
CdnConfig cdnConfig

Required. The CdnConfig to update.

The CdnConfig's name is used to identify the CdnConfig to update.

FieldMask updateMask

Optional. The list of fields to update.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
CdnConfig cdnConfig = new CdnConfig();
FieldMask updateMask = new FieldMask();
// Make the request
CdnConfig response = await cdnConfigServiceClient.UpdateCdnConfigAsync(cdnConfig, updateMask);

UpdateCdnConfigAsync(CdnConfig, FieldMask, CancellationToken)

Updates a CdnConfig object.

Declaration
public virtual Task<CdnConfig> UpdateCdnConfigAsync(CdnConfig cdnConfig, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
CdnConfig cdnConfig

Required. The CdnConfig to update.

The CdnConfig's name is used to identify the CdnConfig to update.

FieldMask updateMask

Optional. The list of fields to update.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
CdnConfig cdnConfig = new CdnConfig();
FieldMask updateMask = new FieldMask();
// Make the request
CdnConfig response = await cdnConfigServiceClient.UpdateCdnConfigAsync(cdnConfig, updateMask);

UpdateCdnConfigAsync(UpdateCdnConfigRequest, CallSettings)

Updates a CdnConfig object.

Declaration
public virtual Task<CdnConfig> UpdateCdnConfigAsync(UpdateCdnConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateCdnConfigRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCdnConfigRequest request = new UpdateCdnConfigRequest
{
    CdnConfig = new CdnConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
CdnConfig response = await cdnConfigServiceClient.UpdateCdnConfigAsync(request);

UpdateCdnConfigAsync(UpdateCdnConfigRequest, CancellationToken)

Updates a CdnConfig object.

Declaration
public virtual Task<CdnConfig> UpdateCdnConfigAsync(UpdateCdnConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateCdnConfigRequest request

The request object containing all of the parameters for the API call.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<CdnConfig>

A Task containing the RPC response.

Sample code
// Create client
CdnConfigServiceClient cdnConfigServiceClient = await CdnConfigServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCdnConfigRequest request = new UpdateCdnConfigRequest
{
    CdnConfig = new CdnConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
CdnConfig response = await cdnConfigServiceClient.UpdateCdnConfigAsync(request);
In this article
Back to top Generated by DocFX