Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.ApisResource.VersionsResource

The "versions" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.ApisResource.VersionsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.APIhub.v1
Assembly: Google.Apis.APIhub.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ApisResource.VersionsResource

Constructors

VersionsResource(IClientService)

Constructs a new resource.

Declaration
public VersionsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Definitions

Gets the Definitions resource.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.DefinitionsResource Definitions { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.DefinitionsResource

Operations

Gets the Operations resource.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource Operations { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.OperationsResource

Specs

Gets the Specs resource.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.SpecsResource Specs { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.SpecsResource

Methods

Create(GoogleCloudApihubV1Version, string)

Create an API version for an API resource in the API hub.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.CreateRequest Create(GoogleCloudApihubV1Version body, string parent)
Parameters
Type Name Description
GoogleCloudApihubV1Version body

The body of the request.

string parent

Required. The parent resource for API version. Format: projects/{project}/locations/{location}/apis/{api}

Returns
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.CreateRequest

Delete(string)

Delete an API version. Version can only be deleted if all underlying specs, operations, definitions and linked deployments are deleted.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the version to delete. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

Returns
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.DeleteRequest

Get(string)

Get details about the API version of an API resource. This will include information about the specs and operations present in the API version as well as the deployments linked to it.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the API version to retrieve. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

Returns
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.GetRequest

List(string)

List API versions of an API resource in the API hub.

Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent which owns this collection of API versions i.e., the API resource Format: projects/{project}/locations/{location}/apis/{api}

Returns
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.ListRequest

Patch(GoogleCloudApihubV1Version, string)

Update API version. The following fields in the version can be updated currently: * display_name

  • description * documentation * deployments * lifecycle * compliance * accreditation * attributes The update_mask should be used to specify the fields being updated.
Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource.PatchRequest Patch(GoogleCloudApihubV1Version body, string name)
Parameters
Type Name Description
GoogleCloudApihubV1Version body

The body of the request.

string name

Identifier. The name of the version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

Returns
Type Description
ProjectsResource.LocationsResource.ApisResource.VersionsResource.PatchRequest
In this article
Back to top Generated by DocFX