Class ProjectsResource.LocationsResource.ApisResource
The "apis" collection of methods.
Inherited Members
Namespace: Google.Apis.APIhub.v1
Assembly: Google.Apis.APIhub.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ApisResource
Constructors
ApisResource(IClientService)
Constructs a new resource.
Declaration
public ApisResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Versions
Gets the Versions resource.
Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.VersionsResource Versions { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.ApisResource.VersionsResource |
Methods
Create(GoogleCloudApihubV1Api, string)
Create an API resource in the API hub. Once an API resource is created, versions can be added to it.
Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.CreateRequest Create(GoogleCloudApihubV1Api body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudApihubV1Api | body | The body of the request. |
string | parent | Required. The parent resource for the API resource. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ApisResource.CreateRequest |
Delete(string)
Delete an API resource in the API hub. API can only be deleted if all underlying versions are deleted.
Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the API resource to delete. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ApisResource.DeleteRequest |
Get(string)
Get API resource details including the API versions contained in it.
Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the API resource to retrieve. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ApisResource.GetRequest |
List(string)
List API resources in the API hub.
Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent, which owns this collection of API resources. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ApisResource.ListRequest |
Patch(GoogleCloudApihubV1Api, string)
Update an API resource in the API hub. The following fields in the API can be updated: * display_name * description * owner * documentation * target_user * team * business_unit * maturity_level * api_style * attributes The update_mask should be used to specify the fields being updated. Updating the owner field requires complete owner message and updates both owner and email fields.
Declaration
public virtual ProjectsResource.LocationsResource.ApisResource.PatchRequest Patch(GoogleCloudApihubV1Api body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudApihubV1Api | body | The body of the request. |
string | name | Identifier. The name of the API resource in the API Hub. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ApisResource.PatchRequest |