Class ProjectsResource.LocationsResource.HostProjectRegistrationsResource.CreateRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.APIhub.v1
Assembly: Google.Apis.APIhub.v1.dll
Syntax
public class ProjectsResource.LocationsResource.HostProjectRegistrationsResource.CreateRequest : APIhubBaseServiceRequest<GoogleCloudApihubV1HostProjectRegistration>, IClientServiceRequest<GoogleCloudApihubV1HostProjectRegistration>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudApihubV1HostProjectRegistration, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudApihubV1HostProjectRegistration body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudApihubV1HostProjectRegistration | body | |
string | parent |
Properties
HostProjectRegistrationId
Required. The ID to use for the Host Project Registration, which will become the final component of the host project registration's resource name. The ID must be the same as the Google cloud project specified in the host_project_registration.gcp_project field.
Declaration
[RequestParameter("hostProjectRegistrationId", RequestParameterType.Query)]
public virtual string HostProjectRegistrationId { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. The parent resource for the host project. Format:
projects/{project}/locations/{location}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()