2.6.0 (latest) 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.1.0 1.0.0

    public sealed class ApiConfig : IMessage<ApiConfig>, IEquatable<ApiConfig>, IDeepCloneable<ApiConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the API Gateway v1 API class ApiConfig.

An API Configuration is a combination of settings for both the Managed
Service and Gateways serving this API Config.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ApiConfig

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ApiConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ApiConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ApiConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ApiGateway.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.md.txt)

## Assembly

Google.Cloud.ApiGateway.V1.dll

## Constructors

### ApiConfig()

    public ApiConfig()

### ApiConfig(ApiConfig)

    public ApiConfig(ApiConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ApiConfig` |

## Properties

### ApiConfigName

    public ApiConfigName ApiConfigName { get; set; }

[ApiConfigName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfigName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.md.txt#Google_Cloud_ApiGateway_V1_ApiConfig_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ApiConfigName` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Created time.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### DisplayName

    public string DisplayName { get; set; }

Optional. Display name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### GatewayServiceAccount

    public string GatewayServiceAccount { get; set; }

Immutable. The Google Cloud IAM Service Account that Gateways serving this
config should use to authenticate to other services. This may either be the
Service Account's email
(`{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`) or its full resource
name (`projects/{PROJECT}/accounts/{UNIQUE_ID}`). This is most often used
when the service is a GCP resource such as a Cloud Run Service or an
IAP-secured service.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### GatewayServiceAccountAsServiceAccountName

    public ServiceAccountName GatewayServiceAccountAsServiceAccountName { get; set; }

[ServiceAccountName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ServiceAccountName.md.txt)-typed view over the [GatewayServiceAccount](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.md.txt#Google_Cloud_ApiGateway_V1_ApiConfig_GatewayServiceAccount) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceAccountName` |   |

### GrpcServices

    public RepeatedField<ApiConfig.Types.GrpcServiceDefinition> GrpcServices { get; }

Optional. gRPC service definition files. If specified, openapi_documents
must not be included.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldApiConfigTypesGrpcServiceDefinition` |   |

### Labels

    public MapField<string, string> Labels { get; }

Optional. Resource labels to represent user-provided metadata.
Refer to cloud documentation on labels for more details.
<https://cloud.google.com/compute/docs/labeling-resources>

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### ManagedServiceConfigs

    public RepeatedField<ApiConfig.Types.File> ManagedServiceConfigs { get; }

Optional. Service Configuration files. At least one must be included when
using gRPC service definitions. See
<https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview>
for the expected file contents.

If multiple files are specified, the files are merged with the following
rules:

- All singular scalar fields are merged using "last one wins" semantics in the order of the files uploaded.
- Repeated fields are concatenated.
- Singular embedded messages are merged using these rules for nested fields.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldApiConfigTypesFile` |   |

### Name

    public string Name { get; set; }

Output only. Resource name of the API Config.
Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### OpenapiDocuments

    public RepeatedField<ApiConfig.Types.OpenApiDocument> OpenapiDocuments { get; }

Optional. OpenAPI specification documents. If specified, grpc_services and
managed_service_configs must not be included.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldApiConfigTypesOpenApiDocument` |   |

### ServiceConfigId

    public string ServiceConfigId { get; set; }

Output only. The ID of the associated Service Config (
<https://cloud.google.com/service-infrastructure/docs/glossary#config>).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ServiceConfigIdAsServiceName

    public ServiceName ServiceConfigIdAsServiceName { get; set; }

[ServiceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ServiceName.md.txt)-typed view over the [ServiceConfigId](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.md.txt#Google_Cloud_ApiGateway_V1_ApiConfig_ServiceConfigId) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceName` |   |

### State

    public ApiConfig.Types.State State { get; set; }

Output only. State of the API Config.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ApiConfigTypesState` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. Updated time.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |