Class TagValuesResource.TagHoldsResource.CreateRequest
Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same resource and origin exists under the same TagValue.
Inheritance
TagValuesResource.TagHoldsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v3
Assembly: Google.Apis.CloudResourceManager.v3.dll
Syntax
public class TagValuesResource.TagHoldsResource.CreateRequest : CloudResourceManagerBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, TagHold, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, TagHold body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
TagHold | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v3.Data.Operation>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v3.Data.Operation>.MethodName
Parent
Required. The resource name of the TagHold's parent TagValue. Must be of the form:
tagValues/{tag-value-id}
.
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
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v3.Data.Operation>.RestPath
ValidateOnly
Optional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action.
Declaration
[RequestParameter("validateOnly", RequestParameterType.Query)]
public virtual bool? ValidateOnly { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v3.Data.Operation>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()