Class FoldersResource.PatchRequest
Updates a folder, changing its display_name
. Changes to the folder display_name
will be rejected if they
violate either the display_name
formatting rules or the naming constraints described in the CreateFolder
documentation. The folder's display_name
must start and end with a letter or digit, may contain letters,
digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is captured by the
regular expression: \p{L}\p{N}{1,28}[\p{L}\p{N}]
. The caller must have resourcemanager.folders.update
permission on the identified folder. If the update fails due to the unique name constraint then a
PreconditionFailure
explaining this violation will be returned in the Status.details field.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v3
Assembly: Google.Apis.CloudResourceManager.v3.dll
Syntax
public class FoldersResource.PatchRequest : CloudResourceManagerBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Folder, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Folder body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Folder | body | |
string | name |
Properties
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
Name
Output only. The resource name of the folder. Its format is folders/{folder_id}
, for example:
"folders/1234".
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
Required. Fields to be updated. Only the display_name
can be updated.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()