Regen APIs, bump version

This commit is contained in:
Steve Bazyl 2016-07-06 14:13:29 -07:00
parent 24ef90b583
commit cba9d79b52
30 changed files with 1919 additions and 196 deletions

View File

@ -1,3 +1,6 @@
# 0.9.11
* Add DFA Reporting 2.5, regenerate APIs
# 0.9.10 # 0.9.10
* Add datastore v1beta3, regenerate APIs * Add datastore v1beta3, regenerate APIs
* Reduce memory footprint used by mimetypes library * Reduce memory footprint used by mimetypes library

View File

@ -865,6 +865,13 @@
"/genomics:v1/genomics.variantsets.search": search_variant_sets "/genomics:v1/genomics.variantsets.search": search_variant_sets
"/genomics:v1/genomics.referencesets.search": search_reference_sets "/genomics:v1/genomics.referencesets.search": search_reference_sets
"/gmail:v1/gmail.users.getProfile": get_user_profile "/gmail:v1/gmail.users.getProfile": get_user_profile
"/gmail:v1/ListSendAsResponse/sendAs/send_a": send_as
"/gmail:v1/gmail.users.settings.sendAs.create": create_user_setting_send_as
"/gmail:v1/gmail.users.settings.sendAs.delete": delete_user_setting_send_as
"/gmail:v1/gmail.users.settings.sendAs.get": get_user_setting_send_as
"/gmail:v1/gmail.users.settings.sendAs.patch": patch_user_setting_send_as
"/gmail:v1/gmail.users.settings.sendAs.update": update_user_setting_send_as
"/gmail:v1/gmail.users.settings.sendAs.verify": verify_user_setting_send_as
"/groupssettings:v1?force_alt_json" : true "/groupssettings:v1?force_alt_json" : true
"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest": set_project_config_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest": set_project_config_request
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request

View File

@ -841,6 +841,13 @@
"/genomics:v1/genomics.variantsets.search": search_variant_sets "/genomics:v1/genomics.variantsets.search": search_variant_sets
"/genomics:v1/genomics.referencesets.search": search_reference_sets "/genomics:v1/genomics.referencesets.search": search_reference_sets
"/gmail:v1/gmail.users.getProfile": get_user_profile "/gmail:v1/gmail.users.getProfile": get_user_profile
"/gmail:v1/ListSendAsResponse/sendAs/send_a": send_as
"/gmail:v1/gmail.users.settings.sendAs.create": create_user_setting_send_as
"/gmail:v1/gmail.users.settings.sendAs.delete": delete_user_setting_send_as
"/gmail:v1/gmail.users.settings.sendAs.get": get_user_setting_send_as
"/gmail:v1/gmail.users.settings.sendAs.patch": patch_user_setting_send_as
"/gmail:v1/gmail.users.settings.sendAs.update": update_user_setting_send_as
"/gmail:v1/gmail.users.settings.sendAs.verify": verify_user_setting_send_as
"/groupssettings:v1?force_alt_json": true "/groupssettings:v1?force_alt_json": true
"/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest": set_project_config_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest": set_project_config_request
"/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request
@ -2917,6 +2924,7 @@
"/compute:beta/Autoscaler/id": id "/compute:beta/Autoscaler/id": id
"/compute:beta/Autoscaler/kind": kind "/compute:beta/Autoscaler/kind": kind
"/compute:beta/Autoscaler/name": name "/compute:beta/Autoscaler/name": name
"/compute:beta/Autoscaler/region": region
"/compute:beta/Autoscaler/selfLink": self_link "/compute:beta/Autoscaler/selfLink": self_link
"/compute:beta/Autoscaler/target": target "/compute:beta/Autoscaler/target": target
"/compute:beta/Autoscaler/zone": zone "/compute:beta/Autoscaler/zone": zone
@ -3349,6 +3357,7 @@
"/compute:beta/InstanceGroup/namedPorts": named_ports "/compute:beta/InstanceGroup/namedPorts": named_ports
"/compute:beta/InstanceGroup/namedPorts/named_port": named_port "/compute:beta/InstanceGroup/namedPorts/named_port": named_port
"/compute:beta/InstanceGroup/network": network "/compute:beta/InstanceGroup/network": network
"/compute:beta/InstanceGroup/region": region
"/compute:beta/InstanceGroup/selfLink": self_link "/compute:beta/InstanceGroup/selfLink": self_link
"/compute:beta/InstanceGroup/size": size "/compute:beta/InstanceGroup/size": size
"/compute:beta/InstanceGroup/subnetwork": subnetwork "/compute:beta/InstanceGroup/subnetwork": subnetwork
@ -3374,6 +3383,7 @@
"/compute:beta/InstanceGroupManager/creationTimestamp": creation_timestamp "/compute:beta/InstanceGroupManager/creationTimestamp": creation_timestamp
"/compute:beta/InstanceGroupManager/currentActions": current_actions "/compute:beta/InstanceGroupManager/currentActions": current_actions
"/compute:beta/InstanceGroupManager/description": description "/compute:beta/InstanceGroupManager/description": description
"/compute:beta/InstanceGroupManager/failoverAction": failover_action
"/compute:beta/InstanceGroupManager/fingerprint": fingerprint "/compute:beta/InstanceGroupManager/fingerprint": fingerprint
"/compute:beta/InstanceGroupManager/id": id "/compute:beta/InstanceGroupManager/id": id
"/compute:beta/InstanceGroupManager/instanceGroup": instance_group "/compute:beta/InstanceGroupManager/instanceGroup": instance_group
@ -3382,6 +3392,7 @@
"/compute:beta/InstanceGroupManager/name": name "/compute:beta/InstanceGroupManager/name": name
"/compute:beta/InstanceGroupManager/namedPorts": named_ports "/compute:beta/InstanceGroupManager/namedPorts": named_ports
"/compute:beta/InstanceGroupManager/namedPorts/named_port": named_port "/compute:beta/InstanceGroupManager/namedPorts/named_port": named_port
"/compute:beta/InstanceGroupManager/region": region
"/compute:beta/InstanceGroupManager/selfLink": self_link "/compute:beta/InstanceGroupManager/selfLink": self_link
"/compute:beta/InstanceGroupManager/targetPools": target_pools "/compute:beta/InstanceGroupManager/targetPools": target_pools
"/compute:beta/InstanceGroupManager/targetPools/target_pool": target_pool "/compute:beta/InstanceGroupManager/targetPools/target_pool": target_pool
@ -8248,6 +8259,9 @@
"/androidenterprise:v1/androidenterprise.products.list/maxResults": max_results "/androidenterprise:v1/androidenterprise.products.list/maxResults": max_results
"/androidenterprise:v1/androidenterprise.products.list/query": query "/androidenterprise:v1/androidenterprise.products.list/query": query
"/androidenterprise:v1/androidenterprise.products.list/token": token "/androidenterprise:v1/androidenterprise.products.list/token": token
"/androidenterprise:v1/androidenterprise.products.unapprove": unapprove_product
"/androidenterprise:v1/androidenterprise.products.unapprove/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.products.unapprove/productId": product_id
"/androidenterprise:v1/androidenterprise.products.updatePermissions/enterpriseId": enterprise_id "/androidenterprise:v1/androidenterprise.products.updatePermissions/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.products.updatePermissions/productId": product_id "/androidenterprise:v1/androidenterprise.products.updatePermissions/productId": product_id
"/androidenterprise:v1/androidenterprise.serviceaccountkeys.delete": delete_serviceaccountkey "/androidenterprise:v1/androidenterprise.serviceaccountkeys.delete": delete_serviceaccountkey
@ -9043,149 +9057,6 @@
"/appstate:v1/WriteResult/currentStateVersion": current_state_version "/appstate:v1/WriteResult/currentStateVersion": current_state_version
"/appstate:v1/WriteResult/kind": kind "/appstate:v1/WriteResult/kind": kind
"/appstate:v1/WriteResult/stateKey": state_key "/appstate:v1/WriteResult/stateKey": state_key
"/autoscaler:v1beta2/fields": fields
"/autoscaler:v1beta2/key": key
"/autoscaler:v1beta2/quotaUser": quota_user
"/autoscaler:v1beta2/userIp": user_ip
"/autoscaler:v1beta2/autoscaler.autoscalers.delete": delete_autoscaler
"/autoscaler:v1beta2/autoscaler.autoscalers.delete/autoscaler": autoscaler
"/autoscaler:v1beta2/autoscaler.autoscalers.delete/project": project
"/autoscaler:v1beta2/autoscaler.autoscalers.delete/zone": zone
"/autoscaler:v1beta2/autoscaler.autoscalers.get": get_autoscaler
"/autoscaler:v1beta2/autoscaler.autoscalers.get/autoscaler": autoscaler
"/autoscaler:v1beta2/autoscaler.autoscalers.get/project": project
"/autoscaler:v1beta2/autoscaler.autoscalers.get/zone": zone
"/autoscaler:v1beta2/autoscaler.autoscalers.insert": insert_autoscaler
"/autoscaler:v1beta2/autoscaler.autoscalers.insert/project": project
"/autoscaler:v1beta2/autoscaler.autoscalers.insert/zone": zone
"/autoscaler:v1beta2/autoscaler.autoscalers.list": list_autoscalers
"/autoscaler:v1beta2/autoscaler.autoscalers.list/filter": filter
"/autoscaler:v1beta2/autoscaler.autoscalers.list/maxResults": max_results
"/autoscaler:v1beta2/autoscaler.autoscalers.list/pageToken": page_token
"/autoscaler:v1beta2/autoscaler.autoscalers.list/project": project
"/autoscaler:v1beta2/autoscaler.autoscalers.list/zone": zone
"/autoscaler:v1beta2/autoscaler.autoscalers.patch": patch_autoscaler
"/autoscaler:v1beta2/autoscaler.autoscalers.patch/autoscaler": autoscaler
"/autoscaler:v1beta2/autoscaler.autoscalers.patch/project": project
"/autoscaler:v1beta2/autoscaler.autoscalers.patch/zone": zone
"/autoscaler:v1beta2/autoscaler.autoscalers.update": update_autoscaler
"/autoscaler:v1beta2/autoscaler.autoscalers.update/autoscaler": autoscaler
"/autoscaler:v1beta2/autoscaler.autoscalers.update/project": project
"/autoscaler:v1beta2/autoscaler.autoscalers.update/zone": zone
"/autoscaler:v1beta2/autoscaler.zoneOperations.delete": delete_zone_operation
"/autoscaler:v1beta2/autoscaler.zoneOperations.delete/operation": operation
"/autoscaler:v1beta2/autoscaler.zoneOperations.delete/project": project
"/autoscaler:v1beta2/autoscaler.zoneOperations.delete/zone": zone
"/autoscaler:v1beta2/autoscaler.zoneOperations.get": get_zone_operation
"/autoscaler:v1beta2/autoscaler.zoneOperations.get/operation": operation
"/autoscaler:v1beta2/autoscaler.zoneOperations.get/project": project
"/autoscaler:v1beta2/autoscaler.zoneOperations.get/zone": zone
"/autoscaler:v1beta2/autoscaler.zoneOperations.list": list_zone_operations
"/autoscaler:v1beta2/autoscaler.zoneOperations.list/filter": filter
"/autoscaler:v1beta2/autoscaler.zoneOperations.list/maxResults": max_results
"/autoscaler:v1beta2/autoscaler.zoneOperations.list/pageToken": page_token
"/autoscaler:v1beta2/autoscaler.zoneOperations.list/project": project
"/autoscaler:v1beta2/autoscaler.zoneOperations.list/zone": zone
"/autoscaler:v1beta2/autoscaler.zones.list": list_zones
"/autoscaler:v1beta2/autoscaler.zones.list/filter": filter
"/autoscaler:v1beta2/autoscaler.zones.list/maxResults": max_results
"/autoscaler:v1beta2/autoscaler.zones.list/pageToken": page_token
"/autoscaler:v1beta2/autoscaler.zones.list/project": project
"/autoscaler:v1beta2/Autoscaler": autoscaler
"/autoscaler:v1beta2/Autoscaler/autoscalingPolicy": autoscaling_policy
"/autoscaler:v1beta2/Autoscaler/creationTimestamp": creation_timestamp
"/autoscaler:v1beta2/Autoscaler/description": description
"/autoscaler:v1beta2/Autoscaler/id": id
"/autoscaler:v1beta2/Autoscaler/kind": kind
"/autoscaler:v1beta2/Autoscaler/name": name
"/autoscaler:v1beta2/Autoscaler/selfLink": self_link
"/autoscaler:v1beta2/Autoscaler/target": target
"/autoscaler:v1beta2/AutoscalerListResponse/items": items
"/autoscaler:v1beta2/AutoscalerListResponse/items/item": item
"/autoscaler:v1beta2/AutoscalerListResponse/kind": kind
"/autoscaler:v1beta2/AutoscalerListResponse/nextPageToken": next_page_token
"/autoscaler:v1beta2/AutoscalingPolicy": autoscaling_policy
"/autoscaler:v1beta2/AutoscalingPolicy/coolDownPeriodSec": cool_down_period_sec
"/autoscaler:v1beta2/AutoscalingPolicy/cpuUtilization": cpu_utilization
"/autoscaler:v1beta2/AutoscalingPolicy/customMetricUtilizations": custom_metric_utilizations
"/autoscaler:v1beta2/AutoscalingPolicy/customMetricUtilizations/custom_metric_utilization": custom_metric_utilization
"/autoscaler:v1beta2/AutoscalingPolicy/loadBalancingUtilization": load_balancing_utilization
"/autoscaler:v1beta2/AutoscalingPolicy/maxNumReplicas": max_num_replicas
"/autoscaler:v1beta2/AutoscalingPolicy/minNumReplicas": min_num_replicas
"/autoscaler:v1beta2/AutoscalingPolicyCpuUtilization": autoscaling_policy_cpu_utilization
"/autoscaler:v1beta2/AutoscalingPolicyCpuUtilization/utilizationTarget": utilization_target
"/autoscaler:v1beta2/AutoscalingPolicyCustomMetricUtilization": autoscaling_policy_custom_metric_utilization
"/autoscaler:v1beta2/AutoscalingPolicyCustomMetricUtilization/metric": metric
"/autoscaler:v1beta2/AutoscalingPolicyCustomMetricUtilization/utilizationTarget": utilization_target
"/autoscaler:v1beta2/AutoscalingPolicyCustomMetricUtilization/utilizationTargetType": utilization_target_type
"/autoscaler:v1beta2/AutoscalingPolicyLoadBalancingUtilization": autoscaling_policy_load_balancing_utilization
"/autoscaler:v1beta2/AutoscalingPolicyLoadBalancingUtilization/utilizationTarget": utilization_target
"/autoscaler:v1beta2/DeprecationStatus": deprecation_status
"/autoscaler:v1beta2/DeprecationStatus/deleted": deleted
"/autoscaler:v1beta2/DeprecationStatus/deprecated": deprecated
"/autoscaler:v1beta2/DeprecationStatus/obsolete": obsolete
"/autoscaler:v1beta2/DeprecationStatus/replacement": replacement
"/autoscaler:v1beta2/DeprecationStatus/state": state
"/autoscaler:v1beta2/Operation": operation
"/autoscaler:v1beta2/Operation/clientOperationId": client_operation_id
"/autoscaler:v1beta2/Operation/creationTimestamp": creation_timestamp
"/autoscaler:v1beta2/Operation/description": description
"/autoscaler:v1beta2/Operation/endTime": end_time
"/autoscaler:v1beta2/Operation/error": error
"/autoscaler:v1beta2/Operation/error/errors": errors
"/autoscaler:v1beta2/Operation/error/errors/error": error
"/autoscaler:v1beta2/Operation/error/errors/error/code": code
"/autoscaler:v1beta2/Operation/error/errors/error/location": location
"/autoscaler:v1beta2/Operation/error/errors/error/message": message
"/autoscaler:v1beta2/Operation/httpErrorMessage": http_error_message
"/autoscaler:v1beta2/Operation/httpErrorStatusCode": http_error_status_code
"/autoscaler:v1beta2/Operation/id": id
"/autoscaler:v1beta2/Operation/insertTime": insert_time
"/autoscaler:v1beta2/Operation/kind": kind
"/autoscaler:v1beta2/Operation/name": name
"/autoscaler:v1beta2/Operation/operationType": operation_type
"/autoscaler:v1beta2/Operation/progress": progress
"/autoscaler:v1beta2/Operation/region": region
"/autoscaler:v1beta2/Operation/selfLink": self_link
"/autoscaler:v1beta2/Operation/startTime": start_time
"/autoscaler:v1beta2/Operation/status": status
"/autoscaler:v1beta2/Operation/statusMessage": status_message
"/autoscaler:v1beta2/Operation/targetId": target_id
"/autoscaler:v1beta2/Operation/targetLink": target_link
"/autoscaler:v1beta2/Operation/user": user
"/autoscaler:v1beta2/Operation/warnings": warnings
"/autoscaler:v1beta2/Operation/warnings/warning": warning
"/autoscaler:v1beta2/Operation/warnings/warning/code": code
"/autoscaler:v1beta2/Operation/warnings/warning/data": data
"/autoscaler:v1beta2/Operation/warnings/warning/data/datum": datum
"/autoscaler:v1beta2/Operation/warnings/warning/data/datum/key": key
"/autoscaler:v1beta2/Operation/warnings/warning/data/datum/value": value
"/autoscaler:v1beta2/Operation/warnings/warning/message": message
"/autoscaler:v1beta2/Operation/zone": zone
"/autoscaler:v1beta2/OperationList": operation_list
"/autoscaler:v1beta2/OperationList/id": id
"/autoscaler:v1beta2/OperationList/items": items
"/autoscaler:v1beta2/OperationList/items/item": item
"/autoscaler:v1beta2/OperationList/kind": kind
"/autoscaler:v1beta2/OperationList/nextPageToken": next_page_token
"/autoscaler:v1beta2/OperationList/selfLink": self_link
"/autoscaler:v1beta2/Zone": zone
"/autoscaler:v1beta2/Zone/creationTimestamp": creation_timestamp
"/autoscaler:v1beta2/Zone/deprecated": deprecated
"/autoscaler:v1beta2/Zone/description": description
"/autoscaler:v1beta2/Zone/id": id
"/autoscaler:v1beta2/Zone/kind": kind
"/autoscaler:v1beta2/Zone/name": name
"/autoscaler:v1beta2/Zone/region": region
"/autoscaler:v1beta2/Zone/selfLink": self_link
"/autoscaler:v1beta2/Zone/status": status
"/autoscaler:v1beta2/ZoneList": zone_list
"/autoscaler:v1beta2/ZoneList/id": id
"/autoscaler:v1beta2/ZoneList/items": items
"/autoscaler:v1beta2/ZoneList/items/item": item
"/autoscaler:v1beta2/ZoneList/kind": kind
"/autoscaler:v1beta2/ZoneList/nextPageToken": next_page_token
"/autoscaler:v1beta2/ZoneList/selfLink": self_link
"/bigquery:v2/fields": fields "/bigquery:v2/fields": fields
"/bigquery:v2/key": key "/bigquery:v2/key": key
"/bigquery:v2/quotaUser": quota_user "/bigquery:v2/quotaUser": quota_user
@ -20666,6 +20537,55 @@
"/gmail:v1/gmail.users.messages.attachments.get/id": id "/gmail:v1/gmail.users.messages.attachments.get/id": id
"/gmail:v1/gmail.users.messages.attachments.get/messageId": message_id "/gmail:v1/gmail.users.messages.attachments.get/messageId": message_id
"/gmail:v1/gmail.users.messages.attachments.get/userId": user_id "/gmail:v1/gmail.users.messages.attachments.get/userId": user_id
"/gmail:v1/gmail.users.settings.getAutoForwarding": get_user_setting_auto_forwarding
"/gmail:v1/gmail.users.settings.getAutoForwarding/userId": user_id
"/gmail:v1/gmail.users.settings.getImap": get_user_setting_imap
"/gmail:v1/gmail.users.settings.getImap/userId": user_id
"/gmail:v1/gmail.users.settings.getPop": get_user_setting_pop
"/gmail:v1/gmail.users.settings.getPop/userId": user_id
"/gmail:v1/gmail.users.settings.getVacation": get_user_setting_vacation
"/gmail:v1/gmail.users.settings.getVacation/userId": user_id
"/gmail:v1/gmail.users.settings.updateAutoForwarding": update_user_setting_auto_forwarding
"/gmail:v1/gmail.users.settings.updateAutoForwarding/userId": user_id
"/gmail:v1/gmail.users.settings.updateImap": update_user_setting_imap
"/gmail:v1/gmail.users.settings.updateImap/userId": user_id
"/gmail:v1/gmail.users.settings.updatePop": update_user_setting_pop
"/gmail:v1/gmail.users.settings.updatePop/userId": user_id
"/gmail:v1/gmail.users.settings.updateVacation": update_user_setting_vacation
"/gmail:v1/gmail.users.settings.updateVacation/userId": user_id
"/gmail:v1/gmail.users.settings.filters.create": create_user_setting_filter
"/gmail:v1/gmail.users.settings.filters.create/userId": user_id
"/gmail:v1/gmail.users.settings.filters.delete": delete_user_setting_filter
"/gmail:v1/gmail.users.settings.filters.delete/id": id
"/gmail:v1/gmail.users.settings.filters.delete/userId": user_id
"/gmail:v1/gmail.users.settings.filters.get": get_user_setting_filter
"/gmail:v1/gmail.users.settings.filters.get/id": id
"/gmail:v1/gmail.users.settings.filters.get/userId": user_id
"/gmail:v1/gmail.users.settings.filters.list": list_user_setting_filters
"/gmail:v1/gmail.users.settings.filters.list/userId": user_id
"/gmail:v1/gmail.users.settings.forwardingAddresses.create": create_user_setting_forwarding_address
"/gmail:v1/gmail.users.settings.forwardingAddresses.create/userId": user_id
"/gmail:v1/gmail.users.settings.forwardingAddresses.delete": delete_user_setting_forwarding_address
"/gmail:v1/gmail.users.settings.forwardingAddresses.delete/forwardingEmail": forwarding_email
"/gmail:v1/gmail.users.settings.forwardingAddresses.delete/userId": user_id
"/gmail:v1/gmail.users.settings.forwardingAddresses.get": get_user_setting_forwarding_address
"/gmail:v1/gmail.users.settings.forwardingAddresses.get/forwardingEmail": forwarding_email
"/gmail:v1/gmail.users.settings.forwardingAddresses.get/userId": user_id
"/gmail:v1/gmail.users.settings.forwardingAddresses.list": list_user_setting_forwarding_addresses
"/gmail:v1/gmail.users.settings.forwardingAddresses.list/userId": user_id
"/gmail:v1/gmail.users.settings.sendAs.create/userId": user_id
"/gmail:v1/gmail.users.settings.sendAs.delete/sendAsEmail": send_as_email
"/gmail:v1/gmail.users.settings.sendAs.delete/userId": user_id
"/gmail:v1/gmail.users.settings.sendAs.get/sendAsEmail": send_as_email
"/gmail:v1/gmail.users.settings.sendAs.get/userId": user_id
"/gmail:v1/gmail.users.settings.sendAs.list": list_user_setting_send_as
"/gmail:v1/gmail.users.settings.sendAs.list/userId": user_id
"/gmail:v1/gmail.users.settings.sendAs.patch/sendAsEmail": send_as_email
"/gmail:v1/gmail.users.settings.sendAs.patch/userId": user_id
"/gmail:v1/gmail.users.settings.sendAs.update/sendAsEmail": send_as_email
"/gmail:v1/gmail.users.settings.sendAs.update/userId": user_id
"/gmail:v1/gmail.users.settings.sendAs.verify/sendAsEmail": send_as_email
"/gmail:v1/gmail.users.settings.sendAs.verify/userId": user_id
"/gmail:v1/gmail.users.threads.delete": delete_user_thread "/gmail:v1/gmail.users.threads.delete": delete_user_thread
"/gmail:v1/gmail.users.threads.delete/id": id "/gmail:v1/gmail.users.threads.delete/id": id
"/gmail:v1/gmail.users.threads.delete/userId": user_id "/gmail:v1/gmail.users.threads.delete/userId": user_id
@ -20690,12 +20610,39 @@
"/gmail:v1/gmail.users.threads.untrash": untrash_user_thread "/gmail:v1/gmail.users.threads.untrash": untrash_user_thread
"/gmail:v1/gmail.users.threads.untrash/id": id "/gmail:v1/gmail.users.threads.untrash/id": id
"/gmail:v1/gmail.users.threads.untrash/userId": user_id "/gmail:v1/gmail.users.threads.untrash/userId": user_id
"/gmail:v1/AutoForwarding": auto_forwarding
"/gmail:v1/AutoForwarding/disposition": disposition
"/gmail:v1/AutoForwarding/emailAddress": email_address
"/gmail:v1/AutoForwarding/enabled": enabled
"/gmail:v1/BatchDeleteMessagesRequest": batch_delete_messages_request "/gmail:v1/BatchDeleteMessagesRequest": batch_delete_messages_request
"/gmail:v1/BatchDeleteMessagesRequest/ids": ids "/gmail:v1/BatchDeleteMessagesRequest/ids": ids
"/gmail:v1/BatchDeleteMessagesRequest/ids/id": id "/gmail:v1/BatchDeleteMessagesRequest/ids/id": id
"/gmail:v1/Draft": draft "/gmail:v1/Draft": draft
"/gmail:v1/Draft/id": id "/gmail:v1/Draft/id": id
"/gmail:v1/Draft/message": message "/gmail:v1/Draft/message": message
"/gmail:v1/Filter": filter
"/gmail:v1/Filter/action": action
"/gmail:v1/Filter/criteria": criteria
"/gmail:v1/Filter/id": id
"/gmail:v1/FilterAction": filter_action
"/gmail:v1/FilterAction/addLabelIds": add_label_ids
"/gmail:v1/FilterAction/addLabelIds/add_label_id": add_label_id
"/gmail:v1/FilterAction/forward": forward
"/gmail:v1/FilterAction/removeLabelIds": remove_label_ids
"/gmail:v1/FilterAction/removeLabelIds/remove_label_id": remove_label_id
"/gmail:v1/FilterCriteria": filter_criteria
"/gmail:v1/FilterCriteria/excludeChats": exclude_chats
"/gmail:v1/FilterCriteria/from": from
"/gmail:v1/FilterCriteria/hasAttachment": has_attachment
"/gmail:v1/FilterCriteria/negatedQuery": negated_query
"/gmail:v1/FilterCriteria/query": query
"/gmail:v1/FilterCriteria/size": size
"/gmail:v1/FilterCriteria/sizeComparison": size_comparison
"/gmail:v1/FilterCriteria/subject": subject
"/gmail:v1/FilterCriteria/to": to
"/gmail:v1/ForwardingAddress": forwarding_address
"/gmail:v1/ForwardingAddress/forwardingEmail": forwarding_email
"/gmail:v1/ForwardingAddress/verificationStatus": verification_status
"/gmail:v1/History": history "/gmail:v1/History": history
"/gmail:v1/History/id": id "/gmail:v1/History/id": id
"/gmail:v1/History/labelsAdded": labels_added "/gmail:v1/History/labelsAdded": labels_added
@ -20720,6 +20667,11 @@
"/gmail:v1/HistoryMessageAdded/message": message "/gmail:v1/HistoryMessageAdded/message": message
"/gmail:v1/HistoryMessageDeleted": history_message_deleted "/gmail:v1/HistoryMessageDeleted": history_message_deleted
"/gmail:v1/HistoryMessageDeleted/message": message "/gmail:v1/HistoryMessageDeleted/message": message
"/gmail:v1/ImapSettings": imap_settings
"/gmail:v1/ImapSettings/autoExpunge": auto_expunge
"/gmail:v1/ImapSettings/enabled": enabled
"/gmail:v1/ImapSettings/expungeBehavior": expunge_behavior
"/gmail:v1/ImapSettings/maxFolderSize": max_folder_size
"/gmail:v1/Label": label "/gmail:v1/Label": label
"/gmail:v1/Label/id": id "/gmail:v1/Label/id": id
"/gmail:v1/Label/labelListVisibility": label_list_visibility "/gmail:v1/Label/labelListVisibility": label_list_visibility
@ -20735,6 +20687,12 @@
"/gmail:v1/ListDraftsResponse/drafts/draft": draft "/gmail:v1/ListDraftsResponse/drafts/draft": draft
"/gmail:v1/ListDraftsResponse/nextPageToken": next_page_token "/gmail:v1/ListDraftsResponse/nextPageToken": next_page_token
"/gmail:v1/ListDraftsResponse/resultSizeEstimate": result_size_estimate "/gmail:v1/ListDraftsResponse/resultSizeEstimate": result_size_estimate
"/gmail:v1/ListFiltersResponse": list_filters_response
"/gmail:v1/ListFiltersResponse/filter": filter
"/gmail:v1/ListFiltersResponse/filter/filter": filter
"/gmail:v1/ListForwardingAddressesResponse": list_forwarding_addresses_response
"/gmail:v1/ListForwardingAddressesResponse/forwardingAddresses": forwarding_addresses
"/gmail:v1/ListForwardingAddressesResponse/forwardingAddresses/forwarding_address": forwarding_address
"/gmail:v1/ListHistoryResponse": list_history_response "/gmail:v1/ListHistoryResponse": list_history_response
"/gmail:v1/ListHistoryResponse/history": history "/gmail:v1/ListHistoryResponse/history": history
"/gmail:v1/ListHistoryResponse/history/history": history "/gmail:v1/ListHistoryResponse/history/history": history
@ -20748,6 +20706,8 @@
"/gmail:v1/ListMessagesResponse/messages/message": message "/gmail:v1/ListMessagesResponse/messages/message": message
"/gmail:v1/ListMessagesResponse/nextPageToken": next_page_token "/gmail:v1/ListMessagesResponse/nextPageToken": next_page_token
"/gmail:v1/ListMessagesResponse/resultSizeEstimate": result_size_estimate "/gmail:v1/ListMessagesResponse/resultSizeEstimate": result_size_estimate
"/gmail:v1/ListSendAsResponse": list_send_as_response
"/gmail:v1/ListSendAsResponse/sendAs": send_as
"/gmail:v1/ListThreadsResponse": list_threads_response "/gmail:v1/ListThreadsResponse": list_threads_response
"/gmail:v1/ListThreadsResponse/nextPageToken": next_page_token "/gmail:v1/ListThreadsResponse/nextPageToken": next_page_token
"/gmail:v1/ListThreadsResponse/resultSizeEstimate": result_size_estimate "/gmail:v1/ListThreadsResponse/resultSizeEstimate": result_size_estimate
@ -20790,17 +20750,45 @@
"/gmail:v1/ModifyThreadRequest/addLabelIds/add_label_id": add_label_id "/gmail:v1/ModifyThreadRequest/addLabelIds/add_label_id": add_label_id
"/gmail:v1/ModifyThreadRequest/removeLabelIds": remove_label_ids "/gmail:v1/ModifyThreadRequest/removeLabelIds": remove_label_ids
"/gmail:v1/ModifyThreadRequest/removeLabelIds/remove_label_id": remove_label_id "/gmail:v1/ModifyThreadRequest/removeLabelIds/remove_label_id": remove_label_id
"/gmail:v1/PopSettings": pop_settings
"/gmail:v1/PopSettings/accessWindow": access_window
"/gmail:v1/PopSettings/disposition": disposition
"/gmail:v1/Profile": profile "/gmail:v1/Profile": profile
"/gmail:v1/Profile/emailAddress": email_address "/gmail:v1/Profile/emailAddress": email_address
"/gmail:v1/Profile/historyId": history_id "/gmail:v1/Profile/historyId": history_id
"/gmail:v1/Profile/messagesTotal": messages_total "/gmail:v1/Profile/messagesTotal": messages_total
"/gmail:v1/Profile/threadsTotal": threads_total "/gmail:v1/Profile/threadsTotal": threads_total
"/gmail:v1/SendAs": send_as
"/gmail:v1/SendAs/displayName": display_name
"/gmail:v1/SendAs/isDefault": is_default
"/gmail:v1/SendAs/isPrimary": is_primary
"/gmail:v1/SendAs/replyToAddress": reply_to_address
"/gmail:v1/SendAs/sendAsEmail": send_as_email
"/gmail:v1/SendAs/signature": signature
"/gmail:v1/SendAs/smtpMsa": smtp_msa
"/gmail:v1/SendAs/treatAsAlias": treat_as_alias
"/gmail:v1/SendAs/verificationStatus": verification_status
"/gmail:v1/SmtpMsa": smtp_msa
"/gmail:v1/SmtpMsa/host": host
"/gmail:v1/SmtpMsa/password": password
"/gmail:v1/SmtpMsa/port": port
"/gmail:v1/SmtpMsa/securityMode": security_mode
"/gmail:v1/SmtpMsa/username": username
"/gmail:v1/Thread": thread "/gmail:v1/Thread": thread
"/gmail:v1/Thread/historyId": history_id "/gmail:v1/Thread/historyId": history_id
"/gmail:v1/Thread/id": id "/gmail:v1/Thread/id": id
"/gmail:v1/Thread/messages": messages "/gmail:v1/Thread/messages": messages
"/gmail:v1/Thread/messages/message": message "/gmail:v1/Thread/messages/message": message
"/gmail:v1/Thread/snippet": snippet "/gmail:v1/Thread/snippet": snippet
"/gmail:v1/VacationSettings": vacation_settings
"/gmail:v1/VacationSettings/enableAutoReply": enable_auto_reply
"/gmail:v1/VacationSettings/endTime": end_time
"/gmail:v1/VacationSettings/responseBodyHtml": response_body_html
"/gmail:v1/VacationSettings/responseBodyPlainText": response_body_plain_text
"/gmail:v1/VacationSettings/responseSubject": response_subject
"/gmail:v1/VacationSettings/restrictToContacts": restrict_to_contacts
"/gmail:v1/VacationSettings/restrictToDomain": restrict_to_domain
"/gmail:v1/VacationSettings/startTime": start_time
"/gmail:v1/WatchRequest": watch_request "/gmail:v1/WatchRequest": watch_request
"/gmail:v1/WatchRequest/labelFilterAction": label_filter_action "/gmail:v1/WatchRequest/labelFilterAction": label_filter_action
"/gmail:v1/WatchRequest/labelIds": label_ids "/gmail:v1/WatchRequest/labelIds": label_ids

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/adsense/management/ # @see https://developers.google.com/adsense/management/
module AdsenseV1_4 module AdsenseV1_4
VERSION = 'V1_4' VERSION = 'V1_4'
REVISION = '20160627' REVISION = '20160705'
# View and manage your AdSense data # View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/host/ # @see https://developers.google.com/adsense/host/
module AdsensehostV4_1 module AdsensehostV4_1
VERSION = 'V4_1' VERSION = 'V4_1'
REVISION = '20160627' REVISION = '20160705'
# View and manage your AdSense host data and associated accounts # View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost' AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api # @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1 module AndroidenterpriseV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160627' REVISION = '20160704'
# Manage corporate Android devices # Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise' AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -437,8 +437,7 @@ module Google
# means that the EMM's app is a device owner. "managedProfile" means that the # means that the EMM's app is a device owner. "managedProfile" means that the
# EMM's app is the profile owner (and there is a separate personal profile which # EMM's app is the profile owner (and there is a separate personal profile which
# is not managed). "containerApp" means that the EMM's app is managing the # is not managed). "containerApp" means that the EMM's app is managing the
# Android for Work container app on the device. ?unmanagedProfile? means that # Android for Work container app on the device.
# the EMM?s app is managing a managed user on an unmanaged device
# Corresponds to the JSON property `managementType` # Corresponds to the JSON property `managementType`
# @return [String] # @return [String]
attr_accessor :management_type attr_accessor :management_type
@ -526,7 +525,7 @@ module Google
# optional), and Enterprises.setAccount. # optional), and Enterprises.setAccount.
# The overall processes are very different and involve different identity models, # The overall processes are very different and involve different identity models,
# but as an EMM, you can support either or both approaches in your EMM console. # but as an EMM, you can support either or both approaches in your EMM console.
# See EMM Developer?s Guide for details. # See EMM Developer's Guide for details.
class Enterprise class Enterprise
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1234,10 +1233,10 @@ module Google
end end
end end
# A product represents an app in the Google Play Store that is available to at # A Products resource represents an app in the Google Play Store that is
# least some users in the enterprise. (Some apps are restricted to a single # available to at least some users in the enterprise. (Some apps are restricted
# enterprise, and no information about them is made available outside that # to a single enterprise, and no information about them is made available
# enterprise.) # outside that enterprise.)
# The information provided for each product (localized name, icon, link to the # The information provided for each product (localized name, icon, link to the
# full Google Play details page) is intended to allow a basic representation of # full Google Play details page) is intended to allow a basic representation of
# the product within an EMM user interface. # the product within an EMM user interface.
@ -1898,7 +1897,7 @@ module Google
end end
end end
# A user resource represents an account associated with an enterprise. The # A Users resource represents an account associated with an enterprise. The
# account may be specific to a device or to an individual user (who can then use # account may be specific to a device or to an individual user (who can then use
# the account across multiple devices). The account may provide access to Google # the account across multiple devices). The account may provide access to Google
# Play for Work only, or to other Google services, depending on the identity # Play for Work only, or to other Google services, depending on the identity
@ -1954,8 +1953,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :management_type attr_accessor :management_type
# The user's primary email address, e.g. "jsmith@example.com". Will always be # The user's primary email address, for example, "jsmith@example.com". Will
# set for Google managed users and not set for EMM managed users. # always be set for Google managed users and not set for EMM managed users.
# Corresponds to the JSON property `primaryEmail` # Corresponds to the JSON property `primaryEmail`
# @return [String] # @return [String]
attr_accessor :primary_email attr_accessor :primary_email

View File

@ -538,11 +538,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Retrieves whether a device is enabled or disabled for access by the user to # Retrieves whether a device's access to Google services is enabled or disabled.
# Google services. The device state takes effect only if enforcing EMM policies # The device state takes effect only if enforcing EMM policies on Android
# on Android devices is enabled in the Google Admin Console. Otherwise, the # devices is enabled in the Google Admin Console. Otherwise, the device state is
# device state is ignored and all devices are allowed access to Google services. # ignored and all devices are allowed access to Google services. This is only
# This is only supported for Google-managed users. # supported for Google-managed users.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
# @param [String] user_id # @param [String] user_id
@ -621,11 +621,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sets whether a device is enabled or disabled for access by the user to Google # Sets whether a device's access to Google services is enabled or disabled. The
# services. The device state takes effect only if enforcing EMM policies on # device state takes effect only if enforcing EMM policies on Android devices is
# Android devices is enabled in the Google Admin Console. Otherwise, the device # enabled in the Google Admin Console. Otherwise, the device state is ignored
# state is ignored and all devices are allowed access to Google services. This # and all devices are allowed access to Google services. This is only supported
# is only supported for Google-managed users. # for Google-managed users.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
# @param [String] user_id # @param [String] user_id
@ -705,13 +705,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Completes the signup flow, by specifying the Completion Token and Enterprise # Completes the signup flow, by specifying the Completion token and Enterprise
# Token. This request must not be called multiple times for a given Enterprise # token. This request must not be called multiple times for a given Enterprise
# Token. # Token.
# @param [String] completion_token # @param [String] completion_token
# The Completion Token intially returned by GenerateSignupUrl. # The Completion token initially returned by GenerateSignupUrl.
# @param [String] enterprise_token # @param [String] enterprise_token
# The Enterprise Token appended to the Callback URL. # The Enterprise token appended to the Callback URL.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -2122,6 +2122,42 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Unapproves the specified product (and the relevant app permissions, if any)
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [String] product_id
# The ID of the product.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def unapprove_product(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/unapprove', options)
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
command.params['productId'] = product_id unless product_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# This method has been deprecated. To programmatically approve applications, you # This method has been deprecated. To programmatically approve applications, you
# must use the iframe mechanism via the generateApprovalUrl and approve # must use the iframe mechanism via the generateApprovalUrl and approve
# methods of the Products resource. For more information, see the Play EMM API # methods of the Products resource. For more information, see the Play EMM API

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/web/api/states # @see https://developers.google.com/games/services/web/api/states
module AppstateV1 module AppstateV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160621' REVISION = '20160628'
# View and manage your data for this application # View and manage your data for this application
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp # @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3 module CalendarV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20160626' REVISION = '20160628'
# Manage your calendars # Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar' AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/container-builder/docs/ # @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1 module CloudbuildV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160628' REVISION = '20160706'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/ # @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta module ComputeBeta
VERSION = 'Beta' VERSION = 'Beta'
REVISION = '20160617' REVISION = '20160628'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -568,6 +568,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# [Output Only] URL of the region where the instance group resides (for
# autoscalers living in regional scope).
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] Server-defined URL for the resource. # [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
@ -595,6 +601,7 @@ module Google
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@target = args[:target] if args.key?(:target) @target = args[:target] if args.key?(:target)
@zone = args[:zone] if args.key?(:zone) @zone = args[:zone] if args.key?(:zone)
@ -3865,6 +3872,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :network attr_accessor :network
# The URL of the region where the instance group is located.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] The URL for this instance group. The server generates this URL. # [Output Only] The URL for this instance group. The server generates this URL.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
# @return [String] # @return [String]
@ -3899,6 +3911,7 @@ module Google
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@named_ports = args[:named_ports] if args.key?(:named_ports) @named_ports = args[:named_ports] if args.key?(:named_ports)
@network = args[:network] if args.key?(:network) @network = args[:network] if args.key?(:network)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@size = args[:size] if args.key?(:size) @size = args[:size] if args.key?(:size)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork) @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@ -4040,6 +4053,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# The action to perform in case of zone failure (set only for Regional instance
# group managers).
# Corresponds to the JSON property `failoverAction`
# @return [String]
attr_accessor :failover_action
# [Output Only] The fingerprint of the resource data. You can use this optional # [Output Only] The fingerprint of the resource data. You can use this optional
# field for optimistic locking when you update the resource. # field for optimistic locking when you update the resource.
# Corresponds to the JSON property `fingerprint` # Corresponds to the JSON property `fingerprint`
@ -4082,6 +4101,11 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::NamedPort>] # @return [Array<Google::Apis::ComputeBeta::NamedPort>]
attr_accessor :named_ports attr_accessor :named_ports
# [Output Only] URL of the region where the managed instance group resides.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] The URL for this managed instance group. The server defines this # [Output Only] The URL for this managed instance group. The server defines this
# URL. # URL.
# Corresponds to the JSON property `selfLink` # Corresponds to the JSON property `selfLink`
@ -4118,6 +4142,7 @@ module Google
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@current_actions = args[:current_actions] if args.key?(:current_actions) @current_actions = args[:current_actions] if args.key?(:current_actions)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@failover_action = args[:failover_action] if args.key?(:failover_action)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint) @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@instance_group = args[:instance_group] if args.key?(:instance_group) @instance_group = args[:instance_group] if args.key?(:instance_group)
@ -4125,6 +4150,7 @@ module Google
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@named_ports = args[:named_ports] if args.key?(:named_ports) @named_ports = args[:named_ports] if args.key?(:named_ports)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link) @self_link = args[:self_link] if args.key?(:self_link)
@target_pools = args[:target_pools] if args.key?(:target_pools) @target_pools = args[:target_pools] if args.key?(:target_pools)
@target_size = args[:target_size] if args.key?(:target_size) @target_size = args[:target_size] if args.key?(:target_size)

View File

@ -1517,6 +1517,7 @@ module Google
property :id, as: 'id' property :id, as: 'id'
property :kind, as: 'kind' property :kind, as: 'kind'
property :name, as: 'name' property :name, as: 'name'
property :region, as: 'region'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :target, as: 'target' property :target, as: 'target'
property :zone, as: 'zone' property :zone, as: 'zone'
@ -2270,6 +2271,7 @@ module Google
collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeBeta::NamedPort, decorator: Google::Apis::ComputeBeta::NamedPort::Representation collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeBeta::NamedPort, decorator: Google::Apis::ComputeBeta::NamedPort::Representation
property :network, as: 'network' property :network, as: 'network'
property :region, as: 'region'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
property :size, as: 'size' property :size, as: 'size'
property :subnetwork, as: 'subnetwork' property :subnetwork, as: 'subnetwork'
@ -2311,6 +2313,7 @@ module Google
property :current_actions, as: 'currentActions', class: Google::Apis::ComputeBeta::InstanceGroupManagerActionsSummary, decorator: Google::Apis::ComputeBeta::InstanceGroupManagerActionsSummary::Representation property :current_actions, as: 'currentActions', class: Google::Apis::ComputeBeta::InstanceGroupManagerActionsSummary, decorator: Google::Apis::ComputeBeta::InstanceGroupManagerActionsSummary::Representation
property :description, as: 'description' property :description, as: 'description'
property :failover_action, as: 'failoverAction'
property :fingerprint, :base64 => true, as: 'fingerprint' property :fingerprint, :base64 => true, as: 'fingerprint'
property :id, as: 'id' property :id, as: 'id'
property :instance_group, as: 'instanceGroup' property :instance_group, as: 'instanceGroup'
@ -2319,6 +2322,7 @@ module Google
property :name, as: 'name' property :name, as: 'name'
collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeBeta::NamedPort, decorator: Google::Apis::ComputeBeta::NamedPort::Representation collection :named_ports, as: 'namedPorts', class: Google::Apis::ComputeBeta::NamedPort, decorator: Google::Apis::ComputeBeta::NamedPort::Representation
property :region, as: 'region'
property :self_link, as: 'selfLink' property :self_link, as: 'selfLink'
collection :target_pools, as: 'targetPools' collection :target_pools, as: 'targetPools'
property :target_size, as: 'targetSize' property :target_size, as: 'targetSize'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/ # @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1 module ComputeV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160617' REVISION = '20160628'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/doubleclick-search/ # @see https://developers.google.com/doubleclick-search/
module DoubleclicksearchV2 module DoubleclicksearchV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160627' REVISION = '20160629'
# View and manage your advertising data in DoubleClick Search # View and manage your advertising data in DoubleClick Search
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch' AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services # @see https://developers.google.com/games/services
module GamesConfigurationV1configuration module GamesConfigurationV1configuration
VERSION = 'V1configuration' VERSION = 'V1configuration'
REVISION = '20160621' REVISION = '20160628'
# View and manage your Google Play Developer account # View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services # @see https://developers.google.com/games/services
module GamesManagementV1management module GamesManagementV1management
VERSION = 'V1management' VERSION = 'V1management'
REVISION = '20160621' REVISION = '20160628'
# Share your Google+ profile information and view and manage your game activity # Share your Google+ profile information and view and manage your game activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games' AUTH_GAMES = 'https://www.googleapis.com/auth/games'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/ # @see https://developers.google.com/games/services/
module GamesV1 module GamesV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160621' REVISION = '20160628'
# View and manage its own configuration data in your Google Drive # View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/gmail/api/ # @see https://developers.google.com/gmail/api/
module GmailV1 module GmailV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160621' REVISION = '20160627'
# View and manage your mail # View and manage your mail
AUTH_SCOPE = 'https://mail.google.com/' AUTH_SCOPE = 'https://mail.google.com/'
@ -47,6 +47,12 @@ module Google
# Send email on your behalf # Send email on your behalf
AUTH_GMAIL_SEND = 'https://www.googleapis.com/auth/gmail.send' AUTH_GMAIL_SEND = 'https://www.googleapis.com/auth/gmail.send'
# Manage your basic mail settings
AUTH_GMAIL_SETTINGS_BASIC = 'https://www.googleapis.com/auth/gmail.settings.basic'
# Manage your sensitive mail settings, including who can manage your mail
AUTH_GMAIL_SETTINGS_SHARING = 'https://www.googleapis.com/auth/gmail.settings.sharing'
end end
end end
end end

View File

@ -22,6 +22,39 @@ module Google
module Apis module Apis
module GmailV1 module GmailV1
# Auto-forwarding settings for an account.
class AutoForwarding
include Google::Apis::Core::Hashable
# The state that a message should be left in after it has been forwarded.
# Corresponds to the JSON property `disposition`
# @return [String]
attr_accessor :disposition
# Email address to which all incoming messages are forwarded. This email address
# must be a verified member of the forwarding addresses.
# Corresponds to the JSON property `emailAddress`
# @return [String]
attr_accessor :email_address
# Whether all incoming mail is automatically forwarded to another address.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disposition = args[:disposition] if args.key?(:disposition)
@email_address = args[:email_address] if args.key?(:email_address)
@enabled = args[:enabled] if args.key?(:enabled)
end
end
# #
class BatchDeleteMessagesRequest class BatchDeleteMessagesRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -66,6 +99,173 @@ module Google
end end
end end
# Resource definition for Gmail filters. Filters apply to specific messages
# instead of an entire email thread.
class Filter
include Google::Apis::Core::Hashable
# A set of actions to perform on a message.
# Corresponds to the JSON property `action`
# @return [Google::Apis::GmailV1::FilterAction]
attr_accessor :action
# Message matching criteria.
# Corresponds to the JSON property `criteria`
# @return [Google::Apis::GmailV1::FilterCriteria]
attr_accessor :criteria
# The server assigned ID of the filter.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@criteria = args[:criteria] if args.key?(:criteria)
@id = args[:id] if args.key?(:id)
end
end
# A set of actions to perform on a message.
class FilterAction
include Google::Apis::Core::Hashable
# List of labels to add to the message.
# Corresponds to the JSON property `addLabelIds`
# @return [Array<String>]
attr_accessor :add_label_ids
# Email address that the message should be forwarded to.
# Corresponds to the JSON property `forward`
# @return [String]
attr_accessor :forward
# List of labels to remove from the message.
# Corresponds to the JSON property `removeLabelIds`
# @return [Array<String>]
attr_accessor :remove_label_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
@forward = args[:forward] if args.key?(:forward)
@remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
end
end
# Message matching criteria.
class FilterCriteria
include Google::Apis::Core::Hashable
# Whether the response should exclude chats.
# Corresponds to the JSON property `excludeChats`
# @return [Boolean]
attr_accessor :exclude_chats
alias_method :exclude_chats?, :exclude_chats
# The sender's display name or email address.
# Corresponds to the JSON property `from`
# @return [String]
attr_accessor :from
# Whether the message has any attachment.
# Corresponds to the JSON property `hasAttachment`
# @return [Boolean]
attr_accessor :has_attachment
alias_method :has_attachment?, :has_attachment
# Only return messages not matching the specified query. Supports the same query
# format as the Gmail search box. For example, "from:someuser@example.com
# rfc822msgid: is:unread".
# Corresponds to the JSON property `negatedQuery`
# @return [String]
attr_accessor :negated_query
# Only return messages matching the specified query. Supports the same query
# format as the Gmail search box. For example, "from:someuser@example.com
# rfc822msgid: is:unread".
# Corresponds to the JSON property `query`
# @return [String]
attr_accessor :query
# The size of the entire RFC822 message in bytes, including all headers and
# attachments.
# Corresponds to the JSON property `size`
# @return [Fixnum]
attr_accessor :size
# How the message size in bytes should be in relation to the size field.
# Corresponds to the JSON property `sizeComparison`
# @return [String]
attr_accessor :size_comparison
# Case-insensitive phrase found in the message's subject. Trailing and leading
# whitespace are be trimmed and adjacent spaces are collapsed.
# Corresponds to the JSON property `subject`
# @return [String]
attr_accessor :subject
# The recipient's display name or email address. Includes recipients in the "to",
# "cc", and "bcc" header fields. You can use simply the local part of the email
# address. For example, "example" and "example@" both match "example@gmail.com".
# This field is case-insensitive.
# Corresponds to the JSON property `to`
# @return [String]
attr_accessor :to
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exclude_chats = args[:exclude_chats] if args.key?(:exclude_chats)
@from = args[:from] if args.key?(:from)
@has_attachment = args[:has_attachment] if args.key?(:has_attachment)
@negated_query = args[:negated_query] if args.key?(:negated_query)
@query = args[:query] if args.key?(:query)
@size = args[:size] if args.key?(:size)
@size_comparison = args[:size_comparison] if args.key?(:size_comparison)
@subject = args[:subject] if args.key?(:subject)
@to = args[:to] if args.key?(:to)
end
end
# Settings for a forwarding address.
class ForwardingAddress
include Google::Apis::Core::Hashable
# An email address to which messages can be forwarded.
# Corresponds to the JSON property `forwardingEmail`
# @return [String]
attr_accessor :forwarding_email
# Indicates whether this address has been verified and is usable for forwarding.
# Read-only.
# Corresponds to the JSON property `verificationStatus`
# @return [String]
attr_accessor :verification_status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@forwarding_email = args[:forwarding_email] if args.key?(:forwarding_email)
@verification_status = args[:verification_status] if args.key?(:verification_status)
end
end
# A record of a change to the user's mailbox. Each history change may affect # A record of a change to the user's mailbox. Each history change may affect
# multiple messages in multiple ways. # multiple messages in multiple ways.
class History class History
@ -206,6 +406,50 @@ module Google
end end
end end
# IMAP settings for an account.
class ImapSettings
include Google::Apis::Core::Hashable
# If this value is true, Gmail will immediately expunge a message when it is
# marked as deleted in IMAP. Otherwise, Gmail will wait for an update from the
# client before expunging messages marked as deleted.
# Corresponds to the JSON property `autoExpunge`
# @return [Boolean]
attr_accessor :auto_expunge
alias_method :auto_expunge?, :auto_expunge
# Whether IMAP is enabled for the account.
# Corresponds to the JSON property `enabled`
# @return [Boolean]
attr_accessor :enabled
alias_method :enabled?, :enabled
# The action that will be executed on a message when it is marked as deleted and
# expunged from the last visible IMAP folder.
# Corresponds to the JSON property `expungeBehavior`
# @return [String]
attr_accessor :expunge_behavior
# An optional limit on the number of messages that an IMAP folder may contain.
# Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted
# to mean that there is no limit.
# Corresponds to the JSON property `maxFolderSize`
# @return [Fixnum]
attr_accessor :max_folder_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_expunge = args[:auto_expunge] if args.key?(:auto_expunge)
@enabled = args[:enabled] if args.key?(:enabled)
@expunge_behavior = args[:expunge_behavior] if args.key?(:expunge_behavior)
@max_folder_size = args[:max_folder_size] if args.key?(:max_folder_size)
end
end
# Labels are used to categorize messages and threads within the user's mailbox. # Labels are used to categorize messages and threads within the user's mailbox.
class Label class Label
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -311,6 +555,44 @@ module Google
end end
end end
# Response for the ListFilters method.
class ListFiltersResponse
include Google::Apis::Core::Hashable
# List of a user's filters.
# Corresponds to the JSON property `filter`
# @return [Array<Google::Apis::GmailV1::Filter>]
attr_accessor :filter
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@filter = args[:filter] if args.key?(:filter)
end
end
# Response for the ListForwardingAddresses method.
class ListForwardingAddressesResponse
include Google::Apis::Core::Hashable
# List of addresses that may be used for forwarding.
# Corresponds to the JSON property `forwardingAddresses`
# @return [Array<Google::Apis::GmailV1::ForwardingAddress>]
attr_accessor :forwarding_addresses
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@forwarding_addresses = args[:forwarding_addresses] if args.key?(:forwarding_addresses)
end
end
# #
class ListHistoryResponse class ListHistoryResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -393,6 +675,25 @@ module Google
end end
end end
# Response for the ListSendAs method.
class ListSendAsResponse
include Google::Apis::Core::Hashable
# List of send-as aliases.
# Corresponds to the JSON property `sendAs`
# @return [Array<Google::Apis::GmailV1::SendAs>]
attr_accessor :send_as
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@send_as = args[:send_as] if args.key?(:send_as)
end
end
# #
class ListThreadsResponse class ListThreadsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -670,6 +971,35 @@ module Google
end end
end end
# POP settings for an account.
class PopSettings
include Google::Apis::Core::Hashable
# The range of messages which are accessible via POP. Setting this to
# FROM_NOW_ON causes any existing messages to become inaccessible and causes all
# future messages to become accessible. Setting this to ALL_MAIL causes all
# messages to become accessible, even if they have been fetched previously.
# Corresponds to the JSON property `accessWindow`
# @return [String]
attr_accessor :access_window
# The action that will be executed on a message after it has been fetched via
# POP.
# Corresponds to the JSON property `disposition`
# @return [String]
attr_accessor :disposition
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@access_window = args[:access_window] if args.key?(:access_window)
@disposition = args[:disposition] if args.key?(:disposition)
end
end
# Profile for a Gmail user. # Profile for a Gmail user.
class Profile class Profile
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -707,6 +1037,144 @@ module Google
end end
end end
# Settings associated with a send-as alias, which can be either the primary
# login address associated with the account or a custom "from" address. Send-as
# aliases correspond to the "Send Mail As" feature in the web interface. See
# for more details.
class SendAs
include Google::Apis::Core::Hashable
# A name that appears in the "From:" header for mail sent using this alias. For
# custom "from" addresses, when this is empty, Gmail will populate the "From:"
# header with the name that is used for the primary address associated with the
# account.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Whether this address is selected as the default "From:" address in situations
# such as composing a new message or sending a vacation auto-reply. Every Gmail
# account has exactly one default send-as address, so the only legal value that
# clients may write to this field is `true`. Changing this from `false` to `true`
# for an address will result in this field becoming `false` for the other
# previous default address.
# Corresponds to the JSON property `isDefault`
# @return [Boolean]
attr_accessor :is_default
alias_method :is_default?, :is_default
# Whether this address is the primary address used to login to the account.
# Every Gmail account has exactly one primary address, and it cannot be deleted
# from the collection of send-as aliases. This field is read-only.
# Corresponds to the JSON property `isPrimary`
# @return [Boolean]
attr_accessor :is_primary
alias_method :is_primary?, :is_primary
# An optional email address that is included in a "Reply-To:" header for mail
# sent using this alias. If this is empty, Gmail will not generate a "Reply-To:"
# header.
# Corresponds to the JSON property `replyToAddress`
# @return [String]
attr_accessor :reply_to_address
# The email address that appears in the "From:" header for mail sent using this
# alias. This is read-only for all operations except create.
# Corresponds to the JSON property `sendAsEmail`
# @return [String]
attr_accessor :send_as_email
# An optional HTML signature that is included in messages composed with this
# alias in the Gmail web UI.
# Corresponds to the JSON property `signature`
# @return [String]
attr_accessor :signature
# Configuration for communication with an SMTP service.
# Corresponds to the JSON property `smtpMsa`
# @return [Google::Apis::GmailV1::SmtpMsa]
attr_accessor :smtp_msa
# Whether Gmail should treat this address as an alias for the user's primary
# email address. See for more details. This setting only applies to custom "
# from" aliases.
# Corresponds to the JSON property `treatAsAlias`
# @return [Boolean]
attr_accessor :treat_as_alias
alias_method :treat_as_alias?, :treat_as_alias
# Indicates whether this address has been verified for use as a send-as alias.
# Read-only. This setting only applies to custom "from" aliases.
# Corresponds to the JSON property `verificationStatus`
# @return [String]
attr_accessor :verification_status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@is_default = args[:is_default] if args.key?(:is_default)
@is_primary = args[:is_primary] if args.key?(:is_primary)
@reply_to_address = args[:reply_to_address] if args.key?(:reply_to_address)
@send_as_email = args[:send_as_email] if args.key?(:send_as_email)
@signature = args[:signature] if args.key?(:signature)
@smtp_msa = args[:smtp_msa] if args.key?(:smtp_msa)
@treat_as_alias = args[:treat_as_alias] if args.key?(:treat_as_alias)
@verification_status = args[:verification_status] if args.key?(:verification_status)
end
end
# Configuration for communication with an SMTP service.
class SmtpMsa
include Google::Apis::Core::Hashable
# The hostname of the SMTP service. Required.
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
# The password that will be used for authentication with the SMTP service. This
# is a write-only field that can be specified in requests to create or update
# SendAs settings; it is never populated in responses.
# Corresponds to the JSON property `password`
# @return [String]
attr_accessor :password
# The port of the SMTP service. Required.
# Corresponds to the JSON property `port`
# @return [Fixnum]
attr_accessor :port
# The protocol that will be used to secure communication with the SMTP service.
# Required.
# Corresponds to the JSON property `securityMode`
# @return [String]
attr_accessor :security_mode
# The username that will be used for authentication with the SMTP service. This
# is a write-only field that can be specified in requests to create or update
# SendAs settings; it is never populated in responses.
# Corresponds to the JSON property `username`
# @return [String]
attr_accessor :username
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@host = args[:host] if args.key?(:host)
@password = args[:password] if args.key?(:password)
@port = args[:port] if args.key?(:port)
@security_mode = args[:security_mode] if args.key?(:security_mode)
@username = args[:username] if args.key?(:username)
end
end
# A collection of messages representing a conversation. # A collection of messages representing a conversation.
class Thread class Thread
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -744,6 +1212,81 @@ module Google
end end
end end
# Vacation auto-reply settings for an account. These settings correspond to the "
# Vacation responder" feature in the web interface. See for more details.
class VacationSettings
include Google::Apis::Core::Hashable
# Flag that controls whether Gmail automatically replies to messages.
# Corresponds to the JSON property `enableAutoReply`
# @return [Boolean]
attr_accessor :enable_auto_reply
alias_method :enable_auto_reply?, :enable_auto_reply
# An optional end time for sending auto-replies (epoch ms). When this is
# specified, Gmail will automatically reply only to messages that it receives
# before the end time. If both `startTime` and `endTime` are specified, `
# startTime` must precede `endTime`.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Response body in HTML format. Gmail will sanitize the HTML before storing it.
# Corresponds to the JSON property `responseBodyHtml`
# @return [String]
attr_accessor :response_body_html
# Response body in plain text format.
# Corresponds to the JSON property `responseBodyPlainText`
# @return [String]
attr_accessor :response_body_plain_text
# Optional text to prepend to the subject line in vacation responses. In order
# to enable auto-replies, either the response subject or the response body must
# be nonempty.
# Corresponds to the JSON property `responseSubject`
# @return [String]
attr_accessor :response_subject
# Flag that determines whether responses are sent to recipients who are not in
# the user's list of contacts.
# Corresponds to the JSON property `restrictToContacts`
# @return [Boolean]
attr_accessor :restrict_to_contacts
alias_method :restrict_to_contacts?, :restrict_to_contacts
# Flag that determines whether responses are sent to recipients who are outside
# of the user's domain. This feature is only available for Google Apps users.
# Corresponds to the JSON property `restrictToDomain`
# @return [Boolean]
attr_accessor :restrict_to_domain
alias_method :restrict_to_domain?, :restrict_to_domain
# An optional start time for sending auto-replies (epoch ms). When this is
# specified, Gmail will automatically reply only to messages that it receives
# after the start time. If both `startTime` and `endTime` are specified, `
# startTime` must precede `endTime`.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@enable_auto_reply = args[:enable_auto_reply] if args.key?(:enable_auto_reply)
@end_time = args[:end_time] if args.key?(:end_time)
@response_body_html = args[:response_body_html] if args.key?(:response_body_html)
@response_body_plain_text = args[:response_body_plain_text] if args.key?(:response_body_plain_text)
@response_subject = args[:response_subject] if args.key?(:response_subject)
@restrict_to_contacts = args[:restrict_to_contacts] if args.key?(:restrict_to_contacts)
@restrict_to_domain = args[:restrict_to_domain] if args.key?(:restrict_to_domain)
@start_time = args[:start_time] if args.key?(:start_time)
end
end
# Set up or update a new push notification watch on this user's mailbox. # Set up or update a new push notification watch on this user's mailbox.
class WatchRequest class WatchRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -22,6 +22,12 @@ module Google
module Apis module Apis
module GmailV1 module GmailV1
class AutoForwarding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchDeleteMessagesRequest class BatchDeleteMessagesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -34,6 +40,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Filter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FilterAction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FilterCriteria
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ForwardingAddress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class History class History
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -64,6 +94,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ImapSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Label class Label
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -76,6 +112,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListFiltersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListForwardingAddressesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListHistoryResponse class ListHistoryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -94,6 +142,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListSendAsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListThreadsResponse class ListThreadsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -136,18 +190,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class PopSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Profile class Profile
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SendAs
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SmtpMsa
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Thread class Thread
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class VacationSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class WatchRequest class WatchRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -160,6 +238,15 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class AutoForwarding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disposition, as: 'disposition'
property :email_address, as: 'emailAddress'
property :enabled, as: 'enabled'
end
end
class BatchDeleteMessagesRequest class BatchDeleteMessagesRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -176,6 +263,49 @@ module Google
end end
end end
class Filter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action', class: Google::Apis::GmailV1::FilterAction, decorator: Google::Apis::GmailV1::FilterAction::Representation
property :criteria, as: 'criteria', class: Google::Apis::GmailV1::FilterCriteria, decorator: Google::Apis::GmailV1::FilterCriteria::Representation
property :id, as: 'id'
end
end
class FilterAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :add_label_ids, as: 'addLabelIds'
property :forward, as: 'forward'
collection :remove_label_ids, as: 'removeLabelIds'
end
end
class FilterCriteria
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exclude_chats, as: 'excludeChats'
property :from, as: 'from'
property :has_attachment, as: 'hasAttachment'
property :negated_query, as: 'negatedQuery'
property :query, as: 'query'
property :size, as: 'size'
property :size_comparison, as: 'sizeComparison'
property :subject, as: 'subject'
property :to, as: 'to'
end
end
class ForwardingAddress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarding_email, as: 'forwardingEmail'
property :verification_status, as: 'verificationStatus'
end
end
class History class History
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -227,6 +357,16 @@ module Google
end end
end end
class ImapSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_expunge, as: 'autoExpunge'
property :enabled, as: 'enabled'
property :expunge_behavior, as: 'expungeBehavior'
property :max_folder_size, as: 'maxFolderSize'
end
end
class Label class Label
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -252,6 +392,22 @@ module Google
end end
end end
class ListFiltersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :filter, as: 'filter', class: Google::Apis::GmailV1::Filter, decorator: Google::Apis::GmailV1::Filter::Representation
end
end
class ListForwardingAddressesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :forwarding_addresses, as: 'forwardingAddresses', class: Google::Apis::GmailV1::ForwardingAddress, decorator: Google::Apis::GmailV1::ForwardingAddress::Representation
end
end
class ListHistoryResponse class ListHistoryResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -280,6 +436,14 @@ module Google
end end
end end
class ListSendAsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :send_as, as: 'sendAs', class: Google::Apis::GmailV1::SendAs, decorator: Google::Apis::GmailV1::SendAs::Representation
end
end
class ListThreadsResponse class ListThreadsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -354,6 +518,14 @@ module Google
end end
end end
class PopSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :access_window, as: 'accessWindow'
property :disposition, as: 'disposition'
end
end
class Profile class Profile
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -364,6 +536,33 @@ module Google
end end
end end
class SendAs
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :is_default, as: 'isDefault'
property :is_primary, as: 'isPrimary'
property :reply_to_address, as: 'replyToAddress'
property :send_as_email, as: 'sendAsEmail'
property :signature, as: 'signature'
property :smtp_msa, as: 'smtpMsa', class: Google::Apis::GmailV1::SmtpMsa, decorator: Google::Apis::GmailV1::SmtpMsa::Representation
property :treat_as_alias, as: 'treatAsAlias'
property :verification_status, as: 'verificationStatus'
end
end
class SmtpMsa
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :password, as: 'password'
property :port, as: 'port'
property :security_mode, as: 'securityMode'
property :username, as: 'username'
end
end
class Thread class Thread
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -375,6 +574,20 @@ module Google
end end
end end
class VacationSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enable_auto_reply, as: 'enableAutoReply'
property :end_time, as: 'endTime'
property :response_body_html, as: 'responseBodyHtml'
property :response_body_plain_text, as: 'responseBodyPlainText'
property :response_subject, as: 'responseSubject'
property :restrict_to_contacts, as: 'restrictToContacts'
property :restrict_to_domain, as: 'restrictToDomain'
property :start_time, as: 'startTime'
end
end
class WatchRequest class WatchRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1246,6 +1246,898 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the auto-forwarding setting for the specified account.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::AutoForwarding] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::AutoForwarding]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_auto_forwarding(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/settings/autoForwarding', options)
command.response_representation = Google::Apis::GmailV1::AutoForwarding::Representation
command.response_class = Google::Apis::GmailV1::AutoForwarding
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets IMAP settings.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::ImapSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::ImapSettings]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_imap(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/settings/imap', options)
command.response_representation = Google::Apis::GmailV1::ImapSettings::Representation
command.response_class = Google::Apis::GmailV1::ImapSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets POP settings.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::PopSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::PopSettings]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_pop(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/settings/pop', options)
command.response_representation = Google::Apis::GmailV1::PopSettings::Representation
command.response_class = Google::Apis::GmailV1::PopSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets vacation responder settings.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::VacationSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::VacationSettings]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_vacation(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/settings/vacation', options)
command.response_representation = Google::Apis::GmailV1::VacationSettings::Representation
command.response_class = Google::Apis::GmailV1::VacationSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates the auto-forwarding setting for the specified account. A verified
# forwarding address must be specified when auto-forwarding is enabled.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [Google::Apis::GmailV1::AutoForwarding] auto_forwarding_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::AutoForwarding] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::AutoForwarding]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_auto_forwarding(user_id, auto_forwarding_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{userId}/settings/autoForwarding', options)
command.request_representation = Google::Apis::GmailV1::AutoForwarding::Representation
command.request_object = auto_forwarding_object
command.response_representation = Google::Apis::GmailV1::AutoForwarding::Representation
command.response_class = Google::Apis::GmailV1::AutoForwarding
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates IMAP settings.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [Google::Apis::GmailV1::ImapSettings] imap_settings_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::ImapSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::ImapSettings]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_imap(user_id, imap_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{userId}/settings/imap', options)
command.request_representation = Google::Apis::GmailV1::ImapSettings::Representation
command.request_object = imap_settings_object
command.response_representation = Google::Apis::GmailV1::ImapSettings::Representation
command.response_class = Google::Apis::GmailV1::ImapSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates POP settings.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [Google::Apis::GmailV1::PopSettings] pop_settings_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::PopSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::PopSettings]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_pop(user_id, pop_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{userId}/settings/pop', options)
command.request_representation = Google::Apis::GmailV1::PopSettings::Representation
command.request_object = pop_settings_object
command.response_representation = Google::Apis::GmailV1::PopSettings::Representation
command.response_class = Google::Apis::GmailV1::PopSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates vacation responder settings.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [Google::Apis::GmailV1::VacationSettings] vacation_settings_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::VacationSettings] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::VacationSettings]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_vacation(user_id, vacation_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{userId}/settings/vacation', options)
command.request_representation = Google::Apis::GmailV1::VacationSettings::Representation
command.request_object = vacation_settings_object
command.response_representation = Google::Apis::GmailV1::VacationSettings::Representation
command.response_class = Google::Apis::GmailV1::VacationSettings
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a filter.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [Google::Apis::GmailV1::Filter] filter_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::Filter] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::Filter]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_user_setting_filter(user_id, filter_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{userId}/settings/filters', options)
command.request_representation = Google::Apis::GmailV1::Filter::Representation
command.request_object = filter_object
command.response_representation = Google::Apis::GmailV1::Filter::Representation
command.response_class = Google::Apis::GmailV1::Filter
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes a filter.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] id
# The ID of the filter to be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_setting_filter(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{userId}/settings/filters/{id}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets a filter.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] id
# The ID of the filter to be fetched.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::Filter] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::Filter]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_filter(user_id, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/settings/filters/{id}', options)
command.response_representation = Google::Apis::GmailV1::Filter::Representation
command.response_class = Google::Apis::GmailV1::Filter
command.params['userId'] = user_id unless user_id.nil?
command.params['id'] = id unless id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists the message filters of a Gmail user.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::ListFiltersResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::ListFiltersResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_setting_filters(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/settings/filters', options)
command.response_representation = Google::Apis::GmailV1::ListFiltersResponse::Representation
command.response_class = Google::Apis::GmailV1::ListFiltersResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a forwarding address. If ownership verification is required, a message
# will be sent to the recipient and the resource's verification status will be
# set to `pending`; otherwise, the resource will be created with verification
# status set to `accepted`.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [Google::Apis::GmailV1::ForwardingAddress] forwarding_address_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::ForwardingAddress] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::ForwardingAddress]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_user_setting_forwarding_address(user_id, forwarding_address_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{userId}/settings/forwardingAddresses', options)
command.request_representation = Google::Apis::GmailV1::ForwardingAddress::Representation
command.request_object = forwarding_address_object
command.response_representation = Google::Apis::GmailV1::ForwardingAddress::Representation
command.response_class = Google::Apis::GmailV1::ForwardingAddress
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified forwarding address and revokes any verification that may
# have been required.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] forwarding_email
# The forwarding address to be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_setting_forwarding_address(user_id, forwarding_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{userId}/settings/forwardingAddresses/{forwardingEmail}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['forwardingEmail'] = forwarding_email unless forwarding_email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets the specified forwarding address.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] forwarding_email
# The forwarding address to be retrieved.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::ForwardingAddress] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::ForwardingAddress]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_forwarding_address(user_id, forwarding_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/settings/forwardingAddresses/{forwardingEmail}', options)
command.response_representation = Google::Apis::GmailV1::ForwardingAddress::Representation
command.response_class = Google::Apis::GmailV1::ForwardingAddress
command.params['userId'] = user_id unless user_id.nil?
command.params['forwardingEmail'] = forwarding_email unless forwarding_email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists the forwarding addresses for the specified account.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::ListForwardingAddressesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::ListForwardingAddressesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_setting_forwarding_addresses(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/settings/forwardingAddresses', options)
command.response_representation = Google::Apis::GmailV1::ListForwardingAddressesResponse::Representation
command.response_class = Google::Apis::GmailV1::ListForwardingAddressesResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will
# attempt to connect to the SMTP service to validate the configuration before
# creating the alias. If ownership verification is required for the alias, a
# message will be sent to the email address and the resource's verification
# status will be set to `pending`; otherwise, the resource will be created with
# verification status set to `accepted`. If a signature is provided, Gmail will
# sanitize the HTML before saving it with the alias.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [Google::Apis::GmailV1::SendAs] send_as_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::SendAs] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::SendAs]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_user_setting_send_as(user_id, send_as_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{userId}/settings/sendAs', options)
command.request_representation = Google::Apis::GmailV1::SendAs::Representation
command.request_object = send_as_object
command.response_representation = Google::Apis::GmailV1::SendAs::Representation
command.response_class = Google::Apis::GmailV1::SendAs
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified send-as alias. Revokes any verification that may have
# been required for using it.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] send_as_email
# The send-as alias to be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{userId}/settings/sendAs/{sendAsEmail}', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Gets the specified send-as alias. Fails with an HTTP 404 error if the
# specified address is not a member of the collection.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] send_as_email
# The send-as alias to be retrieved.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::SendAs] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::SendAs]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/settings/sendAs/{sendAsEmail}', options)
command.response_representation = Google::Apis::GmailV1::SendAs::Representation
command.response_class = Google::Apis::GmailV1::SendAs
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists the send-as aliases for the specified account. The result includes the
# primary send-as address associated with the account as well as any custom "
# from" aliases.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::ListSendAsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::ListSendAsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_user_setting_send_as(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{userId}/settings/sendAs', options)
command.response_representation = Google::Apis::GmailV1::ListSendAsResponse::Representation
command.response_class = Google::Apis::GmailV1::ListSendAsResponse
command.params['userId'] = user_id unless user_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates a send-as alias. If a signature is provided, Gmail will sanitize the
# HTML before saving it with the alias. This method supports patch semantics.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] send_as_email
# The send-as alias to be updated.
# @param [Google::Apis::GmailV1::SendAs] send_as_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::SendAs] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::SendAs]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_user_setting_send_as(user_id, send_as_email, send_as_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{userId}/settings/sendAs/{sendAsEmail}', options)
command.request_representation = Google::Apis::GmailV1::SendAs::Representation
command.request_object = send_as_object
command.response_representation = Google::Apis::GmailV1::SendAs::Representation
command.response_class = Google::Apis::GmailV1::SendAs
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates a send-as alias. If a signature is provided, Gmail will sanitize the
# HTML before saving it with the alias.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] send_as_email
# The send-as alias to be updated.
# @param [Google::Apis::GmailV1::SendAs] send_as_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GmailV1::SendAs] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GmailV1::SendAs]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_user_setting_send_as(user_id, send_as_email, send_as_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{userId}/settings/sendAs/{sendAsEmail}', options)
command.request_representation = Google::Apis::GmailV1::SendAs::Representation
command.request_object = send_as_object
command.response_representation = Google::Apis::GmailV1::SendAs::Representation
command.response_class = Google::Apis::GmailV1::SendAs
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Sends a verification email to the specified send-as alias address. The
# verification status must be `pending`.
# @param [String] user_id
# User's email address. The special value "me" can be used to indicate the
# authenticated user.
# @param [String] send_as_email
# The send-as alias to be verified.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def verify_user_setting_send_as(user_id, send_as_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{userId}/settings/sendAs/{sendAsEmail}/verify', options)
command.params['userId'] = user_id unless user_id.nil?
command.params['sendAsEmail'] = send_as_email unless send_as_email.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Immediately and permanently deletes the specified thread. This operation # Immediately and permanently deletes the specified thread. This operation
# cannot be undone. Prefer threads.trash instead. # cannot be undone. Prefer threads.trash instead.
# @param [String] user_id # @param [String] user_id

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/sql/docs/reference/latest # @see https://cloud.google.com/sql/docs/reference/latest
module SqladminV1beta4 module SqladminV1beta4
VERSION = 'V1beta4' VERSION = 'V1beta4'
REVISION = '20160509' REVISION = '20160630'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -555,7 +555,9 @@ module Google
attr_accessor :available attr_accessor :available
alias_method :available?, :available alias_method :available?, :available
# The name of the failover replica. # The name of the failover replica. If specified at instance creation, a
# failover replica is created for the instance. The name doesn't include the
# project ID. This property is applicable only to Second Generation instances.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -1541,13 +1543,17 @@ module Google
class Settings class Settings
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The activation policy for this instance. This specifies when the instance # The activation policy specifies when the instance is activated; it is
# should be activated and is applicable only when the instance state is RUNNABLE. # applicable only when the instance state is RUNNABLE. The activation policy
# This can be one of the following. # cannot be updated together with other settings for Second Generation instances.
# ALWAYS: The instance should always be active. # Valid values:
# NEVER: The instance should never be activated. # ALWAYS: The instance is on; it is not deactivated by inactivity.
# ON_DEMAND: The instance is activated upon receiving requests; only applicable # NEVER: The instance is off; it is not activated, even if a connection request
# to First Generation instances. # arrives.
# ON_DEMAND: The instance responds to incoming requests, and turns itself off
# when not in use. Instances with PER_USE pricing turn off after 15 minutes of
# inactivity. Instances with PER_PACKAGE pricing turn off after 12 hours of
# inactivity.
# Corresponds to the JSON property `activationPolicy` # Corresponds to the JSON property `activationPolicy`
# @return [String] # @return [String]
attr_accessor :activation_policy attr_accessor :activation_policy

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/storage/docs/json_api/ # @see https://developers.google.com/storage/docs/json_api/
module StorageV1 module StorageV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160609' REVISION = '20160622'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -474,7 +474,7 @@ module Google
# @return [Google::Apis::StorageV1::BucketAccessControl::ProjectTeam] # @return [Google::Apis::StorageV1::BucketAccessControl::ProjectTeam]
attr_accessor :project_team attr_accessor :project_team
# The access permission for the entity. Can be READER, WRITER, or OWNER. # The access permission for the entity.
# Corresponds to the JSON property `role` # Corresponds to the JSON property `role`
# @return [String] # @return [String]
attr_accessor :role attr_accessor :role
@ -512,7 +512,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :project_number attr_accessor :project_number
# The team. Can be owners, editors, or viewers. # The team.
# Corresponds to the JSON property `team` # Corresponds to the JSON property `team`
# @return [String] # @return [String]
attr_accessor :team attr_accessor :team
@ -1051,7 +1051,7 @@ module Google
# @return [Google::Apis::StorageV1::ObjectAccessControl::ProjectTeam] # @return [Google::Apis::StorageV1::ObjectAccessControl::ProjectTeam]
attr_accessor :project_team attr_accessor :project_team
# The access permission for the entity. Can be READER or OWNER. # The access permission for the entity.
# Corresponds to the JSON property `role` # Corresponds to the JSON property `role`
# @return [String] # @return [String]
attr_accessor :role attr_accessor :role
@ -1091,7 +1091,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :project_number attr_accessor :project_number
# The team. Can be owners, editors, or viewers. # The team.
# Corresponds to the JSON property `team` # Corresponds to the JSON property `team`
# @return [String] # @return [String]
attr_accessor :team attr_accessor :team

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/ # @see https://cloud.google.com/vision/
module VisionV1 module VisionV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160606' REVISION = '20160703'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -15,7 +15,7 @@
module Google module Google
module Apis module Apis
# Client library version # Client library version
VERSION = '0.9.10' VERSION = '0.9.11'
# Current operating system # Current operating system
# @private # @private

0
sync.rb Normal file
View File