google-ads-api-client
Version:
A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.
70 lines (69 loc) • 2.67 kB
TypeScript
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { AccessRoleEnum_AccessRole } from "../enums/access_role";
/**
* Represents the permission of a single user onto a single customer.
*
* @generated from protobuf message google.ads.googleads.v11.resources.CustomerUserAccess
*/
export interface CustomerUserAccess {
/**
* Immutable. Name of the resource.
* Resource names have the form:
* `customers/{customer_id}/customerUserAccesses/{user_id}`
*
* @generated from protobuf field: string resource_name = 1;
*/
resourceName: string;
/**
* Output only. User id of the user with the customer access.
* Read only field
*
* @generated from protobuf field: int64 user_id = 2;
*/
userId: bigint;
/**
* Output only. Email address of the user.
* Read only field
*
* @generated from protobuf field: optional string email_address = 3;
*/
emailAddress?: string;
/**
* Access role of the user.
*
* @generated from protobuf field: google.ads.googleads.v11.enums.AccessRoleEnum.AccessRole access_role = 4;
*/
accessRole: AccessRoleEnum_AccessRole;
/**
* Output only. The customer user access creation time.
* Read only field
* The format is "YYYY-MM-DD HH:MM:SS".
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
* @generated from protobuf field: optional string access_creation_date_time = 6;
*/
accessCreationDateTime?: string;
/**
* Output only. The email address of the inviter user.
* Read only field
*
* @generated from protobuf field: optional string inviter_user_email_address = 7;
*/
inviterUserEmailAddress?: string;
}
declare class CustomerUserAccess$Type extends MessageType<CustomerUserAccess> {
constructor();
create(value?: PartialMessage<CustomerUserAccess>): CustomerUserAccess;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CustomerUserAccess): CustomerUserAccess;
internalBinaryWrite(message: CustomerUserAccess, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
* @generated MessageType for protobuf message google.ads.googleads.v11.resources.CustomerUserAccess
*/
export declare const CustomerUserAccess: CustomerUserAccess$Type;
export {};