Class GoogleCloudApihubV1ApiOperation
Represents an operation contained in an API version in the API Hub. An operation is added/updated/deleted in an API version when a new spec is added or an existing spec is updated/deleted in a version. Currently, an operation will be created only corresponding to OpenAPI spec as parsing is supported for OpenAPI spec. Alternatively operations can be managed via create,update and delete APIs, creation of apiOperation can be possible only for version with no parsed operations and update/delete can be possible only for operations created via create API.
Implements
Inherited Members
Namespace: Google.Apis.APIhub.v1.Data
Assembly: Google.Apis.APIhub.v1.dll
Syntax
public class GoogleCloudApihubV1ApiOperation : IDirectResponseSchema
Properties
Attributes
Optional. The list of user defined attributes associated with the API operation resource. The key is the
attribute name. It will be of the format: projects/{project}/locations/{location}/attributes/{attribute}
.
The value is the attribute values associated with the resource.
Declaration
[JsonProperty("attributes")]
public virtual IDictionary<string, GoogleCloudApihubV1AttributeValues> Attributes { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, GoogleCloudApihubV1AttributeValues> |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
Output only. The time at which the operation was created.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Details
Optional. Operation details. Note: Even though this field is optional, it is required for CreateApiOperation API and we will fail the request if not provided.
Declaration
[JsonProperty("details")]
public virtual GoogleCloudApihubV1OperationDetails Details { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudApihubV1OperationDetails |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Identifier. The name of the operation. Format:
projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
SourceMetadata
Output only. The list of sources and metadata from the sources of the API operation.
Declaration
[JsonProperty("sourceMetadata")]
public virtual IList<GoogleCloudApihubV1SourceMetadata> SourceMetadata { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudApihubV1SourceMetadata> |
Spec
Output only. The name of the spec will be of the format:
projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
Note:The name of the
spec will be empty if the operation is created via CreateApiOperation API.
Declaration
[JsonProperty("spec")]
public virtual string Spec { get; set; }
Property Value
Type | Description |
---|---|
string |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
UpdateTimeRaw
Output only. The time at which the operation was last updated.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |