google-api-client 0.17.1 → 0.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +26 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +14 -0
- data/generated/google/apis/admin_directory_v1/service.rb +90 -52
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +150 -3
- data/generated/google/apis/androidenterprise_v1/representations.rb +65 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +50 -4
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +45 -0
- data/generated/google/apis/appengine_v1/representations.rb +18 -0
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +8 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +4 -4
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +17 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +2 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +5 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +2 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +57 -61
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +20 -19
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +4 -6
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +4 -6
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +140 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +35 -0
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +2536 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1078 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +1398 -0
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +7 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +4 -4
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +4 -4
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +55 -46
- data/generated/google/apis/monitoring_v3/representations.rb +19 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +16 -60
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +19 -21
- data/generated/google/apis/serviceconsumermanagement_v1.rb +38 -0
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +3945 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1235 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +467 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +16 -0
- data/generated/google/apis/slides_v1/representations.rb +2 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +3 -2
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +21 -21
- data/generated/google/apis/tpu_v1alpha1.rb +34 -0
- data/generated/google/apis/tpu_v1alpha1/classes.rb +530 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +191 -0
- data/generated/google/apis/tpu_v1alpha1/service.rb +474 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -2
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/dlp/docs/
|
28
28
|
module DlpV2beta1
|
29
29
|
VERSION = 'V2beta1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20171114'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/genomics
|
26
26
|
module GenomicsV1alpha2
|
27
27
|
VERSION = 'V1alpha2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171113'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -792,16 +792,18 @@ module Google
|
|
792
792
|
|
793
793
|
# Optional. The number of accelerators of the specified type to attach.
|
794
794
|
# By specifying this parameter, you will download and install the following
|
795
|
-
# third-party software onto your managed
|
796
|
-
# drivers and NVIDIA® CUDA toolkit.
|
795
|
+
# third-party software onto your managed Compute Engine instances:
|
796
|
+
# NVIDIA® Tesla® drivers and NVIDIA® CUDA toolkit.
|
797
797
|
# Corresponds to the JSON property `acceleratorCount`
|
798
798
|
# @return [Fixnum]
|
799
799
|
attr_accessor :accelerator_count
|
800
800
|
|
801
|
-
# Optional. The
|
801
|
+
# Optional. The Compute Engine defined accelerator type.
|
802
802
|
# By specifying this parameter, you will download and install the following
|
803
|
-
# third-party software onto your managed
|
804
|
-
# drivers and NVIDIA® CUDA toolkit.
|
803
|
+
# third-party software onto your managed Compute Engine instances: NVIDIA®
|
804
|
+
# Tesla® drivers and NVIDIA® CUDA toolkit.
|
805
|
+
# Please see https://cloud.google.com/compute/docs/gpus/ for a list of
|
806
|
+
# available accelerator types.
|
805
807
|
# Corresponds to the JSON property `acceleratorType`
|
806
808
|
# @return [String]
|
807
809
|
attr_accessor :accelerator_type
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/logging/docs/
|
26
26
|
module LoggingV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171113'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -685,10 +685,10 @@ module Google
|
|
685
685
|
# @return [Google::Apis::LoggingV2::LogEntrySourceLocation]
|
686
686
|
attr_accessor :source_location
|
687
687
|
|
688
|
-
# Optional.
|
689
|
-
#
|
690
|
-
#
|
691
|
-
#
|
688
|
+
# Optional. The span ID within the trace associated with the log entry. For
|
689
|
+
# Stackdriver Trace spans, this is the same format that the Stackdriver Trace
|
690
|
+
# API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such as <
|
691
|
+
# code>"000000000000004a"</code>.
|
692
692
|
# Corresponds to the JSON property `spanId`
|
693
693
|
# @return [String]
|
694
694
|
attr_accessor :span_id
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/logging/docs/
|
26
26
|
module LoggingV2beta1
|
27
27
|
VERSION = 'V2beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171113'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -658,10 +658,10 @@ module Google
|
|
658
658
|
# @return [Google::Apis::LoggingV2beta1::LogEntrySourceLocation]
|
659
659
|
attr_accessor :source_location
|
660
660
|
|
661
|
-
# Optional.
|
662
|
-
#
|
663
|
-
#
|
664
|
-
#
|
661
|
+
# Optional. The span ID within the trace associated with the log entry. For
|
662
|
+
# Stackdriver Trace spans, this is the same format that the Stackdriver Trace
|
663
|
+
# API v2 uses: a 16-character hexadecimal encoding of an 8-byte array, such as <
|
664
|
+
# code>"000000000000004a"</code>.
|
665
665
|
# Corresponds to the JSON property `spanId`
|
666
666
|
# @return [String]
|
667
667
|
attr_accessor :span_id
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/monitoring/api/
|
28
28
|
module MonitoringV3
|
29
29
|
VERSION = 'V3'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20171113'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -812,6 +812,50 @@ module Google
|
|
812
812
|
end
|
813
813
|
end
|
814
814
|
|
815
|
+
# Nimbus InternalCheckers.
|
816
|
+
class InternalChecker
|
817
|
+
include Google::Apis::Core::Hashable
|
818
|
+
|
819
|
+
# The checker ID.
|
820
|
+
# Corresponds to the JSON property `checkerId`
|
821
|
+
# @return [String]
|
822
|
+
attr_accessor :checker_id
|
823
|
+
|
824
|
+
# The checker's human-readable name.
|
825
|
+
# Corresponds to the JSON property `displayName`
|
826
|
+
# @return [String]
|
827
|
+
attr_accessor :display_name
|
828
|
+
|
829
|
+
# The GCP zone the uptime check should egress from. Only respected for internal
|
830
|
+
# uptime checks, where internal_network is specified.
|
831
|
+
# Corresponds to the JSON property `gcpZone`
|
832
|
+
# @return [String]
|
833
|
+
attr_accessor :gcp_zone
|
834
|
+
|
835
|
+
# The internal network to perform this uptime check on.
|
836
|
+
# Corresponds to the JSON property `network`
|
837
|
+
# @return [String]
|
838
|
+
attr_accessor :network
|
839
|
+
|
840
|
+
# The GCP project ID. Not necessarily the same as the project_id for the config.
|
841
|
+
# Corresponds to the JSON property `projectId`
|
842
|
+
# @return [String]
|
843
|
+
attr_accessor :project_id
|
844
|
+
|
845
|
+
def initialize(**args)
|
846
|
+
update!(**args)
|
847
|
+
end
|
848
|
+
|
849
|
+
# Update properties of this object
|
850
|
+
def update!(**args)
|
851
|
+
@checker_id = args[:checker_id] if args.key?(:checker_id)
|
852
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
853
|
+
@gcp_zone = args[:gcp_zone] if args.key?(:gcp_zone)
|
854
|
+
@network = args[:network] if args.key?(:network)
|
855
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
856
|
+
end
|
857
|
+
end
|
858
|
+
|
815
859
|
# A description of a label.
|
816
860
|
class LabelDescriptor
|
817
861
|
include Google::Apis::Core::Hashable
|
@@ -1157,52 +1201,11 @@ module Google
|
|
1157
1201
|
# @return [String]
|
1158
1202
|
attr_accessor :type
|
1159
1203
|
|
1160
|
-
# The unit in which the metric value is reported.
|
1161
|
-
#
|
1162
|
-
# of The Unified Code for Units of Measure (http://
|
1163
|
-
#
|
1164
|
-
#
|
1165
|
-
# By byte
|
1166
|
-
# s second
|
1167
|
-
# min minute
|
1168
|
-
# h hour
|
1169
|
-
# d dayPrefixes (PREFIX)
|
1170
|
-
# k kilo (10**3)
|
1171
|
-
# M mega (10**6)
|
1172
|
-
# G giga (10**9)
|
1173
|
-
# T tera (10**12)
|
1174
|
-
# P peta (10**15)
|
1175
|
-
# E exa (10**18)
|
1176
|
-
# Z zetta (10**21)
|
1177
|
-
# Y yotta (10**24)
|
1178
|
-
# m milli (10**-3)
|
1179
|
-
# u micro (10**-6)
|
1180
|
-
# n nano (10**-9)
|
1181
|
-
# p pico (10**-12)
|
1182
|
-
# f femto (10**-15)
|
1183
|
-
# a atto (10**-18)
|
1184
|
-
# z zepto (10**-21)
|
1185
|
-
# y yocto (10**-24)
|
1186
|
-
# Ki kibi (2**10)
|
1187
|
-
# Mi mebi (2**20)
|
1188
|
-
# Gi gibi (2**30)
|
1189
|
-
# Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/
|
1190
|
-
# s.The grammar also includes these connectors:
|
1191
|
-
# / division (as an infix operator, e.g. 1/s).
|
1192
|
-
# . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
|
1193
|
-
# as follows:
|
1194
|
-
# Expression = Component ` "." Component ` ` "/" Component ` ;
|
1195
|
-
# Component = [ PREFIX ] UNIT [ Annotation ]
|
1196
|
-
# | Annotation
|
1197
|
-
# | "1"
|
1198
|
-
# ;
|
1199
|
-
# Annotation = "`" NAME "`" ;
|
1200
|
-
# Notes:
|
1201
|
-
# Annotation is just a comment if it follows a UNIT and is equivalent to 1 if
|
1202
|
-
# it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/
|
1203
|
-
# s.
|
1204
|
-
# NAME is a sequence of non-blank printable ASCII characters not containing '`'
|
1205
|
-
# or '`'.
|
1204
|
+
# Optional. The unit in which the metric value is reported. For example, kBy/s
|
1205
|
+
# means kilobytes/sec, and 1 is the dimensionless unit. The supported units are
|
1206
|
+
# a subset of The Unified Code for Units of Measure standard (http://
|
1207
|
+
# unitsofmeasure.org/ucum.html).<br><br> This field is part of the metric's
|
1208
|
+
# documentation, but it is ignored by Stackdriver.
|
1206
1209
|
# Corresponds to the JSON property `unit`
|
1207
1210
|
# @return [String]
|
1208
1211
|
attr_accessor :unit
|
@@ -1783,6 +1786,11 @@ module Google
|
|
1783
1786
|
# @return [Google::Apis::MonitoringV3::HttpCheck]
|
1784
1787
|
attr_accessor :http_check
|
1785
1788
|
|
1789
|
+
# The internal checkers that this check will egress from.
|
1790
|
+
# Corresponds to the JSON property `internalCheckers`
|
1791
|
+
# @return [Array<Google::Apis::MonitoringV3::InternalChecker>]
|
1792
|
+
attr_accessor :internal_checkers
|
1793
|
+
|
1786
1794
|
# An object representing a resource that can be used for monitoring, logging,
|
1787
1795
|
# billing, or other purposes. Examples include virtual machine instances,
|
1788
1796
|
# databases, and storage devices such as disks. The type field identifies a
|
@@ -1847,6 +1855,7 @@ module Google
|
|
1847
1855
|
@content_matchers = args[:content_matchers] if args.key?(:content_matchers)
|
1848
1856
|
@display_name = args[:display_name] if args.key?(:display_name)
|
1849
1857
|
@http_check = args[:http_check] if args.key?(:http_check)
|
1858
|
+
@internal_checkers = args[:internal_checkers] if args.key?(:internal_checkers)
|
1850
1859
|
@monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource)
|
1851
1860
|
@name = args[:name] if args.key?(:name)
|
1852
1861
|
@period = args[:period] if args.key?(:period)
|
@@ -124,6 +124,12 @@ module Google
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
125
125
|
end
|
126
126
|
|
127
|
+
class InternalChecker
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
127
133
|
class LabelDescriptor
|
128
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
135
|
|
@@ -457,6 +463,17 @@ module Google
|
|
457
463
|
end
|
458
464
|
end
|
459
465
|
|
466
|
+
class InternalChecker
|
467
|
+
# @private
|
468
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
469
|
+
property :checker_id, as: 'checkerId'
|
470
|
+
property :display_name, as: 'displayName'
|
471
|
+
property :gcp_zone, as: 'gcpZone'
|
472
|
+
property :network, as: 'network'
|
473
|
+
property :project_id, as: 'projectId'
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
460
477
|
class LabelDescriptor
|
461
478
|
# @private
|
462
479
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -696,6 +713,8 @@ module Google
|
|
696
713
|
property :display_name, as: 'displayName'
|
697
714
|
property :http_check, as: 'httpCheck', class: Google::Apis::MonitoringV3::HttpCheck, decorator: Google::Apis::MonitoringV3::HttpCheck::Representation
|
698
715
|
|
716
|
+
collection :internal_checkers, as: 'internalCheckers', class: Google::Apis::MonitoringV3::InternalChecker, decorator: Google::Apis::MonitoringV3::InternalChecker::Representation
|
717
|
+
|
699
718
|
property :monitored_resource, as: 'monitoredResource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
|
700
719
|
|
701
720
|
property :name, as: 'name'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/beacons/proximity/
|
26
26
|
module ProximitybeaconV1beta1
|
27
27
|
VERSION = 'V1beta1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171112'
|
29
29
|
|
30
30
|
# View and modify your beacons
|
31
31
|
AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'
|
@@ -66,6 +66,21 @@ module Google
|
|
66
66
|
# @return [String]
|
67
67
|
attr_accessor :data
|
68
68
|
|
69
|
+
# The distance away from the beacon at which this attachment should be
|
70
|
+
# delivered to a mobile app.
|
71
|
+
# Setting this to a value greater than zero indicates that the app should
|
72
|
+
# behave as if the beacon is "seen" when the mobile device is less than this
|
73
|
+
# distance away from the beacon.
|
74
|
+
# Different attachments on the same beacon can have different max distances.
|
75
|
+
# Note that even though this value is expressed with fractional meter
|
76
|
+
# precision, real-world behavior is likley to be much less precise than one
|
77
|
+
# meter, due to the nature of current Bluetooth radio technology.
|
78
|
+
# Optional. When not set or zero, the attachment should be delivered at the
|
79
|
+
# beacon's outer limit of detection.
|
80
|
+
# Corresponds to the JSON property `maxDistanceMeters`
|
81
|
+
# @return [Float]
|
82
|
+
attr_accessor :max_distance_meters
|
83
|
+
|
69
84
|
# Specifies what kind of attachment this is. Tells a client how to
|
70
85
|
# interpret the `data` field. Format is <var>namespace/type</var>, for
|
71
86
|
# example <code>scrupulous-wombat-12345/welcome-message</code>
|
@@ -80,6 +95,7 @@ module Google
|
|
80
95
|
# Update properties of this object
|
81
96
|
def update!(**args)
|
82
97
|
@data = args[:data] if args.key?(:data)
|
98
|
+
@max_distance_meters = args[:max_distance_meters] if args.key?(:max_distance_meters)
|
83
99
|
@namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
|
84
100
|
end
|
85
101
|
end
|
@@ -152,36 +168,6 @@ module Google
|
|
152
168
|
# specified otherwise, this must conform to the
|
153
169
|
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
154
170
|
# standard</a>. Values must be within normalized ranges.
|
155
|
-
# Example of normalization code in Python:
|
156
|
-
# def NormalizeLongitude(longitude):
|
157
|
-
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
158
|
-
# q, r = divmod(longitude, 360.0)
|
159
|
-
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
160
|
-
# return r - 360.0
|
161
|
-
# return r
|
162
|
-
# def NormalizeLatLng(latitude, longitude):
|
163
|
-
# """Wraps decimal degrees latitude and longitude to
|
164
|
-
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
165
|
-
# r = latitude % 360.0
|
166
|
-
# if r <= 90.0:
|
167
|
-
# return r, NormalizeLongitude(longitude)
|
168
|
-
# elif r >= 270.0:
|
169
|
-
# return r - 360, NormalizeLongitude(longitude)
|
170
|
-
# else:
|
171
|
-
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
172
|
-
# assert 180.0 == NormalizeLongitude(180.0)
|
173
|
-
# assert -180.0 == NormalizeLongitude(-180.0)
|
174
|
-
# assert -179.0 == NormalizeLongitude(181.0)
|
175
|
-
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
176
|
-
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
177
|
-
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
178
|
-
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
179
|
-
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
180
|
-
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
181
|
-
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
182
|
-
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
183
|
-
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
184
|
-
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
185
171
|
# Corresponds to the JSON property `latLng`
|
186
172
|
# @return [Google::Apis::ProximitybeaconV1beta1::LatLng]
|
187
173
|
attr_accessor :lat_lng
|
@@ -662,36 +648,6 @@ module Google
|
|
662
648
|
# specified otherwise, this must conform to the
|
663
649
|
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
664
650
|
# standard</a>. Values must be within normalized ranges.
|
665
|
-
# Example of normalization code in Python:
|
666
|
-
# def NormalizeLongitude(longitude):
|
667
|
-
# """Wraps decimal degrees longitude to [-180.0, 180.0]."""
|
668
|
-
# q, r = divmod(longitude, 360.0)
|
669
|
-
# if r > 180.0 or (r == 180.0 and q <= -1.0):
|
670
|
-
# return r - 360.0
|
671
|
-
# return r
|
672
|
-
# def NormalizeLatLng(latitude, longitude):
|
673
|
-
# """Wraps decimal degrees latitude and longitude to
|
674
|
-
# [-90.0, 90.0] and [-180.0, 180.0], respectively."""
|
675
|
-
# r = latitude % 360.0
|
676
|
-
# if r <= 90.0:
|
677
|
-
# return r, NormalizeLongitude(longitude)
|
678
|
-
# elif r >= 270.0:
|
679
|
-
# return r - 360, NormalizeLongitude(longitude)
|
680
|
-
# else:
|
681
|
-
# return 180 - r, NormalizeLongitude(longitude + 180.0)
|
682
|
-
# assert 180.0 == NormalizeLongitude(180.0)
|
683
|
-
# assert -180.0 == NormalizeLongitude(-180.0)
|
684
|
-
# assert -179.0 == NormalizeLongitude(181.0)
|
685
|
-
# assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
|
686
|
-
# assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
|
687
|
-
# assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
|
688
|
-
# assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
|
689
|
-
# assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
|
690
|
-
# assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
|
691
|
-
# assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
|
692
|
-
# assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
|
693
|
-
# assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
|
694
|
-
# assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
|
695
651
|
class LatLng
|
696
652
|
include Google::Apis::Core::Hashable
|
697
653
|
|
@@ -160,6 +160,7 @@ module Google
|
|
160
160
|
# @private
|
161
161
|
class Representation < Google::Apis::Core::JsonRepresentation
|
162
162
|
property :data, :base64 => true, as: 'data'
|
163
|
+
property :max_distance_meters, as: 'maxDistanceMeters'
|
163
164
|
property :namespaced_type, as: 'namespacedType'
|
164
165
|
end
|
165
166
|
end
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
|
26
26
|
module ScriptV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20171113'
|
29
29
|
|
30
30
|
# Read, send, delete, and manage your email
|
31
31
|
AUTH_SCOPE = 'https://mail.google.com/'
|
@@ -24,8 +24,7 @@ module Google
|
|
24
24
|
|
25
25
|
# An object that provides information about the nature of an error resulting
|
26
26
|
# from an attempted execution of a script function using the Apps Script API.
|
27
|
-
# If a run
|
28
|
-
# runAsync call
|
27
|
+
# If a run call
|
29
28
|
# succeeds but the script function (or Apps Script itself) throws an exception,
|
30
29
|
# the response body's error field
|
31
30
|
# contains a
|
@@ -148,11 +147,11 @@ module Google
|
|
148
147
|
end
|
149
148
|
|
150
149
|
# A representation of a execution of an Apps Script function that is started
|
151
|
-
# using run
|
152
|
-
#
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
150
|
+
# using run. The execution response does not arrive until the function finishes
|
151
|
+
# executing. The maximum execution runtime is listed in the [Apps Script quotas
|
152
|
+
# guide](/apps-script/guides/services/quotas#current_limitations). <p>After the
|
153
|
+
# execution is started, it can have one of four outcomes:</p> <ul> <li> If the
|
154
|
+
# script function returns successfully, the
|
156
155
|
# response field contains an
|
157
156
|
# ExecutionResponse object
|
158
157
|
# with the function's return value in the object's `result` field.</li>
|
@@ -162,10 +161,10 @@ module Google
|
|
162
161
|
# field contains an array with a single
|
163
162
|
# ExecutionError object that
|
164
163
|
# provides information about the nature of the error.</li>
|
165
|
-
# <li> If the execution
|
164
|
+
# <li> If the execution has not yet completed,
|
166
165
|
# the done field is `false` and
|
167
166
|
# the neither the `response` nor `error` fields are present.</li>
|
168
|
-
# <li> If the `run`
|
167
|
+
# <li> If the `run` call itself fails (for example, because of a
|
169
168
|
# malformed request or an authorization error), the method returns an HTTP
|
170
169
|
# response code in the 4XX range with a different format for the response
|
171
170
|
# body. Client libraries automatically convert a 4XX response into an
|
@@ -174,18 +173,17 @@ module Google
|
|
174
173
|
class Operation
|
175
174
|
include Google::Apis::Core::Hashable
|
176
175
|
|
177
|
-
# This field
|
178
|
-
#
|
179
|
-
#
|
180
|
-
# executed.
|
176
|
+
# This field indicates whether the script execution has completed. A completed
|
177
|
+
# execution has a populated `response` field containing the ExecutionResponse
|
178
|
+
# from function that was executed.
|
181
179
|
# Corresponds to the JSON property `done`
|
182
180
|
# @return [Boolean]
|
183
181
|
attr_accessor :done
|
184
182
|
alias_method :done?, :done
|
185
183
|
|
186
|
-
# If a `run`
|
187
|
-
#
|
188
|
-
#
|
184
|
+
# If a `run` call succeeds but the script function (or Apps Script itself)
|
185
|
+
# throws an exception, the response body's error field contains this `Status`
|
186
|
+
# object.
|
189
187
|
# Corresponds to the JSON property `error`
|
190
188
|
# @return [Google::Apis::ScriptV1::Status]
|
191
189
|
attr_accessor :error
|
@@ -233,15 +231,15 @@ module Google
|
|
233
231
|
end
|
234
232
|
end
|
235
233
|
|
236
|
-
# If a `run`
|
237
|
-
#
|
238
|
-
#
|
234
|
+
# If a `run` call succeeds but the script function (or Apps Script itself)
|
235
|
+
# throws an exception, the response body's error field contains this `Status`
|
236
|
+
# object.
|
239
237
|
class Status
|
240
238
|
include Google::Apis::Core::Hashable
|
241
239
|
|
242
240
|
# The status code. For this API, this value either: <ul> <li> 3, indicating an `
|
243
|
-
# INVALID_ARGUMENT` error, or</li> <li> 1, indicating a `CANCELLED`
|
244
|
-
#
|
241
|
+
# INVALID_ARGUMENT` error, or</li> <li> 1, indicating a `CANCELLED` execution.</
|
242
|
+
# li> </ul>
|
245
243
|
# Corresponds to the JSON property `code`
|
246
244
|
# @return [Fixnum]
|
247
245
|
attr_accessor :code
|