Class OrgunitsResource.PatchRequest
Updates an organizational unit. This method supports [patch semantics](/admin- sdk/directory/v1/guides/performance#patch)
Inheritance
System.Object
OrgunitsResource.PatchRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class PatchRequest : DirectoryBaseServiceRequest<OrgUnit>, IClientServiceRequest<OrgUnit>, IClientServiceRequest
Constructors
PatchRequest(IClientService, OrgUnit, String, String)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, OrgUnit body, string customerId, string orgUnitPath)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| OrgUnit | body | |
| System.String | customerId | |
| System.String | orgUnitPath |
Properties
CustomerId
The unique ID for the customer's G Suite account. As an account administrator, you can also use
the my_customer alias to represent your account's customerId. The customerId is also returned as
part of the Users resource.
Declaration
[RequestParameter("customerId", RequestParameterType.Path)]
public virtual string CustomerId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Admin.Directory.directory_v1.Data.OrgUnit>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Admin.Directory.directory_v1.Data.OrgUnit>.MethodName
OrgUnitPath
The full path of the organizational unit or its unique ID.
Declaration
[RequestParameter("orgUnitPath", RequestParameterType.Path)]
public virtual string OrgUnitPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Admin.Directory.directory_v1.Data.OrgUnit>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Admin.Directory.directory_v1.Data.OrgUnit>.GetBody()
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Admin.Directory.directory_v1.DirectoryBaseServiceRequest<Google.Apis.Admin.Directory.directory_v1.Data.OrgUnit>.InitParameters()