Skip to content

Commit

Permalink
all: regenerate all APIs
Browse files Browse the repository at this point in the history
Change-Id: Ib846b168220ceb515692b3f6bf1d46611187956d
Reviewed-on: https://code-review.googlesource.com/8633
Reviewed-by: Chris Broadfoot <[email protected]>
  • Loading branch information
vchudnov-g authored and broady committed Oct 21, 2016
1 parent 45c1c8f commit 3ef9447
Show file tree
Hide file tree
Showing 72 changed files with 16,857 additions and 1,197 deletions.
4 changes: 2 additions & 2 deletions adexchangebuyer2/v2beta1/adexchangebuyer2-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
}
},
"description": "Accesses the latest features for managing Ad Exchange accounts and Real-Time Bidding configurations and auction metrics.",
"description": "Accesses the latest features for managing Ad Exchange accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals.",
"protocol": "rest",
"title": "Ad Exchange Buyer API II",
"resources": {
Expand Down Expand Up @@ -599,7 +599,7 @@
"id": "ListClientsResponse"
}
},
"revision": "20161004",
"revision": "20161020",
"basePath": "",
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
Expand Down
90 changes: 88 additions & 2 deletions admin/directory/v1/admin-api.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/W4Ceyiwfxdkv5BTNEwOIMjFzUJg\"",
"etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/meCrwFdVrDASsVl0vs-3jAnzocE\"",
"discoveryVersion": "v1",
"id": "admin:directory_v1",
"name": "admin",
"canonicalName": "directory",
"version": "directory_v1",
"revision": "20160715",
"revision": "20161003",
"title": "Admin Directory API",
"description": "The Admin SDK Directory API lets you view and manage enterprise resources such as users and groups, administrative notifications, security features, and more.",
"ownerDomain": "google.com",
Expand Down Expand Up @@ -533,6 +533,25 @@
}
}
},
"ChromeOsDeviceAction": {
"id": "ChromeOsDeviceAction",
"type": "object",
"description": "JSON request template for firing actions on ChromeOs Device in Directory Devices API.",
"properties": {
"action": {
"type": "string",
"description": "Action to be taken on the ChromeOs Device",
"annotations": {
"required": [
"directory.chromeosdevices.action"
]
}
},
"deprovisionReason": {
"type": "string"
}
}
},
"ChromeOsDevices": {
"id": "ChromeOsDevices",
"type": "object",
Expand Down Expand Up @@ -973,6 +992,14 @@
"type": "string",
"description": "Mobile Device Baseband version (Read-only)"
},
"bootloaderVersion": {
"type": "string",
"description": "Mobile Device Bootloader version (Read-only)"
},
"brand": {
"type": "string",
"description": "Mobile Device Brand (Read-only)"
},
"buildNumber": {
"type": "string",
"description": "Mobile Device Build number (Read-only)"
Expand All @@ -993,13 +1020,21 @@
"type": "string",
"description": "Mobile Device serial number (Read-only)"
},
"devicePasswordStatus": {
"type": "string",
"description": "DevicePasswordStatus (Read-only)"
},
"email": {
"type": "array",
"description": "List of owner user's email addresses (Read-only)",
"items": {
"type": "string"
}
},
"encryptionStatus": {
"type": "string",
"description": "Mobile Device Encryption Status (Read-only)"
},
"etag": {
"type": "string",
"description": "ETag of the resource."
Expand All @@ -1009,6 +1044,10 @@
"description": "Date and time the device was first synchronized with the policy settings in the Google Apps administrator control panel (Read-only)",
"format": "date-time"
},
"hardware": {
"type": "string",
"description": "Mobile Device Hardware (Read-only)"
},
"hardwareId": {
"type": "string",
"description": "Mobile Device Hardware Id (Read-only)"
Expand All @@ -1035,6 +1074,10 @@
"type": "boolean",
"description": "Boolean indicating if this account is on owner/primary profile or not (Read-only)"
},
"manufacturer": {
"type": "string",
"description": "Mobile Device manufacturer (Read-only)"
},
"meid": {
"type": "string",
"description": "Mobile Device MEID number (Read-only)"
Expand Down Expand Up @@ -1065,10 +1108,23 @@
"type": "string"
}
},
"privilege": {
"type": "string",
"description": "DMAgentPermission (Read-only)"
},
"releaseVersion": {
"type": "string",
"description": "Mobile Device release version version (Read-only)"
},
"resourceId": {
"type": "string",
"description": "Unique identifier of Mobile Device (Read-only)"
},
"securityPatchLevel": {
"type": "string",
"description": "Mobile Device Security patch level (Read-only)",
"format": "int64"
},
"serialNumber": {
"type": "string",
"description": "Mobile Device SSN or Serial Number (Read-only)"
Expand Down Expand Up @@ -2452,6 +2508,36 @@
},
"chromeosdevices": {
"methods": {
"action": {
"id": "directory.chromeosdevices.action",
"path": "customer/{customerId}/devices/chromeos/{resourceId}/action",
"httpMethod": "POST",
"description": "Take action on Chrome OS Device",
"parameters": {
"customerId": {
"type": "string",
"description": "Immutable id of the Google Apps account",
"required": true,
"location": "path"
},
"resourceId": {
"type": "string",
"description": "Immutable id of Chrome OS Device",
"required": true,
"location": "path"
}
},
"parameterOrder": [
"customerId",
"resourceId"
],
"request": {
"$ref": "ChromeOsDeviceAction"
},
"scopes": [
"https://www.googleapis.com/auth/admin.directory.device.chromeos"
]
},
"get": {
"id": "directory.chromeosdevices.get",
"path": "customer/{customerId}/devices/chromeos/{deviceId}",
Expand Down
160 changes: 160 additions & 0 deletions admin/directory/v1/admin-gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,37 @@ func (s *ChromeOsDeviceRecentUsers) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}

// ChromeOsDeviceAction: JSON request template for firing actions on
// ChromeOs Device in Directory Devices API.
type ChromeOsDeviceAction struct {
// Action: Action to be taken on the ChromeOs Device
Action string `json:"action,omitempty"`

DeprovisionReason string `json:"deprovisionReason,omitempty"`

// ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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:"-"`
}

func (s *ChromeOsDeviceAction) MarshalJSON() ([]byte, error) {
type noMethod ChromeOsDeviceAction
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}

// ChromeOsDevices: JSON response template for List Chrome OS Devices
// operation in Directory API.
type ChromeOsDevices struct {
Expand Down Expand Up @@ -1494,6 +1525,12 @@ type MobileDevice struct {
// BasebandVersion: Mobile Device Baseband version (Read-only)
BasebandVersion string `json:"basebandVersion,omitempty"`

// BootloaderVersion: Mobile Device Bootloader version (Read-only)
BootloaderVersion string `json:"bootloaderVersion,omitempty"`

// Brand: Mobile Device Brand (Read-only)
Brand string `json:"brand,omitempty"`

// BuildNumber: Mobile Device Build number (Read-only)
BuildNumber string `json:"buildNumber,omitempty"`

Expand All @@ -1511,9 +1548,15 @@ type MobileDevice struct {
// DeviceId: Mobile Device serial number (Read-only)
DeviceId string `json:"deviceId,omitempty"`

// DevicePasswordStatus: DevicePasswordStatus (Read-only)
DevicePasswordStatus string `json:"devicePasswordStatus,omitempty"`

// Email: List of owner user's email addresses (Read-only)
Email []string `json:"email,omitempty"`

// EncryptionStatus: Mobile Device Encryption Status (Read-only)
EncryptionStatus string `json:"encryptionStatus,omitempty"`

// Etag: ETag of the resource.
Etag string `json:"etag,omitempty"`

Expand All @@ -1522,6 +1565,9 @@ type MobileDevice struct {
// (Read-only)
FirstSync string `json:"firstSync,omitempty"`

// Hardware: Mobile Device Hardware (Read-only)
Hardware string `json:"hardware,omitempty"`

// HardwareId: Mobile Device Hardware Id (Read-only)
HardwareId string `json:"hardwareId,omitempty"`

Expand All @@ -1543,6 +1589,9 @@ type MobileDevice struct {
// on owner/primary profile or not (Read-only)
ManagedAccountIsOnOwnerProfile bool `json:"managedAccountIsOnOwnerProfile,omitempty"`

// Manufacturer: Mobile Device manufacturer (Read-only)
Manufacturer string `json:"manufacturer,omitempty"`

// Meid: Mobile Device MEID number (Read-only)
Meid string `json:"meid,omitempty"`

Expand All @@ -1562,9 +1611,18 @@ type MobileDevice struct {
// OtherAccountsInfo: List of accounts added on device (Read-only)
OtherAccountsInfo []string `json:"otherAccountsInfo,omitempty"`

// Privilege: DMAgentPermission (Read-only)
Privilege string `json:"privilege,omitempty"`

// ReleaseVersion: Mobile Device release version version (Read-only)
ReleaseVersion string `json:"releaseVersion,omitempty"`

// ResourceId: Unique identifier of Mobile Device (Read-only)
ResourceId string `json:"resourceId,omitempty"`

// SecurityPatchLevel: Mobile Device Security patch level (Read-only)
SecurityPatchLevel int64 `json:"securityPatchLevel,omitempty,string"`

// SerialNumber: Mobile Device SSN or Serial Number (Read-only)
SerialNumber string `json:"serialNumber,omitempty"`

Expand Down Expand Up @@ -3760,6 +3818,108 @@ func (c *ChannelsStopCall) Do(opts ...googleapi.CallOption) error {

}

// method id "directory.chromeosdevices.action":

type ChromeosdevicesActionCall struct {
s *Service
customerId string
resourceId string
chromeosdeviceaction *ChromeOsDeviceAction
urlParams_ gensupport.URLParams
ctx_ context.Context
}

// Action: Take action on Chrome OS Device
func (r *ChromeosdevicesService) Action(customerId string, resourceId string, chromeosdeviceaction *ChromeOsDeviceAction) *ChromeosdevicesActionCall {
c := &ChromeosdevicesActionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.customerId = customerId
c.resourceId = resourceId
c.chromeosdeviceaction = chromeosdeviceaction
return c
}

// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ChromeosdevicesActionCall) Fields(s ...googleapi.Field) *ChromeosdevicesActionCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}

// 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 (c *ChromeosdevicesActionCall) Context(ctx context.Context) *ChromeosdevicesActionCall {
c.ctx_ = ctx
return c
}

func (c *ChromeosdevicesActionCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.chromeosdeviceaction)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "customer/{customerId}/devices/chromeos/{resourceId}/action")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"customerId": c.customerId,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}

// Do executes the "directory.chromeosdevices.action" call.
func (c *ChromeosdevicesActionCall) Do(opts ...googleapi.CallOption) error {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if err != nil {
return err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return err
}
return nil
// {
// "description": "Take action on Chrome OS Device",
// "httpMethod": "POST",
// "id": "directory.chromeosdevices.action",
// "parameterOrder": [
// "customerId",
// "resourceId"
// ],
// "parameters": {
// "customerId": {
// "description": "Immutable id of the Google Apps account",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "description": "Immutable id of Chrome OS Device",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "customer/{customerId}/devices/chromeos/{resourceId}/action",
// "request": {
// "$ref": "ChromeOsDeviceAction"
// },
// "scopes": [
// "https://www.googleapis.com/auth/admin.directory.device.chromeos"
// ]
// }

}

// method id "directory.chromeosdevices.get":

type ChromeosdevicesGetCall struct {
Expand Down
Loading

0 comments on commit 3ef9447

Please sign in to comment.