Class ProjectsResource.LocationsResource.HostProjectRegistrationsResource
The "hostProjectRegistrations" collection of methods.
Inherited Members
Namespace: Google.Apis.APIhub.v1
Assembly: Google.Apis.APIhub.v1.dll
Syntax
public class ProjectsResource.LocationsResource.HostProjectRegistrationsResource
Constructors
HostProjectRegistrationsResource(IClientService)
Constructs a new resource.
Declaration
public HostProjectRegistrationsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(GoogleCloudApihubV1HostProjectRegistration, string)
Create a host project registration. A Google cloud project can be registered as a host project if it is not attached as a runtime project to another host project. A project can be registered as a host project only once. Subsequent register calls for the same project will fail.
Declaration
public virtual ProjectsResource.LocationsResource.HostProjectRegistrationsResource.CreateRequest Create(GoogleCloudApihubV1HostProjectRegistration body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudApihubV1HostProjectRegistration | body | The body of the request. |
string | parent | Required. The parent resource for the host project. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.HostProjectRegistrationsResource.CreateRequest |
Get(string)
Get a host project registration.
Declaration
public virtual ProjectsResource.LocationsResource.HostProjectRegistrationsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Host project registration resource name. projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.HostProjectRegistrationsResource.GetRequest |
List(string)
Lists host project registrations.
Declaration
public virtual ProjectsResource.LocationsResource.HostProjectRegistrationsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent, which owns this collection of host projects. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.HostProjectRegistrationsResource.ListRequest |