Class ProjectsResource.LocationsResource.GlobalResource.MembershipsResource.InitializeHubRequest
Initializes the Hub in this project, which includes creating the default Hub Service Account and the Hub Workload Identity Pool. Initialization is optional, and happens automatically when the first Membership is created. InitializeHub should be called when the first Membership cannot be registered without these resources. A common example is granting the Hub Service Account access to another project, which requires the account to exist first.
Inheritance
ProjectsResource.LocationsResource.GlobalResource.MembershipsResource.InitializeHubRequest
Inherited Members
Namespace: Google.Apis.GKEHub.v1alpha2
Assembly: Google.Apis.GKEHub.v1alpha2.dll
Syntax
public class ProjectsResource.LocationsResource.GlobalResource.MembershipsResource.InitializeHubRequest : GKEHubBaseServiceRequest<InitializeHubResponse>, IClientServiceRequest<InitializeHubResponse>, IClientServiceRequest
Constructors
InitializeHubRequest(IClientService, InitializeHubRequest, string)
Constructs a new InitializeHub request.
Declaration
public InitializeHubRequest(IClientService service, InitializeHubRequest body, string project)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
InitializeHubRequest | body | |
string | project |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.GKEHub.v1alpha2.Data.InitializeHubResponse>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.GKEHub.v1alpha2.Data.InitializeHubResponse>.MethodName
Project
Required. The Hub to initialize, in the format projects/*/locations/*/memberships/*
.
Declaration
[RequestParameter("project", RequestParameterType.Path)]
public virtual string Project { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.GKEHub.v1alpha2.Data.InitializeHubResponse>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.GKEHub.v1alpha2.Data.InitializeHubResponse>.GetBody()
InitParameters()
Initializes InitializeHub parameter list.
Declaration
protected override void InitParameters()