all: autogenerated update (2018-08-26)
Update:
- cloudresourcemanager/v1
- container/v1beta1
- gmail/v1
- jobs/v2
diff --git a/cloudresourcemanager/v1/cloudresourcemanager-api.json b/cloudresourcemanager/v1/cloudresourcemanager-api.json
index 635ea5b..e58fd77 100644
--- a/cloudresourcemanager/v1/cloudresourcemanager-api.json
+++ b/cloudresourcemanager/v1/cloudresourcemanager-api.json
@@ -1170,7 +1170,7 @@
}
}
},
- "revision": "20180820",
+ "revision": "20180815",
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
"schemas": {
"Ancestor": {
@@ -1909,7 +1909,7 @@
"type": "string"
},
"type": {
- "description": "Required field representing the resource type this id is for.\nAt present, the valid types are: \"organization\" and \"folder\".",
+ "description": "Required field representing the resource type this id is for.\nAt present, the valid types are: \"organization\"",
"type": "string"
}
},
diff --git a/cloudresourcemanager/v1/cloudresourcemanager-gen.go b/cloudresourcemanager/v1/cloudresourcemanager-gen.go
index d344d4c..c3cd357 100644
--- a/cloudresourcemanager/v1/cloudresourcemanager-gen.go
+++ b/cloudresourcemanager/v1/cloudresourcemanager-gen.go
@@ -2024,7 +2024,7 @@
// Type: Required field representing the resource type this id is
// for.
- // At present, the valid types are: "organization" and "folder".
+ // At present, the valid types are: "organization"
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Id") to
diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json
index fb72a38..6140423 100644
--- a/container/v1beta1/container-api.json
+++ b/container/v1beta1/container-api.json
@@ -2435,7 +2435,7 @@
}
}
},
- "revision": "20180807",
+ "revision": "20180813",
"rootUrl": "https://container.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
@@ -2586,7 +2586,7 @@
"type": "integer"
},
"currentNodeVersion": {
- "description": "[Output only] The current version of the node software components.\nIf they are currently at multiple versions because they're in the process\nof being upgraded, this reflects the minimum version of all nodes.",
+ "description": "[Output only] Deprecated, use\n[NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/projects.zones.clusters.nodePool)\ninstead. The current version of the node software components.\nIf they are currently at multiple versions because they're in the process\nof being upgraded, this reflects the minimum version of all nodes.",
"type": "string"
},
"defaultMaxPodsConstraint": {
@@ -3206,7 +3206,7 @@
},
"clientCertificateConfig": {
"$ref": "ClientCertificateConfig",
- "description": "Configuration for client certificate authentication on the cluster. If no\nconfiguration is specified, a client certificate is issued."
+ "description": "Configuration for client certificate authentication on the cluster. For\nclusters before v1.12, if no configuration is specified, a client\ncertificate is issued."
},
"clientKey": {
"description": "[Output only] Base64-encoded private key used by clients to authenticate\nto the cluster endpoint.",
@@ -4329,6 +4329,17 @@
"description": "Network Name.\nExample: projects/my-project/global/networks/my-network",
"type": "string"
},
+ "secondaryIpRanges": {
+ "description": "Secondary IP ranges.",
+ "items": {
+ "$ref": "UsableSubnetworkSecondaryRange"
+ },
+ "type": "array"
+ },
+ "statusMessage": {
+ "description": "A human readable status message representing the reasons for cases where\nthe caller cannot use the secondary ranges under the subnet. For example if\nthe secondary_ip_ranges is empty due to a permission issue, an insufficient\npermission message will be given by status_message.",
+ "type": "string"
+ },
"subnetwork": {
"description": "Subnetwork Name.\nExample: projects/my-project/regions/us-central1/subnetworks/my-subnet",
"type": "string"
@@ -4336,6 +4347,39 @@
},
"type": "object"
},
+ "UsableSubnetworkSecondaryRange": {
+ "description": "Secondary IP range of a usable subnetwork.",
+ "id": "UsableSubnetworkSecondaryRange",
+ "properties": {
+ "ipCidrRange": {
+ "description": "The range of IP addresses belonging to this subnetwork secondary range.",
+ "type": "string"
+ },
+ "rangeName": {
+ "description": "The name associated with this subnetwork secondary range, used when adding\nan alias IP range to a VM instance.",
+ "type": "string"
+ },
+ "status": {
+ "description": "This field is to determine the status of the secondary range programmably.",
+ "enum": [
+ "UNKNOWN",
+ "UNUSED",
+ "IN_USE_SERVICE",
+ "IN_USE_SHAREABLE_POD",
+ "IN_USE_MANAGED_POD"
+ ],
+ "enumDescriptions": [
+ "UNKNOWN is the zero value of the Status enum. It's not a valid status.",
+ "UNUSED denotes that this range is unclaimed by any cluster.",
+ "IN_USE_SERVICE denotes that this range is claimed by a cluster for\nservices. It cannot be used for other clusters.",
+ "IN_USE_SHAREABLE_POD denotes this range was created by the network admin\nand is currently claimed by a cluster for pods. It can only be used by\nother clusters as a pod range.",
+ "IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed\nfor pods. It cannot be used for other clusters."
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"WorkloadMetadataConfig": {
"description": "WorkloadMetadataConfig defines the metadata configuration to expose to\nworkloads on the node pool.",
"id": "WorkloadMetadataConfig",
diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go
index 08fb97a..13403eb 100644
--- a/container/v1beta1/container-gen.go
+++ b/container/v1beta1/container-gen.go
@@ -510,8 +510,11 @@
// cluster.
CurrentNodeCount int64 `json:"currentNodeCount,omitempty"`
- // CurrentNodeVersion: [Output only] The current version of the node
- // software components.
+ // CurrentNodeVersion: [Output only] Deprecated,
+ // use
+ // [NodePool.version](/kubernetes-engine/docs/reference/rest/v1beta1/
+ // projects.zones.clusters.nodePool)
+ // instead. The current version of the node software components.
// If they are currently at multiple versions because they're in the
// process
// of being upgraded, this reflects the minimum version of all nodes.
@@ -1867,8 +1870,10 @@
ClientCertificate string `json:"clientCertificate,omitempty"`
// ClientCertificateConfig: Configuration for client certificate
- // authentication on the cluster. If no
- // configuration is specified, a client certificate is issued.
+ // authentication on the cluster. For
+ // clusters before v1.12, if no configuration is specified, a
+ // client
+ // certificate is issued.
ClientCertificateConfig *ClientCertificateConfig `json:"clientCertificateConfig,omitempty"`
// ClientKey: [Output only] Base64-encoded private key used by clients
@@ -3932,6 +3937,18 @@
// Example: projects/my-project/global/networks/my-network
Network string `json:"network,omitempty"`
+ // SecondaryIpRanges: Secondary IP ranges.
+ SecondaryIpRanges []*UsableSubnetworkSecondaryRange `json:"secondaryIpRanges,omitempty"`
+
+ // StatusMessage: A human readable status message representing the
+ // reasons for cases where
+ // the caller cannot use the secondary ranges under the subnet. For
+ // example if
+ // the secondary_ip_ranges is empty due to a permission issue, an
+ // insufficient
+ // permission message will be given by status_message.
+ StatusMessage string `json:"statusMessage,omitempty"`
+
// Subnetwork: Subnetwork Name.
// Example:
// projects/my-project/regions/us-central1/subnetworks/my-subnet
@@ -3960,6 +3977,62 @@
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
+// UsableSubnetworkSecondaryRange: Secondary IP range of a usable
+// subnetwork.
+type UsableSubnetworkSecondaryRange struct {
+ // IpCidrRange: The range of IP addresses belonging to this subnetwork
+ // secondary range.
+ IpCidrRange string `json:"ipCidrRange,omitempty"`
+
+ // RangeName: The name associated with this subnetwork secondary range,
+ // used when adding
+ // an alias IP range to a VM instance.
+ RangeName string `json:"rangeName,omitempty"`
+
+ // Status: This field is to determine the status of the secondary range
+ // programmably.
+ //
+ // Possible values:
+ // "UNKNOWN" - UNKNOWN is the zero value of the Status enum. It's not
+ // a valid status.
+ // "UNUSED" - UNUSED denotes that this range is unclaimed by any
+ // cluster.
+ // "IN_USE_SERVICE" - IN_USE_SERVICE denotes that this range is
+ // claimed by a cluster for
+ // services. It cannot be used for other clusters.
+ // "IN_USE_SHAREABLE_POD" - IN_USE_SHAREABLE_POD denotes this range
+ // was created by the network admin
+ // and is currently claimed by a cluster for pods. It can only be used
+ // by
+ // other clusters as a pod range.
+ // "IN_USE_MANAGED_POD" - IN_USE_MANAGED_POD denotes this range was
+ // created by GKE and is claimed
+ // for pods. It cannot be used for other clusters.
+ Status string `json:"status,omitempty"`
+
+ // ForceSendFields is a list of field names (e.g. "IpCidrRange") 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. "IpCidrRange") 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 *UsableSubnetworkSecondaryRange) MarshalJSON() ([]byte, error) {
+ type NoMethod UsableSubnetworkSecondaryRange
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
// WorkloadMetadataConfig: WorkloadMetadataConfig defines the metadata
// configuration to expose to
// workloads on the node pool.
diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json
index ec9132a..0c21567 100644
--- a/firestore/v1/firestore-api.json
+++ b/firestore/v1/firestore-api.json
@@ -15,7 +15,7 @@
"baseUrl": "https://firestore.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Firestore",
- "description": "",
+ "description": "Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.\n",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/firestore",
"fullyEncodeReservedExpansion": true,
@@ -315,7 +315,7 @@
}
}
},
- "revision": "20180725",
+ "revision": "20180814",
"rootUrl": "https://firestore.googleapis.com/",
"schemas": {
"Empty": {
diff --git a/firestore/v1beta1/firestore-api.json b/firestore/v1beta1/firestore-api.json
index 3a1196d..b03d434 100644
--- a/firestore/v1beta1/firestore-api.json
+++ b/firestore/v1beta1/firestore-api.json
@@ -15,7 +15,7 @@
"baseUrl": "https://firestore.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Firestore",
- "description": "",
+ "description": "Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.\n",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/firestore",
"fullyEncodeReservedExpansion": true,
@@ -790,7 +790,7 @@
}
}
},
- "revision": "20180725",
+ "revision": "20180814",
"rootUrl": "https://firestore.googleapis.com/",
"schemas": {
"ArrayValue": {
diff --git a/firestore/v1beta2/firestore-api.json b/firestore/v1beta2/firestore-api.json
index 22b5157..d8294fd 100644
--- a/firestore/v1beta2/firestore-api.json
+++ b/firestore/v1beta2/firestore-api.json
@@ -15,7 +15,7 @@
"baseUrl": "https://firestore.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Firestore",
- "description": "",
+ "description": "Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.\n",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/firestore",
"fullyEncodeReservedExpansion": true,
@@ -227,7 +227,7 @@
}
}
},
- "revision": "20180806",
+ "revision": "20180814",
"rootUrl": "https://firestore.googleapis.com/",
"schemas": {
"GoogleFirestoreAdminV1beta2Field": {
diff --git a/gmail/v1/gmail-api.json b/gmail/v1/gmail-api.json
index 90ee3a8..e7fd413 100644
--- a/gmail/v1/gmail-api.json
+++ b/gmail/v1/gmail-api.json
@@ -41,7 +41,7 @@
"description": "Access Gmail mailboxes including sending user email.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/gmail/api/",
- "etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/Hw8pIKfMT5Y5rR36CrQTPYMY6ts\"",
+ "etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/6MVOLkrACdE8trspKIAVVfI4jS8\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/googlemail-16.png",
"x32": "https://www.google.com/images/icons/product/googlemail-32.png"
@@ -1486,6 +1486,126 @@
}
},
"resources": {
+ "delegates": {
+ "methods": {
+ "create": {
+ "description": "Adds a delegate with its verification status set directly to accepted, without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user.\n\nGmail imposes limtations on the number of delegates and delegators each user in a G Suite organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators.\n\nNote that a delegate user must be referred to by their primary email address, and not an email alias.\n\nAlso note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
+ "httpMethod": "POST",
+ "id": "gmail.users.settings.delegates.create",
+ "parameterOrder": [
+ "userId"
+ ],
+ "parameters": {
+ "userId": {
+ "default": "me",
+ "description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "{userId}/settings/delegates",
+ "request": {
+ "$ref": "Delegate"
+ },
+ "response": {
+ "$ref": "Delegate"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/gmail.settings.sharing"
+ ]
+ },
+ "delete": {
+ "description": "Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it.\n\nNote that a delegate user must be referred to by their primary email address, and not an email alias.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
+ "httpMethod": "DELETE",
+ "id": "gmail.users.settings.delegates.delete",
+ "parameterOrder": [
+ "userId",
+ "delegateEmail"
+ ],
+ "parameters": {
+ "delegateEmail": {
+ "description": "The email address of the user to be removed as a delegate.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "userId": {
+ "default": "me",
+ "description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "{userId}/settings/delegates/{delegateEmail}",
+ "scopes": [
+ "https://www.googleapis.com/auth/gmail.settings.sharing"
+ ]
+ },
+ "get": {
+ "description": "Gets the specified delegate.\n\nNote that a delegate user must be referred to by their primary email address, and not an email alias.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
+ "httpMethod": "GET",
+ "id": "gmail.users.settings.delegates.get",
+ "parameterOrder": [
+ "userId",
+ "delegateEmail"
+ ],
+ "parameters": {
+ "delegateEmail": {
+ "description": "The email address of the user whose delegate relationship is to be retrieved.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ },
+ "userId": {
+ "default": "me",
+ "description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "{userId}/settings/delegates/{delegateEmail}",
+ "response": {
+ "$ref": "Delegate"
+ },
+ "scopes": [
+ "https://mail.google.com/",
+ "https://www.googleapis.com/auth/gmail.modify",
+ "https://www.googleapis.com/auth/gmail.readonly",
+ "https://www.googleapis.com/auth/gmail.settings.basic"
+ ]
+ },
+ "list": {
+ "description": "Lists the delegates for the specified account.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
+ "httpMethod": "GET",
+ "id": "gmail.users.settings.delegates.list",
+ "parameterOrder": [
+ "userId"
+ ],
+ "parameters": {
+ "userId": {
+ "default": "me",
+ "description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
+ "location": "path",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "{userId}/settings/delegates",
+ "response": {
+ "$ref": "ListDelegatesResponse"
+ },
+ "scopes": [
+ "https://mail.google.com/",
+ "https://www.googleapis.com/auth/gmail.modify",
+ "https://www.googleapis.com/auth/gmail.readonly",
+ "https://www.googleapis.com/auth/gmail.settings.basic"
+ ]
+ }
+ }
+ },
"filters": {
"methods": {
"create": {
@@ -2382,7 +2502,7 @@
}
}
},
- "revision": "20180319",
+ "revision": "20180821",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"AutoForwarding": {
@@ -2458,6 +2578,35 @@
},
"type": "object"
},
+ "Delegate": {
+ "description": "Settings for a delegate. Delegates can read, send, and delete messages, as well as manage contacts, for the delegator's account. See \"Set up mail delegation\" for more information about delegates.",
+ "id": "Delegate",
+ "properties": {
+ "delegateEmail": {
+ "description": "The email address of the delegate.",
+ "type": "string"
+ },
+ "verificationStatus": {
+ "description": "Indicates whether this address has been verified and can act as a delegate for the account. Read-only.",
+ "enum": [
+ "accepted",
+ "expired",
+ "pending",
+ "rejected",
+ "verificationStatusUnspecified"
+ ],
+ "enumDescriptions": [
+ "",
+ "",
+ "",
+ "",
+ ""
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
"Draft": {
"description": "A draft email in the user's mailbox.",
"id": "Draft",
@@ -2848,6 +2997,20 @@
},
"type": "object"
},
+ "ListDelegatesResponse": {
+ "description": "Response for the ListDelegates method.",
+ "id": "ListDelegatesResponse",
+ "properties": {
+ "delegates": {
+ "description": "List of the user's delegates (with any verification status).",
+ "items": {
+ "$ref": "Delegate"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
"ListDraftsResponse": {
"id": "ListDraftsResponse",
"properties": {
diff --git a/gmail/v1/gmail-gen.go b/gmail/v1/gmail-gen.go
index e1da72e..f9d1e0c 100644
--- a/gmail/v1/gmail-gen.go
+++ b/gmail/v1/gmail-gen.go
@@ -181,6 +181,7 @@
func NewUsersSettingsService(s *Service) *UsersSettingsService {
rs := &UsersSettingsService{s: s}
+ rs.Delegates = NewUsersSettingsDelegatesService(s)
rs.Filters = NewUsersSettingsFiltersService(s)
rs.ForwardingAddresses = NewUsersSettingsForwardingAddressesService(s)
rs.SendAs = NewUsersSettingsSendAsService(s)
@@ -190,6 +191,8 @@
type UsersSettingsService struct {
s *Service
+ Delegates *UsersSettingsDelegatesService
+
Filters *UsersSettingsFiltersService
ForwardingAddresses *UsersSettingsForwardingAddressesService
@@ -197,6 +200,15 @@
SendAs *UsersSettingsSendAsService
}
+func NewUsersSettingsDelegatesService(s *Service) *UsersSettingsDelegatesService {
+ rs := &UsersSettingsDelegatesService{s: s}
+ return rs
+}
+
+type UsersSettingsDelegatesService struct {
+ s *Service
+}
+
func NewUsersSettingsFiltersService(s *Service) *UsersSettingsFiltersService {
rs := &UsersSettingsFiltersService{s: s}
return rs
@@ -355,6 +367,52 @@
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
+// Delegate: Settings for a delegate. Delegates can read, send, and
+// delete messages, as well as manage contacts, for the delegator's
+// account. See "Set up mail delegation" for more information about
+// delegates.
+type Delegate struct {
+ // DelegateEmail: The email address of the delegate.
+ DelegateEmail string `json:"delegateEmail,omitempty"`
+
+ // VerificationStatus: Indicates whether this address has been verified
+ // and can act as a delegate for the account. Read-only.
+ //
+ // Possible values:
+ // "accepted"
+ // "expired"
+ // "pending"
+ // "rejected"
+ // "verificationStatusUnspecified"
+ VerificationStatus string `json:"verificationStatus,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the
+ // server.
+ googleapi.ServerResponse `json:"-"`
+
+ // ForceSendFields is a list of field names (e.g. "DelegateEmail") 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. "DelegateEmail") 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 *Delegate) MarshalJSON() ([]byte, error) {
+ type NoMethod Delegate
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
// Draft: A draft email in the user's mailbox.
type Draft struct {
// Id: The immutable ID of the draft.
@@ -926,6 +984,39 @@
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
+// ListDelegatesResponse: Response for the ListDelegates method.
+type ListDelegatesResponse struct {
+ // Delegates: List of the user's delegates (with any verification
+ // status).
+ Delegates []*Delegate `json:"delegates,omitempty"`
+
+ // ServerResponse contains the HTTP response code and headers from the
+ // server.
+ googleapi.ServerResponse `json:"-"`
+
+ // ForceSendFields is a list of field names (e.g. "Delegates") 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. "Delegates") 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 *ListDelegatesResponse) MarshalJSON() ([]byte, error) {
+ type NoMethod ListDelegatesResponse
+ raw := NoMethod(*s)
+ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
+}
+
type ListDraftsResponse struct {
// Drafts: List of drafts.
Drafts []*Draft `json:"drafts,omitempty"`
@@ -7838,6 +7929,572 @@
}
+// method id "gmail.users.settings.delegates.create":
+
+type UsersSettingsDelegatesCreateCall struct {
+ s *Service
+ userId string
+ delegate *Delegate
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Create: Adds a delegate with its verification status set directly to
+// accepted, without sending any verification email. The delegate user
+// must be a member of the same G Suite organization as the delegator
+// user.
+//
+// Gmail imposes limtations on the number of delegates and delegators
+// each user in a G Suite organization can have. These limits depend on
+// your organization, but in general each user can have up to 25
+// delegates and up to 10 delegators.
+//
+// Note that a delegate user must be referred to by their primary email
+// address, and not an email alias.
+//
+// Also note that when a new delegate is created, there may be up to a
+// one minute delay before the new delegate is available for use.
+//
+// This method is only available to service account clients that have
+// been delegated domain-wide authority.
+func (r *UsersSettingsDelegatesService) Create(userId string, delegate *Delegate) *UsersSettingsDelegatesCreateCall {
+ c := &UsersSettingsDelegatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.userId = userId
+ c.delegate = delegate
+ 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 *UsersSettingsDelegatesCreateCall) Fields(s ...googleapi.Field) *UsersSettingsDelegatesCreateCall {
+ 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 *UsersSettingsDelegatesCreateCall) Context(ctx context.Context) *UsersSettingsDelegatesCreateCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *UsersSettingsDelegatesCreateCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *UsersSettingsDelegatesCreateCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ body, err := googleapi.WithoutDataWrapper.JSONReader(c.delegate)
+ if err != nil {
+ return nil, err
+ }
+ reqHeaders.Set("Content-Type", "application/json")
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "{userId}/settings/delegates")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("POST", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "userId": c.userId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "gmail.users.settings.delegates.create" call.
+// Exactly one of *Delegate or error will be non-nil. Any non-2xx status
+// code is an error. Response headers are in either
+// *Delegate.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 (c *UsersSettingsDelegatesCreateCall) Do(opts ...googleapi.CallOption) (*Delegate, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Delegate{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Adds a delegate with its verification status set directly to accepted, without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user.\n\nGmail imposes limtations on the number of delegates and delegators each user in a G Suite organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators.\n\nNote that a delegate user must be referred to by their primary email address, and not an email alias.\n\nAlso note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
+ // "httpMethod": "POST",
+ // "id": "gmail.users.settings.delegates.create",
+ // "parameterOrder": [
+ // "userId"
+ // ],
+ // "parameters": {
+ // "userId": {
+ // "default": "me",
+ // "description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "{userId}/settings/delegates",
+ // "request": {
+ // "$ref": "Delegate"
+ // },
+ // "response": {
+ // "$ref": "Delegate"
+ // },
+ // "scopes": [
+ // "https://www.googleapis.com/auth/gmail.settings.sharing"
+ // ]
+ // }
+
+}
+
+// method id "gmail.users.settings.delegates.delete":
+
+type UsersSettingsDelegatesDeleteCall struct {
+ s *Service
+ userId string
+ delegateEmail string
+ urlParams_ gensupport.URLParams
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Delete: Removes the specified delegate (which can be of any
+// verification status), and revokes any verification that may have been
+// required for using it.
+//
+// Note that a delegate user must be referred to by their primary email
+// address, and not an email alias.
+//
+// This method is only available to service account clients that have
+// been delegated domain-wide authority.
+func (r *UsersSettingsDelegatesService) Delete(userId string, delegateEmail string) *UsersSettingsDelegatesDeleteCall {
+ c := &UsersSettingsDelegatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.userId = userId
+ c.delegateEmail = delegateEmail
+ 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 *UsersSettingsDelegatesDeleteCall) Fields(s ...googleapi.Field) *UsersSettingsDelegatesDeleteCall {
+ 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 *UsersSettingsDelegatesDeleteCall) Context(ctx context.Context) *UsersSettingsDelegatesDeleteCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *UsersSettingsDelegatesDeleteCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *UsersSettingsDelegatesDeleteCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ var body io.Reader = nil
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "{userId}/settings/delegates/{delegateEmail}")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("DELETE", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "userId": c.userId,
+ "delegateEmail": c.delegateEmail,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "gmail.users.settings.delegates.delete" call.
+func (c *UsersSettingsDelegatesDeleteCall) 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": "Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it.\n\nNote that a delegate user must be referred to by their primary email address, and not an email alias.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
+ // "httpMethod": "DELETE",
+ // "id": "gmail.users.settings.delegates.delete",
+ // "parameterOrder": [
+ // "userId",
+ // "delegateEmail"
+ // ],
+ // "parameters": {
+ // "delegateEmail": {
+ // "description": "The email address of the user to be removed as a delegate.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "userId": {
+ // "default": "me",
+ // "description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "{userId}/settings/delegates/{delegateEmail}",
+ // "scopes": [
+ // "https://www.googleapis.com/auth/gmail.settings.sharing"
+ // ]
+ // }
+
+}
+
+// method id "gmail.users.settings.delegates.get":
+
+type UsersSettingsDelegatesGetCall struct {
+ s *Service
+ userId string
+ delegateEmail string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// Get: Gets the specified delegate.
+//
+// Note that a delegate user must be referred to by their primary email
+// address, and not an email alias.
+//
+// This method is only available to service account clients that have
+// been delegated domain-wide authority.
+func (r *UsersSettingsDelegatesService) Get(userId string, delegateEmail string) *UsersSettingsDelegatesGetCall {
+ c := &UsersSettingsDelegatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.userId = userId
+ c.delegateEmail = delegateEmail
+ 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 *UsersSettingsDelegatesGetCall) Fields(s ...googleapi.Field) *UsersSettingsDelegatesGetCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// 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 (c *UsersSettingsDelegatesGetCall) IfNoneMatch(entityTag string) *UsersSettingsDelegatesGetCall {
+ c.ifNoneMatch_ = entityTag
+ 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 *UsersSettingsDelegatesGetCall) Context(ctx context.Context) *UsersSettingsDelegatesGetCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *UsersSettingsDelegatesGetCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *UsersSettingsDelegatesGetCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ var body io.Reader = nil
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "{userId}/settings/delegates/{delegateEmail}")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "userId": c.userId,
+ "delegateEmail": c.delegateEmail,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "gmail.users.settings.delegates.get" call.
+// Exactly one of *Delegate or error will be non-nil. Any non-2xx status
+// code is an error. Response headers are in either
+// *Delegate.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 (c *UsersSettingsDelegatesGetCall) Do(opts ...googleapi.CallOption) (*Delegate, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &Delegate{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Gets the specified delegate.\n\nNote that a delegate user must be referred to by their primary email address, and not an email alias.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
+ // "httpMethod": "GET",
+ // "id": "gmail.users.settings.delegates.get",
+ // "parameterOrder": [
+ // "userId",
+ // "delegateEmail"
+ // ],
+ // "parameters": {
+ // "delegateEmail": {
+ // "description": "The email address of the user whose delegate relationship is to be retrieved.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // },
+ // "userId": {
+ // "default": "me",
+ // "description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "{userId}/settings/delegates/{delegateEmail}",
+ // "response": {
+ // "$ref": "Delegate"
+ // },
+ // "scopes": [
+ // "https://mail.google.com/",
+ // "https://www.googleapis.com/auth/gmail.modify",
+ // "https://www.googleapis.com/auth/gmail.readonly",
+ // "https://www.googleapis.com/auth/gmail.settings.basic"
+ // ]
+ // }
+
+}
+
+// method id "gmail.users.settings.delegates.list":
+
+type UsersSettingsDelegatesListCall struct {
+ s *Service
+ userId string
+ urlParams_ gensupport.URLParams
+ ifNoneMatch_ string
+ ctx_ context.Context
+ header_ http.Header
+}
+
+// List: Lists the delegates for the specified account.
+//
+// This method is only available to service account clients that have
+// been delegated domain-wide authority.
+func (r *UsersSettingsDelegatesService) List(userId string) *UsersSettingsDelegatesListCall {
+ c := &UsersSettingsDelegatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
+ c.userId = userId
+ 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 *UsersSettingsDelegatesListCall) Fields(s ...googleapi.Field) *UsersSettingsDelegatesListCall {
+ c.urlParams_.Set("fields", googleapi.CombineFields(s))
+ return c
+}
+
+// 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 (c *UsersSettingsDelegatesListCall) IfNoneMatch(entityTag string) *UsersSettingsDelegatesListCall {
+ c.ifNoneMatch_ = entityTag
+ 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 *UsersSettingsDelegatesListCall) Context(ctx context.Context) *UsersSettingsDelegatesListCall {
+ c.ctx_ = ctx
+ return c
+}
+
+// Header returns an http.Header that can be modified by the caller to
+// add HTTP headers to the request.
+func (c *UsersSettingsDelegatesListCall) Header() http.Header {
+ if c.header_ == nil {
+ c.header_ = make(http.Header)
+ }
+ return c.header_
+}
+
+func (c *UsersSettingsDelegatesListCall) doRequest(alt string) (*http.Response, error) {
+ reqHeaders := make(http.Header)
+ for k, v := range c.header_ {
+ reqHeaders[k] = v
+ }
+ reqHeaders.Set("User-Agent", c.s.userAgent())
+ if c.ifNoneMatch_ != "" {
+ reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
+ }
+ var body io.Reader = nil
+ c.urlParams_.Set("alt", alt)
+ urls := googleapi.ResolveRelative(c.s.BasePath, "{userId}/settings/delegates")
+ urls += "?" + c.urlParams_.Encode()
+ req, _ := http.NewRequest("GET", urls, body)
+ req.Header = reqHeaders
+ googleapi.Expand(req.URL, map[string]string{
+ "userId": c.userId,
+ })
+ return gensupport.SendRequest(c.ctx_, c.s.client, req)
+}
+
+// Do executes the "gmail.users.settings.delegates.list" call.
+// Exactly one of *ListDelegatesResponse or error will be non-nil. Any
+// non-2xx status code is an error. Response headers are in either
+// *ListDelegatesResponse.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 (c *UsersSettingsDelegatesListCall) Do(opts ...googleapi.CallOption) (*ListDelegatesResponse, error) {
+ gensupport.SetOptions(c.urlParams_, opts...)
+ res, err := c.doRequest("json")
+ if res != nil && res.StatusCode == http.StatusNotModified {
+ if res.Body != nil {
+ res.Body.Close()
+ }
+ return nil, &googleapi.Error{
+ Code: res.StatusCode,
+ Header: res.Header,
+ }
+ }
+ if err != nil {
+ return nil, err
+ }
+ defer googleapi.CloseBody(res)
+ if err := googleapi.CheckResponse(res); err != nil {
+ return nil, err
+ }
+ ret := &ListDelegatesResponse{
+ ServerResponse: googleapi.ServerResponse{
+ Header: res.Header,
+ HTTPStatusCode: res.StatusCode,
+ },
+ }
+ target := &ret
+ if err := gensupport.DecodeResponse(target, res); err != nil {
+ return nil, err
+ }
+ return ret, nil
+ // {
+ // "description": "Lists the delegates for the specified account.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
+ // "httpMethod": "GET",
+ // "id": "gmail.users.settings.delegates.list",
+ // "parameterOrder": [
+ // "userId"
+ // ],
+ // "parameters": {
+ // "userId": {
+ // "default": "me",
+ // "description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
+ // "location": "path",
+ // "required": true,
+ // "type": "string"
+ // }
+ // },
+ // "path": "{userId}/settings/delegates",
+ // "response": {
+ // "$ref": "ListDelegatesResponse"
+ // },
+ // "scopes": [
+ // "https://mail.google.com/",
+ // "https://www.googleapis.com/auth/gmail.modify",
+ // "https://www.googleapis.com/auth/gmail.readonly",
+ // "https://www.googleapis.com/auth/gmail.settings.basic"
+ // ]
+ // }
+
+}
+
// method id "gmail.users.settings.filters.create":
type UsersSettingsFiltersCreateCall struct {
diff --git a/jobs/v2/jobs-api.json b/jobs/v2/jobs-api.json
index b593ed2..b93ad8b 100644
--- a/jobs/v2/jobs-api.json
+++ b/jobs/v2/jobs-api.json
@@ -17,7 +17,7 @@
"canonicalName": "Job Service",
"description": "Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters.\n",
"discoveryVersion": "v1",
- "documentationLink": "https://cloud.google.com/job-discovery/docs",
+ "documentationLink": "https://cloud.google.com/talent-solution/job-search/docs/",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
@@ -614,7 +614,7 @@
}
}
},
- "revision": "20180726",
+ "revision": "20180821",
"rootUrl": "https://jobs.googleapis.com/",
"schemas": {
"BatchDeleteJobsRequest": {
@@ -670,7 +670,7 @@
"description": "Location used as the destination in the commute calculation."
},
"travelDuration": {
- "description": "Travel time to reach the job.",
+ "description": "The number of seconds required to travel to the job location from the query\nlocation. A duration of 0 seconds indicates that the job is not\nreachable within the requested duration, but was returned as part of an\nexpanded query.",
"format": "google-duration",
"type": "string"
}
diff --git a/jobs/v2/jobs-gen.go b/jobs/v2/jobs-gen.go
index a9e629a..3abf586 100644
--- a/jobs/v2/jobs-gen.go
+++ b/jobs/v2/jobs-gen.go
@@ -1,6 +1,6 @@
// Package jobs provides access to the Cloud Talent Solution API.
//
-// See https://cloud.google.com/job-discovery/docs
+// See https://cloud.google.com/talent-solution/job-search/docs/
//
// Usage example:
//
@@ -254,7 +254,13 @@
// calculation.
JobLocation *JobLocation `json:"jobLocation,omitempty"`
- // TravelDuration: Travel time to reach the job.
+ // TravelDuration: The number of seconds required to travel to the job
+ // location from the query
+ // location. A duration of 0 seconds indicates that the job is
+ // not
+ // reachable within the requested duration, but was returned as part of
+ // an
+ // expanded query.
TravelDuration string `json:"travelDuration,omitempty"`
// ForceSendFields is a list of field names (e.g. "JobLocation") to