Documentation
¶
Overview ¶
Package androiddeviceprovisioning provides access to the Android Device Provisioning Partner API.
See https://developers.google.com/zero-touch/
Usage example:
import "google.golang.org/api/androiddeviceprovisioning/v1" ... androiddeviceprovisioningService, err := androiddeviceprovisioning.New(oauthHttpClient)
Index ¶
- type ClaimDeviceRequest
- type ClaimDeviceResponse
- type ClaimDevicesRequest
- type Company
- type CreateCustomerRequest
- type Device
- type DeviceClaim
- type DeviceIdentifier
- type DeviceMetadata
- type DevicesLongRunningOperationMetadata
- type DevicesLongRunningOperationResponse
- type Empty
- type FindDevicesByDeviceIdentifierRequest
- type FindDevicesByDeviceIdentifierResponse
- type FindDevicesByOwnerRequest
- type FindDevicesByOwnerResponse
- type ListCustomersResponse
- 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
- 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 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: The customer to claim for.
CustomerId int64 `json:"customerId,omitempty,string"`
// DeviceIdentifier: The device identifier of the device to claim.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// SectionType: The section to claim.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch 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: List of 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.
func (*ClaimDevicesRequest) MarshalJSON ¶
func (s *ClaimDevicesRequest) MarshalJSON() ([]byte, error)
type Company ¶
type Company struct {
// AdminEmails: Input only. 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_. Characters
// allowed are: Latin letters, numerals, hyphens, and spaces. Displayed
// to the
// customer's employees in the zero-touch enrollment portal.
CompanyName string `json:"companyName,omitempty"`
// Name: Output only. The API resource name of the company in the
// format
// `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`. Assigned by the
// server.
Name string `json:"name,omitempty"`
// OwnerEmails: 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"`
// 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 customer resource in the zero-touch enrollment API.
func (*Company) MarshalJSON ¶
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 Device ¶
type Device struct {
// Claims: Claims.
Claims []*DeviceClaim `json:"claims,omitempty"`
// Configuration: The resource name of the configuration.
// Only set for customers.
Configuration string `json:"configuration,omitempty"`
// DeviceId: Device ID.
DeviceId int64 `json:"deviceId,omitempty,string"`
// DeviceIdentifier: Device identifier.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// DeviceMetadata: Device metadata.
DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"`
// Name: Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`.
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.
func (*Device) MarshalJSON ¶
type DeviceClaim ¶
type DeviceClaim struct {
// OwnerCompanyId: Owner ID.
OwnerCompanyId int64 `json:"ownerCompanyId,omitempty,string"`
// SectionType: Section type of the device claim.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch section type.
SectionType string `json:"sectionType,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: Information about a device claimed for a partner.
func (*DeviceClaim) MarshalJSON ¶
func (s *DeviceClaim) MarshalJSON() ([]byte, error)
type DeviceIdentifier ¶
type DeviceIdentifier struct {
// Imei: IMEI number.
Imei string `json:"imei,omitempty"`
// Manufacturer: Manufacturer name to match
// `android.os.Build.MANUFACTURER` (required).
// Allowed values listed in
// [manufacturer names](/zero-touch/resources/manufacturer-names).
Manufacturer string `json:"manufacturer,omitempty"`
// Meid: MEID number.
Meid string `json:"meid,omitempty"`
// SerialNumber: Serial number (optional).
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: Identifies a unique device.
func (*DeviceIdentifier) MarshalJSON ¶
func (s *DeviceIdentifier) MarshalJSON() ([]byte, error)
type DeviceMetadata ¶
type DeviceMetadata struct {
// Entries: Metadata entries
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: A key-value pair of the device metadata.
func (*DeviceMetadata) MarshalJSON ¶
func (s *DeviceMetadata) MarshalJSON() ([]byte, error)
type DevicesLongRunningOperationMetadata ¶
type DevicesLongRunningOperationMetadata struct {
// DevicesCount: Number of devices parsed in your requests.
DevicesCount int64 `json:"devicesCount,omitempty"`
// ProcessingStatus: The overall processing status.
//
// 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 sucessfully, you
// should
// check the `response` field for the result of every item.
ProcessingStatus string `json:"processingStatus,omitempty"`
// Progress: Processing progress from 0 to 100.
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: Long running operation metadata.
func (*DevicesLongRunningOperationMetadata) MarshalJSON ¶
func (s *DevicesLongRunningOperationMetadata) MarshalJSON() ([]byte, error)
type DevicesLongRunningOperationResponse ¶
type DevicesLongRunningOperationResponse struct {
// PerDeviceStatus: Processing status for each device.
// One `PerDeviceStatus` per device. The order is the same as in your
// requests.
PerDeviceStatus []*OperationPerDevice `json:"perDeviceStatus,omitempty"`
// SuccessCount: Number of succeesfully processed ones.
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: Long running operation response.
func (*DevicesLongRunningOperationResponse) MarshalJSON ¶
func (s *DevicesLongRunningOperationResponse) MarshalJSON() ([]byte, error)
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: The device identifier to search.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// Limit: Number of devices to show.
Limit int64 `json:"limit,omitempty,string"`
// PageToken: Page token.
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: Page token of the next page.
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:"-"`
}
FindDevicesByDeviceIdentifierResponse: Response containing found devices.
func (*FindDevicesByDeviceIdentifierResponse) MarshalJSON ¶
func (s *FindDevicesByDeviceIdentifierResponse) MarshalJSON() ([]byte, error)
type FindDevicesByOwnerRequest ¶
type FindDevicesByOwnerRequest struct {
// CustomerId: List of customer IDs to search for.
CustomerId googleapi.Int64s `json:"customerId,omitempty"`
// Limit: The number of devices to show in the result.
Limit int64 `json:"limit,omitempty,string"`
// PageToken: Page token.
PageToken string `json:"pageToken,omitempty"`
// SectionType: The section type.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch 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: Devices found.
Devices []*Device `json:"devices,omitempty"`
// NextPageToken: Page token of the next page.
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:"-"`
}
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 partner.
Customers []*Company `json:"customers,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 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 have the format of `operations/some/unique/name`.
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: Request to claim a device.
Claim *PartnerClaim `json:"claim,omitempty"`
// Result: Processing result for every device.
Result *PerDeviceStatusInBatch `json:"result,omitempty"`
// Unclaim: Request to unclaim a device.
Unclaim *PartnerUnclaim `json:"unclaim,omitempty"`
// UpdateMetadata: Request to set metadata for a device.
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: Operation the server received for every device.
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: Customer ID to claim for.
CustomerId int64 `json:"customerId,omitempty,string"`
// DeviceIdentifier: Device identifier of the device.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// DeviceMetadata: Metadata to set at claim.
DeviceMetadata *DeviceMetadata `json:"deviceMetadata,omitempty"`
// SectionType: Section type to claim.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch 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: Device ID of the device.
DeviceId int64 `json:"deviceId,omitempty,string"`
// DeviceIdentifier: Device identifier of the device.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// SectionType: Section type to unclaim.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch section type.
SectionType string `json:"sectionType,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.
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 API doesn't notify the customer that they have access.
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: Claim the device identified by device identifier.
func (*PartnersDevicesService) ClaimAsync ¶
func (r *PartnersDevicesService) ClaimAsync(partnerId int64, claimdevicesrequest *ClaimDevicesRequest) *PartnersDevicesClaimAsyncCall
ClaimAsync: Claim devices asynchronously.
func (*PartnersDevicesService) FindByIdentifier ¶
func (r *PartnersDevicesService) FindByIdentifier(partnerId int64, finddevicesbydeviceidentifierrequest *FindDevicesByDeviceIdentifierRequest) *PartnersDevicesFindByIdentifierCall
FindByIdentifier: Find devices by device identifier.
func (*PartnersDevicesService) FindByOwner ¶
func (r *PartnersDevicesService) FindByOwner(partnerId int64, finddevicesbyownerrequest *FindDevicesByOwnerRequest) *PartnersDevicesFindByOwnerCall
FindByOwner: Find devices by ownership.
func (*PartnersDevicesService) Get ¶
func (r *PartnersDevicesService) Get(name string) *PartnersDevicesGetCall
Get: Get a device.
func (*PartnersDevicesService) Metadata ¶
func (r *PartnersDevicesService) Metadata(metadataOwnerId int64, deviceId int64, updatedevicemetadatarequest *UpdateDeviceMetadataRequest) *PartnersDevicesMetadataCall
Metadata: Update the metadata.
func (*PartnersDevicesService) Unclaim ¶
func (r *PartnersDevicesService) Unclaim(partnerId int64, unclaimdevicerequest *UnclaimDeviceRequest) *PartnersDevicesUnclaimCall
Unclaim: Unclaim the device identified by the `device_id` or the `deviceIdentifier`.
func (*PartnersDevicesService) UnclaimAsync ¶
func (r *PartnersDevicesService) UnclaimAsync(partnerId int64, unclaimdevicesrequest *UnclaimDevicesRequest) *PartnersDevicesUnclaimAsyncCall
UnclaimAsync: Unclaim devices asynchronously.
func (*PartnersDevicesService) UpdateMetadataAsync ¶
func (r *PartnersDevicesService) UpdateMetadataAsync(partnerId int64, updatedevicemetadatainbatchrequest *UpdateDeviceMetadataInBatchRequest) *PartnersDevicesUpdateMetadataAsyncCall
UpdateMetadataAsync: Set metadata in batch asynchronously.
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
// contains filtered or unexported fields
}
func NewPartnersService ¶
func NewPartnersService(s *Service) *PartnersService
type PerDeviceStatusInBatch ¶
type PerDeviceStatusInBatch struct {
// DeviceId: Device ID of the device if process succeeds.
DeviceId int64 `json:"deviceId,omitempty,string"`
// ErrorIdentifier: Error identifier.
ErrorIdentifier string `json:"errorIdentifier,omitempty"`
// ErrorMessage: Error message.
ErrorMessage string `json:"errorMessage,omitempty"`
// Status: Process result.
//
// 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: Stores the processing result for each device.
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
Operations *OperationsService
Partners *PartnersService
// contains filtered or unexported fields
}
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). The error model is designed to be:
- Simple to use and understand for most users - Flexible enough to meet unexpected needs
Overview ¶
The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` that can be used for common error conditions.
Language mapping ¶
The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.
Other uses ¶
The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.
Example uses of this error model include:
- Partial errors. If a service needs to return partial errors to the client,
it may embed the `Status` in the normal response to indicate the
partial
errors.
- Workflow errors. A typical workflow has multiple steps. Each step may
have a `Status` message for error reporting.
- Batch operations. If a client uses batch request and batch response, the
`Status` message should be used directly inside batch response,
one for
each error sub-response.
- Asynchronous operations. If an API call embeds asynchronous operation
results in its response, the status of those operations should
be
represented directly using the `Status` message.
- Logging. If some API errors are stored in logs, the message `Status` could
be used directly after any stripping needed for security/privacy
reasons.
func (*Status) MarshalJSON ¶
type UnclaimDeviceRequest ¶
type UnclaimDeviceRequest struct {
// DeviceId: The device ID returned by `ClaimDevice`.
DeviceId int64 `json:"deviceId,omitempty,string"`
// DeviceIdentifier: The device identifier you used when you claimed
// this device.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// SectionType: The section type to unclaim for.
//
// Possible values:
// "SECTION_TYPE_UNSPECIFIED" - Unspecified section type.
// "SECTION_TYPE_ZERO_TOUCH" - Zero touch section type.
SectionType string `json:"sectionType,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: 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: 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: The metdata to set.
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: Device ID of the device.
DeviceId int64 `json:"deviceId,omitempty,string"`
// DeviceIdentifier: Device identifier.
DeviceIdentifier *DeviceIdentifier `json:"deviceIdentifier,omitempty"`
// DeviceMetadata: 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 metdata updates to one device.
func (*UpdateMetadataArguments) MarshalJSON ¶
func (s *UpdateMetadataArguments) MarshalJSON() ([]byte, error)