API Gateway v1 API - Class Api (2.2.0)

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

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

An API that can be served by one or more Gateways.

Inheritance

object > Api

Namespace

Google.Cloud.ApiGateway.V1

Assembly

Google.Cloud.ApiGateway.V1.dll

Constructors

Api()

public Api()

Api(Api)

public Api(Api other)
Parameter
NameDescription
otherApi

Properties

ApiName

public ApiName ApiName { get; set; }

ApiName-typed view over the Name resource name property.

Property Value
TypeDescription
ApiName

CreateTime

public Timestamp CreateTime { get; set; }

Output only. Created time.

Property Value
TypeDescription
Timestamp

DisplayName

public string DisplayName { get; set; }

Optional. Display name.

Property Value
TypeDescription
string

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
TypeDescription
MapFieldstringstring

ManagedService

public string ManagedService { get; set; }

Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API.

Property Value
TypeDescription
string

ManagedServiceAsManagedServiceName

public ManagedServiceName ManagedServiceAsManagedServiceName { get; set; }

ManagedServiceName-typed view over the ManagedService resource name property.

Property Value
TypeDescription
ManagedServiceName

Name

public string Name { get; set; }

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

Property Value
TypeDescription
string

State

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

Output only. State of the API.

Property Value
TypeDescription
ApiTypesState

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. Updated time.

Property Value
TypeDescription
Timestamp