Class ProjectsResource.CapabilityConfigsResource.CreateRequest
Creates a CapabilityConfig under a parent Organization, Folder or Project. Creating a CapabilityConfig triggers the creation of a Management Project if one is not supplied.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v3
Assembly: Google.Apis.CloudResourceManager.v3.dll
Syntax
public class ProjectsResource.CapabilityConfigsResource.CreateRequest : CloudResourceManagerBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, CapabilityConfig, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, CapabilityConfig body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| CapabilityConfig | body | |
| string | parent |
Properties
CapabilityConfigId
Required. The user-assigned ID for the CapabilityConfig, which will become the final component of
the CapabilityConfig's resource name. Must be unique within the parent resource. It must be 6 to 30
lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
prohibited. Example: my-capability-config-123
Declaration
[RequestParameter("capabilityConfigId", RequestParameterType.Query)]
public virtual string CapabilityConfigId { 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 under which the CapabilityConfig will be created. Format:
organizations/{organization_id} or folders/{folder_id} or projects/{project_number}
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()