Autogenerated update (2017-12-20)
Delete: - consumersurveys_v2 Update: - cloudtasks_v2beta2 - compute_alpha - compute_beta
This commit is contained in:
parent
5ce2863ef1
commit
46b655e6d5
|
@ -15741,6 +15741,8 @@
|
||||||
"/compute:alpha/AttachedDisk/deviceName": device_name
|
"/compute:alpha/AttachedDisk/deviceName": device_name
|
||||||
"/compute:alpha/AttachedDisk/diskEncryptionKey": disk_encryption_key
|
"/compute:alpha/AttachedDisk/diskEncryptionKey": disk_encryption_key
|
||||||
"/compute:alpha/AttachedDisk/diskSizeGb": disk_size_gb
|
"/compute:alpha/AttachedDisk/diskSizeGb": disk_size_gb
|
||||||
|
"/compute:alpha/AttachedDisk/guestOsFeatures": guest_os_features
|
||||||
|
"/compute:alpha/AttachedDisk/guestOsFeatures/guest_os_feature": guest_os_feature
|
||||||
"/compute:alpha/AttachedDisk/index": index
|
"/compute:alpha/AttachedDisk/index": index
|
||||||
"/compute:alpha/AttachedDisk/initializeParams": initialize_params
|
"/compute:alpha/AttachedDisk/initializeParams": initialize_params
|
||||||
"/compute:alpha/AttachedDisk/interface": interface
|
"/compute:alpha/AttachedDisk/interface": interface
|
||||||
|
@ -15748,6 +15750,7 @@
|
||||||
"/compute:alpha/AttachedDisk/licenses": licenses
|
"/compute:alpha/AttachedDisk/licenses": licenses
|
||||||
"/compute:alpha/AttachedDisk/licenses/license": license
|
"/compute:alpha/AttachedDisk/licenses/license": license
|
||||||
"/compute:alpha/AttachedDisk/mode": mode
|
"/compute:alpha/AttachedDisk/mode": mode
|
||||||
|
"/compute:alpha/AttachedDisk/savedState": saved_state
|
||||||
"/compute:alpha/AttachedDisk/source": source
|
"/compute:alpha/AttachedDisk/source": source
|
||||||
"/compute:alpha/AttachedDisk/type": type
|
"/compute:alpha/AttachedDisk/type": type
|
||||||
"/compute:alpha/AttachedDiskInitializeParams": attached_disk_initialize_params
|
"/compute:alpha/AttachedDiskInitializeParams": attached_disk_initialize_params
|
||||||
|
@ -15776,6 +15779,7 @@
|
||||||
"/compute:alpha/Autoscaler/id": id
|
"/compute:alpha/Autoscaler/id": id
|
||||||
"/compute:alpha/Autoscaler/kind": kind
|
"/compute:alpha/Autoscaler/kind": kind
|
||||||
"/compute:alpha/Autoscaler/name": name
|
"/compute:alpha/Autoscaler/name": name
|
||||||
|
"/compute:alpha/Autoscaler/recommendedSize": recommended_size
|
||||||
"/compute:alpha/Autoscaler/region": region
|
"/compute:alpha/Autoscaler/region": region
|
||||||
"/compute:alpha/Autoscaler/selfLink": self_link
|
"/compute:alpha/Autoscaler/selfLink": self_link
|
||||||
"/compute:alpha/Autoscaler/status": status
|
"/compute:alpha/Autoscaler/status": status
|
||||||
|
@ -17019,6 +17023,10 @@
|
||||||
"/compute:alpha/InstancesRemoveMaintenancePoliciesRequest": instances_remove_maintenance_policies_request
|
"/compute:alpha/InstancesRemoveMaintenancePoliciesRequest": instances_remove_maintenance_policies_request
|
||||||
"/compute:alpha/InstancesRemoveMaintenancePoliciesRequest/maintenancePolicies": maintenance_policies
|
"/compute:alpha/InstancesRemoveMaintenancePoliciesRequest/maintenancePolicies": maintenance_policies
|
||||||
"/compute:alpha/InstancesRemoveMaintenancePoliciesRequest/maintenancePolicies/maintenance_policy": maintenance_policy
|
"/compute:alpha/InstancesRemoveMaintenancePoliciesRequest/maintenancePolicies/maintenance_policy": maintenance_policy
|
||||||
|
"/compute:alpha/InstancesResumeRequest": instances_resume_request
|
||||||
|
"/compute:alpha/InstancesResumeRequest/disks": disks
|
||||||
|
"/compute:alpha/InstancesResumeRequest/disks/disk": disk
|
||||||
|
"/compute:alpha/InstancesResumeRequest/instanceEncryptionKey": instance_encryption_key
|
||||||
"/compute:alpha/InstancesScopedList": instances_scoped_list
|
"/compute:alpha/InstancesScopedList": instances_scoped_list
|
||||||
"/compute:alpha/InstancesScopedList/instances": instances
|
"/compute:alpha/InstancesScopedList/instances": instances
|
||||||
"/compute:alpha/InstancesScopedList/instances/instance": instance
|
"/compute:alpha/InstancesScopedList/instances/instance": instance
|
||||||
|
@ -17065,6 +17073,9 @@
|
||||||
"/compute:alpha/Interconnect/interconnectAttachments/interconnect_attachment": interconnect_attachment
|
"/compute:alpha/Interconnect/interconnectAttachments/interconnect_attachment": interconnect_attachment
|
||||||
"/compute:alpha/Interconnect/interconnectType": interconnect_type
|
"/compute:alpha/Interconnect/interconnectType": interconnect_type
|
||||||
"/compute:alpha/Interconnect/kind": kind
|
"/compute:alpha/Interconnect/kind": kind
|
||||||
|
"/compute:alpha/Interconnect/labelFingerprint": label_fingerprint
|
||||||
|
"/compute:alpha/Interconnect/labels": labels
|
||||||
|
"/compute:alpha/Interconnect/labels/label": label
|
||||||
"/compute:alpha/Interconnect/linkType": link_type
|
"/compute:alpha/Interconnect/linkType": link_type
|
||||||
"/compute:alpha/Interconnect/location": location
|
"/compute:alpha/Interconnect/location": location
|
||||||
"/compute:alpha/Interconnect/name": name
|
"/compute:alpha/Interconnect/name": name
|
||||||
|
@ -17074,6 +17085,7 @@
|
||||||
"/compute:alpha/Interconnect/provisionedLinkCount": provisioned_link_count
|
"/compute:alpha/Interconnect/provisionedLinkCount": provisioned_link_count
|
||||||
"/compute:alpha/Interconnect/requestedLinkCount": requested_link_count
|
"/compute:alpha/Interconnect/requestedLinkCount": requested_link_count
|
||||||
"/compute:alpha/Interconnect/selfLink": self_link
|
"/compute:alpha/Interconnect/selfLink": self_link
|
||||||
|
"/compute:alpha/Interconnect/state": state
|
||||||
"/compute:alpha/InterconnectAttachment": interconnect_attachment
|
"/compute:alpha/InterconnectAttachment": interconnect_attachment
|
||||||
"/compute:alpha/InterconnectAttachment/adminEnabled": admin_enabled
|
"/compute:alpha/InterconnectAttachment/adminEnabled": admin_enabled
|
||||||
"/compute:alpha/InterconnectAttachment/availabilityZone": availability_zone
|
"/compute:alpha/InterconnectAttachment/availabilityZone": availability_zone
|
||||||
|
@ -17088,9 +17100,14 @@
|
||||||
"/compute:alpha/InterconnectAttachment/id": id
|
"/compute:alpha/InterconnectAttachment/id": id
|
||||||
"/compute:alpha/InterconnectAttachment/interconnect": interconnect
|
"/compute:alpha/InterconnectAttachment/interconnect": interconnect
|
||||||
"/compute:alpha/InterconnectAttachment/kind": kind
|
"/compute:alpha/InterconnectAttachment/kind": kind
|
||||||
|
"/compute:alpha/InterconnectAttachment/labelFingerprint": label_fingerprint
|
||||||
|
"/compute:alpha/InterconnectAttachment/labels": labels
|
||||||
|
"/compute:alpha/InterconnectAttachment/labels/label": label
|
||||||
"/compute:alpha/InterconnectAttachment/name": name
|
"/compute:alpha/InterconnectAttachment/name": name
|
||||||
"/compute:alpha/InterconnectAttachment/operationalStatus": operational_status
|
"/compute:alpha/InterconnectAttachment/operationalStatus": operational_status
|
||||||
"/compute:alpha/InterconnectAttachment/pairingKey": pairing_key
|
"/compute:alpha/InterconnectAttachment/pairingKey": pairing_key
|
||||||
|
"/compute:alpha/InterconnectAttachment/partnerAsn": partner_asn
|
||||||
|
"/compute:alpha/InterconnectAttachment/partnerMetadata": partner_metadata
|
||||||
"/compute:alpha/InterconnectAttachment/privateInterconnectInfo": private_interconnect_info
|
"/compute:alpha/InterconnectAttachment/privateInterconnectInfo": private_interconnect_info
|
||||||
"/compute:alpha/InterconnectAttachment/region": region
|
"/compute:alpha/InterconnectAttachment/region": region
|
||||||
"/compute:alpha/InterconnectAttachment/router": router
|
"/compute:alpha/InterconnectAttachment/router": router
|
||||||
|
@ -17126,6 +17143,10 @@
|
||||||
"/compute:alpha/InterconnectAttachmentList/warning/data/datum/key": key
|
"/compute:alpha/InterconnectAttachmentList/warning/data/datum/key": key
|
||||||
"/compute:alpha/InterconnectAttachmentList/warning/data/datum/value": value
|
"/compute:alpha/InterconnectAttachmentList/warning/data/datum/value": value
|
||||||
"/compute:alpha/InterconnectAttachmentList/warning/message": message
|
"/compute:alpha/InterconnectAttachmentList/warning/message": message
|
||||||
|
"/compute:alpha/InterconnectAttachmentPartnerMetadata": interconnect_attachment_partner_metadata
|
||||||
|
"/compute:alpha/InterconnectAttachmentPartnerMetadata/interconnectName": interconnect_name
|
||||||
|
"/compute:alpha/InterconnectAttachmentPartnerMetadata/partnerName": partner_name
|
||||||
|
"/compute:alpha/InterconnectAttachmentPartnerMetadata/portalUrl": portal_url
|
||||||
"/compute:alpha/InterconnectAttachmentPrivateInfo": interconnect_attachment_private_info
|
"/compute:alpha/InterconnectAttachmentPrivateInfo": interconnect_attachment_private_info
|
||||||
"/compute:alpha/InterconnectAttachmentPrivateInfo/tag8021q": tag8021q
|
"/compute:alpha/InterconnectAttachmentPrivateInfo/tag8021q": tag8021q
|
||||||
"/compute:alpha/InterconnectAttachmentsScopedList": interconnect_attachments_scoped_list
|
"/compute:alpha/InterconnectAttachmentsScopedList": interconnect_attachments_scoped_list
|
||||||
|
@ -18148,6 +18169,8 @@
|
||||||
"/compute:alpha/Snapshot/status": status
|
"/compute:alpha/Snapshot/status": status
|
||||||
"/compute:alpha/Snapshot/storageBytes": storage_bytes
|
"/compute:alpha/Snapshot/storageBytes": storage_bytes
|
||||||
"/compute:alpha/Snapshot/storageBytesStatus": storage_bytes_status
|
"/compute:alpha/Snapshot/storageBytesStatus": storage_bytes_status
|
||||||
|
"/compute:alpha/Snapshot/storageLocations": storage_locations
|
||||||
|
"/compute:alpha/Snapshot/storageLocations/storage_location": storage_location
|
||||||
"/compute:alpha/SnapshotList": snapshot_list
|
"/compute:alpha/SnapshotList": snapshot_list
|
||||||
"/compute:alpha/SnapshotList/id": id
|
"/compute:alpha/SnapshotList/id": id
|
||||||
"/compute:alpha/SnapshotList/items": items
|
"/compute:alpha/SnapshotList/items": items
|
||||||
|
@ -19637,6 +19660,11 @@
|
||||||
"/compute:alpha/compute.instances.reset/project": project
|
"/compute:alpha/compute.instances.reset/project": project
|
||||||
"/compute:alpha/compute.instances.reset/requestId": request_id
|
"/compute:alpha/compute.instances.reset/requestId": request_id
|
||||||
"/compute:alpha/compute.instances.reset/zone": zone
|
"/compute:alpha/compute.instances.reset/zone": zone
|
||||||
|
"/compute:alpha/compute.instances.resume": resume_instance
|
||||||
|
"/compute:alpha/compute.instances.resume/instance": instance
|
||||||
|
"/compute:alpha/compute.instances.resume/project": project
|
||||||
|
"/compute:alpha/compute.instances.resume/requestId": request_id
|
||||||
|
"/compute:alpha/compute.instances.resume/zone": zone
|
||||||
"/compute:alpha/compute.instances.setDeletionProtection": set_instance_deletion_protection
|
"/compute:alpha/compute.instances.setDeletionProtection": set_instance_deletion_protection
|
||||||
"/compute:alpha/compute.instances.setDeletionProtection/deletionProtection": deletion_protection
|
"/compute:alpha/compute.instances.setDeletionProtection/deletionProtection": deletion_protection
|
||||||
"/compute:alpha/compute.instances.setDeletionProtection/project": project
|
"/compute:alpha/compute.instances.setDeletionProtection/project": project
|
||||||
|
@ -19771,10 +19799,20 @@
|
||||||
"/compute:alpha/compute.interconnectAttachments.list/pageToken": page_token
|
"/compute:alpha/compute.interconnectAttachments.list/pageToken": page_token
|
||||||
"/compute:alpha/compute.interconnectAttachments.list/project": project
|
"/compute:alpha/compute.interconnectAttachments.list/project": project
|
||||||
"/compute:alpha/compute.interconnectAttachments.list/region": region
|
"/compute:alpha/compute.interconnectAttachments.list/region": region
|
||||||
|
"/compute:alpha/compute.interconnectAttachments.patch": patch_interconnect_attachment
|
||||||
|
"/compute:alpha/compute.interconnectAttachments.patch/interconnectAttachment": interconnect_attachment
|
||||||
|
"/compute:alpha/compute.interconnectAttachments.patch/project": project
|
||||||
|
"/compute:alpha/compute.interconnectAttachments.patch/region": region
|
||||||
|
"/compute:alpha/compute.interconnectAttachments.patch/requestId": request_id
|
||||||
"/compute:alpha/compute.interconnectAttachments.setIamPolicy": set_interconnect_attachment_iam_policy
|
"/compute:alpha/compute.interconnectAttachments.setIamPolicy": set_interconnect_attachment_iam_policy
|
||||||
"/compute:alpha/compute.interconnectAttachments.setIamPolicy/project": project
|
"/compute:alpha/compute.interconnectAttachments.setIamPolicy/project": project
|
||||||
"/compute:alpha/compute.interconnectAttachments.setIamPolicy/region": region
|
"/compute:alpha/compute.interconnectAttachments.setIamPolicy/region": region
|
||||||
"/compute:alpha/compute.interconnectAttachments.setIamPolicy/resource": resource
|
"/compute:alpha/compute.interconnectAttachments.setIamPolicy/resource": resource
|
||||||
|
"/compute:alpha/compute.interconnectAttachments.setLabels": set_interconnect_attachment_labels
|
||||||
|
"/compute:alpha/compute.interconnectAttachments.setLabels/project": project
|
||||||
|
"/compute:alpha/compute.interconnectAttachments.setLabels/region": region
|
||||||
|
"/compute:alpha/compute.interconnectAttachments.setLabels/requestId": request_id
|
||||||
|
"/compute:alpha/compute.interconnectAttachments.setLabels/resource": resource
|
||||||
"/compute:alpha/compute.interconnectAttachments.testIamPermissions": test_interconnect_attachment_iam_permissions
|
"/compute:alpha/compute.interconnectAttachments.testIamPermissions": test_interconnect_attachment_iam_permissions
|
||||||
"/compute:alpha/compute.interconnectAttachments.testIamPermissions/project": project
|
"/compute:alpha/compute.interconnectAttachments.testIamPermissions/project": project
|
||||||
"/compute:alpha/compute.interconnectAttachments.testIamPermissions/region": region
|
"/compute:alpha/compute.interconnectAttachments.testIamPermissions/region": region
|
||||||
|
@ -19817,6 +19855,9 @@
|
||||||
"/compute:alpha/compute.interconnects.setIamPolicy": set_interconnect_iam_policy
|
"/compute:alpha/compute.interconnects.setIamPolicy": set_interconnect_iam_policy
|
||||||
"/compute:alpha/compute.interconnects.setIamPolicy/project": project
|
"/compute:alpha/compute.interconnects.setIamPolicy/project": project
|
||||||
"/compute:alpha/compute.interconnects.setIamPolicy/resource": resource
|
"/compute:alpha/compute.interconnects.setIamPolicy/resource": resource
|
||||||
|
"/compute:alpha/compute.interconnects.setLabels": set_interconnect_labels
|
||||||
|
"/compute:alpha/compute.interconnects.setLabels/project": project
|
||||||
|
"/compute:alpha/compute.interconnects.setLabels/resource": resource
|
||||||
"/compute:alpha/compute.interconnects.testIamPermissions": test_interconnect_iam_permissions
|
"/compute:alpha/compute.interconnects.testIamPermissions": test_interconnect_iam_permissions
|
||||||
"/compute:alpha/compute.interconnects.testIamPermissions/project": project
|
"/compute:alpha/compute.interconnects.testIamPermissions/project": project
|
||||||
"/compute:alpha/compute.interconnects.testIamPermissions/resource": resource
|
"/compute:alpha/compute.interconnects.testIamPermissions/resource": resource
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
||||||
# @see https://cloud.google.com/cloud-tasks/
|
# @see https://cloud.google.com/cloud-tasks/
|
||||||
module CloudtasksV2beta2
|
module CloudtasksV2beta2
|
||||||
VERSION = 'V2beta2'
|
VERSION = 'V2beta2'
|
||||||
REVISION = '20171215'
|
REVISION = '20171219'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -69,13 +69,11 @@ module Google
|
||||||
# task-level app_engine_routing.
|
# task-level app_engine_routing.
|
||||||
# The `url` that the task will be sent to is:
|
# The `url` that the task will be sent to is:
|
||||||
# * `url =` AppEngineRouting.host `+` AppEngineHttpRequest.relative_url
|
# * `url =` AppEngineRouting.host `+` AppEngineHttpRequest.relative_url
|
||||||
# The task will be sent to a task handler by an HTTP
|
# The task attempt has succeeded if the app's request handler returns
|
||||||
# request using the specified AppEngineHttpRequest.http_method (for example
|
# an HTTP response code in the range [`200` - `299`]. `503` is
|
||||||
# POST, HTTP GET, etc). The task attempt has succeeded if the task handler
|
# considered an App Engine system error instead of an application
|
||||||
# returns an HTTP response code in the range [200 - 299]. Error 503 is
|
# error. Requests returning error `503` will be retried regardless of
|
||||||
# considered an App Engine system error instead of an application error.
|
# retry configuration and not counted against retry counts.
|
||||||
# Requests returning error 503 will be retried regardless of retry
|
|
||||||
# configuration and not counted against retry counts.
|
|
||||||
# Any other response code or a failure to receive a response before the
|
# Any other response code or a failure to receive a response before the
|
||||||
# deadline is a failed attempt.
|
# deadline is a failed attempt.
|
||||||
class AppEngineHttpRequest
|
class AppEngineHttpRequest
|
||||||
|
@ -118,10 +116,15 @@ module Google
|
||||||
# * `Host`
|
# * `Host`
|
||||||
# * `X-Google-*`
|
# * `X-Google-*`
|
||||||
# * `X-AppEngine-*`
|
# * `X-AppEngine-*`
|
||||||
# In addition, some App Engine headers, which contain
|
# In addition, Cloud Tasks sets some headers when the task is dispatched,
|
||||||
# task-specific information, are also be sent to the task handler; see
|
# such as headers containing information about the task; see
|
||||||
# [request headers](/appengine/docs/python/taskqueue/push/creating-handlers#
|
# [request headers](/appengine/docs/python/taskqueue/push/creating-handlers#
|
||||||
# reading_request_headers).
|
# reading_request_headers).
|
||||||
|
# These headers are set only when the task is dispatched, so they are not
|
||||||
|
# visible when the task is returned in a Cloud Tasks response.
|
||||||
|
# Although there is no specific limit for the maximum number of headers or
|
||||||
|
# the size, there is a limit on the maximum size of the Task. For more
|
||||||
|
# information, see the CloudTasks.CreateTask documentation.
|
||||||
# Corresponds to the JSON property `headers`
|
# Corresponds to the JSON property `headers`
|
||||||
# @return [Hash<String,String>]
|
# @return [Hash<String,String>]
|
||||||
attr_accessor :headers
|
attr_accessor :headers
|
||||||
|
@ -134,7 +137,7 @@ module Google
|
||||||
# creating-handlers#writing_a_push_task_request_handler)
|
# creating-handlers#writing_a_push_task_request_handler)
|
||||||
# and the documentation for the request handlers in the language your app is
|
# and the documentation for the request handlers in the language your app is
|
||||||
# written in e.g.
|
# written in e.g.
|
||||||
# [python RequestHandler](/appengine/docs/python/tools/webapp/
|
# [Python Request Handler](/appengine/docs/python/tools/webapp/
|
||||||
# requesthandlerclass).
|
# requesthandlerclass).
|
||||||
# Corresponds to the JSON property `httpMethod`
|
# Corresponds to the JSON property `httpMethod`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -555,7 +558,7 @@ module Google
|
||||||
# `filter` can be used to specify a subset of tasks to lease.
|
# `filter` can be used to specify a subset of tasks to lease.
|
||||||
# When `filter` is set to `tag=<my-tag>` then the
|
# When `filter` is set to `tag=<my-tag>` then the
|
||||||
# LeaseTasksResponse will contain only tasks whose
|
# LeaseTasksResponse will contain only tasks whose
|
||||||
# LeaseMessage.tag is equal to `<my-tag>`. `<my-tag>` must be less than
|
# PullMessage.tag is equal to `<my-tag>`. `<my-tag>` must be less than
|
||||||
# 500 bytes.
|
# 500 bytes.
|
||||||
# When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
|
# When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
|
||||||
# the same tag as the task with the oldest schedule_time will be returned.
|
# the same tag as the task with the oldest schedule_time will be returned.
|
||||||
|
@ -1501,13 +1504,11 @@ module Google
|
||||||
# task-level app_engine_routing.
|
# task-level app_engine_routing.
|
||||||
# The `url` that the task will be sent to is:
|
# The `url` that the task will be sent to is:
|
||||||
# * `url =` AppEngineRouting.host `+` AppEngineHttpRequest.relative_url
|
# * `url =` AppEngineRouting.host `+` AppEngineHttpRequest.relative_url
|
||||||
# The task will be sent to a task handler by an HTTP
|
# The task attempt has succeeded if the app's request handler returns
|
||||||
# request using the specified AppEngineHttpRequest.http_method (for example
|
# an HTTP response code in the range [`200` - `299`]. `503` is
|
||||||
# POST, HTTP GET, etc). The task attempt has succeeded if the task handler
|
# considered an App Engine system error instead of an application
|
||||||
# returns an HTTP response code in the range [200 - 299]. Error 503 is
|
# error. Requests returning error `503` will be retried regardless of
|
||||||
# considered an App Engine system error instead of an application error.
|
# retry configuration and not counted against retry counts.
|
||||||
# Requests returning error 503 will be retried regardless of retry
|
|
||||||
# configuration and not counted against retry counts.
|
|
||||||
# Any other response code or a failure to receive a response before the
|
# Any other response code or a failure to receive a response before the
|
||||||
# deadline is a failed attempt.
|
# deadline is a failed attempt.
|
||||||
# Corresponds to the JSON property `appEngineHttpRequest`
|
# Corresponds to the JSON property `appEngineHttpRequest`
|
||||||
|
|
|
@ -522,8 +522,8 @@ module Google
|
||||||
class TaskStatus
|
class TaskStatus
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :attempt_dispatch_count, :numeric_string => true, as: 'attemptDispatchCount'
|
property :attempt_dispatch_count, as: 'attemptDispatchCount'
|
||||||
property :attempt_response_count, :numeric_string => true, as: 'attemptResponseCount'
|
property :attempt_response_count, as: 'attemptResponseCount'
|
||||||
property :first_attempt_status, as: 'firstAttemptStatus', class: Google::Apis::CloudtasksV2beta2::AttemptStatus, decorator: Google::Apis::CloudtasksV2beta2::AttemptStatus::Representation
|
property :first_attempt_status, as: 'firstAttemptStatus', class: Google::Apis::CloudtasksV2beta2::AttemptStatus, decorator: Google::Apis::CloudtasksV2beta2::AttemptStatus::Representation
|
||||||
|
|
||||||
property :last_attempt_status, as: 'lastAttemptStatus', class: Google::Apis::CloudtasksV2beta2::AttemptStatus, decorator: Google::Apis::CloudtasksV2beta2::AttemptStatus::Representation
|
property :last_attempt_status, as: 'lastAttemptStatus', class: Google::Apis::CloudtasksV2beta2::AttemptStatus, decorator: Google::Apis::CloudtasksV2beta2::AttemptStatus::Representation
|
||||||
|
|
|
@ -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 ComputeAlpha
|
module ComputeAlpha
|
||||||
VERSION = 'Alpha'
|
VERSION = 'Alpha'
|
||||||
REVISION = '20171127'
|
REVISION = '20171207'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
|
@ -49,7 +49,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# An Accelerator Type resource.
|
# An Accelerator Type resource. (== resource_for beta.acceleratorTypes ==) (==
|
||||||
|
# resource_for v1.acceleratorTypes ==)
|
||||||
class AcceleratorType
|
class AcceleratorType
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -532,7 +533,9 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A reserved address resource.
|
# A reserved address resource. (== resource_for beta.addresses ==) (==
|
||||||
|
# resource_for v1.addresses ==) (== resource_for beta.globalAddresses ==) (==
|
||||||
|
# resource_for v1.globalAddresses ==)
|
||||||
class Address
|
class Address
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -630,9 +633,9 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :status
|
attr_accessor :status
|
||||||
|
|
||||||
# For external addresses, this field should not be used.
|
|
||||||
# The URL of the subnetwork in which to reserve the address. If an IP address is
|
# The URL of the subnetwork in which to reserve the address. If an IP address is
|
||||||
# specified, it must be within the subnetwork's IP range.
|
# specified, it must be within the subnetwork's IP range. This field can only be
|
||||||
|
# used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes.
|
||||||
# Corresponds to the JSON property `subnetwork`
|
# Corresponds to the JSON property `subnetwork`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :subnetwork
|
attr_accessor :subnetwork
|
||||||
|
@ -1065,6 +1068,13 @@ module Google
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :disk_size_gb
|
attr_accessor :disk_size_gb
|
||||||
|
|
||||||
|
# A list of features to enable on the guest operating system. Applicable only
|
||||||
|
# for bootable images. Read Enabling guest operating system features to see a
|
||||||
|
# list of available options.
|
||||||
|
# Corresponds to the JSON property `guestOsFeatures`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::GuestOsFeature>]
|
||||||
|
attr_accessor :guest_os_features
|
||||||
|
|
||||||
# [Output Only] A zero-based index to this disk, where 0 is reserved for the
|
# [Output Only] A zero-based index to this disk, where 0 is reserved for the
|
||||||
# boot disk. If you have many disks attached to an instance, each disk would
|
# boot disk. If you have many disks attached to an instance, each disk would
|
||||||
# have a unique index number.
|
# have a unique index number.
|
||||||
|
@ -1107,6 +1117,14 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :mode
|
attr_accessor :mode
|
||||||
|
|
||||||
|
# For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this field
|
||||||
|
# is set to PRESERVED iff the LocalSSD data has been saved to a persistent
|
||||||
|
# location by customer request. (see the discard_local_ssd option on Stop/
|
||||||
|
# Suspend). Read-only in the api.
|
||||||
|
# Corresponds to the JSON property `savedState`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :saved_state
|
||||||
|
|
||||||
# Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
# Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
||||||
# When creating a new instance, one of initializeParams.sourceImage or disks.
|
# When creating a new instance, one of initializeParams.sourceImage or disks.
|
||||||
# source is required except for local SSD.
|
# source is required except for local SSD.
|
||||||
|
@ -1135,12 +1153,14 @@ module Google
|
||||||
@device_name = args[:device_name] if args.key?(:device_name)
|
@device_name = args[:device_name] if args.key?(:device_name)
|
||||||
@disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
|
@disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
|
||||||
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
||||||
|
@guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features)
|
||||||
@index = args[:index] if args.key?(:index)
|
@index = args[:index] if args.key?(:index)
|
||||||
@initialize_params = args[:initialize_params] if args.key?(:initialize_params)
|
@initialize_params = args[:initialize_params] if args.key?(:initialize_params)
|
||||||
@interface = args[:interface] if args.key?(:interface)
|
@interface = args[:interface] if args.key?(:interface)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
@licenses = args[:licenses] if args.key?(:licenses)
|
@licenses = args[:licenses] if args.key?(:licenses)
|
||||||
@mode = args[:mode] if args.key?(:mode)
|
@mode = args[:mode] if args.key?(:mode)
|
||||||
|
@saved_state = args[:saved_state] if args.key?(:saved_state)
|
||||||
@source = args[:source] if args.key?(:source)
|
@source = args[:source] if args.key?(:source)
|
||||||
@type = args[:type] if args.key?(:type)
|
@type = args[:type] if args.key?(:type)
|
||||||
end
|
end
|
||||||
|
@ -1327,7 +1347,9 @@ module Google
|
||||||
# Represents an Autoscaler resource. Autoscalers allow you to automatically
|
# Represents an Autoscaler resource. Autoscalers allow you to automatically
|
||||||
# scale virtual machine instances in managed instance groups according to an
|
# scale virtual machine instances in managed instance groups according to an
|
||||||
# autoscaling policy that you define. For more information, read Autoscaling
|
# autoscaling policy that you define. For more information, read Autoscaling
|
||||||
# Groups of Instances.
|
# Groups of Instances. (== resource_for beta.autoscalers ==) (== resource_for v1.
|
||||||
|
# autoscalers ==) (== resource_for beta.regionAutoscalers ==) (== resource_for
|
||||||
|
# v1.regionAutoscalers ==)
|
||||||
class Autoscaler
|
class Autoscaler
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -1368,6 +1390,14 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
|
# [Output Only] Target recommended MIG size computed by autoscaler. Autoscaler
|
||||||
|
# calculates recommended MIG size even when autoscaling policy mode is different
|
||||||
|
# from ON. This field is empty when autoscaler is not connected to the existing
|
||||||
|
# managed instance group or autoscaler did not generate its first prediction.
|
||||||
|
# Corresponds to the JSON property `recommendedSize`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :recommended_size
|
||||||
|
|
||||||
# [Output Only] URL of the region where the instance group resides (for
|
# [Output Only] URL of the region where the instance group resides (for
|
||||||
# autoscalers living in regional scope).
|
# autoscalers living in regional scope).
|
||||||
# Corresponds to the JSON property `region`
|
# Corresponds to the JSON property `region`
|
||||||
|
@ -1414,6 +1444,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)
|
||||||
|
@recommended_size = args[:recommended_size] if args.key?(:recommended_size)
|
||||||
@region = args[:region] if args.key?(:region)
|
@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)
|
||||||
@status = args[:status] if args.key?(:status)
|
@status = args[:status] if args.key?(:status)
|
||||||
|
@ -2401,7 +2432,8 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# A BackendService resource. This resource defines a group of backend virtual
|
# A BackendService resource. This resource defines a group of backend virtual
|
||||||
# machines and their serving capacity.
|
# machines and their serving capacity. (== resource_for v1.backendService ==) (==
|
||||||
|
# resource_for beta.backendService ==)
|
||||||
class BackendService
|
class BackendService
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -3303,7 +3335,8 @@ module Google
|
||||||
# Committed use discounts are subject to Google Cloud Platform's Service
|
# Committed use discounts are subject to Google Cloud Platform's Service
|
||||||
# Specific Terms. By purchasing a committed use discount, you agree to these
|
# Specific Terms. By purchasing a committed use discount, you agree to these
|
||||||
# terms. Committed use discounts will not renew, so you must purchase a new
|
# terms. Committed use discounts will not renew, so you must purchase a new
|
||||||
# commitment to continue receiving discounts.
|
# commitment to continue receiving discounts. (== resource_for beta.commitments =
|
||||||
|
# =) (== resource_for v1.commitments ==)
|
||||||
class Commitment
|
class Commitment
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -3963,7 +3996,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A Disk resource.
|
# A Disk resource. (== resource_for beta.disks ==) (== resource_for v1.disks ==)
|
||||||
class Disk
|
class Disk
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -3983,14 +4016,9 @@ module Google
|
||||||
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
|
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
|
||||||
attr_accessor :disk_encryption_key
|
attr_accessor :disk_encryption_key
|
||||||
|
|
||||||
# A list of features to enable on the guest OS. Applicable for bootable disks
|
# A list of features to enable on the guest operating system. Applicable only
|
||||||
# only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE,
|
# for bootable images. Read Enabling guest operating system features to see a
|
||||||
# which allows each virtual CPU to have its own queue. For Windows disks, you
|
# list of available options.
|
||||||
# can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.
|
|
||||||
# 1621 or higher. Linux disks with kernel versions 3.17 and higher will support
|
|
||||||
# VIRTIO_SCSI_MULTIQUEUE.
|
|
||||||
# For newer Windows images, the server might also populate this property with
|
|
||||||
# the value WINDOWS to indicate that this is a Windows image.
|
|
||||||
# Corresponds to the JSON property `guestOsFeatures`
|
# Corresponds to the JSON property `guestOsFeatures`
|
||||||
# @return [Array<Google::Apis::ComputeAlpha::GuestOsFeature>]
|
# @return [Array<Google::Apis::ComputeAlpha::GuestOsFeature>]
|
||||||
attr_accessor :guest_os_features
|
attr_accessor :guest_os_features
|
||||||
|
@ -4527,7 +4555,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A DiskType resource.
|
# A DiskType resource. (== resource_for beta.diskTypes ==) (== resource_for v1.
|
||||||
|
# diskTypes ==)
|
||||||
class DiskType
|
class DiskType
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -5534,7 +5563,11 @@ module Google
|
||||||
|
|
||||||
# A ForwardingRule resource. A ForwardingRule resource specifies which pool of
|
# A ForwardingRule resource. A ForwardingRule resource specifies which pool of
|
||||||
# target virtual machines to forward a packet to if it matches the given [
|
# target virtual machines to forward a packet to if it matches the given [
|
||||||
# IPAddress, IPProtocol, ports] tuple.
|
# IPAddress, IPProtocol, ports] tuple. (== resource_for beta.forwardingRules ==)
|
||||||
|
# (== resource_for v1.forwardingRules ==) (== resource_for beta.
|
||||||
|
# globalForwardingRules ==) (== resource_for v1.globalForwardingRules ==) (==
|
||||||
|
# resource_for beta.regionForwardingRules ==) (== resource_for v1.
|
||||||
|
# regionForwardingRules ==)
|
||||||
class ForwardingRule
|
class ForwardingRule
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -6210,9 +6243,8 @@ module Google
|
||||||
class GuestOsFeature
|
class GuestOsFeature
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is
|
# The ID of a supported feature. Read Enabling guest operating system features
|
||||||
# supported. For newer Windows images, the server might also populate this
|
# to see a list of available options.
|
||||||
# property with the value WINDOWS to indicate that this is a Windows image.
|
|
||||||
# Corresponds to the JSON property `type`
|
# Corresponds to the JSON property `type`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
@ -8177,7 +8209,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# An Image resource.
|
# An Image resource. (== resource_for beta.images ==) (== resource_for v1.images
|
||||||
|
# ==)
|
||||||
class Image
|
class Image
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -8215,14 +8248,9 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :family
|
attr_accessor :family
|
||||||
|
|
||||||
# A list of features to enable on the guest OS. Applicable for bootable images
|
# A list of features to enable on the guest operating system. Applicable only
|
||||||
# only. Currently, only one feature can be enabled, VIRTIO_SCSI_MULTIQUEUE,
|
# for bootable images. Read Enabling guest operating system features to see a
|
||||||
# which allows each virtual CPU to have its own queue. For Windows images, you
|
# list of available options.
|
||||||
# can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.
|
|
||||||
# 1621 or higher. Linux images with kernel versions 3.17 and higher will support
|
|
||||||
# VIRTIO_SCSI_MULTIQUEUE.
|
|
||||||
# For newer Windows images, the server might also populate this property with
|
|
||||||
# the value WINDOWS to indicate that this is a Windows image.
|
|
||||||
# Corresponds to the JSON property `guestOsFeatures`
|
# Corresponds to the JSON property `guestOsFeatures`
|
||||||
# @return [Array<Google::Apis::ComputeAlpha::GuestOsFeature>]
|
# @return [Array<Google::Apis::ComputeAlpha::GuestOsFeature>]
|
||||||
attr_accessor :guest_os_features
|
attr_accessor :guest_os_features
|
||||||
|
@ -8559,7 +8587,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# An Instance resource.
|
# An Instance resource. (== resource_for beta.instances ==) (== resource_for v1.
|
||||||
|
# instances ==)
|
||||||
class Instance
|
class Instance
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -8906,7 +8935,9 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
# InstanceGroups (== resource_for beta.instanceGroups ==) (== resource_for v1.
|
||||||
|
# instanceGroups ==) (== resource_for beta.regionInstanceGroups ==) (==
|
||||||
|
# resource_for v1.regionInstanceGroups ==)
|
||||||
class InstanceGroup
|
class InstanceGroup
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -9247,7 +9278,10 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# An Instance Group Manager resource.
|
# An Instance Group Manager resource. (== resource_for beta.
|
||||||
|
# instanceGroupManagers ==) (== resource_for v1.instanceGroupManagers ==) (==
|
||||||
|
# resource_for beta.regionInstanceGroupManagers ==) (== resource_for v1.
|
||||||
|
# regionInstanceGroupManagers ==)
|
||||||
class InstanceGroupManager
|
class InstanceGroupManager
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -11153,7 +11187,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# An Instance Template resource.
|
# An Instance Template resource. (== resource_for beta.instanceTemplates ==) (==
|
||||||
|
# resource_for v1.instanceTemplates ==)
|
||||||
class InstanceTemplate
|
class InstanceTemplate
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -11422,6 +11457,36 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
class InstancesResumeRequest
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Array of disks associated with this instance that are protected with a
|
||||||
|
# customer-supplied encryption key.
|
||||||
|
# In order to resume the instance, the disk url and its corresponding key must
|
||||||
|
# be provided.
|
||||||
|
# If the disk is not protected with a customer-supplied encryption key it should
|
||||||
|
# not be specified.
|
||||||
|
# Corresponds to the JSON property `disks`
|
||||||
|
# @return [Array<Google::Apis::ComputeAlpha::CustomerEncryptionKeyProtectedDisk>]
|
||||||
|
attr_accessor :disks
|
||||||
|
|
||||||
|
# Represents a customer-supplied encryption key
|
||||||
|
# Corresponds to the JSON property `instanceEncryptionKey`
|
||||||
|
# @return [Google::Apis::ComputeAlpha::CustomerEncryptionKey]
|
||||||
|
attr_accessor :instance_encryption_key
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@disks = args[:disks] if args.key?(:disks)
|
||||||
|
@instance_encryption_key = args[:instance_encryption_key] if args.key?(:instance_encryption_key)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
class InstancesScopedList
|
class InstancesScopedList
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -11657,7 +11722,8 @@ module Google
|
||||||
|
|
||||||
# Represents an Interconnects resource. The Interconnects resource is a
|
# Represents an Interconnects resource. The Interconnects resource is a
|
||||||
# dedicated connection between Google's network and your on-premises network.
|
# dedicated connection between Google's network and your on-premises network.
|
||||||
# For more information, see the Dedicated overview page.
|
# For more information, see the Dedicated overview page. (== resource_for v1.
|
||||||
|
# interconnects ==) (== resource_for beta.interconnects ==)
|
||||||
class Interconnect
|
class Interconnect
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -11734,6 +11800,25 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# A fingerprint for the labels being applied to this Interconnect, which is
|
||||||
|
# essentially a hash of the labels set used for optimistic locking. The
|
||||||
|
# fingerprint is initially generated by Compute Engine and changes after every
|
||||||
|
# request to modify or update labels. You must always provide an up-to-date
|
||||||
|
# fingerprint hash in order to update or change labels.
|
||||||
|
# To see the latest fingerprint, make a get() request to retrieve an
|
||||||
|
# Interconnect.
|
||||||
|
# Corresponds to the JSON property `labelFingerprint`
|
||||||
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :label_fingerprint
|
||||||
|
|
||||||
|
# Labels to apply to this Interconnect resource. These can be later modified by
|
||||||
|
# the setLabels method. Each label key/value must comply with RFC1035. Label
|
||||||
|
# values may be empty.
|
||||||
|
# Corresponds to the JSON property `labels`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :labels
|
||||||
|
|
||||||
# Type of link requested. This field indicates speed of each of the links in the
|
# Type of link requested. This field indicates speed of each of the links in the
|
||||||
# bundle, not the entire bundle. Only 10G per link is allowed for a dedicated
|
# bundle, not the entire bundle. Only 10G per link is allowed for a dedicated
|
||||||
# interconnect. Options: Ethernet_10G_LR
|
# interconnect. Options: Ethernet_10G_LR
|
||||||
|
@ -11794,6 +11879,12 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
attr_accessor :self_link
|
||||||
|
|
||||||
|
# [Output Only] The current state of whether or not this Interconnect is
|
||||||
|
# functional.
|
||||||
|
# Corresponds to the JSON property `state`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :state
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -11812,6 +11903,8 @@ module Google
|
||||||
@interconnect_attachments = args[:interconnect_attachments] if args.key?(:interconnect_attachments)
|
@interconnect_attachments = args[:interconnect_attachments] if args.key?(:interconnect_attachments)
|
||||||
@interconnect_type = args[:interconnect_type] if args.key?(:interconnect_type)
|
@interconnect_type = args[:interconnect_type] if args.key?(:interconnect_type)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
||||||
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
@link_type = args[:link_type] if args.key?(:link_type)
|
@link_type = args[:link_type] if args.key?(:link_type)
|
||||||
@location = args[:location] if args.key?(:location)
|
@location = args[:location] if args.key?(:location)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
|
@ -11821,11 +11914,13 @@ module Google
|
||||||
@provisioned_link_count = args[:provisioned_link_count] if args.key?(:provisioned_link_count)
|
@provisioned_link_count = args[:provisioned_link_count] if args.key?(:provisioned_link_count)
|
||||||
@requested_link_count = args[:requested_link_count] if args.key?(:requested_link_count)
|
@requested_link_count = args[:requested_link_count] if args.key?(:requested_link_count)
|
||||||
@self_link = args[:self_link] if args.key?(:self_link)
|
@self_link = args[:self_link] if args.key?(:self_link)
|
||||||
|
@state = args[:state] if args.key?(:state)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Represents an InterconnectAttachment (VLAN attachment) resource. For more
|
# Represents an InterconnectAttachment (VLAN attachment) resource. For more
|
||||||
# information, see Creating VLAN Attachments.
|
# information, see Creating VLAN Attachments. (== resource_for beta.
|
||||||
|
# interconnectAttachments ==) (== resource_for v1.interconnectAttachments ==)
|
||||||
class InterconnectAttachment
|
class InterconnectAttachment
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -11903,6 +11998,25 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :kind
|
attr_accessor :kind
|
||||||
|
|
||||||
|
# A fingerprint for the labels being applied to this InterconnectAttachment,
|
||||||
|
# which is essentially a hash of the labels set used for optimistic locking. The
|
||||||
|
# fingerprint is initially generated by Compute Engine and changes after every
|
||||||
|
# request to modify or update labels. You must always provide an up-to-date
|
||||||
|
# fingerprint hash in order to update or change labels.
|
||||||
|
# To see the latest fingerprint, make a get() request to retrieve an
|
||||||
|
# InterconnectAttachment.
|
||||||
|
# Corresponds to the JSON property `labelFingerprint`
|
||||||
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :label_fingerprint
|
||||||
|
|
||||||
|
# Labels to apply to this InterconnectAttachment resource. These can be later
|
||||||
|
# modified by the setLabels method. Each label key/value must comply with
|
||||||
|
# RFC1035. Label values may be empty.
|
||||||
|
# Corresponds to the JSON property `labels`
|
||||||
|
# @return [Hash<String,String>]
|
||||||
|
attr_accessor :labels
|
||||||
|
|
||||||
# Name of the resource. Provided by the client when the resource is created. The
|
# Name of the resource. Provided by the client when the resource is created. The
|
||||||
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
||||||
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
|
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
|
||||||
|
@ -11926,6 +12040,21 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :pairing_key
|
attr_accessor :pairing_key
|
||||||
|
|
||||||
|
# [Output only for PARTNER. Input for PARTNER_PROVIDER. Not present for
|
||||||
|
# DEDICATED] BGP ASN of the Partner. A layer 3 Partner should supply this if
|
||||||
|
# they configured BGP on behalf of the customer.
|
||||||
|
# Corresponds to the JSON property `partnerAsn`
|
||||||
|
# @return [Fixnum]
|
||||||
|
attr_accessor :partner_asn
|
||||||
|
|
||||||
|
# Informational metadata about Partner attachments from Partners to display to
|
||||||
|
# customers. These fields are propagated from PARTNER_PROVIDER attachments to
|
||||||
|
# their corresponding PARTNER attachments. Only mutable for PARTNER_PROVIDER
|
||||||
|
# type, output-only for PARTNER, not available for DEDICATED.
|
||||||
|
# Corresponds to the JSON property `partnerMetadata`
|
||||||
|
# @return [Google::Apis::ComputeAlpha::InterconnectAttachmentPartnerMetadata]
|
||||||
|
attr_accessor :partner_metadata
|
||||||
|
|
||||||
# Information for an interconnect attachment when this belongs to an
|
# Information for an interconnect attachment when this belongs to an
|
||||||
# interconnect of type DEDICATED.
|
# interconnect of type DEDICATED.
|
||||||
# Corresponds to the JSON property `privateInterconnectInfo`
|
# Corresponds to the JSON property `privateInterconnectInfo`
|
||||||
|
@ -11962,9 +12091,9 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
attr_accessor :type
|
||||||
|
|
||||||
# Available only for DEDICATED and PARTNER_PROVIDER New field: VLAN. Only
|
# Available only for DEDICATED and PARTNER_PROVIDER. Desired VLAN tag for this
|
||||||
# specified at creation time. This field is mapped to ieee_802_1q_tag in the
|
# attachment, in the range 2-4094. This field refers to 802.1q VLAN tag, also
|
||||||
# resource proto.
|
# known as IEEE 802.1Q Only specified at creation time.
|
||||||
# Corresponds to the JSON property `vlanTag8021q`
|
# Corresponds to the JSON property `vlanTag8021q`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :vlan_tag8021q
|
attr_accessor :vlan_tag8021q
|
||||||
|
@ -11987,9 +12116,13 @@ module Google
|
||||||
@id = args[:id] if args.key?(:id)
|
@id = args[:id] if args.key?(:id)
|
||||||
@interconnect = args[:interconnect] if args.key?(:interconnect)
|
@interconnect = args[:interconnect] if args.key?(:interconnect)
|
||||||
@kind = args[:kind] if args.key?(:kind)
|
@kind = args[:kind] if args.key?(:kind)
|
||||||
|
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
||||||
|
@labels = args[:labels] if args.key?(:labels)
|
||||||
@name = args[:name] if args.key?(:name)
|
@name = args[:name] if args.key?(:name)
|
||||||
@operational_status = args[:operational_status] if args.key?(:operational_status)
|
@operational_status = args[:operational_status] if args.key?(:operational_status)
|
||||||
@pairing_key = args[:pairing_key] if args.key?(:pairing_key)
|
@pairing_key = args[:pairing_key] if args.key?(:pairing_key)
|
||||||
|
@partner_asn = args[:partner_asn] if args.key?(:partner_asn)
|
||||||
|
@partner_metadata = args[:partner_metadata] if args.key?(:partner_metadata)
|
||||||
@private_interconnect_info = args[:private_interconnect_info] if args.key?(:private_interconnect_info)
|
@private_interconnect_info = args[:private_interconnect_info] if args.key?(:private_interconnect_info)
|
||||||
@region = args[:region] if args.key?(:region)
|
@region = args[:region] if args.key?(:region)
|
||||||
@router = args[:router] if args.key?(:router)
|
@router = args[:router] if args.key?(:router)
|
||||||
|
@ -12237,6 +12370,45 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Informational metadata about Partner attachments from Partners to display to
|
||||||
|
# customers. These fields are propagated from PARTNER_PROVIDER attachments to
|
||||||
|
# their corresponding PARTNER attachments. Only mutable for PARTNER_PROVIDER
|
||||||
|
# type, output-only for PARTNER, not available for DEDICATED.
|
||||||
|
class InterconnectAttachmentPartnerMetadata
|
||||||
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
# Plain text name of the Interconnect this attachment is connected to, as
|
||||||
|
# displayed in the Partner?s portal. For instance ?Chicago 1?. This value may be
|
||||||
|
# validated to match approved Partner values.
|
||||||
|
# Corresponds to the JSON property `interconnectName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :interconnect_name
|
||||||
|
|
||||||
|
# Plain text name of the Partner providing this attachment. This value may be
|
||||||
|
# validated to match approved Partner values.
|
||||||
|
# Corresponds to the JSON property `partnerName`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :partner_name
|
||||||
|
|
||||||
|
# URL of the Partner?s portal for this Attachment. Partners may customise this
|
||||||
|
# to be a deep-link to the specific resource on the Partner portal. This value
|
||||||
|
# may be validated to match approved Partner values.
|
||||||
|
# Corresponds to the JSON property `portalUrl`
|
||||||
|
# @return [String]
|
||||||
|
attr_accessor :portal_url
|
||||||
|
|
||||||
|
def initialize(**args)
|
||||||
|
update!(**args)
|
||||||
|
end
|
||||||
|
|
||||||
|
# Update properties of this object
|
||||||
|
def update!(**args)
|
||||||
|
@interconnect_name = args[:interconnect_name] if args.key?(:interconnect_name)
|
||||||
|
@partner_name = args[:partner_name] if args.key?(:partner_name)
|
||||||
|
@portal_url = args[:portal_url] if args.key?(:portal_url)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Information for an interconnect attachment when this belongs to an
|
# Information for an interconnect attachment when this belongs to an
|
||||||
# interconnect of type DEDICATED.
|
# interconnect of type DEDICATED.
|
||||||
class InterconnectAttachmentPrivateInfo
|
class InterconnectAttachmentPrivateInfo
|
||||||
|
@ -13421,7 +13593,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A Machine Type resource.
|
# A Machine Type resource. (== resource_for v1.machineTypes ==) (== resource_for
|
||||||
|
# beta.machineTypes ==)
|
||||||
class MachineType
|
class MachineType
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -14614,7 +14787,8 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# Represents a Network resource. Read Networks and Firewalls for more
|
# Represents a Network resource. Read Networks and Firewalls for more
|
||||||
# information.
|
# information. (== resource_for v1.networks ==) (== resource_for beta.networks ==
|
||||||
|
# )
|
||||||
class Network
|
class Network
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -15763,7 +15937,11 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# An Operation resource, used to manage asynchronous API requests.
|
# An Operation resource, used to manage asynchronous API requests. (==
|
||||||
|
# resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==)
|
||||||
|
# (== resource_for v1.regionOperations ==) (== resource_for beta.
|
||||||
|
# regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for
|
||||||
|
# beta.zoneOperations ==)
|
||||||
class Operation
|
class Operation
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -16562,7 +16740,8 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# A Project resource. Projects can only be created in the Google Cloud Platform
|
# A Project resource. Projects can only be created in the Google Cloud Platform
|
||||||
# Console. Unless marked otherwise, values can only be modified in the console.
|
# Console. Unless marked otherwise, values can only be modified in the console. (
|
||||||
|
# == resource_for v1.projects ==) (== resource_for beta.projects ==)
|
||||||
class Project
|
class Project
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -16864,7 +17043,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Region resource.
|
# Region resource. (== resource_for beta.regions ==) (== resource_for v1.regions
|
||||||
|
# ==)
|
||||||
class Region
|
class Region
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -18144,7 +18324,7 @@ module Google
|
||||||
# either to another instance destination, an instance gateway, or a Google
|
# either to another instance destination, an instance gateway, or a Google
|
||||||
# Compute Engine-operated gateway.
|
# Compute Engine-operated gateway.
|
||||||
# Packets that do not match any route in the sending instance's routing table
|
# Packets that do not match any route in the sending instance's routing table
|
||||||
# are dropped.
|
# are dropped. (== resource_for beta.routes ==) (== resource_for v1.routes ==)
|
||||||
class Route
|
class Route
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -19898,11 +20078,6 @@ module Google
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :src_ip_ranges
|
attr_accessor :src_ip_ranges
|
||||||
|
|
||||||
# Match by country or region code.
|
|
||||||
# Corresponds to the JSON property `srcRegionCodes`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :src_region_codes
|
|
||||||
|
|
||||||
# Preconfigured versioned expression. If this field is specified, config must
|
# Preconfigured versioned expression. If this field is specified, config must
|
||||||
# also be specified. Available preconfigured expressions along with their
|
# also be specified. Available preconfigured expressions along with their
|
||||||
# requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range
|
# requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range
|
||||||
|
@ -19920,7 +20095,6 @@ module Google
|
||||||
@config = args[:config] if args.key?(:config)
|
@config = args[:config] if args.key?(:config)
|
||||||
@expr = args[:expr] if args.key?(:expr)
|
@expr = args[:expr] if args.key?(:expr)
|
||||||
@src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
|
@src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
|
||||||
@src_region_codes = args[:src_region_codes] if args.key?(:src_region_codes)
|
|
||||||
@versioned_expr = args[:versioned_expr] if args.key?(:versioned_expr)
|
@versioned_expr = args[:versioned_expr] if args.key?(:versioned_expr)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -20074,7 +20248,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A persistent disk snapshot resource.
|
# A persistent disk snapshot resource. (== resource_for beta.snapshots ==) (==
|
||||||
|
# resource_for v1.snapshots ==)
|
||||||
class Snapshot
|
class Snapshot
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -20192,6 +20367,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :storage_bytes_status
|
attr_accessor :storage_bytes_status
|
||||||
|
|
||||||
|
# GCS bucket storage location of the snapshot (regional or multi-regional).
|
||||||
|
# Corresponds to the JSON property `storageLocations`
|
||||||
|
# @return [Array<String>]
|
||||||
|
attr_accessor :storage_locations
|
||||||
|
|
||||||
def initialize(**args)
|
def initialize(**args)
|
||||||
update!(**args)
|
update!(**args)
|
||||||
end
|
end
|
||||||
|
@ -20216,6 +20396,7 @@ module Google
|
||||||
@status = args[:status] if args.key?(:status)
|
@status = args[:status] if args.key?(:status)
|
||||||
@storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
|
@storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
|
||||||
@storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status)
|
@storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status)
|
||||||
|
@storage_locations = args[:storage_locations] if args.key?(:storage_locations)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -20361,7 +20542,8 @@ module Google
|
||||||
|
|
||||||
# An SslCertificate resource. This resource provides a mechanism to upload an
|
# An SslCertificate resource. This resource provides a mechanism to upload an
|
||||||
# SSL key and certificate to the load balancer to serve secure connections from
|
# SSL key and certificate to the load balancer to serve secure connections from
|
||||||
# the user.
|
# the user. (== resource_for beta.sslCertificates ==) (== resource_for v1.
|
||||||
|
# sslCertificates ==)
|
||||||
class SslCertificate
|
class SslCertificate
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -20935,7 +21117,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A Subnetwork resource.
|
# A Subnetwork resource. (== resource_for beta.subnetworks ==) (== resource_for
|
||||||
|
# v1.subnetworks ==)
|
||||||
class Subnetwork
|
class Subnetwork
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -21571,7 +21754,9 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A TargetHttpProxy resource. This resource defines an HTTP proxy.
|
# A TargetHttpProxy resource. This resource defines an HTTP proxy. (==
|
||||||
|
# resource_for beta.targetHttpProxies ==) (== resource_for v1.targetHttpProxies =
|
||||||
|
# =)
|
||||||
class TargetHttpProxy
|
class TargetHttpProxy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -21792,7 +21977,9 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A TargetHttpsProxy resource. This resource defines an HTTPS proxy.
|
# A TargetHttpsProxy resource. This resource defines an HTTPS proxy. (==
|
||||||
|
# resource_for beta.targetHttpsProxies ==) (== resource_for v1.
|
||||||
|
# targetHttpsProxies ==)
|
||||||
class TargetHttpsProxy
|
class TargetHttpsProxy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -22014,7 +22201,8 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# A TargetInstance resource. This resource defines an endpoint instance that
|
# A TargetInstance resource. This resource defines an endpoint instance that
|
||||||
# terminates traffic of certain protocols.
|
# terminates traffic of certain protocols. (== resource_for beta.targetInstances
|
||||||
|
# ==) (== resource_for v1.targetInstances ==)
|
||||||
class TargetInstance
|
class TargetInstance
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -22423,7 +22611,8 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# A TargetPool resource. This resource defines a pool of instances, an
|
# A TargetPool resource. This resource defines a pool of instances, an
|
||||||
# associated HttpHealthCheck resource, and the fallback target pool.
|
# associated HttpHealthCheck resource, and the fallback target pool. (==
|
||||||
|
# resource_for beta.targetPools ==) (== resource_for v1.targetPools ==)
|
||||||
class TargetPool
|
class TargetPool
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -23062,7 +23251,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A TargetSslProxy resource. This resource defines an SSL proxy.
|
# A TargetSslProxy resource. This resource defines an SSL proxy. (==
|
||||||
|
# resource_for beta.targetSslProxies ==) (== resource_for v1.targetSslProxies ==)
|
||||||
class TargetSslProxy
|
class TargetSslProxy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -23310,7 +23500,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A TargetTcpProxy resource. This resource defines a TCP proxy.
|
# A TargetTcpProxy resource. This resource defines a TCP proxy. (== resource_for
|
||||||
|
# beta.targetTcpProxies ==) (== resource_for v1.targetTcpProxies ==)
|
||||||
class TargetTcpProxy
|
class TargetTcpProxy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -23497,7 +23688,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Represents a Target VPN gateway resource.
|
# Represents a Target VPN gateway resource. (== resource_for beta.
|
||||||
|
# targetVpnGateways ==) (== resource_for v1.targetVpnGateways ==)
|
||||||
class TargetVpnGateway
|
class TargetVpnGateway
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -24605,7 +24797,8 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
# VPN tunnel resource. (== resource_for beta.vpnTunnels ==) (== resource_for v1.
|
||||||
|
# vpnTunnels ==)
|
||||||
class VpnTunnel
|
class VpnTunnel
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -25223,7 +25416,7 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A Zone resource.
|
# A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones ==)
|
||||||
class Zone
|
class Zone
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
|
|
@ -1498,6 +1498,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class InstancesResumeRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class InstancesScopedList
|
class InstancesScopedList
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -1600,6 +1606,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachmentPartnerMetadata
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class InterconnectAttachmentPrivateInfo
|
class InterconnectAttachmentPrivateInfo
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -3830,6 +3842,8 @@ module Google
|
||||||
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
|
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
|
||||||
|
|
||||||
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
||||||
|
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation
|
||||||
|
|
||||||
property :index, as: 'index'
|
property :index, as: 'index'
|
||||||
property :initialize_params, as: 'initializeParams', class: Google::Apis::ComputeAlpha::AttachedDiskInitializeParams, decorator: Google::Apis::ComputeAlpha::AttachedDiskInitializeParams::Representation
|
property :initialize_params, as: 'initializeParams', class: Google::Apis::ComputeAlpha::AttachedDiskInitializeParams, decorator: Google::Apis::ComputeAlpha::AttachedDiskInitializeParams::Representation
|
||||||
|
|
||||||
|
@ -3837,6 +3851,7 @@ module Google
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
collection :licenses, as: 'licenses'
|
collection :licenses, as: 'licenses'
|
||||||
property :mode, as: 'mode'
|
property :mode, as: 'mode'
|
||||||
|
property :saved_state, as: 'savedState'
|
||||||
property :source, as: 'source'
|
property :source, as: 'source'
|
||||||
property :type, as: 'type'
|
property :type, as: 'type'
|
||||||
end
|
end
|
||||||
|
@ -3890,6 +3905,7 @@ module Google
|
||||||
property :id, :numeric_string => true, as: 'id'
|
property :id, :numeric_string => true, as: 'id'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
property :recommended_size, as: 'recommendedSize'
|
||||||
property :region, as: 'region'
|
property :region, as: 'region'
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
property :status, as: 'status'
|
property :status, as: 'status'
|
||||||
|
@ -6356,6 +6372,16 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class InstancesResumeRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::CustomerEncryptionKeyProtectedDisk, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKeyProtectedDisk::Representation
|
||||||
|
|
||||||
|
property :instance_encryption_key, as: 'instanceEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class InstancesScopedList
|
class InstancesScopedList
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -6449,6 +6475,8 @@ module Google
|
||||||
collection :interconnect_attachments, as: 'interconnectAttachments'
|
collection :interconnect_attachments, as: 'interconnectAttachments'
|
||||||
property :interconnect_type, as: 'interconnectType'
|
property :interconnect_type, as: 'interconnectType'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
property :link_type, as: 'linkType'
|
property :link_type, as: 'linkType'
|
||||||
property :location, as: 'location'
|
property :location, as: 'location'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
@ -6458,6 +6486,7 @@ module Google
|
||||||
property :provisioned_link_count, as: 'provisionedLinkCount'
|
property :provisioned_link_count, as: 'provisionedLinkCount'
|
||||||
property :requested_link_count, as: 'requestedLinkCount'
|
property :requested_link_count, as: 'requestedLinkCount'
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
|
property :state, as: 'state'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -6476,9 +6505,14 @@ module Google
|
||||||
property :id, :numeric_string => true, as: 'id'
|
property :id, :numeric_string => true, as: 'id'
|
||||||
property :interconnect, as: 'interconnect'
|
property :interconnect, as: 'interconnect'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :operational_status, as: 'operationalStatus'
|
property :operational_status, as: 'operationalStatus'
|
||||||
property :pairing_key, as: 'pairingKey'
|
property :pairing_key, as: 'pairingKey'
|
||||||
|
property :partner_asn, :numeric_string => true, as: 'partnerAsn'
|
||||||
|
property :partner_metadata, as: 'partnerMetadata', class: Google::Apis::ComputeAlpha::InterconnectAttachmentPartnerMetadata, decorator: Google::Apis::ComputeAlpha::InterconnectAttachmentPartnerMetadata::Representation
|
||||||
|
|
||||||
property :private_interconnect_info, as: 'privateInterconnectInfo', class: Google::Apis::ComputeAlpha::InterconnectAttachmentPrivateInfo, decorator: Google::Apis::ComputeAlpha::InterconnectAttachmentPrivateInfo::Representation
|
property :private_interconnect_info, as: 'privateInterconnectInfo', class: Google::Apis::ComputeAlpha::InterconnectAttachmentPrivateInfo, decorator: Google::Apis::ComputeAlpha::InterconnectAttachmentPrivateInfo::Representation
|
||||||
|
|
||||||
property :region, as: 'region'
|
property :region, as: 'region'
|
||||||
|
@ -6554,6 +6588,15 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class InterconnectAttachmentPartnerMetadata
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :interconnect_name, as: 'interconnectName'
|
||||||
|
property :partner_name, as: 'partnerName'
|
||||||
|
property :portal_url, as: 'portalUrl'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class InterconnectAttachmentPrivateInfo
|
class InterconnectAttachmentPrivateInfo
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -8574,7 +8617,6 @@ module Google
|
||||||
property :expr, as: 'expr', class: Google::Apis::ComputeAlpha::Expr, decorator: Google::Apis::ComputeAlpha::Expr::Representation
|
property :expr, as: 'expr', class: Google::Apis::ComputeAlpha::Expr, decorator: Google::Apis::ComputeAlpha::Expr::Representation
|
||||||
|
|
||||||
collection :src_ip_ranges, as: 'srcIpRanges'
|
collection :src_ip_ranges, as: 'srcIpRanges'
|
||||||
collection :src_region_codes, as: 'srcRegionCodes'
|
|
||||||
property :versioned_expr, as: 'versionedExpr'
|
property :versioned_expr, as: 'versionedExpr'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -8644,6 +8686,7 @@ module Google
|
||||||
property :status, as: 'status'
|
property :status, as: 'status'
|
||||||
property :storage_bytes, :numeric_string => true, as: 'storageBytes'
|
property :storage_bytes, :numeric_string => true, as: 'storageBytes'
|
||||||
property :storage_bytes_status, as: 'storageBytesStatus'
|
property :storage_bytes_status, as: 'storageBytesStatus'
|
||||||
|
collection :storage_locations, as: 'storageLocations'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2974,7 +2974,8 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Resizes the specified persistent disk.
|
# Resizes the specified persistent disk. You can only increase the size of the
|
||||||
|
# disk.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] zone
|
# @param [String] zone
|
||||||
|
@ -10292,6 +10293,62 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Resumes an instance that was suspended using the instances().suspend method.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] zone
|
||||||
|
# The name of the zone for this request.
|
||||||
|
# @param [String] instance
|
||||||
|
# Name of the instance resource to resume.
|
||||||
|
# @param [Google::Apis::ComputeAlpha::InstancesResumeRequest] instances_resume_request_object
|
||||||
|
# @param [String] request_id
|
||||||
|
# An optional request ID to identify requests. Specify a unique request ID so
|
||||||
|
# that if you must retry your request, the server will know to ignore the
|
||||||
|
# request if it has already been completed.
|
||||||
|
# For example, consider a situation where you make an initial request and the
|
||||||
|
# request times out. If you make the request again with the same request ID, the
|
||||||
|
# server can check if original operation with the same request ID was received,
|
||||||
|
# and if so, will ignore the second request. This prevents clients from
|
||||||
|
# accidentally creating duplicate commitments.
|
||||||
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||||
|
# supported (00000000-0000-0000-0000-000000000000).
|
||||||
|
# @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::ComputeAlpha::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::Operation]
|
||||||
|
#
|
||||||
|
# @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 resume_instance(project, zone, instance, instances_resume_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/resume', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeAlpha::InstancesResumeRequest::Representation
|
||||||
|
command.request_object = instances_resume_request_object
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['zone'] = zone unless zone.nil?
|
||||||
|
command.params['instance'] = instance unless instance.nil?
|
||||||
|
command.query['requestId'] = request_id unless request_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
|
||||||
|
|
||||||
# Sets deletion protection on the instance.
|
# Sets deletion protection on the instance.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
|
@ -11748,6 +11805,64 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Updates the specified interconnect attachment with the data included in the
|
||||||
|
# request. This method supports PATCH semantics and uses the JSON merge patch
|
||||||
|
# format and processing rules.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] region
|
||||||
|
# Name of the region scoping this request.
|
||||||
|
# @param [String] interconnect_attachment
|
||||||
|
# Name of the interconnect attachment to patch.
|
||||||
|
# @param [Google::Apis::ComputeAlpha::InterconnectAttachment] interconnect_attachment_object
|
||||||
|
# @param [String] request_id
|
||||||
|
# An optional request ID to identify requests. Specify a unique request ID so
|
||||||
|
# that if you must retry your request, the server will know to ignore the
|
||||||
|
# request if it has already been completed.
|
||||||
|
# For example, consider a situation where you make an initial request and the
|
||||||
|
# request times out. If you make the request again with the same request ID, the
|
||||||
|
# server can check if original operation with the same request ID was received,
|
||||||
|
# and if so, will ignore the second request. This prevents clients from
|
||||||
|
# accidentally creating duplicate commitments.
|
||||||
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||||
|
# supported (00000000-0000-0000-0000-000000000000).
|
||||||
|
# @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::ComputeAlpha::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::Operation]
|
||||||
|
#
|
||||||
|
# @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_interconnect_attachment(project, region, interconnect_attachment, interconnect_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:patch, '{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeAlpha::InterconnectAttachment::Representation
|
||||||
|
command.request_object = interconnect_attachment_object
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['region'] = region unless region.nil?
|
||||||
|
command.params['interconnectAttachment'] = interconnect_attachment unless interconnect_attachment.nil?
|
||||||
|
command.query['requestId'] = request_id unless request_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
|
||||||
|
|
||||||
# Sets the access control policy on the specified resource. Replaces any
|
# Sets the access control policy on the specified resource. Replaces any
|
||||||
# existing policy.
|
# existing policy.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
|
@ -11793,6 +11908,63 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Sets the labels on an InterconnectAttachment. To learn more about labels, read
|
||||||
|
# the Labeling Resources documentation.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] region
|
||||||
|
# The region for this request.
|
||||||
|
# @param [String] resource
|
||||||
|
# Name of the resource for this request.
|
||||||
|
# @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
|
||||||
|
# @param [String] request_id
|
||||||
|
# An optional request ID to identify requests. Specify a unique request ID so
|
||||||
|
# that if you must retry your request, the server will know to ignore the
|
||||||
|
# request if it has already been completed.
|
||||||
|
# For example, consider a situation where you make an initial request and the
|
||||||
|
# request times out. If you make the request again with the same request ID, the
|
||||||
|
# server can check if original operation with the same request ID was received,
|
||||||
|
# and if so, will ignore the second request. This prevents clients from
|
||||||
|
# accidentally creating duplicate commitments.
|
||||||
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
||||||
|
# supported (00000000-0000-0000-0000-000000000000).
|
||||||
|
# @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::ComputeAlpha::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::Operation]
|
||||||
|
#
|
||||||
|
# @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 set_interconnect_attachment_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/regions/{region}/interconnectAttachments/{resource}/setLabels', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
|
||||||
|
command.request_object = region_set_labels_request_object
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['region'] = region unless region.nil?
|
||||||
|
command.params['resource'] = resource unless resource.nil?
|
||||||
|
command.query['requestId'] = request_id unless request_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
|
||||||
|
|
||||||
# Returns permissions that a caller has on the specified resource.
|
# Returns permissions that a caller has on the specified resource.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
|
@ -12346,6 +12518,48 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Sets the labels on an Interconnect. To learn more about labels, read the
|
||||||
|
# Labeling Resources documentation.
|
||||||
|
# @param [String] project
|
||||||
|
# Project ID for this request.
|
||||||
|
# @param [String] resource
|
||||||
|
# Name of the resource for this request.
|
||||||
|
# @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_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::ComputeAlpha::Operation] parsed result object
|
||||||
|
# @yieldparam err [StandardError] error object if request failed
|
||||||
|
#
|
||||||
|
# @return [Google::Apis::ComputeAlpha::Operation]
|
||||||
|
#
|
||||||
|
# @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 set_interconnect_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||||
|
command = make_simple_command(:post, '{project}/global/interconnects/{resource}/setLabels', options)
|
||||||
|
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation
|
||||||
|
command.request_object = global_set_labels_request_object
|
||||||
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
||||||
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
||||||
|
command.params['project'] = project unless project.nil?
|
||||||
|
command.params['resource'] = resource unless resource.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
|
||||||
|
|
||||||
# Returns permissions that a caller has on the specified resource.
|
# Returns permissions that a caller has on the specified resource.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
|
@ -14442,7 +14656,8 @@ module Google
|
||||||
execute_or_queue_command(command, &block)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Patches the specified network with the data included in the request.
|
# Patches the specified network with the data included in the request. Only the
|
||||||
|
# following fields can be modified: routingConfig.routingMode.
|
||||||
# @param [String] project
|
# @param [String] project
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] network
|
# @param [String] network
|
||||||
|
|
|
@ -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 = '20171127'
|
REVISION = '20171207'
|
||||||
|
|
||||||
# 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'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -292,6 +292,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class BackendBucketCdnPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class BackendBucketList
|
class BackendBucketList
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -520,6 +526,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class DiskInstantiationConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class DiskList
|
class DiskList
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -2008,6 +2020,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class RouterAdvertisedIpRange
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class RouterAggregatedList
|
class RouterAggregatedList
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -2164,6 +2182,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SecurityPolicyRuleMatcherConfig
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class SerialPortOutput
|
class SerialPortOutput
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -2176,6 +2200,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SignedUrlKey
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Snapshot
|
class Snapshot
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -2200,6 +2230,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SourceInstanceParams
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class SslCertificate
|
class SslCertificate
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -2224,6 +2260,54 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SslPoliciesList
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SslPoliciesListAvailableFeaturesResponse
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SslPolicy
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
|
class SslPolicyReference
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class Subnetwork
|
class Subnetwork
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -2338,6 +2422,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TargetHttpsProxiesSetQuicOverrideRequest
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
|
end
|
||||||
|
|
||||||
class TargetHttpsProxiesSetSslCertificatesRequest
|
class TargetHttpsProxiesSetSslCertificatesRequest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -3346,6 +3436,8 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :bucket_name, as: 'bucketName'
|
property :bucket_name, as: 'bucketName'
|
||||||
|
property :cdn_policy, as: 'cdnPolicy', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicy, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicy::Representation
|
||||||
|
|
||||||
property :creation_timestamp, as: 'creationTimestamp'
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
property :description, as: 'description'
|
property :description, as: 'description'
|
||||||
property :enable_cdn, as: 'enableCdn'
|
property :enable_cdn, as: 'enableCdn'
|
||||||
|
@ -3356,6 +3448,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class BackendBucketCdnPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
|
||||||
|
collection :signed_url_key_names, as: 'signedUrlKeyNames'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class BackendBucketList
|
class BackendBucketList
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -3457,6 +3557,8 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeBeta::CacheKeyPolicy, decorator: Google::Apis::ComputeBeta::CacheKeyPolicy::Representation
|
property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeBeta::CacheKeyPolicy, decorator: Google::Apis::ComputeBeta::CacheKeyPolicy::Representation
|
||||||
|
|
||||||
|
property :signed_url_cache_max_age_sec, :numeric_string => true, as: 'signedUrlCacheMaxAgeSec'
|
||||||
|
collection :signed_url_key_names, as: 'signedUrlKeyNames'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3795,6 +3897,16 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class DiskInstantiationConfig
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :auto_delete, as: 'autoDelete'
|
||||||
|
property :device_name, as: 'deviceName'
|
||||||
|
property :instantiate_from, as: 'instantiateFrom'
|
||||||
|
property :source_image, as: 'sourceImage'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class DiskList
|
class DiskList
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -5114,6 +5226,9 @@ module Google
|
||||||
property :properties, as: 'properties', class: Google::Apis::ComputeBeta::InstanceProperties, decorator: Google::Apis::ComputeBeta::InstanceProperties::Representation
|
property :properties, as: 'properties', class: Google::Apis::ComputeBeta::InstanceProperties, decorator: Google::Apis::ComputeBeta::InstanceProperties::Representation
|
||||||
|
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
|
property :source_instance, as: 'sourceInstance'
|
||||||
|
property :source_instance_params, as: 'sourceInstanceParams', class: Google::Apis::ComputeBeta::SourceInstanceParams, decorator: Google::Apis::ComputeBeta::SourceInstanceParams::Representation
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -6532,6 +6647,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class RouterAdvertisedIpRange
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :description, as: 'description'
|
||||||
|
property :range, as: 'range'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class RouterAggregatedList
|
class RouterAggregatedList
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -6567,6 +6690,10 @@ module Google
|
||||||
class RouterBgp
|
class RouterBgp
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :advertise_mode, as: 'advertiseMode'
|
||||||
|
collection :advertised_groups, as: 'advertisedGroups'
|
||||||
|
collection :advertised_ip_ranges, as: 'advertisedIpRanges', class: Google::Apis::ComputeBeta::RouterAdvertisedIpRange, decorator: Google::Apis::ComputeBeta::RouterAdvertisedIpRange::Representation
|
||||||
|
|
||||||
property :asn, as: 'asn'
|
property :asn, as: 'asn'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -6574,6 +6701,10 @@ module Google
|
||||||
class RouterBgpPeer
|
class RouterBgpPeer
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :advertise_mode, as: 'advertiseMode'
|
||||||
|
collection :advertised_groups, as: 'advertisedGroups'
|
||||||
|
collection :advertised_ip_ranges, as: 'advertisedIpRanges', class: Google::Apis::ComputeBeta::RouterAdvertisedIpRange, decorator: Google::Apis::ComputeBeta::RouterAdvertisedIpRange::Representation
|
||||||
|
|
||||||
property :advertised_route_priority, as: 'advertisedRoutePriority'
|
property :advertised_route_priority, as: 'advertisedRoutePriority'
|
||||||
property :interface_name, as: 'interfaceName'
|
property :interface_name, as: 'interfaceName'
|
||||||
property :ip_address, as: 'ipAddress'
|
property :ip_address, as: 'ipAddress'
|
||||||
|
@ -6802,6 +6933,16 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
class SecurityPolicyRuleMatcher
|
class SecurityPolicyRuleMatcher
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :config, as: 'config', class: Google::Apis::ComputeBeta::SecurityPolicyRuleMatcherConfig, decorator: Google::Apis::ComputeBeta::SecurityPolicyRuleMatcherConfig::Representation
|
||||||
|
|
||||||
|
collection :src_ip_ranges, as: 'srcIpRanges'
|
||||||
|
property :versioned_expr, as: 'versionedExpr'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SecurityPolicyRuleMatcherConfig
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :src_ip_ranges, as: 'srcIpRanges'
|
collection :src_ip_ranges, as: 'srcIpRanges'
|
||||||
|
@ -6827,6 +6968,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SignedUrlKey
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key_name, as: 'keyName'
|
||||||
|
property :key_value, as: 'keyValue'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Snapshot
|
class Snapshot
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -6885,6 +7034,14 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SourceInstanceParams
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :disk_configs, as: 'diskConfigs', class: Google::Apis::ComputeBeta::DiskInstantiationConfig, decorator: Google::Apis::ComputeBeta::DiskInstantiationConfig::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class SslCertificate
|
class SslCertificate
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -6931,6 +7088,89 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class SslPoliciesList
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :id, as: 'id'
|
||||||
|
collection :items, as: 'items', class: Google::Apis::ComputeBeta::SslPolicy, decorator: Google::Apis::ComputeBeta::SslPolicy::Representation
|
||||||
|
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :next_page_token, as: 'nextPageToken'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
property :warning, as: 'warning', class: Google::Apis::ComputeBeta::SslPoliciesList::Warning, decorator: Google::Apis::ComputeBeta::SslPoliciesList::Warning::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :data, as: 'data', class: Google::Apis::ComputeBeta::SslPoliciesList::Warning::Datum, decorator: Google::Apis::ComputeBeta::SslPoliciesList::Warning::Datum::Representation
|
||||||
|
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SslPoliciesListAvailableFeaturesResponse
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
collection :features, as: 'features'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SslPolicy
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :creation_timestamp, as: 'creationTimestamp'
|
||||||
|
collection :custom_features, as: 'customFeatures'
|
||||||
|
property :description, as: 'description'
|
||||||
|
collection :enabled_features, as: 'enabledFeatures'
|
||||||
|
property :fingerprint, :base64 => true, as: 'fingerprint'
|
||||||
|
property :id, :numeric_string => true, as: 'id'
|
||||||
|
property :kind, as: 'kind'
|
||||||
|
property :min_tls_version, as: 'minTlsVersion'
|
||||||
|
property :name, as: 'name'
|
||||||
|
property :profile, as: 'profile'
|
||||||
|
property :self_link, as: 'selfLink'
|
||||||
|
collection :warnings, as: 'warnings', class: Google::Apis::ComputeBeta::SslPolicy::Warning, decorator: Google::Apis::ComputeBeta::SslPolicy::Warning::Representation
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
class Warning
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :code, as: 'code'
|
||||||
|
collection :data, as: 'data', class: Google::Apis::ComputeBeta::SslPolicy::Warning::Datum, decorator: Google::Apis::ComputeBeta::SslPolicy::Warning::Datum::Representation
|
||||||
|
|
||||||
|
property :message, as: 'message'
|
||||||
|
end
|
||||||
|
|
||||||
|
class Datum
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :key, as: 'key'
|
||||||
|
property :value, as: 'value'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SslPolicyReference
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :ssl_policy, as: 'sslPolicy'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class Subnetwork
|
class Subnetwork
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -7130,6 +7370,13 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class TargetHttpsProxiesSetQuicOverrideRequest
|
||||||
|
# @private
|
||||||
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
property :quic_override, as: 'quicOverride'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class TargetHttpsProxiesSetSslCertificatesRequest
|
class TargetHttpsProxiesSetSslCertificatesRequest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -7145,8 +7392,10 @@ module Google
|
||||||
property :id, :numeric_string => true, as: 'id'
|
property :id, :numeric_string => true, as: 'id'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
|
property :quic_override, as: 'quicOverride'
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
collection :ssl_certificates, as: 'sslCertificates'
|
collection :ssl_certificates, as: 'sslCertificates'
|
||||||
|
property :ssl_policy, as: 'sslPolicy'
|
||||||
property :url_map, as: 'urlMap'
|
property :url_map, as: 'urlMap'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -7481,6 +7730,7 @@ module Google
|
||||||
property :self_link, as: 'selfLink'
|
property :self_link, as: 'selfLink'
|
||||||
property :service, as: 'service'
|
property :service, as: 'service'
|
||||||
collection :ssl_certificates, as: 'sslCertificates'
|
collection :ssl_certificates, as: 'sslCertificates'
|
||||||
|
property :ssl_policy, as: 'sslPolicy'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -7584,6 +7834,8 @@ module Google
|
||||||
collection :forwarding_rules, as: 'forwardingRules'
|
collection :forwarding_rules, as: 'forwardingRules'
|
||||||
property :id, :numeric_string => true, as: 'id'
|
property :id, :numeric_string => true, as: 'id'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :network, as: 'network'
|
property :network, as: 'network'
|
||||||
property :region, as: 'region'
|
property :region, as: 'region'
|
||||||
|
@ -7832,6 +8084,8 @@ module Google
|
||||||
property :id, :numeric_string => true, as: 'id'
|
property :id, :numeric_string => true, as: 'id'
|
||||||
property :ike_version, as: 'ikeVersion'
|
property :ike_version, as: 'ikeVersion'
|
||||||
property :kind, as: 'kind'
|
property :kind, as: 'kind'
|
||||||
|
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
||||||
|
hash :labels, as: 'labels'
|
||||||
collection :local_traffic_selector, as: 'localTrafficSelector'
|
collection :local_traffic_selector, as: 'localTrafficSelector'
|
||||||
property :name, as: 'name'
|
property :name, as: 'name'
|
||||||
property :peer_ip, as: 'peerIp'
|
property :peer_ip, as: 'peerIp'
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,40 +0,0 @@
|
||||||
# Copyright 2015 Google Inc.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
require 'google/apis/consumersurveys_v2/service.rb'
|
|
||||||
require 'google/apis/consumersurveys_v2/classes.rb'
|
|
||||||
require 'google/apis/consumersurveys_v2/representations.rb'
|
|
||||||
|
|
||||||
module Google
|
|
||||||
module Apis
|
|
||||||
# Consumer Surveys API
|
|
||||||
#
|
|
||||||
# Creates and conducts surveys, lists the surveys that an authenticated user
|
|
||||||
# owns, and retrieves survey results and information about specified surveys.
|
|
||||||
#
|
|
||||||
module ConsumersurveysV2
|
|
||||||
VERSION = 'V2'
|
|
||||||
REVISION = '20170407'
|
|
||||||
|
|
||||||
# View and edit your surveys and results
|
|
||||||
AUTH_CONSUMERSURVEYS = 'https://www.googleapis.com/auth/consumersurveys'
|
|
||||||
|
|
||||||
# View the results for your surveys
|
|
||||||
AUTH_CONSUMERSURVEYS_READONLY = 'https://www.googleapis.com/auth/consumersurveys.readonly'
|
|
||||||
|
|
||||||
# View your email address
|
|
||||||
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,736 +0,0 @@
|
||||||
# Copyright 2015 Google Inc.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
require 'date'
|
|
||||||
require 'google/apis/core/base_service'
|
|
||||||
require 'google/apis/core/json_representation'
|
|
||||||
require 'google/apis/core/hashable'
|
|
||||||
require 'google/apis/errors'
|
|
||||||
|
|
||||||
module Google
|
|
||||||
module Apis
|
|
||||||
module ConsumersurveysV2
|
|
||||||
|
|
||||||
#
|
|
||||||
class FieldMask
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `fields`
|
|
||||||
# @return [Array<Google::Apis::ConsumersurveysV2::FieldMask>]
|
|
||||||
attr_accessor :fields
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `id`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :id
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@fields = args[:fields] if args.key?(:fields)
|
|
||||||
@id = args[:id] if args.key?(:id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class MobileAppPanel
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `country`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :country
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `isPublicPanel`
|
|
||||||
# @return [Boolean]
|
|
||||||
attr_accessor :is_public_panel
|
|
||||||
alias_method :is_public_panel?, :is_public_panel
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `language`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :language
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `mobileAppPanelId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :mobile_app_panel_id
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `name`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :name
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `owners`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :owners
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@country = args[:country] if args.key?(:country)
|
|
||||||
@is_public_panel = args[:is_public_panel] if args.key?(:is_public_panel)
|
|
||||||
@language = args[:language] if args.key?(:language)
|
|
||||||
@mobile_app_panel_id = args[:mobile_app_panel_id] if args.key?(:mobile_app_panel_id)
|
|
||||||
@name = args[:name] if args.key?(:name)
|
|
||||||
@owners = args[:owners] if args.key?(:owners)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class MobileAppPanelsListResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `pageInfo`
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::PageInfo]
|
|
||||||
attr_accessor :page_info
|
|
||||||
|
|
||||||
# Unique request ID used for logging and debugging. Please include in any error
|
|
||||||
# reporting or troubleshooting requests.
|
|
||||||
# Corresponds to the JSON property `requestId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :request_id
|
|
||||||
|
|
||||||
# An individual predefined panel of Opinion Rewards mobile users.
|
|
||||||
# Corresponds to the JSON property `resources`
|
|
||||||
# @return [Array<Google::Apis::ConsumersurveysV2::MobileAppPanel>]
|
|
||||||
attr_accessor :resources
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `tokenPagination`
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::TokenPagination]
|
|
||||||
attr_accessor :token_pagination
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@page_info = args[:page_info] if args.key?(:page_info)
|
|
||||||
@request_id = args[:request_id] if args.key?(:request_id)
|
|
||||||
@resources = args[:resources] if args.key?(:resources)
|
|
||||||
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class PageInfo
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `resultPerPage`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :result_per_page
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `startIndex`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :start_index
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `totalResults`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :total_results
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@result_per_page = args[:result_per_page] if args.key?(:result_per_page)
|
|
||||||
@start_index = args[:start_index] if args.key?(:start_index)
|
|
||||||
@total_results = args[:total_results] if args.key?(:total_results)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class ResultsGetRequest
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `resultMask`
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::ResultsMask]
|
|
||||||
attr_accessor :result_mask
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@result_mask = args[:result_mask] if args.key?(:result_mask)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class ResultsMask
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `fields`
|
|
||||||
# @return [Array<Google::Apis::ConsumersurveysV2::FieldMask>]
|
|
||||||
attr_accessor :fields
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `projection`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :projection
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@fields = args[:fields] if args.key?(:fields)
|
|
||||||
@projection = args[:projection] if args.key?(:projection)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class Survey
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `audience`
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::SurveyAudience]
|
|
||||||
attr_accessor :audience
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `cost`
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::SurveyCost]
|
|
||||||
attr_accessor :cost
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `customerData`
|
|
||||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :customer_data
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `description`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :description
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `owners`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :owners
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `questions`
|
|
||||||
# @return [Array<Google::Apis::ConsumersurveysV2::SurveyQuestion>]
|
|
||||||
attr_accessor :questions
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `rejectionReason`
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::SurveyRejection]
|
|
||||||
attr_accessor :rejection_reason
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `state`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :state
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `surveyUrlId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :survey_url_id
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `title`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :title
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `wantedResponseCount`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :wanted_response_count
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@audience = args[:audience] if args.key?(:audience)
|
|
||||||
@cost = args[:cost] if args.key?(:cost)
|
|
||||||
@customer_data = args[:customer_data] if args.key?(:customer_data)
|
|
||||||
@description = args[:description] if args.key?(:description)
|
|
||||||
@owners = args[:owners] if args.key?(:owners)
|
|
||||||
@questions = args[:questions] if args.key?(:questions)
|
|
||||||
@rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
|
|
||||||
@state = args[:state] if args.key?(:state)
|
|
||||||
@survey_url_id = args[:survey_url_id] if args.key?(:survey_url_id)
|
|
||||||
@title = args[:title] if args.key?(:title)
|
|
||||||
@wanted_response_count = args[:wanted_response_count] if args.key?(:wanted_response_count)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class SurveyAudience
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `ages`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :ages
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `country`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :country
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `countrySubdivision`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :country_subdivision
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `gender`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :gender
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `languages`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :languages
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `mobileAppPanelId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :mobile_app_panel_id
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `populationSource`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :population_source
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@ages = args[:ages] if args.key?(:ages)
|
|
||||||
@country = args[:country] if args.key?(:country)
|
|
||||||
@country_subdivision = args[:country_subdivision] if args.key?(:country_subdivision)
|
|
||||||
@gender = args[:gender] if args.key?(:gender)
|
|
||||||
@languages = args[:languages] if args.key?(:languages)
|
|
||||||
@mobile_app_panel_id = args[:mobile_app_panel_id] if args.key?(:mobile_app_panel_id)
|
|
||||||
@population_source = args[:population_source] if args.key?(:population_source)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class SurveyCost
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `costPerResponseNanos`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :cost_per_response_nanos
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `currencyCode`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :currency_code
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `maxCostPerResponseNanos`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :max_cost_per_response_nanos
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `nanos`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :nanos
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@cost_per_response_nanos = args[:cost_per_response_nanos] if args.key?(:cost_per_response_nanos)
|
|
||||||
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
|
||||||
@max_cost_per_response_nanos = args[:max_cost_per_response_nanos] if args.key?(:max_cost_per_response_nanos)
|
|
||||||
@nanos = args[:nanos] if args.key?(:nanos)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class SurveyQuestion
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `answerOrder`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :answer_order
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `answers`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :answers
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `hasOther`
|
|
||||||
# @return [Boolean]
|
|
||||||
attr_accessor :has_other
|
|
||||||
alias_method :has_other?, :has_other
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `highValueLabel`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :high_value_label
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `images`
|
|
||||||
# @return [Array<Google::Apis::ConsumersurveysV2::SurveyQuestionImage>]
|
|
||||||
attr_accessor :images
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `lastAnswerPositionPinned`
|
|
||||||
# @return [Boolean]
|
|
||||||
attr_accessor :last_answer_position_pinned
|
|
||||||
alias_method :last_answer_position_pinned?, :last_answer_position_pinned
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `lowValueLabel`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :low_value_label
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `mustPickSuggestion`
|
|
||||||
# @return [Boolean]
|
|
||||||
attr_accessor :must_pick_suggestion
|
|
||||||
alias_method :must_pick_suggestion?, :must_pick_suggestion
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `numStars`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :num_stars
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `openTextPlaceholder`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :open_text_placeholder
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `openTextSuggestions`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :open_text_suggestions
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `question`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :question
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `sentimentText`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :sentiment_text
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `singleLineResponse`
|
|
||||||
# @return [Boolean]
|
|
||||||
attr_accessor :single_line_response
|
|
||||||
alias_method :single_line_response?, :single_line_response
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `thresholdAnswers`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :threshold_answers
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `type`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :type
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `unitOfMeasurementLabel`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :unit_of_measurement_label
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `videoId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :video_id
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@answer_order = args[:answer_order] if args.key?(:answer_order)
|
|
||||||
@answers = args[:answers] if args.key?(:answers)
|
|
||||||
@has_other = args[:has_other] if args.key?(:has_other)
|
|
||||||
@high_value_label = args[:high_value_label] if args.key?(:high_value_label)
|
|
||||||
@images = args[:images] if args.key?(:images)
|
|
||||||
@last_answer_position_pinned = args[:last_answer_position_pinned] if args.key?(:last_answer_position_pinned)
|
|
||||||
@low_value_label = args[:low_value_label] if args.key?(:low_value_label)
|
|
||||||
@must_pick_suggestion = args[:must_pick_suggestion] if args.key?(:must_pick_suggestion)
|
|
||||||
@num_stars = args[:num_stars] if args.key?(:num_stars)
|
|
||||||
@open_text_placeholder = args[:open_text_placeholder] if args.key?(:open_text_placeholder)
|
|
||||||
@open_text_suggestions = args[:open_text_suggestions] if args.key?(:open_text_suggestions)
|
|
||||||
@question = args[:question] if args.key?(:question)
|
|
||||||
@sentiment_text = args[:sentiment_text] if args.key?(:sentiment_text)
|
|
||||||
@single_line_response = args[:single_line_response] if args.key?(:single_line_response)
|
|
||||||
@threshold_answers = args[:threshold_answers] if args.key?(:threshold_answers)
|
|
||||||
@type = args[:type] if args.key?(:type)
|
|
||||||
@unit_of_measurement_label = args[:unit_of_measurement_label] if args.key?(:unit_of_measurement_label)
|
|
||||||
@video_id = args[:video_id] if args.key?(:video_id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class SurveyQuestionImage
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `altText`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :alt_text
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `data`
|
|
||||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :data
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `url`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :url
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@alt_text = args[:alt_text] if args.key?(:alt_text)
|
|
||||||
@data = args[:data] if args.key?(:data)
|
|
||||||
@url = args[:url] if args.key?(:url)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class SurveyRejection
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `explanation`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :explanation
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `type`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :type
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@explanation = args[:explanation] if args.key?(:explanation)
|
|
||||||
@type = args[:type] if args.key?(:type)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class SurveyResults
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `status`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :status
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `surveyUrlId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :survey_url_id
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@status = args[:status] if args.key?(:status)
|
|
||||||
@survey_url_id = args[:survey_url_id] if args.key?(:survey_url_id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class SurveysDeleteResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Unique request ID used for logging and debugging. Please include in any error
|
|
||||||
# reporting or troubleshooting requests.
|
|
||||||
# Corresponds to the JSON property `requestId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :request_id
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@request_id = args[:request_id] if args.key?(:request_id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class SurveysListResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `pageInfo`
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::PageInfo]
|
|
||||||
attr_accessor :page_info
|
|
||||||
|
|
||||||
# Unique request ID used for logging and debugging. Please include in any error
|
|
||||||
# reporting or troubleshooting requests.
|
|
||||||
# Corresponds to the JSON property `requestId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :request_id
|
|
||||||
|
|
||||||
# An individual survey resource.
|
|
||||||
# Corresponds to the JSON property `resources`
|
|
||||||
# @return [Array<Google::Apis::ConsumersurveysV2::Survey>]
|
|
||||||
attr_accessor :resources
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `tokenPagination`
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::TokenPagination]
|
|
||||||
attr_accessor :token_pagination
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@page_info = args[:page_info] if args.key?(:page_info)
|
|
||||||
@request_id = args[:request_id] if args.key?(:request_id)
|
|
||||||
@resources = args[:resources] if args.key?(:resources)
|
|
||||||
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class SurveysStartRequest
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Threshold to start a survey automically if the quoted prices is less than or
|
|
||||||
# equal to this value. See Survey.Cost for more details.
|
|
||||||
# Corresponds to the JSON property `maxCostPerResponseNanos`
|
|
||||||
# @return [Fixnum]
|
|
||||||
attr_accessor :max_cost_per_response_nanos
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@max_cost_per_response_nanos = args[:max_cost_per_response_nanos] if args.key?(:max_cost_per_response_nanos)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class SurveysStartResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Unique request ID used for logging and debugging. Please include in any error
|
|
||||||
# reporting or troubleshooting requests.
|
|
||||||
# Corresponds to the JSON property `requestId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :request_id
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@request_id = args[:request_id] if args.key?(:request_id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class SurveysStopResponse
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
# Unique request ID used for logging and debugging. Please include in any error
|
|
||||||
# reporting or troubleshooting requests.
|
|
||||||
# Corresponds to the JSON property `requestId`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :request_id
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@request_id = args[:request_id] if args.key?(:request_id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
|
||||||
class TokenPagination
|
|
||||||
include Google::Apis::Core::Hashable
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `nextPageToken`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :next_page_token
|
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `previousPageToken`
|
|
||||||
# @return [String]
|
|
||||||
attr_accessor :previous_page_token
|
|
||||||
|
|
||||||
def initialize(**args)
|
|
||||||
update!(**args)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Update properties of this object
|
|
||||||
def update!(**args)
|
|
||||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
||||||
@previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,343 +0,0 @@
|
||||||
# Copyright 2015 Google Inc.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
require 'date'
|
|
||||||
require 'google/apis/core/base_service'
|
|
||||||
require 'google/apis/core/json_representation'
|
|
||||||
require 'google/apis/core/hashable'
|
|
||||||
require 'google/apis/errors'
|
|
||||||
|
|
||||||
module Google
|
|
||||||
module Apis
|
|
||||||
module ConsumersurveysV2
|
|
||||||
|
|
||||||
class FieldMask
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class MobileAppPanel
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class MobileAppPanelsListResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class PageInfo
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ResultsGetRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ResultsMask
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Survey
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyAudience
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyCost
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyQuestion
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyQuestionImage
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyRejection
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyResults
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveysDeleteResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveysListResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveysStartRequest
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveysStartResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveysStopResponse
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class TokenPagination
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class FieldMask
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :fields, as: 'fields', class: Google::Apis::ConsumersurveysV2::FieldMask, decorator: Google::Apis::ConsumersurveysV2::FieldMask::Representation
|
|
||||||
|
|
||||||
property :id, as: 'id'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class MobileAppPanel
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :country, as: 'country'
|
|
||||||
property :is_public_panel, as: 'isPublicPanel'
|
|
||||||
property :language, as: 'language'
|
|
||||||
property :mobile_app_panel_id, as: 'mobileAppPanelId'
|
|
||||||
property :name, as: 'name'
|
|
||||||
collection :owners, as: 'owners'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class MobileAppPanelsListResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :page_info, as: 'pageInfo', class: Google::Apis::ConsumersurveysV2::PageInfo, decorator: Google::Apis::ConsumersurveysV2::PageInfo::Representation
|
|
||||||
|
|
||||||
property :request_id, as: 'requestId'
|
|
||||||
collection :resources, as: 'resources', class: Google::Apis::ConsumersurveysV2::MobileAppPanel, decorator: Google::Apis::ConsumersurveysV2::MobileAppPanel::Representation
|
|
||||||
|
|
||||||
property :token_pagination, as: 'tokenPagination', class: Google::Apis::ConsumersurveysV2::TokenPagination, decorator: Google::Apis::ConsumersurveysV2::TokenPagination::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class PageInfo
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :result_per_page, as: 'resultPerPage'
|
|
||||||
property :start_index, as: 'startIndex'
|
|
||||||
property :total_results, as: 'totalResults'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ResultsGetRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :result_mask, as: 'resultMask', class: Google::Apis::ConsumersurveysV2::ResultsMask, decorator: Google::Apis::ConsumersurveysV2::ResultsMask::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class ResultsMask
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :fields, as: 'fields', class: Google::Apis::ConsumersurveysV2::FieldMask, decorator: Google::Apis::ConsumersurveysV2::FieldMask::Representation
|
|
||||||
|
|
||||||
property :projection, as: 'projection'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Survey
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :audience, as: 'audience', class: Google::Apis::ConsumersurveysV2::SurveyAudience, decorator: Google::Apis::ConsumersurveysV2::SurveyAudience::Representation
|
|
||||||
|
|
||||||
property :cost, as: 'cost', class: Google::Apis::ConsumersurveysV2::SurveyCost, decorator: Google::Apis::ConsumersurveysV2::SurveyCost::Representation
|
|
||||||
|
|
||||||
property :customer_data, :base64 => true, as: 'customerData'
|
|
||||||
property :description, as: 'description'
|
|
||||||
collection :owners, as: 'owners'
|
|
||||||
collection :questions, as: 'questions', class: Google::Apis::ConsumersurveysV2::SurveyQuestion, decorator: Google::Apis::ConsumersurveysV2::SurveyQuestion::Representation
|
|
||||||
|
|
||||||
property :rejection_reason, as: 'rejectionReason', class: Google::Apis::ConsumersurveysV2::SurveyRejection, decorator: Google::Apis::ConsumersurveysV2::SurveyRejection::Representation
|
|
||||||
|
|
||||||
property :state, as: 'state'
|
|
||||||
property :survey_url_id, as: 'surveyUrlId'
|
|
||||||
property :title, as: 'title'
|
|
||||||
property :wanted_response_count, as: 'wantedResponseCount'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyAudience
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
collection :ages, as: 'ages'
|
|
||||||
property :country, as: 'country'
|
|
||||||
property :country_subdivision, as: 'countrySubdivision'
|
|
||||||
property :gender, as: 'gender'
|
|
||||||
collection :languages, as: 'languages'
|
|
||||||
property :mobile_app_panel_id, as: 'mobileAppPanelId'
|
|
||||||
property :population_source, as: 'populationSource'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyCost
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :cost_per_response_nanos, :numeric_string => true, as: 'costPerResponseNanos'
|
|
||||||
property :currency_code, as: 'currencyCode'
|
|
||||||
property :max_cost_per_response_nanos, :numeric_string => true, as: 'maxCostPerResponseNanos'
|
|
||||||
property :nanos, :numeric_string => true, as: 'nanos'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyQuestion
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :answer_order, as: 'answerOrder'
|
|
||||||
collection :answers, as: 'answers'
|
|
||||||
property :has_other, as: 'hasOther'
|
|
||||||
property :high_value_label, as: 'highValueLabel'
|
|
||||||
collection :images, as: 'images', class: Google::Apis::ConsumersurveysV2::SurveyQuestionImage, decorator: Google::Apis::ConsumersurveysV2::SurveyQuestionImage::Representation
|
|
||||||
|
|
||||||
property :last_answer_position_pinned, as: 'lastAnswerPositionPinned'
|
|
||||||
property :low_value_label, as: 'lowValueLabel'
|
|
||||||
property :must_pick_suggestion, as: 'mustPickSuggestion'
|
|
||||||
property :num_stars, as: 'numStars'
|
|
||||||
property :open_text_placeholder, as: 'openTextPlaceholder'
|
|
||||||
collection :open_text_suggestions, as: 'openTextSuggestions'
|
|
||||||
property :question, as: 'question'
|
|
||||||
property :sentiment_text, as: 'sentimentText'
|
|
||||||
property :single_line_response, as: 'singleLineResponse'
|
|
||||||
collection :threshold_answers, as: 'thresholdAnswers'
|
|
||||||
property :type, as: 'type'
|
|
||||||
property :unit_of_measurement_label, as: 'unitOfMeasurementLabel'
|
|
||||||
property :video_id, as: 'videoId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyQuestionImage
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :alt_text, as: 'altText'
|
|
||||||
property :data, :base64 => true, as: 'data'
|
|
||||||
property :url, as: 'url'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyRejection
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :explanation, as: 'explanation'
|
|
||||||
property :type, as: 'type'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveyResults
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :status, as: 'status'
|
|
||||||
property :survey_url_id, as: 'surveyUrlId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveysDeleteResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :request_id, as: 'requestId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveysListResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :page_info, as: 'pageInfo', class: Google::Apis::ConsumersurveysV2::PageInfo, decorator: Google::Apis::ConsumersurveysV2::PageInfo::Representation
|
|
||||||
|
|
||||||
property :request_id, as: 'requestId'
|
|
||||||
collection :resources, as: 'resources', class: Google::Apis::ConsumersurveysV2::Survey, decorator: Google::Apis::ConsumersurveysV2::Survey::Representation
|
|
||||||
|
|
||||||
property :token_pagination, as: 'tokenPagination', class: Google::Apis::ConsumersurveysV2::TokenPagination, decorator: Google::Apis::ConsumersurveysV2::TokenPagination::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveysStartRequest
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :max_cost_per_response_nanos, :numeric_string => true, as: 'maxCostPerResponseNanos'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveysStartResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :request_id, as: 'requestId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class SurveysStopResponse
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :request_id, as: 'requestId'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class TokenPagination
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :next_page_token, as: 'nextPageToken'
|
|
||||||
property :previous_page_token, as: 'previousPageToken'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,478 +0,0 @@
|
||||||
# Copyright 2015 Google Inc.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
require 'google/apis/core/base_service'
|
|
||||||
require 'google/apis/core/json_representation'
|
|
||||||
require 'google/apis/core/hashable'
|
|
||||||
require 'google/apis/errors'
|
|
||||||
|
|
||||||
module Google
|
|
||||||
module Apis
|
|
||||||
module ConsumersurveysV2
|
|
||||||
# Consumer Surveys API
|
|
||||||
#
|
|
||||||
# Creates and conducts surveys, lists the surveys that an authenticated user
|
|
||||||
# owns, and retrieves survey results and information about specified surveys.
|
|
||||||
#
|
|
||||||
# @example
|
|
||||||
# require 'google/apis/consumersurveys_v2'
|
|
||||||
#
|
|
||||||
# Consumersurveys = Google::Apis::ConsumersurveysV2 # Alias the module
|
|
||||||
# service = Consumersurveys::ConsumerSurveysService.new
|
|
||||||
#
|
|
||||||
class ConsumerSurveysService < Google::Apis::Core::BaseService
|
|
||||||
# @return [String]
|
|
||||||
# API key. Your API key identifies your project and provides you with API access,
|
|
||||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
||||||
attr_accessor :key
|
|
||||||
|
|
||||||
# @return [String]
|
|
||||||
# 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.
|
|
||||||
attr_accessor :quota_user
|
|
||||||
|
|
||||||
# @return [String]
|
|
||||||
# IP address of the site where the request originates. Use this if you want to
|
|
||||||
# enforce per-user limits.
|
|
||||||
attr_accessor :user_ip
|
|
||||||
|
|
||||||
def initialize
|
|
||||||
super('https://www.googleapis.com/', 'consumersurveys/v2/')
|
|
||||||
@batch_path = 'batch/consumersurveys/v2'
|
|
||||||
end
|
|
||||||
|
|
||||||
# Retrieves a MobileAppPanel that is available to the authenticated user.
|
|
||||||
# @param [String] panel_id
|
|
||||||
# External URL ID for the panel.
|
|
||||||
# @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::ConsumersurveysV2::MobileAppPanel] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::MobileAppPanel]
|
|
||||||
#
|
|
||||||
# @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_mobileapppanel(panel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'mobileAppPanels/{panelId}', options)
|
|
||||||
command.response_representation = Google::Apis::ConsumersurveysV2::MobileAppPanel::Representation
|
|
||||||
command.response_class = Google::Apis::ConsumersurveysV2::MobileAppPanel
|
|
||||||
command.params['panelId'] = panel_id unless panel_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 MobileAppPanels available to the authenticated user.
|
|
||||||
# @param [Fixnum] max_results
|
|
||||||
# @param [Fixnum] start_index
|
|
||||||
# @param [String] token
|
|
||||||
# @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::ConsumersurveysV2::MobileAppPanelsListResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::MobileAppPanelsListResponse]
|
|
||||||
#
|
|
||||||
# @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_mobileapppanels(max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'mobileAppPanels', options)
|
|
||||||
command.response_representation = Google::Apis::ConsumersurveysV2::MobileAppPanelsListResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ConsumersurveysV2::MobileAppPanelsListResponse
|
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
|
||||||
command.query['startIndex'] = start_index unless start_index.nil?
|
|
||||||
command.query['token'] = token unless token.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 MobileAppPanel. Currently the only property that can be updated is
|
|
||||||
# the owners property.
|
|
||||||
# @param [String] panel_id
|
|
||||||
# External URL ID for the panel.
|
|
||||||
# @param [Google::Apis::ConsumersurveysV2::MobileAppPanel] mobile_app_panel_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::ConsumersurveysV2::MobileAppPanel] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::MobileAppPanel]
|
|
||||||
#
|
|
||||||
# @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_mobileapppanel(panel_id, mobile_app_panel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:put, 'mobileAppPanels/{panelId}', options)
|
|
||||||
command.request_representation = Google::Apis::ConsumersurveysV2::MobileAppPanel::Representation
|
|
||||||
command.request_object = mobile_app_panel_object
|
|
||||||
command.response_representation = Google::Apis::ConsumersurveysV2::MobileAppPanel::Representation
|
|
||||||
command.response_class = Google::Apis::ConsumersurveysV2::MobileAppPanel
|
|
||||||
command.params['panelId'] = panel_id unless panel_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
|
|
||||||
|
|
||||||
# Retrieves any survey results that have been produced so far. Results are
|
|
||||||
# formatted as an Excel file. You must add "?alt=media" to the URL as an
|
|
||||||
# argument to get results.
|
|
||||||
# @param [String] survey_url_id
|
|
||||||
# External URL ID for the survey.
|
|
||||||
# @param [Google::Apis::ConsumersurveysV2::ResultsGetRequest] results_get_request_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 [IO, String] download_dest
|
|
||||||
# IO stream or filename to receive content download
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
|
||||||
# Request-specific options
|
|
||||||
#
|
|
||||||
# @yield [result, err] Result & error if block supplied
|
|
||||||
# @yieldparam result [Google::Apis::ConsumersurveysV2::SurveyResults] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::SurveyResults]
|
|
||||||
#
|
|
||||||
# @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_result(survey_url_id, results_get_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
|
||||||
if download_dest.nil?
|
|
||||||
command = make_simple_command(:get, 'surveys/{surveyUrlId}/results', options)
|
|
||||||
else
|
|
||||||
command = make_download_command(:get, 'surveys/{surveyUrlId}/results', options)
|
|
||||||
command.download_dest = download_dest
|
|
||||||
end
|
|
||||||
command.request_representation = Google::Apis::ConsumersurveysV2::ResultsGetRequest::Representation
|
|
||||||
command.request_object = results_get_request_object
|
|
||||||
command.response_representation = Google::Apis::ConsumersurveysV2::SurveyResults::Representation
|
|
||||||
command.response_class = Google::Apis::ConsumersurveysV2::SurveyResults
|
|
||||||
command.params['surveyUrlId'] = survey_url_id unless survey_url_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
|
|
||||||
|
|
||||||
# Removes a survey from view in all user GET requests.
|
|
||||||
# @param [String] survey_url_id
|
|
||||||
# External URL ID for the survey.
|
|
||||||
# @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::ConsumersurveysV2::SurveysDeleteResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::SurveysDeleteResponse]
|
|
||||||
#
|
|
||||||
# @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_survey(survey_url_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:delete, 'surveys/{surveyUrlId}', options)
|
|
||||||
command.response_representation = Google::Apis::ConsumersurveysV2::SurveysDeleteResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ConsumersurveysV2::SurveysDeleteResponse
|
|
||||||
command.params['surveyUrlId'] = survey_url_id unless survey_url_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
|
|
||||||
|
|
||||||
# Retrieves information about the specified survey.
|
|
||||||
# @param [String] survey_url_id
|
|
||||||
# External URL ID for the survey.
|
|
||||||
# @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::ConsumersurveysV2::Survey] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::Survey]
|
|
||||||
#
|
|
||||||
# @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_survey(survey_url_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'surveys/{surveyUrlId}', options)
|
|
||||||
command.response_representation = Google::Apis::ConsumersurveysV2::Survey::Representation
|
|
||||||
command.response_class = Google::Apis::ConsumersurveysV2::Survey
|
|
||||||
command.params['surveyUrlId'] = survey_url_id unless survey_url_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 survey.
|
|
||||||
# @param [Google::Apis::ConsumersurveysV2::Survey] survey_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::ConsumersurveysV2::Survey] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::Survey]
|
|
||||||
#
|
|
||||||
# @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 insert_survey(survey_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'surveys', options)
|
|
||||||
command.request_representation = Google::Apis::ConsumersurveysV2::Survey::Representation
|
|
||||||
command.request_object = survey_object
|
|
||||||
command.response_representation = Google::Apis::ConsumersurveysV2::Survey::Representation
|
|
||||||
command.response_class = Google::Apis::ConsumersurveysV2::Survey
|
|
||||||
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 surveys owned by the authenticated user.
|
|
||||||
# @param [Fixnum] max_results
|
|
||||||
# @param [Fixnum] start_index
|
|
||||||
# @param [String] token
|
|
||||||
# @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::ConsumersurveysV2::SurveysListResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::SurveysListResponse]
|
|
||||||
#
|
|
||||||
# @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_surveys(max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:get, 'surveys', options)
|
|
||||||
command.response_representation = Google::Apis::ConsumersurveysV2::SurveysListResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ConsumersurveysV2::SurveysListResponse
|
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
|
||||||
command.query['startIndex'] = start_index unless start_index.nil?
|
|
||||||
command.query['token'] = token unless token.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
|
|
||||||
|
|
||||||
# Begins running a survey.
|
|
||||||
# @param [String] resource_id
|
|
||||||
# @param [Google::Apis::ConsumersurveysV2::SurveysStartRequest] surveys_start_request_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::ConsumersurveysV2::SurveysStartResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::SurveysStartResponse]
|
|
||||||
#
|
|
||||||
# @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 start_survey(resource_id, surveys_start_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'surveys/{resourceId}/start', options)
|
|
||||||
command.request_representation = Google::Apis::ConsumersurveysV2::SurveysStartRequest::Representation
|
|
||||||
command.request_object = surveys_start_request_object
|
|
||||||
command.response_representation = Google::Apis::ConsumersurveysV2::SurveysStartResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ConsumersurveysV2::SurveysStartResponse
|
|
||||||
command.params['resourceId'] = resource_id unless resource_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
|
|
||||||
|
|
||||||
# Stops a running survey.
|
|
||||||
# @param [String] resource_id
|
|
||||||
# @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::ConsumersurveysV2::SurveysStopResponse] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::SurveysStopResponse]
|
|
||||||
#
|
|
||||||
# @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 stop_survey(resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:post, 'surveys/{resourceId}/stop', options)
|
|
||||||
command.response_representation = Google::Apis::ConsumersurveysV2::SurveysStopResponse::Representation
|
|
||||||
command.response_class = Google::Apis::ConsumersurveysV2::SurveysStopResponse
|
|
||||||
command.params['resourceId'] = resource_id unless resource_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 survey. Currently the only property that can be updated is the
|
|
||||||
# owners property.
|
|
||||||
# @param [String] survey_url_id
|
|
||||||
# External URL ID for the survey.
|
|
||||||
# @param [Google::Apis::ConsumersurveysV2::Survey] survey_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::ConsumersurveysV2::Survey] parsed result object
|
|
||||||
# @yieldparam err [StandardError] error object if request failed
|
|
||||||
#
|
|
||||||
# @return [Google::Apis::ConsumersurveysV2::Survey]
|
|
||||||
#
|
|
||||||
# @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_survey(survey_url_id, survey_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
||||||
command = make_simple_command(:put, 'surveys/{surveyUrlId}', options)
|
|
||||||
command.request_representation = Google::Apis::ConsumersurveysV2::Survey::Representation
|
|
||||||
command.request_object = survey_object
|
|
||||||
command.response_representation = Google::Apis::ConsumersurveysV2::Survey::Representation
|
|
||||||
command.response_class = Google::Apis::ConsumersurveysV2::Survey
|
|
||||||
command.params['surveyUrlId'] = survey_url_id unless survey_url_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
|
|
||||||
|
|
||||||
protected
|
|
||||||
|
|
||||||
def apply_command_defaults(command)
|
|
||||||
command.query['key'] = key unless key.nil?
|
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in New Issue