Documentation ¶
Overview ¶
Package androiddeviceprovisioning provides access to the Android Device Provisioning Partner API.
For product documentation, see: https://developers.google.com/zero-touch/
Creating a client ¶
Usage example:
import "google.golang.org/api/androiddeviceprovisioning/v1" ... ctx := context.Background() androiddeviceprovisioningService, err := androiddeviceprovisioning.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
androiddeviceprovisioningService, err := androiddeviceprovisioning.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) androiddeviceprovisioningService, err := androiddeviceprovisioning.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- type ClaimDeviceRequest
- type ClaimDeviceResponse
- type ClaimDevicesRequest
- type Company
- type Configuration
- type CreateCustomerRequest
- type CustomerApplyConfigurationRequest
- type CustomerListConfigurationsResponse
- type CustomerListCustomersResponse
- type CustomerListDevicesResponse
- type CustomerListDpcsResponse
- type CustomerRemoveConfigurationRequest
- type CustomerUnclaimDeviceRequest
- type CustomersConfigurationsCreateCall
- func (c *CustomersConfigurationsCreateCall) Context(ctx context.Context) *CustomersConfigurationsCreateCall
- func (c *CustomersConfigurationsCreateCall) Do(opts ...googleapi.CallOption) (*Configuration, error)
- func (c *CustomersConfigurationsCreateCall) Fields(s ...googleapi.Field) *CustomersConfigurationsCreateCall
- func (c *CustomersConfigurationsCreateCall) Header() http.Header
- type CustomersConfigurationsDeleteCall
- func (c *CustomersConfigurationsDeleteCall) Context(ctx context.Context) *CustomersConfigurationsDeleteCall
- func (c *CustomersConfigurationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *CustomersConfigurationsDeleteCall) Fields(s ...googleapi.Field) *CustomersConfigurationsDeleteCall
- func (c *CustomersConfigurationsDeleteCall) Header() http.Header
- type CustomersConfigurationsGetCall
- func (c *CustomersConfigurationsGetCall) Context(ctx context.Context) *CustomersConfigurationsGetCall
- func (c *CustomersConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Configuration, error)
- func (c *CustomersConfigurationsGetCall) Fields(s ...googleapi.Field) *CustomersConfigurationsGetCall
- func (c *CustomersConfigurationsGetCall) Header() http.Header
- func (c *CustomersConfigurationsGetCall) IfNoneMatch(entityTag string) *CustomersConfigurationsGetCall
- type CustomersConfigurationsListCall
- func (c *CustomersConfigurationsListCall) Context(ctx context.Context) *CustomersConfigurationsListCall
- func (c *CustomersConfigurationsListCall) Do(opts ...googleapi.CallOption) (*CustomerListConfigurationsResponse, error)
- func (c *CustomersConfigurationsListCall) Fields(s ...googleapi.Field) *CustomersConfigurationsListCall
- func (c *CustomersConfigurationsListCall) Header() http.Header
- func (c *CustomersConfigurationsListCall) IfNoneMatch(entityTag string) *CustomersConfigurationsListCall
- type CustomersConfigurationsPatchCall
- func (c *CustomersConfigurationsPatchCall) Context(ctx context.Context) *CustomersConfigurationsPatchCall
- func (c *CustomersConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*Configuration, error)
- func (c *CustomersConfigurationsPatchCall) Fields(s ...googleapi.Field) *CustomersConfigurationsPatchCall
- func (c *CustomersConfigurationsPatchCall) Header() http.Header
- func (c *CustomersConfigurationsPatchCall) UpdateMask(updateMask string) *CustomersConfigurationsPatchCall
- type CustomersConfigurationsService
- func (r *CustomersConfigurationsService) Create(parent string, configuration *Configuration) *CustomersConfigurationsCreateCall
- func (r *CustomersConfigurationsService) Delete(name string) *CustomersConfigurationsDeleteCall
- func (r *CustomersConfigurationsService) Get(name string) *CustomersConfigurationsGetCall
- func (r *CustomersConfigurationsService) List(parent string) *CustomersConfigurationsListCall
- func (r *CustomersConfigurationsService) Patch(name string, configuration *Configuration) *CustomersConfigurationsPatchCall
- type CustomersDevicesApplyConfigurationCall
- func (c *CustomersDevicesApplyConfigurationCall) Context(ctx context.Context) *CustomersDevicesApplyConfigurationCall
- func (c *CustomersDevicesApplyConfigurationCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *CustomersDevicesApplyConfigurationCall) Fields(s ...googleapi.Field) *CustomersDevicesApplyConfigurationCall
- func (c *CustomersDevicesApplyConfigurationCall) Header() http.Header
- type CustomersDevicesGetCall
- func (c *CustomersDevicesGetCall) Context(ctx context.Context) *CustomersDevicesGetCall
- func (c *CustomersDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, error)
- func (c *CustomersDevicesGetCall) Fields(s ...googleapi.Field) *CustomersDevicesGetCall
- func (c *CustomersDevicesGetCall) Header() http.Header
- func (c *CustomersDevicesGetCall) IfNoneMatch(entityTag string) *CustomersDevicesGetCall
- type CustomersDevicesListCall
- func (c *CustomersDevicesListCall) Context(ctx context.Context) *CustomersDevicesListCall
- func (c *CustomersDevicesListCall) Do(opts ...googleapi.CallOption) (*CustomerListDevicesResponse, error)
- func (c *CustomersDevicesListCall) Fields(s ...googleapi.Field) *CustomersDevicesListCall
- func (c *CustomersDevicesListCall) Header() http.Header
- func (c *CustomersDevicesListCall) IfNoneMatch(entityTag string) *CustomersDevicesListCall
- func (c *CustomersDevicesListCall) PageSize(pageSize int64) *CustomersDevicesListCall
- func (c *CustomersDevicesListCall) PageToken(pageToken string) *CustomersDevicesListCall
- func (c *CustomersDevicesListCall) Pages(ctx context.Context, f func(*CustomerListDevicesResponse) error) error
- type CustomersDevicesRemoveConfigurationCall
- func (c *CustomersDevicesRemoveConfigurationCall) Context(ctx context.Context) *CustomersDevicesRemoveConfigurationCall
- func (c *CustomersDevicesRemoveConfigurationCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *CustomersDevicesRemoveConfigurationCall) Fields(s ...googleapi.Field) *CustomersDevicesRemoveConfigurationCall
- func (c *CustomersDevicesRemoveConfigurationCall) Header() http.Header
- type CustomersDevicesService
- func (r *CustomersDevicesService) ApplyConfiguration(parent string, ...) *CustomersDevicesApplyConfigurationCall
- func (r *CustomersDevicesService) Get(name string) *CustomersDevicesGetCall
- func (r *CustomersDevicesService) List(parent string) *CustomersDevicesListCall
- func (r *CustomersDevicesService) RemoveConfiguration(parent string, ...) *CustomersDevicesRemoveConfigurationCall
- func (r *CustomersDevicesService) Unclaim(parent string, customerunclaimdevicerequest *CustomerUnclaimDeviceRequest) *CustomersDevicesUnclaimCall
- type CustomersDevicesUnclaimCall
- func (c *CustomersDevicesUnclaimCall) Context(ctx context.Context) *CustomersDevicesUnclaimCall
- func (c *CustomersDevicesUnclaimCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *CustomersDevicesUnclaimCall) Fields(s ...googleapi.Field) *CustomersDevicesUnclaimCall
- func (c *CustomersDevicesUnclaimCall) Header() http.Header
- type CustomersDpcsListCall
- func (c *CustomersDpcsListCall) Context(ctx context.Context) *CustomersDpcsListCall
- func (c *CustomersDpcsListCall) Do(opts ...googleapi.CallOption) (*CustomerListDpcsResponse, error)
- func (c *CustomersDpcsListCall) Fields(s ...googleapi.Field) *CustomersDpcsListCall
- func (c *CustomersDpcsListCall) Header() http.Header
- func (c *CustomersDpcsListCall) IfNoneMatch(entityTag string) *CustomersDpcsListCall
- type CustomersDpcsService
- type CustomersListCall
- func (c *CustomersListCall) Context(ctx context.Context) *CustomersListCall
- func (c *CustomersListCall) Do(opts ...googleapi.CallOption) (*CustomerListCustomersResponse, error)
- func (c *CustomersListCall) Fields(s ...googleapi.Field) *CustomersListCall
- func (c *CustomersListCall) Header() http.Header
- func (c *CustomersListCall) IfNoneMatch(entityTag string) *CustomersListCall
- func (c *CustomersListCall) PageSize(pageSize int64) *CustomersListCall
- func (c *CustomersListCall) PageToken(pageToken string) *CustomersListCall
- func (c *CustomersListCall) Pages(ctx context.Context, f func(*CustomerListCustomersResponse) error) error
- type CustomersService
- type Device
- type DeviceClaim
- type DeviceIdentifier
- type DeviceMetadata
- type DeviceReference
- type DevicesLongRunningOperationMetadata
- type DevicesLongRunningOperationResponse
- type Dpc
- type Empty
- type FindDevicesByDeviceIdentifierRequest
- type FindDevicesByDeviceIdentifierResponse
- type FindDevicesByOwnerRequest
- type FindDevicesByOwnerResponse
- type ListCustomersResponse
- type ListVendorCustomersResponse
- type ListVendorsResponse
- type Operation
- type OperationPerDevice
- type OperationsGetCall
- func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall
- func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall
- func (c *OperationsGetCall) Header() http.Header
- func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall
- type OperationsService
- type PartnerClaim
- type PartnerUnclaim
- type PartnersCustomersCreateCall
- func (c *PartnersCustomersCreateCall) Context(ctx context.Context) *PartnersCustomersCreateCall
- func (c *PartnersCustomersCreateCall) Do(opts ...googleapi.CallOption) (*Company, error)
- func (c *PartnersCustomersCreateCall) Fields(s ...googleapi.Field) *PartnersCustomersCreateCall
- func (c *PartnersCustomersCreateCall) Header() http.Header
- type PartnersCustomersListCall
- func (c *PartnersCustomersListCall) Context(ctx context.Context) *PartnersCustomersListCall
- func (c *PartnersCustomersListCall) Do(opts ...googleapi.CallOption) (*ListCustomersResponse, error)
- func (c *PartnersCustomersListCall) Fields(s ...googleapi.Field) *PartnersCustomersListCall
- func (c *PartnersCustomersListCall) Header() http.Header
- func (c *PartnersCustomersListCall) IfNoneMatch(entityTag string) *PartnersCustomersListCall
- func (c *PartnersCustomersListCall) PageSize(pageSize int64) *PartnersCustomersListCall
- func (c *PartnersCustomersListCall) PageToken(pageToken string) *PartnersCustomersListCall
- func (c *PartnersCustomersListCall) Pages(ctx context.Context, f func(*ListCustomersResponse) error) error
- type PartnersCustomersService
- type PartnersDevicesClaimAsyncCall
- func (c *PartnersDevicesClaimAsyncCall) Context(ctx context.Context) *PartnersDevicesClaimAsyncCall
- func (c *PartnersDevicesClaimAsyncCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PartnersDevicesClaimAsyncCall) Fields(s ...googleapi.Field) *PartnersDevicesClaimAsyncCall
- func (c *PartnersDevicesClaimAsyncCall) Header() http.Header
- type PartnersDevicesClaimCall
- func (c *PartnersDevicesClaimCall) Context(ctx context.Context) *PartnersDevicesClaimCall
- func (c *PartnersDevicesClaimCall) Do(opts ...googleapi.CallOption) (*ClaimDeviceResponse, error)
- func (c *PartnersDevicesClaimCall) Fields(s ...googleapi.Field) *PartnersDevicesClaimCall
- func (c *PartnersDevicesClaimCall) Header() http.Header
- type PartnersDevicesFindByIdentifierCall
- func (c *PartnersDevicesFindByIdentifierCall) Context(ctx context.Context) *PartnersDevicesFindByIdentifierCall
- func (c *PartnersDevicesFindByIdentifierCall) Do(opts ...googleapi.CallOption) (*FindDevicesByDeviceIdentifierResponse, error)
- func (c *PartnersDevicesFindByIdentifierCall) Fields(s ...googleapi.Field) *PartnersDevicesFindByIdentifierCall
- func (c *PartnersDevicesFindByIdentifierCall) Header() http.Header
- func (c *PartnersDevicesFindByIdentifierCall) Pages(ctx context.Context, f func(*FindDevicesByDeviceIdentifierResponse) error) error
- type PartnersDevicesFindByOwnerCall
- func (c *PartnersDevicesFindByOwnerCall) Context(ctx context.Context) *PartnersDevicesFindByOwnerCall
- func (c *PartnersDevicesFindByOwnerCall) Do(opts ...googleapi.CallOption) (*FindDevicesByOwnerResponse, error)
- func (c *PartnersDevicesFindByOwnerCall) Fields(s ...googleapi.Field) *PartnersDevicesFindByOwnerCall
- func (c *PartnersDevicesFindByOwnerCall) Header() http.Header
- func (c *PartnersDevicesFindByOwnerCall) Pages(ctx context.Context, f func(*FindDevicesByOwnerResponse) error) error
- type PartnersDevicesGetCall
- func (c *PartnersDevicesGetCall) Context(ctx context.Context) *PartnersDevicesGetCall
- func (c *PartnersDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, error)
- func (c *PartnersDevicesGetCall) Fields(s ...googleapi.Field) *PartnersDevicesGetCall
- func (c *PartnersDevicesGetCall) Header() http.Header
- func (c *PartnersDevicesGetCall) IfNoneMatch(entityTag string) *PartnersDevicesGetCall
- type PartnersDevicesMetadataCall
- func (c *PartnersDevicesMetadataCall) Context(ctx context.Context) *PartnersDevicesMetadataCall
- func (c *PartnersDevicesMetadataCall) Do(opts ...googleapi.CallOption) (*DeviceMetadata, error)
- func (c *PartnersDevicesMetadataCall) Fields(s ...googleapi.Field) *PartnersDevicesMetadataCall
- func (c *PartnersDevicesMetadataCall) Header() http.Header
- type PartnersDevicesService
- func (r *PartnersDevicesService) Claim(partnerId int64, claimdevicerequest *ClaimDeviceRequest) *PartnersDevicesClaimCall
- func (r *PartnersDevicesService) ClaimAsync(partnerId int64, claimdevicesrequest *ClaimDevicesRequest) *PartnersDevicesClaimAsyncCall
- func (r *PartnersDevicesService) FindByIdentifier(partnerId int64, ...) *PartnersDevicesFindByIdentifierCall
- func (r *PartnersDevicesService) FindByOwner(partnerId int64, finddevicesbyownerrequest *FindDevicesByOwnerRequest) *PartnersDevicesFindByOwnerCall
- func (r *PartnersDevicesService) Get(name string) *PartnersDevicesGetCall
- func (r *PartnersDevicesService) Metadata(metadataOwnerId int64, deviceId int64, ...) *PartnersDevicesMetadataCall
- func (r *PartnersDevicesService) Unclaim(partnerId int64, unclaimdevicerequest *UnclaimDeviceRequest) *PartnersDevicesUnclaimCall
- func (r *PartnersDevicesService) UnclaimAsync(partnerId int64, unclaimdevicesrequest *UnclaimDevicesRequest) *PartnersDevicesUnclaimAsyncCall
- func (r *PartnersDevicesService) UpdateMetadataAsync(partnerId int64, ...) *PartnersDevicesUpdateMetadataAsyncCall
- type PartnersDevicesUnclaimAsyncCall
- func (c *PartnersDevicesUnclaimAsyncCall) Context(ctx context.Context) *PartnersDevicesUnclaimAsyncCall
- func (c *PartnersDevicesUnclaimAsyncCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PartnersDevicesUnclaimAsyncCall) Fields(s ...googleapi.Field) *PartnersDevicesUnclaimAsyncCall
- func (c *PartnersDevicesUnclaimAsyncCall) Header() http.Header
- type PartnersDevicesUnclaimCall
- func (c *PartnersDevicesUnclaimCall) Context(ctx context.Context) *PartnersDevicesUnclaimCall
- func (c *PartnersDevicesUnclaimCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *PartnersDevicesUnclaimCall) Fields(s ...googleapi.Field) *PartnersDevicesUnclaimCall
- func (c *PartnersDevicesUnclaimCall) Header() http.Header
- type PartnersDevicesUpdateMetadataAsyncCall
- func (c *PartnersDevicesUpdateMetadataAsyncCall) Context(ctx context.Context) *PartnersDevicesUpdateMetadataAsyncCall
- func (c *PartnersDevicesUpdateMetadataAsyncCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *PartnersDevicesUpdateMetadataAsyncCall) Fields(s ...googleapi.Field) *PartnersDevicesUpdateMetadataAsyncCall
- func (c *PartnersDevicesUpdateMetadataAsyncCall) Header() http.Header
- type PartnersService
- type PartnersVendorsCustomersListCall
- func (c *PartnersVendorsCustomersListCall) Context(ctx context.Context) *PartnersVendorsCustomersListCall
- func (c *PartnersVendorsCustomersListCall) Do(opts ...googleapi.CallOption) (*ListVendorCustomersResponse, error)
- func (c *PartnersVendorsCustomersListCall) Fields(s ...googleapi.Field) *PartnersVendorsCustomersListCall
- func (c *PartnersVendorsCustomersListCall) Header() http.Header
- func (c *PartnersVendorsCustomersListCall) IfNoneMatch(entityTag string) *PartnersVendorsCustomersListCall
- func (c *PartnersVendorsCustomersListCall) PageSize(pageSize int64) *PartnersVendorsCustomersListCall
- func (c *PartnersVendorsCustomersListCall) PageToken(pageToken string) *PartnersVendorsCustomersListCall
- func (c *PartnersVendorsCustomersListCall) Pages(ctx context.Context, f func(*ListVendorCustomersResponse) error) error
- type PartnersVendorsCustomersService
- type PartnersVendorsListCall
- func (c *PartnersVendorsListCall) Context(ctx context.Context) *PartnersVendorsListCall
- func (c *PartnersVendorsListCall) Do(opts ...googleapi.CallOption) (*ListVendorsResponse, error)
- func (c *PartnersVendorsListCall) Fields(s ...googleapi.Field) *PartnersVendorsListCall
- func (c *PartnersVendorsListCall) Header() http.Header
- func (c *PartnersVendorsListCall) IfNoneMatch(entityTag string) *PartnersVendorsListCall
- func (c *PartnersVendorsListCall) PageSize(pageSize int64) *PartnersVendorsListCall
- func (c *PartnersVendorsListCall) PageToken(pageToken string) *PartnersVendorsListCall
- func (c *PartnersVendorsListCall) Pages(ctx context.Context, f func(*ListVendorsResponse) error) error
- type PartnersVendorsService
- type PerDeviceStatusInBatch
- type Service
- type Status
- type UnclaimDeviceRequest
- type UnclaimDevicesRequest
- type UpdateDeviceMetadataInBatchRequest
- type UpdateDeviceMetadataRequest
- type UpdateMetadataArguments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimDeviceRequest ¶
type ClaimDeviceRequest struct { // CustomerId: Required. The ID of the customer for whom the device is // being claimed. CustomerId int64 `json:"customerId,omitempty,string"` // DeviceIdentifier: Required. Required. The device identifier of the // device to claim. DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"` // DeviceMetadata: Optional. The metadata to attach to the device. DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"` // SectionType: Required. The section type of the device's provisioning // record. // // Possible values: // "SECTION_TYPE_UNSPECIFIED" - Unspecified section type. // "SECTION_TYPE_SIM_LOCK" - SIM-lock section type. // "SECTION_TYPE_ZERO_TOUCH" - Zero-touch enrollment section type. SectionType string `json:"sectionType,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomerId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CustomerId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ClaimDeviceRequest: Request message to claim a device on behalf of a customer.
func (*ClaimDeviceRequest) MarshalJSON ¶
func (s *ClaimDeviceRequest) MarshalJSON() ([]byte, error)
type ClaimDeviceResponse ¶
type ClaimDeviceResponse struct { // DeviceId: The device ID of the claimed device. DeviceId int64 `json:"deviceId,omitempty,string"` // DeviceName: The resource name of the device in the format // `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. DeviceName string `json:"deviceName,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DeviceId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeviceId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ClaimDeviceResponse: Response message containing device id of the claim.
func (*ClaimDeviceResponse) MarshalJSON ¶
func (s *ClaimDeviceResponse) MarshalJSON() ([]byte, error)
type ClaimDevicesRequest ¶
type ClaimDevicesRequest struct { // Claims: Required. A list of device claims. Claims []*PartnerClaim `json:"claims,omitempty"` // ForceSendFields is a list of field names (e.g. "Claims") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Claims") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ClaimDevicesRequest: Request to claim devices asynchronously in batch. Claiming a device adds the device to zero-touch enrollment and shows the device in the customer's view of the portal.
func (*ClaimDevicesRequest) MarshalJSON ¶
func (s *ClaimDevicesRequest) MarshalJSON() ([]byte, error)
type Company ¶
type Company struct { // AdminEmails: Optional. Email address of customer's users in the admin // role. Each email address must be associated with a Google Account. AdminEmails []string `json:"adminEmails,omitempty"` // CompanyId: Output only. The ID of the company. Assigned by the // server. CompanyId int64 `json:"companyId,omitempty,string"` // CompanyName: Required. The name of the company. For example _XYZ // Corp_. Displayed to the company's employees in the zero-touch // enrollment portal. CompanyName string `json:"companyName,omitempty"` // Name: Output only. The API resource name of the company. The resource // name is one of the following formats: * // `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]` * // `partners/[PARTNER_ID]/vendors/[VENDOR_ID]` * // `partners/[PARTNER_ID]/vendors/[VENDOR_ID]/customers/[CUSTOMER_ID]` // Assigned by the server. Name string `json:"name,omitempty"` // OwnerEmails: Required. Input only. Email address of customer's users // in the owner role. At least one `owner_email` is required. Each email // address must be associated with a Google Account. Owners share the // same access as admins but can also add, delete, and edit your // organization's portal users. OwnerEmails []string `json:"ownerEmails,omitempty"` // TermsStatus: Output only. Whether any user from the company has // accepted the latest Terms of Service (ToS). See TermsStatus. // // Possible values: // "TERMS_STATUS_UNSPECIFIED" - Default value. This value should never // be set if the enum is present. // "TERMS_STATUS_NOT_ACCEPTED" - None of the company's users have // accepted the ToS. // "TERMS_STATUS_ACCEPTED" - One (or more) of the company's users has // accepted the ToS. // "TERMS_STATUS_STALE" - None of the company's users has accepted the // current ToS but at least one user accepted a previous ToS. TermsStatus string `json:"termsStatus,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AdminEmails") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdminEmails") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Company: A reseller, vendor, or customer in the zero-touch reseller and customer APIs.
func (*Company) MarshalJSON ¶
type Configuration ¶
type Configuration struct { // CompanyName: Required. The name of the organization. Zero-touch // enrollment shows this organization name to device users during device // provisioning. CompanyName string `json:"companyName,omitempty"` // ConfigurationId: Output only. The ID of the configuration. Assigned // by the server. ConfigurationId int64 `json:"configurationId,omitempty,string"` // ConfigurationName: Required. A short name that describes the // configuration's purpose. For example, _Sales team_ or _Temporary // employees_. The zero-touch enrollment portal displays this name to IT // admins. ConfigurationName string `json:"configurationName,omitempty"` // ContactEmail: Required. The email address that device users can // contact to get help. Zero-touch enrollment shows this email address // to device users before device provisioning. The value is validated on // input. ContactEmail string `json:"contactEmail,omitempty"` // ContactPhone: Required. The telephone number that device users can // call, using another device, to get help. Zero-touch enrollment shows // this number to device users before device provisioning. Accepts // numerals, spaces, the plus sign, hyphens, and parentheses. ContactPhone string `json:"contactPhone,omitempty"` // CustomMessage: A message, containing one or two sentences, to help // device users get help or give them more details about what’s // happening to their device. Zero-touch enrollment shows this message // before the device is provisioned. CustomMessage string `json:"customMessage,omitempty"` // DpcExtras: The JSON-formatted EMM provisioning extras that are passed // to the DPC. DpcExtras string `json:"dpcExtras,omitempty"` // DpcResourcePath: Required. The resource name of the selected DPC // (device policy controller) in the format // `customers/[CUSTOMER_ID]/dpcs/*`. To list the supported DPCs, call // `customers.dpcs.list`. DpcResourcePath string `json:"dpcResourcePath,omitempty"` // IsDefault: Required. Whether this is the default configuration that // zero-touch enrollment applies to any new devices the organization // purchases in the future. Only one customer configuration can be the // default. Setting this value to `true`, changes the previous default // configuration's `isDefault` value to `false`. IsDefault bool `json:"isDefault,omitempty"` // Name: Output only. The API resource name in the format // `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned // by the server. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CompanyName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CompanyName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Configuration: A configuration collects the provisioning options for Android devices. Each configuration combines the following: * The EMM device policy controller (DPC) installed on the devices. * EMM policies enforced on the devices. * Metadata displayed on the device to help users during setup. Customers can add as many configurations as they need. However, zero-touch enrollment works best when a customer sets a default configuration that's applied to any new devices the organization purchases.
func (*Configuration) MarshalJSON ¶
func (s *Configuration) MarshalJSON() ([]byte, error)
type CreateCustomerRequest ¶
type CreateCustomerRequest struct { // Customer: Required. The company data to populate the new customer. // Must contain a value for `companyName` and at least one `owner_email` // that's associated with a Google Account. The values for `companyId` // and `name` must be empty. Customer *Company `json:"customer,omitempty"` // ForceSendFields is a list of field names (e.g. "Customer") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Customer") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CreateCustomerRequest: Request message to create a customer.
func (*CreateCustomerRequest) MarshalJSON ¶
func (s *CreateCustomerRequest) MarshalJSON() ([]byte, error)
type CustomerApplyConfigurationRequest ¶
type CustomerApplyConfigurationRequest struct { // Configuration: Required. The configuration applied to the device in // the format // `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Configuration string `json:"configuration,omitempty"` // Device: Required. The device the configuration is applied to. Device *DeviceReference `json:"device,omitempty"` // ForceSendFields is a list of field names (e.g. "Configuration") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Configuration") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CustomerApplyConfigurationRequest: Request message for customer to assign a configuration to device.
func (*CustomerApplyConfigurationRequest) MarshalJSON ¶
func (s *CustomerApplyConfigurationRequest) MarshalJSON() ([]byte, error)
type CustomerListConfigurationsResponse ¶
type CustomerListConfigurationsResponse struct { // Configurations: The configurations. Configurations []*Configuration `json:"configurations,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Configurations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Configurations") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CustomerListConfigurationsResponse: Response message of customer's listing configuration.
func (*CustomerListConfigurationsResponse) MarshalJSON ¶
func (s *CustomerListConfigurationsResponse) MarshalJSON() ([]byte, error)
type CustomerListCustomersResponse ¶
type CustomerListCustomersResponse struct { // Customers: The customer accounts the calling user is a member of. Customers []*Company `json:"customers,omitempty"` // NextPageToken: A token used to access the next page of results. // Omitted if no further results are available. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Customers") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Customers") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CustomerListCustomersResponse: Response message for listing my customers.
func (*CustomerListCustomersResponse) MarshalJSON ¶
func (s *CustomerListCustomersResponse) MarshalJSON() ([]byte, error)
type CustomerListDevicesResponse ¶
type CustomerListDevicesResponse struct { // Devices: The customer's devices. Devices []*Device `json:"devices,omitempty"` // NextPageToken: A token used to access the next page of results. // Omitted if no further results are available. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Devices") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Devices") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CustomerListDevicesResponse: Response message of customer's liting devices.
func (*CustomerListDevicesResponse) MarshalJSON ¶
func (s *CustomerListDevicesResponse) MarshalJSON() ([]byte, error)
type CustomerListDpcsResponse ¶
type CustomerListDpcsResponse struct { // Dpcs: The list of DPCs available to the customer that support // zero-touch enrollment. Dpcs []*Dpc `json:"dpcs,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Dpcs") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Dpcs") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CustomerListDpcsResponse: Response message of customer's listing DPCs.
func (*CustomerListDpcsResponse) MarshalJSON ¶
func (s *CustomerListDpcsResponse) MarshalJSON() ([]byte, error)
type CustomerRemoveConfigurationRequest ¶
type CustomerRemoveConfigurationRequest struct { // Device: Required. The device to remove the configuration from. Device *DeviceReference `json:"device,omitempty"` // ForceSendFields is a list of field names (e.g. "Device") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Device") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CustomerRemoveConfigurationRequest: Request message for customer to remove the configuration from device.
func (*CustomerRemoveConfigurationRequest) MarshalJSON ¶
func (s *CustomerRemoveConfigurationRequest) MarshalJSON() ([]byte, error)
type CustomerUnclaimDeviceRequest ¶
type CustomerUnclaimDeviceRequest struct { // Device: Required. The device to unclaim. Device *DeviceReference `json:"device,omitempty"` // ForceSendFields is a list of field names (e.g. "Device") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Device") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CustomerUnclaimDeviceRequest: Request message for customer to unclaim a device.
func (*CustomerUnclaimDeviceRequest) MarshalJSON ¶
func (s *CustomerUnclaimDeviceRequest) MarshalJSON() ([]byte, error)
type CustomersConfigurationsCreateCall ¶
type CustomersConfigurationsCreateCall struct {
// contains filtered or unexported fields
}
func (*CustomersConfigurationsCreateCall) Context ¶
func (c *CustomersConfigurationsCreateCall) Context(ctx context.Context) *CustomersConfigurationsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersConfigurationsCreateCall) Do ¶
func (c *CustomersConfigurationsCreateCall) Do(opts ...googleapi.CallOption) (*Configuration, error)
Do executes the "androiddeviceprovisioning.customers.configurations.create" call. Exactly one of *Configuration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Configuration.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersConfigurationsCreateCall) Fields ¶
func (c *CustomersConfigurationsCreateCall) Fields(s ...googleapi.Field) *CustomersConfigurationsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersConfigurationsCreateCall) Header ¶
func (c *CustomersConfigurationsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type CustomersConfigurationsDeleteCall ¶
type CustomersConfigurationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*CustomersConfigurationsDeleteCall) Context ¶
func (c *CustomersConfigurationsDeleteCall) Context(ctx context.Context) *CustomersConfigurationsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersConfigurationsDeleteCall) Do ¶
func (c *CustomersConfigurationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "androiddeviceprovisioning.customers.configurations.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersConfigurationsDeleteCall) Fields ¶
func (c *CustomersConfigurationsDeleteCall) Fields(s ...googleapi.Field) *CustomersConfigurationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersConfigurationsDeleteCall) Header ¶
func (c *CustomersConfigurationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type CustomersConfigurationsGetCall ¶
type CustomersConfigurationsGetCall struct {
// contains filtered or unexported fields
}
func (*CustomersConfigurationsGetCall) Context ¶
func (c *CustomersConfigurationsGetCall) Context(ctx context.Context) *CustomersConfigurationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersConfigurationsGetCall) Do ¶
func (c *CustomersConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Configuration, error)
Do executes the "androiddeviceprovisioning.customers.configurations.get" call. Exactly one of *Configuration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Configuration.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersConfigurationsGetCall) Fields ¶
func (c *CustomersConfigurationsGetCall) Fields(s ...googleapi.Field) *CustomersConfigurationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersConfigurationsGetCall) Header ¶
func (c *CustomersConfigurationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersConfigurationsGetCall) IfNoneMatch ¶
func (c *CustomersConfigurationsGetCall) IfNoneMatch(entityTag string) *CustomersConfigurationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type CustomersConfigurationsListCall ¶
type CustomersConfigurationsListCall struct {
// contains filtered or unexported fields
}
func (*CustomersConfigurationsListCall) Context ¶
func (c *CustomersConfigurationsListCall) Context(ctx context.Context) *CustomersConfigurationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersConfigurationsListCall) Do ¶
func (c *CustomersConfigurationsListCall) Do(opts ...googleapi.CallOption) (*CustomerListConfigurationsResponse, error)
Do executes the "androiddeviceprovisioning.customers.configurations.list" call. Exactly one of *CustomerListConfigurationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomerListConfigurationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersConfigurationsListCall) Fields ¶
func (c *CustomersConfigurationsListCall) Fields(s ...googleapi.Field) *CustomersConfigurationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersConfigurationsListCall) Header ¶
func (c *CustomersConfigurationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersConfigurationsListCall) IfNoneMatch ¶
func (c *CustomersConfigurationsListCall) IfNoneMatch(entityTag string) *CustomersConfigurationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type CustomersConfigurationsPatchCall ¶
type CustomersConfigurationsPatchCall struct {
// contains filtered or unexported fields
}
func (*CustomersConfigurationsPatchCall) Context ¶
func (c *CustomersConfigurationsPatchCall) Context(ctx context.Context) *CustomersConfigurationsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersConfigurationsPatchCall) Do ¶
func (c *CustomersConfigurationsPatchCall) Do(opts ...googleapi.CallOption) (*Configuration, error)
Do executes the "androiddeviceprovisioning.customers.configurations.patch" call. Exactly one of *Configuration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Configuration.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersConfigurationsPatchCall) Fields ¶
func (c *CustomersConfigurationsPatchCall) Fields(s ...googleapi.Field) *CustomersConfigurationsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersConfigurationsPatchCall) Header ¶
func (c *CustomersConfigurationsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersConfigurationsPatchCall) UpdateMask ¶
func (c *CustomersConfigurationsPatchCall) UpdateMask(updateMask string) *CustomersConfigurationsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. The field mask applied to the target `Configuration` before updating the fields. To learn more about using field masks, read FieldMask (/protocol-buffers/docs/reference/google.protobuf#fieldmask) in the Protocol Buffers documentation.
type CustomersConfigurationsService ¶
type CustomersConfigurationsService struct {
// contains filtered or unexported fields
}
func NewCustomersConfigurationsService ¶
func NewCustomersConfigurationsService(s *Service) *CustomersConfigurationsService
func (*CustomersConfigurationsService) Create ¶
func (r *CustomersConfigurationsService) Create(parent string, configuration *Configuration) *CustomersConfigurationsCreateCall
Create: Creates a new configuration. Once created, a customer can apply the configuration to devices.
func (*CustomersConfigurationsService) Delete ¶
func (r *CustomersConfigurationsService) Delete(name string) *CustomersConfigurationsDeleteCall
Delete: Deletes an unused configuration. The API call fails if the customer has devices with the configuration applied.
func (*CustomersConfigurationsService) Get ¶
func (r *CustomersConfigurationsService) Get(name string) *CustomersConfigurationsGetCall
Get: Gets the details of a configuration.
func (*CustomersConfigurationsService) List ¶
func (r *CustomersConfigurationsService) List(parent string) *CustomersConfigurationsListCall
List: Lists a customer's configurations.
func (*CustomersConfigurationsService) Patch ¶
func (r *CustomersConfigurationsService) Patch(name string, configuration *Configuration) *CustomersConfigurationsPatchCall
Patch: Updates a configuration's field values.
type CustomersDevicesApplyConfigurationCall ¶
type CustomersDevicesApplyConfigurationCall struct {
// contains filtered or unexported fields
}
func (*CustomersDevicesApplyConfigurationCall) Context ¶
func (c *CustomersDevicesApplyConfigurationCall) Context(ctx context.Context) *CustomersDevicesApplyConfigurationCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersDevicesApplyConfigurationCall) Do ¶
func (c *CustomersDevicesApplyConfigurationCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "androiddeviceprovisioning.customers.devices.applyConfiguration" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersDevicesApplyConfigurationCall) Fields ¶
func (c *CustomersDevicesApplyConfigurationCall) Fields(s ...googleapi.Field) *CustomersDevicesApplyConfigurationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersDevicesApplyConfigurationCall) Header ¶
func (c *CustomersDevicesApplyConfigurationCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type CustomersDevicesGetCall ¶
type CustomersDevicesGetCall struct {
// contains filtered or unexported fields
}
func (*CustomersDevicesGetCall) Context ¶
func (c *CustomersDevicesGetCall) Context(ctx context.Context) *CustomersDevicesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersDevicesGetCall) Do ¶
func (c *CustomersDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, error)
Do executes the "androiddeviceprovisioning.customers.devices.get" call. Exactly one of *Device or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Device.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersDevicesGetCall) Fields ¶
func (c *CustomersDevicesGetCall) Fields(s ...googleapi.Field) *CustomersDevicesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersDevicesGetCall) Header ¶
func (c *CustomersDevicesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersDevicesGetCall) IfNoneMatch ¶
func (c *CustomersDevicesGetCall) IfNoneMatch(entityTag string) *CustomersDevicesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type CustomersDevicesListCall ¶
type CustomersDevicesListCall struct {
// contains filtered or unexported fields
}
func (*CustomersDevicesListCall) Context ¶
func (c *CustomersDevicesListCall) Context(ctx context.Context) *CustomersDevicesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersDevicesListCall) Do ¶
func (c *CustomersDevicesListCall) Do(opts ...googleapi.CallOption) (*CustomerListDevicesResponse, error)
Do executes the "androiddeviceprovisioning.customers.devices.list" call. Exactly one of *CustomerListDevicesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomerListDevicesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersDevicesListCall) Fields ¶
func (c *CustomersDevicesListCall) Fields(s ...googleapi.Field) *CustomersDevicesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersDevicesListCall) Header ¶
func (c *CustomersDevicesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersDevicesListCall) IfNoneMatch ¶
func (c *CustomersDevicesListCall) IfNoneMatch(entityTag string) *CustomersDevicesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*CustomersDevicesListCall) PageSize ¶
func (c *CustomersDevicesListCall) PageSize(pageSize int64) *CustomersDevicesListCall
PageSize sets the optional parameter "pageSize": The maximum number of devices to show in a page of results. Must be between 1 and 100 inclusive.
func (*CustomersDevicesListCall) PageToken ¶
func (c *CustomersDevicesListCall) PageToken(pageToken string) *CustomersDevicesListCall
PageToken sets the optional parameter "pageToken": A token specifying which result page to return.
func (*CustomersDevicesListCall) Pages ¶
func (c *CustomersDevicesListCall) Pages(ctx context.Context, f func(*CustomerListDevicesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type CustomersDevicesRemoveConfigurationCall ¶
type CustomersDevicesRemoveConfigurationCall struct {
// contains filtered or unexported fields
}
func (*CustomersDevicesRemoveConfigurationCall) Context ¶
func (c *CustomersDevicesRemoveConfigurationCall) Context(ctx context.Context) *CustomersDevicesRemoveConfigurationCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersDevicesRemoveConfigurationCall) Do ¶
func (c *CustomersDevicesRemoveConfigurationCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "androiddeviceprovisioning.customers.devices.removeConfiguration" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersDevicesRemoveConfigurationCall) Fields ¶
func (c *CustomersDevicesRemoveConfigurationCall) Fields(s ...googleapi.Field) *CustomersDevicesRemoveConfigurationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersDevicesRemoveConfigurationCall) Header ¶
func (c *CustomersDevicesRemoveConfigurationCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type CustomersDevicesService ¶
type CustomersDevicesService struct {
// contains filtered or unexported fields
}
func NewCustomersDevicesService ¶
func NewCustomersDevicesService(s *Service) *CustomersDevicesService
func (*CustomersDevicesService) ApplyConfiguration ¶
func (r *CustomersDevicesService) ApplyConfiguration(parent string, customerapplyconfigurationrequest *CustomerApplyConfigurationRequest) *CustomersDevicesApplyConfigurationCall
ApplyConfiguration: Applies a Configuration to the device to register the device for zero-touch enrollment. After applying a configuration to a device, the device automatically provisions itself on first boot, or next factory reset.
func (*CustomersDevicesService) Get ¶
func (r *CustomersDevicesService) Get(name string) *CustomersDevicesGetCall
Get: Gets the details of a device.
func (*CustomersDevicesService) List ¶
func (r *CustomersDevicesService) List(parent string) *CustomersDevicesListCall
List: Lists a customer's devices.
func (*CustomersDevicesService) RemoveConfiguration ¶
func (r *CustomersDevicesService) RemoveConfiguration(parent string, customerremoveconfigurationrequest *CustomerRemoveConfigurationRequest) *CustomersDevicesRemoveConfigurationCall
RemoveConfiguration: Removes a configuration from device.
func (*CustomersDevicesService) Unclaim ¶
func (r *CustomersDevicesService) Unclaim(parent string, customerunclaimdevicerequest *CustomerUnclaimDeviceRequest) *CustomersDevicesUnclaimCall
Unclaim: Unclaims a device from a customer and removes it from zero-touch enrollment. After removing a device, a customer must contact their reseller to register the device into zero-touch enrollment again.
type CustomersDevicesUnclaimCall ¶
type CustomersDevicesUnclaimCall struct {
// contains filtered or unexported fields
}
func (*CustomersDevicesUnclaimCall) Context ¶
func (c *CustomersDevicesUnclaimCall) Context(ctx context.Context) *CustomersDevicesUnclaimCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersDevicesUnclaimCall) Do ¶
func (c *CustomersDevicesUnclaimCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "androiddeviceprovisioning.customers.devices.unclaim" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersDevicesUnclaimCall) Fields ¶
func (c *CustomersDevicesUnclaimCall) Fields(s ...googleapi.Field) *CustomersDevicesUnclaimCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersDevicesUnclaimCall) Header ¶
func (c *CustomersDevicesUnclaimCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type CustomersDpcsListCall ¶
type CustomersDpcsListCall struct {
// contains filtered or unexported fields
}
func (*CustomersDpcsListCall) Context ¶
func (c *CustomersDpcsListCall) Context(ctx context.Context) *CustomersDpcsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersDpcsListCall) Do ¶
func (c *CustomersDpcsListCall) Do(opts ...googleapi.CallOption) (*CustomerListDpcsResponse, error)
Do executes the "androiddeviceprovisioning.customers.dpcs.list" call. Exactly one of *CustomerListDpcsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomerListDpcsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersDpcsListCall) Fields ¶
func (c *CustomersDpcsListCall) Fields(s ...googleapi.Field) *CustomersDpcsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersDpcsListCall) Header ¶
func (c *CustomersDpcsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersDpcsListCall) IfNoneMatch ¶
func (c *CustomersDpcsListCall) IfNoneMatch(entityTag string) *CustomersDpcsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type CustomersDpcsService ¶
type CustomersDpcsService struct {
// contains filtered or unexported fields
}
func NewCustomersDpcsService ¶
func NewCustomersDpcsService(s *Service) *CustomersDpcsService
func (*CustomersDpcsService) List ¶
func (r *CustomersDpcsService) List(parent string) *CustomersDpcsListCall
List: Lists the DPCs (device policy controllers) that support zero-touch enrollment.
type CustomersListCall ¶
type CustomersListCall struct {
// contains filtered or unexported fields
}
func (*CustomersListCall) Context ¶
func (c *CustomersListCall) Context(ctx context.Context) *CustomersListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CustomersListCall) Do ¶
func (c *CustomersListCall) Do(opts ...googleapi.CallOption) (*CustomerListCustomersResponse, error)
Do executes the "androiddeviceprovisioning.customers.list" call. Exactly one of *CustomerListCustomersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CustomerListCustomersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CustomersListCall) Fields ¶
func (c *CustomersListCall) Fields(s ...googleapi.Field) *CustomersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CustomersListCall) Header ¶
func (c *CustomersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CustomersListCall) IfNoneMatch ¶
func (c *CustomersListCall) IfNoneMatch(entityTag string) *CustomersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*CustomersListCall) PageSize ¶
func (c *CustomersListCall) PageSize(pageSize int64) *CustomersListCall
PageSize sets the optional parameter "pageSize": The maximum number of customers to show in a page of results. A number between 1 and 100 (inclusive).
func (*CustomersListCall) PageToken ¶
func (c *CustomersListCall) PageToken(pageToken string) *CustomersListCall
PageToken sets the optional parameter "pageToken": A token specifying which result page to return.
func (*CustomersListCall) Pages ¶
func (c *CustomersListCall) Pages(ctx context.Context, f func(*CustomerListCustomersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type CustomersService ¶
type CustomersService struct { Configurations *CustomersConfigurationsService Devices *CustomersDevicesService Dpcs *CustomersDpcsService // contains filtered or unexported fields }
func NewCustomersService ¶
func NewCustomersService(s *Service) *CustomersService
func (*CustomersService) List ¶
func (r *CustomersService) List() *CustomersListCall
List: Lists the user's customer accounts.
type Device ¶
type Device struct { // Claims: Output only. The provisioning claims for a device. Devices // claimed for zero-touch enrollment have a claim with the type // `SECTION_TYPE_ZERO_TOUCH`. Call `partners.devices.unclaim` or // `partners.devices.unclaimAsync` to remove the device from zero-touch // enrollment. Claims []*DeviceClaim `json:"claims,omitempty"` // Configuration: Not available to resellers. Configuration string `json:"configuration,omitempty"` // DeviceId: Output only. The ID of the device. Assigned by the server. DeviceId int64 `json:"deviceId,omitempty,string"` // DeviceIdentifier: The hardware IDs that identify a manufactured // device. To learn more, read Identifiers // (https://developers.google.com/zero-touch/guides/identifiers). DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"` // DeviceMetadata: The metadata attached to the device. Structured as // key-value pairs. To learn more, read Device metadata // (https://developers.google.com/zero-touch/guides/metadata). DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"` // Name: Output only. The API resource name in the format // `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Claims") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Claims") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Device: An Android device registered for zero-touch enrollment.
func (*Device) MarshalJSON ¶
type DeviceClaim ¶
type DeviceClaim struct { // OwnerCompanyId: The ID of the Customer that purchased the device. OwnerCompanyId int64 `json:"ownerCompanyId,omitempty,string"` // ResellerId: The ID of the reseller that claimed the device. ResellerId int64 `json:"resellerId,omitempty,string"` // SectionType: Output only. The type of claim made on the device. // // Possible values: // "SECTION_TYPE_UNSPECIFIED" - Unspecified section type. // "SECTION_TYPE_SIM_LOCK" - SIM-lock section type. // "SECTION_TYPE_ZERO_TOUCH" - Zero-touch enrollment section type. SectionType string `json:"sectionType,omitempty"` // VacationModeExpireTime: The timestamp when the device will exit // ‘vacation mode’. This value is present iff the device is in // 'vacation mode'. VacationModeExpireTime string `json:"vacationModeExpireTime,omitempty"` // VacationModeStartTime: The timestamp when the device was put into // ‘vacation mode’. This value is present iff the device is in // 'vacation mode'. VacationModeStartTime string `json:"vacationModeStartTime,omitempty"` // ForceSendFields is a list of field names (e.g. "OwnerCompanyId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "OwnerCompanyId") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
DeviceClaim: A record of a device claimed by a reseller for a customer. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. To learn more, read Claim devices for customers (/zero-touch/guides/how-it-works#claim).
func (*DeviceClaim) MarshalJSON ¶
func (s *DeviceClaim) MarshalJSON() ([]byte, error)
type DeviceIdentifier ¶
type DeviceIdentifier struct { // Imei: The device’s IMEI number. Validated on input. Imei string `json:"imei,omitempty"` // Manufacturer: The device manufacturer’s name. Matches the device's // built-in value returned from `android.os.Build.MANUFACTURER`. Allowed // values are listed in manufacturers // (/zero-touch/resources/manufacturer-names#manufacturers-names). Manufacturer string `json:"manufacturer,omitempty"` // Meid: The device’s MEID number. Meid string `json:"meid,omitempty"` // Model: The device model's name. Matches the device's built-in value // returned from `android.os.Build.MODEL`. Allowed values are listed in // models (/zero-touch/resources/manufacturer-names#model-names). Model string `json:"model,omitempty"` // SerialNumber: The manufacturer's serial number for the device. This // value might not be unique across different device models. SerialNumber string `json:"serialNumber,omitempty"` // ForceSendFields is a list of field names (e.g. "Imei") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Imei") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DeviceIdentifier: Encapsulates hardware and product IDs to identify a manufactured device. To understand requirements on identifier sets, read Identifiers (https://developers.google.com/zero-touch/guides/identifiers).
func (*DeviceIdentifier) MarshalJSON ¶
func (s *DeviceIdentifier) MarshalJSON() ([]byte, error)
type DeviceMetadata ¶
type DeviceMetadata struct { // Entries: Metadata entries recorded as key-value pairs. Entries map[string]string `json:"entries,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DeviceMetadata: Metadata entries that can be attached to a `Device`. To learn more, read Device metadata (https://developers.google.com/zero-touch/guides/metadata).
func (*DeviceMetadata) MarshalJSON ¶
func (s *DeviceMetadata) MarshalJSON() ([]byte, error)
type DeviceReference ¶
type DeviceReference struct { // DeviceId: The ID of the device. DeviceId int64 `json:"deviceId,omitempty,string"` // DeviceIdentifier: The hardware IDs of the device. DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeviceId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DeviceReference: A `DeviceReference` is an API abstraction that lets you supply a _device_ argument to a method using one of the following identifier types: * A numeric API resource ID. * Real-world hardware IDs, such as IMEI number, belonging to the manufactured device. Methods that operate on devices take a `DeviceReference` as a parameter type because it's more flexible for the caller. To learn more about device identifiers, read Identifiers (https://developers.google.com/zero-touch/guides/identifiers).
func (*DeviceReference) MarshalJSON ¶
func (s *DeviceReference) MarshalJSON() ([]byte, error)
type DevicesLongRunningOperationMetadata ¶
type DevicesLongRunningOperationMetadata struct { // DevicesCount: The number of metadata updates in the operation. This // might be different from the number of updates in the request if the // API can't parse some of the updates. DevicesCount int64 `json:"devicesCount,omitempty"` // ProcessingStatus: The processing status of the operation. // // Possible values: // "BATCH_PROCESS_STATUS_UNSPECIFIED" - Invalid code. Shouldn't be // used. // "BATCH_PROCESS_PENDING" - Pending. // "BATCH_PROCESS_IN_PROGRESS" - In progress. // "BATCH_PROCESS_PROCESSED" - Processed. This doesn't mean all items // were processed successfully, you should check the `response` field // for the result of every item. ProcessingStatus string `json:"processingStatus,omitempty"` // Progress: The processing progress of the operation. Measured as a // number from 0 to 100. A value of 10O doesnt always mean the operation // completed—check for the inclusion of a `done` field. Progress int64 `json:"progress,omitempty"` // ForceSendFields is a list of field names (e.g. "DevicesCount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DevicesCount") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DevicesLongRunningOperationMetadata: Tracks the status of a long-running operation to asynchronously update a batch of reseller metadata attached to devices. To learn more, read Long‑running batch operations (/zero-touch/guides/how-it-works#operations).
func (*DevicesLongRunningOperationMetadata) MarshalJSON ¶
func (s *DevicesLongRunningOperationMetadata) MarshalJSON() ([]byte, error)
type DevicesLongRunningOperationResponse ¶
type DevicesLongRunningOperationResponse struct { // PerDeviceStatus: The processing status for each device in the // operation. One `PerDeviceStatus` per device. The list order matches // the items in the original request. PerDeviceStatus []*OperationPerDevice `json:"perDeviceStatus,omitempty"` // SuccessCount: A summary of how many items in the operation the server // processed successfully. Updated as the operation progresses. SuccessCount int64 `json:"successCount,omitempty"` // ForceSendFields is a list of field names (e.g. "PerDeviceStatus") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PerDeviceStatus") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
DevicesLongRunningOperationResponse: Tracks the status of a long-running operation to claim, unclaim, or attach metadata to devices. To learn more, read Long‑running batch operations (/zero-touch/guides/how-it-works#operations).
func (*DevicesLongRunningOperationResponse) MarshalJSON ¶
func (s *DevicesLongRunningOperationResponse) MarshalJSON() ([]byte, error)
type Dpc ¶
type Dpc struct { // DpcName: Output only. The title of the DPC app in Google Play. For // example, _Google Apps Device Policy_. Useful in an application's user // interface. DpcName string `json:"dpcName,omitempty"` // Name: Output only. The API resource name in the format // `customers/[CUSTOMER_ID]/dpcs/[DPC_ID]`. Assigned by the server. To // maintain a reference to a DPC across customer accounts, persist and // match the last path component (`DPC_ID`). Name string `json:"name,omitempty"` // PackageName: Output only. The DPC's Android application ID that looks // like a Java package name. Zero-touch enrollment installs the DPC app // onto a device using this identifier. PackageName string `json:"packageName,omitempty"` // ForceSendFields is a list of field names (e.g. "DpcName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DpcName") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Dpc: An EMM's DPC (device policy controller (http://developer.android.com/work/dpc/build-dpc.html)). Zero-touch enrollment installs a DPC (listed in the `Configuration`) on a device to maintain the customer's mobile policies. All the DPCs listed by the API support zero-touch enrollment and are available in Google Play.
func (*Dpc) MarshalJSON ¶
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
type FindDevicesByDeviceIdentifierRequest ¶
type FindDevicesByDeviceIdentifierRequest struct { // DeviceIdentifier: Required. Required. The device identifier to search // for. DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"` // Limit: Required. The maximum number of devices to show in a page of // results. Must be between 1 and 100 inclusive. Limit int64 `json:"limit,omitempty,string"` // PageToken: A token specifying which result page to return. PageToken string `json:"pageToken,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceIdentifier") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeviceIdentifier") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
FindDevicesByDeviceIdentifierRequest: Request to find devices.
func (*FindDevicesByDeviceIdentifierRequest) MarshalJSON ¶
func (s *FindDevicesByDeviceIdentifierRequest) MarshalJSON() ([]byte, error)
type FindDevicesByDeviceIdentifierResponse ¶
type FindDevicesByDeviceIdentifierResponse struct { // Devices: Found devices. Devices []*Device `json:"devices,omitempty"` // NextPageToken: A token used to access the next page of results. // Omitted if no further results are available. NextPageToken string `json:"nextPageToken,omitempty"` // TotalSize: The total count of items in the list irrespective of // pagination. TotalSize int64 `json:"totalSize,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Devices") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Devices") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FindDevicesByDeviceIdentifierResponse: Response containing found devices.
func (*FindDevicesByDeviceIdentifierResponse) MarshalJSON ¶
func (s *FindDevicesByDeviceIdentifierResponse) MarshalJSON() ([]byte, error)
type FindDevicesByOwnerRequest ¶
type FindDevicesByOwnerRequest struct { // CustomerId: Required. The list of customer IDs to search for. CustomerId googleapi.Int64s `json:"customerId,omitempty"` // Limit: Required. The maximum number of devices to show in a page of // results. Must be between 1 and 100 inclusive. Limit int64 `json:"limit,omitempty,string"` // PageToken: A token specifying which result page to return. PageToken string `json:"pageToken,omitempty"` // SectionType: Required. The section type of the device's provisioning // record. // // Possible values: // "SECTION_TYPE_UNSPECIFIED" - Unspecified section type. // "SECTION_TYPE_SIM_LOCK" - SIM-lock section type. // "SECTION_TYPE_ZERO_TOUCH" - Zero-touch enrollment section type. SectionType string `json:"sectionType,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomerId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CustomerId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FindDevicesByOwnerRequest: Request to find devices by customers.
func (*FindDevicesByOwnerRequest) MarshalJSON ¶
func (s *FindDevicesByOwnerRequest) MarshalJSON() ([]byte, error)
type FindDevicesByOwnerResponse ¶
type FindDevicesByOwnerResponse struct { // Devices: The customer's devices. Devices []*Device `json:"devices,omitempty"` // NextPageToken: A token used to access the next page of results. // Omitted if no further results are available. NextPageToken string `json:"nextPageToken,omitempty"` // TotalSize: The total count of items in the list irrespective of // pagination. TotalSize int64 `json:"totalSize,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Devices") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Devices") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FindDevicesByOwnerResponse: Response containing found devices.
func (*FindDevicesByOwnerResponse) MarshalJSON ¶
func (s *FindDevicesByOwnerResponse) MarshalJSON() ([]byte, error)
type ListCustomersResponse ¶
type ListCustomersResponse struct { // Customers: List of customers related to this reseller partner. Customers []*Company `json:"customers,omitempty"` // NextPageToken: A token to retrieve the next page of results. Omitted // if no further results are available. NextPageToken string `json:"nextPageToken,omitempty"` // TotalSize: The total count of items in the list irrespective of // pagination. TotalSize int64 `json:"totalSize,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Customers") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Customers") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListCustomersResponse: Response message of all customers related to this partner.
func (*ListCustomersResponse) MarshalJSON ¶
func (s *ListCustomersResponse) MarshalJSON() ([]byte, error)
type ListVendorCustomersResponse ¶
type ListVendorCustomersResponse struct { // Customers: List of customers of the vendor. Customers []*Company `json:"customers,omitempty"` // NextPageToken: A token to retrieve the next page of results. Omitted // if no further results are available. NextPageToken string `json:"nextPageToken,omitempty"` // TotalSize: The total count of items in the list irrespective of // pagination. TotalSize int64 `json:"totalSize,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Customers") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Customers") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListVendorCustomersResponse: Response message to list customers of the vendor.
func (*ListVendorCustomersResponse) MarshalJSON ¶
func (s *ListVendorCustomersResponse) MarshalJSON() ([]byte, error)
type ListVendorsResponse ¶
type ListVendorsResponse struct { // NextPageToken: A token to retrieve the next page of results. Omitted // if no further results are available. NextPageToken string `json:"nextPageToken,omitempty"` // TotalSize: The total count of items in the list irrespective of // pagination. TotalSize int64 `json:"totalSize,omitempty"` // Vendors: List of vendors of the reseller partner. Fields `name`, // `companyId` and `companyName` are populated to the Company object. Vendors []*Company `json:"vendors,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListVendorsResponse: Response message to list vendors of the partner.
func (*ListVendorsResponse) MarshalJSON ¶
func (s *ListVendorsResponse) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. If `true`, the operation is completed, and either `error` // or `response` is available. Done bool `json:"done,omitempty"` // Error: This field will always be not set if the operation is created // by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this // case, error information for each device is set in // `response.perDeviceStatus.result.status`. Error *Status `json:"error,omitempty"` // Metadata: This field will contain a // `DevicesLongRunningOperationMetadata` object if the operation is // created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same // service that originally returns it. If you use the default HTTP // mapping, the `name` should be a resource name ending with // `operations/{unique_id}`. Name string `json:"name,omitempty"` // Response: This field will contain a // `DevicesLongRunningOperationResponse` object if the operation is // created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Done") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Operation: This resource represents a long-running operation that is the result of a network API call.
func (*Operation) MarshalJSON ¶
type OperationPerDevice ¶
type OperationPerDevice struct { // Claim: A copy of the original device-claim request received by the // server. Claim *PartnerClaim `json:"claim,omitempty"` // Result: The processing result for each device. Result *PerDeviceStatusInBatch `json:"result,omitempty"` // Unclaim: A copy of the original device-unclaim request received by // the server. Unclaim *PartnerUnclaim `json:"unclaim,omitempty"` // UpdateMetadata: A copy of the original metadata-update request // received by the server. UpdateMetadata *UpdateMetadataArguments `json:"updateMetadata,omitempty"` // ForceSendFields is a list of field names (e.g. "Claim") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Claim") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
OperationPerDevice: A task for each device in the operation. Corresponds to each device change in the request.
func (*OperationPerDevice) MarshalJSON ¶
func (s *OperationPerDevice) MarshalJSON() ([]byte, error)
type OperationsGetCall ¶
type OperationsGetCall struct {
// contains filtered or unexported fields
}
func (*OperationsGetCall) Context ¶
func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OperationsGetCall) Do ¶
func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "androiddeviceprovisioning.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OperationsGetCall) Fields ¶
func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OperationsGetCall) Header ¶
func (c *OperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OperationsGetCall) IfNoneMatch ¶
func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type OperationsService ¶
type OperationsService struct {
// contains filtered or unexported fields
}
func NewOperationsService ¶
func NewOperationsService(s *Service) *OperationsService
func (*OperationsService) Get ¶
func (r *OperationsService) Get(name string) *OperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
type PartnerClaim ¶
type PartnerClaim struct { // CustomerId: Required. The ID of the customer for whom the device is // being claimed. CustomerId int64 `json:"customerId,omitempty,string"` // DeviceIdentifier: Required. Required. Device identifier of the // device. DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"` // DeviceMetadata: Required. The metadata to attach to the device at // claim. DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"` // SectionType: Required. The section type of the device's provisioning // record. // // Possible values: // "SECTION_TYPE_UNSPECIFIED" - Unspecified section type. // "SECTION_TYPE_SIM_LOCK" - SIM-lock section type. // "SECTION_TYPE_ZERO_TOUCH" - Zero-touch enrollment section type. SectionType string `json:"sectionType,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomerId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CustomerId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PartnerClaim: Identifies one claim request.
func (*PartnerClaim) MarshalJSON ¶
func (s *PartnerClaim) MarshalJSON() ([]byte, error)
type PartnerUnclaim ¶
type PartnerUnclaim struct { // DeviceId: Required. Device ID of the device. DeviceId int64 `json:"deviceId,omitempty,string"` // DeviceIdentifier: Required. Device identifier of the device. DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"` // SectionType: Required. The section type of the device's provisioning // record. // // Possible values: // "SECTION_TYPE_UNSPECIFIED" - Unspecified section type. // "SECTION_TYPE_SIM_LOCK" - SIM-lock section type. // "SECTION_TYPE_ZERO_TOUCH" - Zero-touch enrollment section type. SectionType string `json:"sectionType,omitempty"` // VacationModeDays: Optional. The duration of the vacation unlock // starting from when the request is processed. (1 day is treated as 24 // hours) VacationModeDays int64 `json:"vacationModeDays,omitempty"` // VacationModeExpireTime: Optional. The expiration time of the vacation // unlock. VacationModeExpireTime string `json:"vacationModeExpireTime,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeviceId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PartnerUnclaim: Identifies one unclaim request.
func (*PartnerUnclaim) MarshalJSON ¶
func (s *PartnerUnclaim) MarshalJSON() ([]byte, error)
type PartnersCustomersCreateCall ¶
type PartnersCustomersCreateCall struct {
// contains filtered or unexported fields
}
func (*PartnersCustomersCreateCall) Context ¶
func (c *PartnersCustomersCreateCall) Context(ctx context.Context) *PartnersCustomersCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersCustomersCreateCall) Do ¶
func (c *PartnersCustomersCreateCall) Do(opts ...googleapi.CallOption) (*Company, error)
Do executes the "androiddeviceprovisioning.partners.customers.create" call. Exactly one of *Company or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Company.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersCustomersCreateCall) Fields ¶
func (c *PartnersCustomersCreateCall) Fields(s ...googleapi.Field) *PartnersCustomersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersCustomersCreateCall) Header ¶
func (c *PartnersCustomersCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PartnersCustomersListCall ¶
type PartnersCustomersListCall struct {
// contains filtered or unexported fields
}
func (*PartnersCustomersListCall) Context ¶
func (c *PartnersCustomersListCall) Context(ctx context.Context) *PartnersCustomersListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersCustomersListCall) Do ¶
func (c *PartnersCustomersListCall) Do(opts ...googleapi.CallOption) (*ListCustomersResponse, error)
Do executes the "androiddeviceprovisioning.partners.customers.list" call. Exactly one of *ListCustomersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListCustomersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersCustomersListCall) Fields ¶
func (c *PartnersCustomersListCall) Fields(s ...googleapi.Field) *PartnersCustomersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersCustomersListCall) Header ¶
func (c *PartnersCustomersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PartnersCustomersListCall) IfNoneMatch ¶
func (c *PartnersCustomersListCall) IfNoneMatch(entityTag string) *PartnersCustomersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PartnersCustomersListCall) PageSize ¶
func (c *PartnersCustomersListCall) PageSize(pageSize int64) *PartnersCustomersListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to be returned. If not specified or 0, all the records are returned.
func (*PartnersCustomersListCall) PageToken ¶
func (c *PartnersCustomersListCall) PageToken(pageToken string) *PartnersCustomersListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results returned by the server.
func (*PartnersCustomersListCall) Pages ¶
func (c *PartnersCustomersListCall) Pages(ctx context.Context, f func(*ListCustomersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type PartnersCustomersService ¶
type PartnersCustomersService struct {
// contains filtered or unexported fields
}
func NewPartnersCustomersService ¶
func NewPartnersCustomersService(s *Service) *PartnersCustomersService
func (*PartnersCustomersService) Create ¶
func (r *PartnersCustomersService) Create(parent string, createcustomerrequest *CreateCustomerRequest) *PartnersCustomersCreateCall
Create: Creates a customer for zero-touch enrollment. After the method returns successfully, admin and owner roles can manage devices and EMM configs by calling API methods or using their zero-touch enrollment portal. The customer receives an email that welcomes them to zero-touch enrollment and explains how to sign into the portal.
func (*PartnersCustomersService) List ¶
func (r *PartnersCustomersService) List(partnerId int64) *PartnersCustomersListCall
List: Lists the customers that are enrolled to the reseller identified by the `partnerId` argument. This list includes customers that the reseller created and customers that enrolled themselves using the portal.
type PartnersDevicesClaimAsyncCall ¶
type PartnersDevicesClaimAsyncCall struct {
// contains filtered or unexported fields
}
func (*PartnersDevicesClaimAsyncCall) Context ¶
func (c *PartnersDevicesClaimAsyncCall) Context(ctx context.Context) *PartnersDevicesClaimAsyncCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersDevicesClaimAsyncCall) Do ¶
func (c *PartnersDevicesClaimAsyncCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "androiddeviceprovisioning.partners.devices.claimAsync" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersDevicesClaimAsyncCall) Fields ¶
func (c *PartnersDevicesClaimAsyncCall) Fields(s ...googleapi.Field) *PartnersDevicesClaimAsyncCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersDevicesClaimAsyncCall) Header ¶
func (c *PartnersDevicesClaimAsyncCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PartnersDevicesClaimCall ¶
type PartnersDevicesClaimCall struct {
// contains filtered or unexported fields
}
func (*PartnersDevicesClaimCall) Context ¶
func (c *PartnersDevicesClaimCall) Context(ctx context.Context) *PartnersDevicesClaimCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersDevicesClaimCall) Do ¶
func (c *PartnersDevicesClaimCall) Do(opts ...googleapi.CallOption) (*ClaimDeviceResponse, error)
Do executes the "androiddeviceprovisioning.partners.devices.claim" call. Exactly one of *ClaimDeviceResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ClaimDeviceResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersDevicesClaimCall) Fields ¶
func (c *PartnersDevicesClaimCall) Fields(s ...googleapi.Field) *PartnersDevicesClaimCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersDevicesClaimCall) Header ¶
func (c *PartnersDevicesClaimCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PartnersDevicesFindByIdentifierCall ¶
type PartnersDevicesFindByIdentifierCall struct {
// contains filtered or unexported fields
}
func (*PartnersDevicesFindByIdentifierCall) Context ¶
func (c *PartnersDevicesFindByIdentifierCall) Context(ctx context.Context) *PartnersDevicesFindByIdentifierCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersDevicesFindByIdentifierCall) Do ¶
func (c *PartnersDevicesFindByIdentifierCall) Do(opts ...googleapi.CallOption) (*FindDevicesByDeviceIdentifierResponse, error)
Do executes the "androiddeviceprovisioning.partners.devices.findByIdentifier" call. Exactly one of *FindDevicesByDeviceIdentifierResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FindDevicesByDeviceIdentifierResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersDevicesFindByIdentifierCall) Fields ¶
func (c *PartnersDevicesFindByIdentifierCall) Fields(s ...googleapi.Field) *PartnersDevicesFindByIdentifierCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersDevicesFindByIdentifierCall) Header ¶
func (c *PartnersDevicesFindByIdentifierCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PartnersDevicesFindByIdentifierCall) Pages ¶
func (c *PartnersDevicesFindByIdentifierCall) Pages(ctx context.Context, f func(*FindDevicesByDeviceIdentifierResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type PartnersDevicesFindByOwnerCall ¶
type PartnersDevicesFindByOwnerCall struct {
// contains filtered or unexported fields
}
func (*PartnersDevicesFindByOwnerCall) Context ¶
func (c *PartnersDevicesFindByOwnerCall) Context(ctx context.Context) *PartnersDevicesFindByOwnerCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersDevicesFindByOwnerCall) Do ¶
func (c *PartnersDevicesFindByOwnerCall) Do(opts ...googleapi.CallOption) (*FindDevicesByOwnerResponse, error)
Do executes the "androiddeviceprovisioning.partners.devices.findByOwner" call. Exactly one of *FindDevicesByOwnerResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FindDevicesByOwnerResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersDevicesFindByOwnerCall) Fields ¶
func (c *PartnersDevicesFindByOwnerCall) Fields(s ...googleapi.Field) *PartnersDevicesFindByOwnerCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersDevicesFindByOwnerCall) Header ¶
func (c *PartnersDevicesFindByOwnerCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PartnersDevicesFindByOwnerCall) Pages ¶
func (c *PartnersDevicesFindByOwnerCall) Pages(ctx context.Context, f func(*FindDevicesByOwnerResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type PartnersDevicesGetCall ¶
type PartnersDevicesGetCall struct {
// contains filtered or unexported fields
}
func (*PartnersDevicesGetCall) Context ¶
func (c *PartnersDevicesGetCall) Context(ctx context.Context) *PartnersDevicesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersDevicesGetCall) Do ¶
func (c *PartnersDevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, error)
Do executes the "androiddeviceprovisioning.partners.devices.get" call. Exactly one of *Device or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Device.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersDevicesGetCall) Fields ¶
func (c *PartnersDevicesGetCall) Fields(s ...googleapi.Field) *PartnersDevicesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersDevicesGetCall) Header ¶
func (c *PartnersDevicesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PartnersDevicesGetCall) IfNoneMatch ¶
func (c *PartnersDevicesGetCall) IfNoneMatch(entityTag string) *PartnersDevicesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type PartnersDevicesMetadataCall ¶
type PartnersDevicesMetadataCall struct {
// contains filtered or unexported fields
}
func (*PartnersDevicesMetadataCall) Context ¶
func (c *PartnersDevicesMetadataCall) Context(ctx context.Context) *PartnersDevicesMetadataCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersDevicesMetadataCall) Do ¶
func (c *PartnersDevicesMetadataCall) Do(opts ...googleapi.CallOption) (*DeviceMetadata, error)
Do executes the "androiddeviceprovisioning.partners.devices.metadata" call. Exactly one of *DeviceMetadata or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DeviceMetadata.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersDevicesMetadataCall) Fields ¶
func (c *PartnersDevicesMetadataCall) Fields(s ...googleapi.Field) *PartnersDevicesMetadataCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersDevicesMetadataCall) Header ¶
func (c *PartnersDevicesMetadataCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PartnersDevicesService ¶
type PartnersDevicesService struct {
// contains filtered or unexported fields
}
func NewPartnersDevicesService ¶
func NewPartnersDevicesService(s *Service) *PartnersDevicesService
func (*PartnersDevicesService) Claim ¶
func (r *PartnersDevicesService) Claim(partnerId int64, claimdevicerequest *ClaimDeviceRequest) *PartnersDevicesClaimCall
Claim: Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.
func (*PartnersDevicesService) ClaimAsync ¶
func (r *PartnersDevicesService) ClaimAsync(partnerId int64, claimdevicesrequest *ClaimDevicesRequest) *PartnersDevicesClaimAsyncCall
ClaimAsync: Claims a batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read Long‑running batch operations (/zero-touch/guides/how-it-works#operations).
func (*PartnersDevicesService) FindByIdentifier ¶
func (r *PartnersDevicesService) FindByIdentifier(partnerId int64, finddevicesbydeviceidentifierrequest *FindDevicesByDeviceIdentifierRequest) *PartnersDevicesFindByIdentifierCall
FindByIdentifier: Finds devices by hardware identifiers, such as IMEI.
func (*PartnersDevicesService) FindByOwner ¶
func (r *PartnersDevicesService) FindByOwner(partnerId int64, finddevicesbyownerrequest *FindDevicesByOwnerRequest) *PartnersDevicesFindByOwnerCall
FindByOwner: Finds devices claimed for customers. The results only contain devices registered to the reseller that's identified by the `partnerId` argument. The customer's devices purchased from other resellers don't appear in the results.
func (*PartnersDevicesService) Get ¶
func (r *PartnersDevicesService) Get(name string) *PartnersDevicesGetCall
Get: Gets a device.
func (*PartnersDevicesService) Metadata ¶
func (r *PartnersDevicesService) Metadata(metadataOwnerId int64, deviceId int64, updatedevicemetadatarequest *UpdateDeviceMetadataRequest) *PartnersDevicesMetadataCall
Metadata: Updates reseller metadata associated with the device.
func (*PartnersDevicesService) Unclaim ¶
func (r *PartnersDevicesService) Unclaim(partnerId int64, unclaimdevicerequest *UnclaimDeviceRequest) *PartnersDevicesUnclaimCall
Unclaim: Unclaims a device from a customer and removes it from zero-touch enrollment.
func (*PartnersDevicesService) UnclaimAsync ¶
func (r *PartnersDevicesService) UnclaimAsync(partnerId int64, unclaimdevicesrequest *UnclaimDevicesRequest) *PartnersDevicesUnclaimAsyncCall
UnclaimAsync: Unclaims a batch of devices for a customer asynchronously. Removes the devices from zero-touch enrollment. To learn more, read Long‑running batch operations (/zero-touch/guides/how-it-works#operations).
func (*PartnersDevicesService) UpdateMetadataAsync ¶
func (r *PartnersDevicesService) UpdateMetadataAsync(partnerId int64, updatedevicemetadatainbatchrequest *UpdateDeviceMetadataInBatchRequest) *PartnersDevicesUpdateMetadataAsyncCall
UpdateMetadataAsync: Updates the reseller metadata attached to a batch of devices. This method updates devices asynchronously and returns an `Operation` that can be used to track progress. Read Long‑running batch operations (/zero-touch/guides/how-it-works#operations).
type PartnersDevicesUnclaimAsyncCall ¶
type PartnersDevicesUnclaimAsyncCall struct {
// contains filtered or unexported fields
}
func (*PartnersDevicesUnclaimAsyncCall) Context ¶
func (c *PartnersDevicesUnclaimAsyncCall) Context(ctx context.Context) *PartnersDevicesUnclaimAsyncCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersDevicesUnclaimAsyncCall) Do ¶
func (c *PartnersDevicesUnclaimAsyncCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "androiddeviceprovisioning.partners.devices.unclaimAsync" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersDevicesUnclaimAsyncCall) Fields ¶
func (c *PartnersDevicesUnclaimAsyncCall) Fields(s ...googleapi.Field) *PartnersDevicesUnclaimAsyncCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersDevicesUnclaimAsyncCall) Header ¶
func (c *PartnersDevicesUnclaimAsyncCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PartnersDevicesUnclaimCall ¶
type PartnersDevicesUnclaimCall struct {
// contains filtered or unexported fields
}
func (*PartnersDevicesUnclaimCall) Context ¶
func (c *PartnersDevicesUnclaimCall) Context(ctx context.Context) *PartnersDevicesUnclaimCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersDevicesUnclaimCall) Do ¶
func (c *PartnersDevicesUnclaimCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "androiddeviceprovisioning.partners.devices.unclaim" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersDevicesUnclaimCall) Fields ¶
func (c *PartnersDevicesUnclaimCall) Fields(s ...googleapi.Field) *PartnersDevicesUnclaimCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersDevicesUnclaimCall) Header ¶
func (c *PartnersDevicesUnclaimCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PartnersDevicesUpdateMetadataAsyncCall ¶
type PartnersDevicesUpdateMetadataAsyncCall struct {
// contains filtered or unexported fields
}
func (*PartnersDevicesUpdateMetadataAsyncCall) Context ¶
func (c *PartnersDevicesUpdateMetadataAsyncCall) Context(ctx context.Context) *PartnersDevicesUpdateMetadataAsyncCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersDevicesUpdateMetadataAsyncCall) Do ¶
func (c *PartnersDevicesUpdateMetadataAsyncCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "androiddeviceprovisioning.partners.devices.updateMetadataAsync" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersDevicesUpdateMetadataAsyncCall) Fields ¶
func (c *PartnersDevicesUpdateMetadataAsyncCall) Fields(s ...googleapi.Field) *PartnersDevicesUpdateMetadataAsyncCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersDevicesUpdateMetadataAsyncCall) Header ¶
func (c *PartnersDevicesUpdateMetadataAsyncCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PartnersService ¶
type PartnersService struct { Customers *PartnersCustomersService Devices *PartnersDevicesService Vendors *PartnersVendorsService // contains filtered or unexported fields }
func NewPartnersService ¶
func NewPartnersService(s *Service) *PartnersService
type PartnersVendorsCustomersListCall ¶
type PartnersVendorsCustomersListCall struct {
// contains filtered or unexported fields
}
func (*PartnersVendorsCustomersListCall) Context ¶
func (c *PartnersVendorsCustomersListCall) Context(ctx context.Context) *PartnersVendorsCustomersListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersVendorsCustomersListCall) Do ¶
func (c *PartnersVendorsCustomersListCall) Do(opts ...googleapi.CallOption) (*ListVendorCustomersResponse, error)
Do executes the "androiddeviceprovisioning.partners.vendors.customers.list" call. Exactly one of *ListVendorCustomersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListVendorCustomersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersVendorsCustomersListCall) Fields ¶
func (c *PartnersVendorsCustomersListCall) Fields(s ...googleapi.Field) *PartnersVendorsCustomersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersVendorsCustomersListCall) Header ¶
func (c *PartnersVendorsCustomersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PartnersVendorsCustomersListCall) IfNoneMatch ¶
func (c *PartnersVendorsCustomersListCall) IfNoneMatch(entityTag string) *PartnersVendorsCustomersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PartnersVendorsCustomersListCall) PageSize ¶
func (c *PartnersVendorsCustomersListCall) PageSize(pageSize int64) *PartnersVendorsCustomersListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to be returned.
func (*PartnersVendorsCustomersListCall) PageToken ¶
func (c *PartnersVendorsCustomersListCall) PageToken(pageToken string) *PartnersVendorsCustomersListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results returned by the server.
func (*PartnersVendorsCustomersListCall) Pages ¶
func (c *PartnersVendorsCustomersListCall) Pages(ctx context.Context, f func(*ListVendorCustomersResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type PartnersVendorsCustomersService ¶
type PartnersVendorsCustomersService struct {
// contains filtered or unexported fields
}
func NewPartnersVendorsCustomersService ¶
func NewPartnersVendorsCustomersService(s *Service) *PartnersVendorsCustomersService
func (*PartnersVendorsCustomersService) List ¶
func (r *PartnersVendorsCustomersService) List(parent string) *PartnersVendorsCustomersListCall
List: Lists the customers of the vendor.
type PartnersVendorsListCall ¶
type PartnersVendorsListCall struct {
// contains filtered or unexported fields
}
func (*PartnersVendorsListCall) Context ¶
func (c *PartnersVendorsListCall) Context(ctx context.Context) *PartnersVendorsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PartnersVendorsListCall) Do ¶
func (c *PartnersVendorsListCall) Do(opts ...googleapi.CallOption) (*ListVendorsResponse, error)
Do executes the "androiddeviceprovisioning.partners.vendors.list" call. Exactly one of *ListVendorsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListVendorsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PartnersVendorsListCall) Fields ¶
func (c *PartnersVendorsListCall) Fields(s ...googleapi.Field) *PartnersVendorsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PartnersVendorsListCall) Header ¶
func (c *PartnersVendorsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PartnersVendorsListCall) IfNoneMatch ¶
func (c *PartnersVendorsListCall) IfNoneMatch(entityTag string) *PartnersVendorsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PartnersVendorsListCall) PageSize ¶
func (c *PartnersVendorsListCall) PageSize(pageSize int64) *PartnersVendorsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to be returned.
func (*PartnersVendorsListCall) PageToken ¶
func (c *PartnersVendorsListCall) PageToken(pageToken string) *PartnersVendorsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results returned by the server.
func (*PartnersVendorsListCall) Pages ¶
func (c *PartnersVendorsListCall) Pages(ctx context.Context, f func(*ListVendorsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type PartnersVendorsService ¶
type PartnersVendorsService struct { Customers *PartnersVendorsCustomersService // contains filtered or unexported fields }
func NewPartnersVendorsService ¶
func NewPartnersVendorsService(s *Service) *PartnersVendorsService
func (*PartnersVendorsService) List ¶
func (r *PartnersVendorsService) List(parent string) *PartnersVendorsListCall
List: Lists the vendors of the partner.
type PerDeviceStatusInBatch ¶
type PerDeviceStatusInBatch struct { // DeviceId: If processing succeeds, the device ID of the device. DeviceId int64 `json:"deviceId,omitempty,string"` // ErrorIdentifier: If processing fails, the error type. ErrorIdentifier string `json:"errorIdentifier,omitempty"` // ErrorMessage: If processing fails, a developer message explaining // what went wrong. ErrorMessage string `json:"errorMessage,omitempty"` // Status: The result status of the device after processing. // // Possible values: // "SINGLE_DEVICE_STATUS_UNSPECIFIED" - Invalid code. Shouldn't be // used. // "SINGLE_DEVICE_STATUS_UNKNOWN_ERROR" - Unknown error. We don't // expect this error to occur here. // "SINGLE_DEVICE_STATUS_OTHER_ERROR" - Other error. We know/expect // this error, but there's no defined error code for the error. // "SINGLE_DEVICE_STATUS_SUCCESS" - Success. // "SINGLE_DEVICE_STATUS_PERMISSION_DENIED" - Permission denied. // "SINGLE_DEVICE_STATUS_INVALID_DEVICE_IDENTIFIER" - Invalid device // identifier. // "SINGLE_DEVICE_STATUS_INVALID_SECTION_TYPE" - Invalid section type. // "SINGLE_DEVICE_STATUS_SECTION_NOT_YOURS" - This section is claimed // by another company. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeviceId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PerDeviceStatusInBatch: Captures the processing status for each device in the operation.
func (*PerDeviceStatusInBatch) MarshalJSON ¶
func (s *PerDeviceStatusInBatch) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Customers *CustomersService Operations *OperationsService Partners *PartnersService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶ added in v0.3.0
NewService creates a new Service.
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a // common set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any user-facing error message should be localized and sent // in the google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (*Status) MarshalJSON ¶
type UnclaimDeviceRequest ¶
type UnclaimDeviceRequest struct { // DeviceId: Required. The device ID returned by `ClaimDevice`. DeviceId int64 `json:"deviceId,omitempty,string"` // DeviceIdentifier: Required. The device identifier you used when you // claimed this device. DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"` // SectionType: Required. The section type of the device's provisioning // record. // // Possible values: // "SECTION_TYPE_UNSPECIFIED" - Unspecified section type. // "SECTION_TYPE_SIM_LOCK" - SIM-lock section type. // "SECTION_TYPE_ZERO_TOUCH" - Zero-touch enrollment section type. SectionType string `json:"sectionType,omitempty"` // VacationModeDays: The duration of the vacation unlock starting from // when the request is processed. (1 day is treated as 24 hours) VacationModeDays int64 `json:"vacationModeDays,omitempty"` // VacationModeExpireTime: The expiration time of the vacation unlock. VacationModeExpireTime string `json:"vacationModeExpireTime,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeviceId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UnclaimDeviceRequest: Request message to unclaim a device.
func (*UnclaimDeviceRequest) MarshalJSON ¶
func (s *UnclaimDeviceRequest) MarshalJSON() ([]byte, error)
type UnclaimDevicesRequest ¶
type UnclaimDevicesRequest struct { // Unclaims: Required. The list of devices to unclaim. Unclaims []*PartnerUnclaim `json:"unclaims,omitempty"` // ForceSendFields is a list of field names (e.g. "Unclaims") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Unclaims") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UnclaimDevicesRequest: Request to unclaim devices asynchronously in batch.
func (*UnclaimDevicesRequest) MarshalJSON ¶
func (s *UnclaimDevicesRequest) MarshalJSON() ([]byte, error)
type UpdateDeviceMetadataInBatchRequest ¶
type UpdateDeviceMetadataInBatchRequest struct { // Updates: Required. The list of metadata updates. Updates []*UpdateMetadataArguments `json:"updates,omitempty"` // ForceSendFields is a list of field names (e.g. "Updates") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Updates") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UpdateDeviceMetadataInBatchRequest: Request to update device metadata in batch.
func (*UpdateDeviceMetadataInBatchRequest) MarshalJSON ¶
func (s *UpdateDeviceMetadataInBatchRequest) MarshalJSON() ([]byte, error)
type UpdateDeviceMetadataRequest ¶
type UpdateDeviceMetadataRequest struct { // DeviceMetadata: Required. The metadata to attach to the device. DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceMetadata") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeviceMetadata") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
UpdateDeviceMetadataRequest: Request to set metadata for a device.
func (*UpdateDeviceMetadataRequest) MarshalJSON ¶
func (s *UpdateDeviceMetadataRequest) MarshalJSON() ([]byte, error)
type UpdateMetadataArguments ¶
type UpdateMetadataArguments struct { // DeviceId: Required. Device ID of the device. DeviceId int64 `json:"deviceId,omitempty,string"` // DeviceIdentifier: Required. Device identifier. DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"` // DeviceMetadata: Required. The metadata to update. DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeviceId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UpdateMetadataArguments: Identifies metadata updates to one device.
func (*UpdateMetadataArguments) MarshalJSON ¶
func (s *UpdateMetadataArguments) MarshalJSON() ([]byte, error)