google-api-client 0.9.11 → 0.9.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/api_names.yaml +55 -117
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +76 -8
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +23 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +10 -4
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/admin_directory_v1/classes.rb +6 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +371 -1
- data/generated/google/apis/analytics_v3/representations.rb +135 -0
- data/generated/google/apis/analytics_v3/service.rb +218 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +18 -8
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +208 -37
- data/generated/google/apis/androidenterprise_v1/representations.rb +83 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +469 -20
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -8
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +379 -297
- data/generated/google/apis/appengine_v1beta5/representations.rb +55 -10
- data/generated/google/apis/appengine_v1beta5/service.rb +281 -35
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +50 -2
- data/generated/google/apis/bigquery_v2/representations.rb +6 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +6 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +2 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/classroom_v1/classes.rb +176 -37
- data/generated/google/apis/classroom_v1/representations.rb +73 -9
- data/generated/google/apis/classroom_v1/service.rb +392 -37
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +190 -12
- data/generated/google/apis/cloudbuild_v1/representations.rb +73 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +170 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/service.rb +2 -2
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +599 -77
- data/generated/google/apis/compute_beta/representations.rb +240 -0
- data/generated/google/apis/compute_beta/service.rb +1999 -710
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +140 -58
- data/generated/google/apis/compute_v1/representations.rb +17 -0
- data/generated/google/apis/compute_v1/service.rb +462 -521
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +689 -1
- data/generated/google/apis/content_v2/representations.rb +316 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +48 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +5 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11585 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9006 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +8 -0
- data/generated/google/apis/fitness_v1/representations.rb +1 -0
- data/generated/google/apis/fitness_v1/service.rb +2 -2
- data/generated/google/apis/fitness_v1.rb +7 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +13 -2
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1/service.rb +2 -3
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +8 -11
- data/generated/google/apis/gmail_v1/service.rb +5 -5
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +38 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +6 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +340 -421
- data/generated/google/apis/monitoring_v3/representations.rb +0 -17
- data/generated/google/apis/monitoring_v3/service.rb +136 -168
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +35 -0
- data/generated/google/apis/sheets_v4/representations.rb +16 -0
- data/generated/google/apis/sheets_v4/service.rb +55 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +12 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +36 -1
- data/generated/google/apis/storage_v1/representations.rb +16 -0
- data/generated/google/apis/storage_v1/service.rb +18 -3
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -3
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/compute/docs/reference/latest/
|
26
26
|
module ComputeV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160812'
|
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'
|
@@ -1513,6 +1513,93 @@ module Google
|
|
1513
1513
|
end
|
1514
1514
|
end
|
1515
1515
|
|
1516
|
+
#
|
1517
|
+
class CarrierRate
|
1518
|
+
include Google::Apis::Core::Hashable
|
1519
|
+
|
1520
|
+
# Carrier service, such as "UPS" or "Fedex". The list of supported carriers can
|
1521
|
+
# be retrieved via the getSupportedCarriers method. Required.
|
1522
|
+
# Corresponds to the JSON property `carrierName`
|
1523
|
+
# @return [String]
|
1524
|
+
attr_accessor :carrier_name
|
1525
|
+
|
1526
|
+
# Carrier service, such as "ground" or "2 days". The list of supported services
|
1527
|
+
# for a carrier can be retrieved via the getSupportedCarriers method. Required.
|
1528
|
+
# Corresponds to the JSON property `carrierService`
|
1529
|
+
# @return [String]
|
1530
|
+
attr_accessor :carrier_service
|
1531
|
+
|
1532
|
+
# Additive shipping rate modifier. Can be negative. For example ` "value": "1", "
|
1533
|
+
# currency" : "USD" ` adds $1 to the rate, ` "value": "-3", "currency" : "USD" `
|
1534
|
+
# removes $3 from the rate. Optional.
|
1535
|
+
# Corresponds to the JSON property `flatAdjustment`
|
1536
|
+
# @return [Google::Apis::ContentV2::Price]
|
1537
|
+
attr_accessor :flat_adjustment
|
1538
|
+
|
1539
|
+
# Name of the carrier rate. Must be unique per rate group. Required.
|
1540
|
+
# Corresponds to the JSON property `name`
|
1541
|
+
# @return [String]
|
1542
|
+
attr_accessor :name
|
1543
|
+
|
1544
|
+
# Shipping origin for this carrier rate. Required.
|
1545
|
+
# Corresponds to the JSON property `originPostalCode`
|
1546
|
+
# @return [String]
|
1547
|
+
attr_accessor :origin_postal_code
|
1548
|
+
|
1549
|
+
# Multiplicative shipping rate modifier as a number in decimal notation. Can be
|
1550
|
+
# negative. For example "5.4" increases the rate by 5.4%, "-3" decreases the
|
1551
|
+
# rate by 3%. Optional.
|
1552
|
+
# Corresponds to the JSON property `percentageAdjustment`
|
1553
|
+
# @return [String]
|
1554
|
+
attr_accessor :percentage_adjustment
|
1555
|
+
|
1556
|
+
def initialize(**args)
|
1557
|
+
update!(**args)
|
1558
|
+
end
|
1559
|
+
|
1560
|
+
# Update properties of this object
|
1561
|
+
def update!(**args)
|
1562
|
+
@carrier_name = args[:carrier_name] if args.key?(:carrier_name)
|
1563
|
+
@carrier_service = args[:carrier_service] if args.key?(:carrier_service)
|
1564
|
+
@flat_adjustment = args[:flat_adjustment] if args.key?(:flat_adjustment)
|
1565
|
+
@name = args[:name] if args.key?(:name)
|
1566
|
+
@origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
|
1567
|
+
@percentage_adjustment = args[:percentage_adjustment] if args.key?(:percentage_adjustment)
|
1568
|
+
end
|
1569
|
+
end
|
1570
|
+
|
1571
|
+
#
|
1572
|
+
class CarriersCarrier
|
1573
|
+
include Google::Apis::Core::Hashable
|
1574
|
+
|
1575
|
+
# The CLDR country code of the carrier (e.g., "US"). Always present.
|
1576
|
+
# Corresponds to the JSON property `country`
|
1577
|
+
# @return [String]
|
1578
|
+
attr_accessor :country
|
1579
|
+
|
1580
|
+
# The name of the carrier (e.g., "UPS"). Always present.
|
1581
|
+
# Corresponds to the JSON property `name`
|
1582
|
+
# @return [String]
|
1583
|
+
attr_accessor :name
|
1584
|
+
|
1585
|
+
# A list of supported services (e.g., "ground") for that carrier. Contains at
|
1586
|
+
# least one service.
|
1587
|
+
# Corresponds to the JSON property `services`
|
1588
|
+
# @return [Array<String>]
|
1589
|
+
attr_accessor :services
|
1590
|
+
|
1591
|
+
def initialize(**args)
|
1592
|
+
update!(**args)
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
# Update properties of this object
|
1596
|
+
def update!(**args)
|
1597
|
+
@country = args[:country] if args.key?(:country)
|
1598
|
+
@name = args[:name] if args.key?(:name)
|
1599
|
+
@services = args[:services] if args.key?(:services)
|
1600
|
+
end
|
1601
|
+
end
|
1602
|
+
|
1516
1603
|
# Datafeed data.
|
1517
1604
|
class Datafeed
|
1518
1605
|
include Google::Apis::Core::Hashable
|
@@ -2130,6 +2217,34 @@ module Google
|
|
2130
2217
|
end
|
2131
2218
|
end
|
2132
2219
|
|
2220
|
+
#
|
2221
|
+
class DeliveryTime
|
2222
|
+
include Google::Apis::Core::Hashable
|
2223
|
+
|
2224
|
+
# Maximum number of business days that is spent in transit. 0 means same day
|
2225
|
+
# delivery, 1 means next day delivery. Must be greater than or equal to
|
2226
|
+
# minTransitTimeInDays. Required.
|
2227
|
+
# Corresponds to the JSON property `maxTransitTimeInDays`
|
2228
|
+
# @return [Fixnum]
|
2229
|
+
attr_accessor :max_transit_time_in_days
|
2230
|
+
|
2231
|
+
# Minimum number of business days that is spent in transit. 0 means same day
|
2232
|
+
# delivery, 1 means next day delivery. Required.
|
2233
|
+
# Corresponds to the JSON property `minTransitTimeInDays`
|
2234
|
+
# @return [Fixnum]
|
2235
|
+
attr_accessor :min_transit_time_in_days
|
2236
|
+
|
2237
|
+
def initialize(**args)
|
2238
|
+
update!(**args)
|
2239
|
+
end
|
2240
|
+
|
2241
|
+
# Update properties of this object
|
2242
|
+
def update!(**args)
|
2243
|
+
@max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days)
|
2244
|
+
@min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
|
2245
|
+
end
|
2246
|
+
end
|
2247
|
+
|
2133
2248
|
# An error returned by the API.
|
2134
2249
|
class Error
|
2135
2250
|
include Google::Apis::Core::Hashable
|
@@ -2192,6 +2307,63 @@ module Google
|
|
2192
2307
|
end
|
2193
2308
|
end
|
2194
2309
|
|
2310
|
+
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
2311
|
+
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
2312
|
+
class Headers
|
2313
|
+
include Google::Apis::Core::Hashable
|
2314
|
+
|
2315
|
+
# A list of location ID sets. Must be non-empty. Can only be set if all other
|
2316
|
+
# fields are not set.
|
2317
|
+
# Corresponds to the JSON property `locations`
|
2318
|
+
# @return [Array<Google::Apis::ContentV2::LocationIdSet>]
|
2319
|
+
attr_accessor :locations
|
2320
|
+
|
2321
|
+
# A list of inclusive number of items upper bounds. The last value can be "
|
2322
|
+
# infinity". For example ["10", "50", "infinity"] represents the headers "<= 10
|
2323
|
+
# items", " 50 items". Must be non-empty. Can only be set if all other fields
|
2324
|
+
# are not set.
|
2325
|
+
# Corresponds to the JSON property `numberOfItems`
|
2326
|
+
# @return [Array<String>]
|
2327
|
+
attr_accessor :number_of_items
|
2328
|
+
|
2329
|
+
# A list of postal group names. The last value can be "all other locations".
|
2330
|
+
# Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code
|
2331
|
+
# groups must match the delivery country of the service. Must be non-empty. Can
|
2332
|
+
# only be set if all other fields are not set.
|
2333
|
+
# Corresponds to the JSON property `postalCodeGroupNames`
|
2334
|
+
# @return [Array<String>]
|
2335
|
+
attr_accessor :postal_code_group_names
|
2336
|
+
|
2337
|
+
# be "infinity". For example [`"value": "10", "currency": "USD"`, `"value": "500"
|
2338
|
+
# , "currency": "USD"`, `"value": "infinity", "currency": "USD"`] represents the
|
2339
|
+
# headers "<= $10", " $500". All prices within a service must have the same
|
2340
|
+
# currency. Must be non-empty. Can only be set if all other fields are not set.
|
2341
|
+
# Corresponds to the JSON property `prices`
|
2342
|
+
# @return [Array<Google::Apis::ContentV2::Price>]
|
2343
|
+
attr_accessor :prices
|
2344
|
+
|
2345
|
+
# be "infinity". For example [`"value": "10", "unit": "kg"`, `"value": "50", "
|
2346
|
+
# unit": "kg"`, `"value": "infinity", "unit": "kg"`] represents the headers "<=
|
2347
|
+
# 10kg", " 50kg". All weights within a service must have the same unit. Must be
|
2348
|
+
# non-empty. Can only be set if all other fields are not set.
|
2349
|
+
# Corresponds to the JSON property `weights`
|
2350
|
+
# @return [Array<Google::Apis::ContentV2::Weight>]
|
2351
|
+
attr_accessor :weights
|
2352
|
+
|
2353
|
+
def initialize(**args)
|
2354
|
+
update!(**args)
|
2355
|
+
end
|
2356
|
+
|
2357
|
+
# Update properties of this object
|
2358
|
+
def update!(**args)
|
2359
|
+
@locations = args[:locations] if args.key?(:locations)
|
2360
|
+
@number_of_items = args[:number_of_items] if args.key?(:number_of_items)
|
2361
|
+
@postal_code_group_names = args[:postal_code_group_names] if args.key?(:postal_code_group_names)
|
2362
|
+
@prices = args[:prices] if args.key?(:prices)
|
2363
|
+
@weights = args[:weights] if args.key?(:weights)
|
2364
|
+
end
|
2365
|
+
end
|
2366
|
+
|
2195
2367
|
#
|
2196
2368
|
class Installment
|
2197
2369
|
include Google::Apis::Core::Hashable
|
@@ -2495,6 +2667,26 @@ module Google
|
|
2495
2667
|
end
|
2496
2668
|
end
|
2497
2669
|
|
2670
|
+
#
|
2671
|
+
class LocationIdSet
|
2672
|
+
include Google::Apis::Core::Hashable
|
2673
|
+
|
2674
|
+
# A non-empty list of location IDs. They must all be of the same location type (
|
2675
|
+
# e.g., state).
|
2676
|
+
# Corresponds to the JSON property `locationIds`
|
2677
|
+
# @return [Array<String>]
|
2678
|
+
attr_accessor :location_ids
|
2679
|
+
|
2680
|
+
def initialize(**args)
|
2681
|
+
update!(**args)
|
2682
|
+
end
|
2683
|
+
|
2684
|
+
# Update properties of this object
|
2685
|
+
def update!(**args)
|
2686
|
+
@location_ids = args[:location_ids] if args.key?(:location_ids)
|
2687
|
+
end
|
2688
|
+
end
|
2689
|
+
|
2498
2690
|
#
|
2499
2691
|
class LoyaltyPoints
|
2500
2692
|
include Google::Apis::Core::Hashable
|
@@ -2747,7 +2939,7 @@ module Google
|
|
2747
2939
|
# @return [Fixnum]
|
2748
2940
|
attr_accessor :quantity
|
2749
2941
|
|
2750
|
-
# The reason for the cancellation. Orders that are cancelled with a
|
2942
|
+
# The reason for the cancellation. Orders that are cancelled with a noInventory
|
2751
2943
|
# reason will lead to the removal of the product from POG until you make an
|
2752
2944
|
# update to that product. This will not affect your Shopping ads.
|
2753
2945
|
# Corresponds to the JSON property `reason`
|
@@ -4534,6 +4726,71 @@ module Google
|
|
4534
4726
|
end
|
4535
4727
|
end
|
4536
4728
|
|
4729
|
+
#
|
4730
|
+
class PostalCodeGroup
|
4731
|
+
include Google::Apis::Core::Hashable
|
4732
|
+
|
4733
|
+
# The CLDR territory code of the country the postal code group applies to.
|
4734
|
+
# Required.
|
4735
|
+
# Corresponds to the JSON property `country`
|
4736
|
+
# @return [String]
|
4737
|
+
attr_accessor :country
|
4738
|
+
|
4739
|
+
# The name of the postal code group, referred to in headers. Required.
|
4740
|
+
# Corresponds to the JSON property `name`
|
4741
|
+
# @return [String]
|
4742
|
+
attr_accessor :name
|
4743
|
+
|
4744
|
+
# A range of postal codes. Required.
|
4745
|
+
# Corresponds to the JSON property `postalCodeRanges`
|
4746
|
+
# @return [Array<Google::Apis::ContentV2::PostalCodeRange>]
|
4747
|
+
attr_accessor :postal_code_ranges
|
4748
|
+
|
4749
|
+
def initialize(**args)
|
4750
|
+
update!(**args)
|
4751
|
+
end
|
4752
|
+
|
4753
|
+
# Update properties of this object
|
4754
|
+
def update!(**args)
|
4755
|
+
@country = args[:country] if args.key?(:country)
|
4756
|
+
@name = args[:name] if args.key?(:name)
|
4757
|
+
@postal_code_ranges = args[:postal_code_ranges] if args.key?(:postal_code_ranges)
|
4758
|
+
end
|
4759
|
+
end
|
4760
|
+
|
4761
|
+
#
|
4762
|
+
class PostalCodeRange
|
4763
|
+
include Google::Apis::Core::Hashable
|
4764
|
+
|
4765
|
+
# A postal code or a pattern of the form prefix* denoting the inclusive lower
|
4766
|
+
# bound of the range defining the area. Examples values: "94108", "9410*", "9*".
|
4767
|
+
# Required.
|
4768
|
+
# Corresponds to the JSON property `postalCodeRangeBegin`
|
4769
|
+
# @return [String]
|
4770
|
+
attr_accessor :postal_code_range_begin
|
4771
|
+
|
4772
|
+
# A postal code or a pattern of the form prefix* denoting the inclusive upper
|
4773
|
+
# bound of the range defining the area. It must have the same length as
|
4774
|
+
# postalCodeRangeBegin: if postalCodeRangeBegin is a postal code then
|
4775
|
+
# postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin is a
|
4776
|
+
# pattern then postalCodeRangeEnd must be a pattern with the same prefix length.
|
4777
|
+
# Optional: if not set, then the area is defined as being all the postal codes
|
4778
|
+
# matching postalCodeRangeBegin.
|
4779
|
+
# Corresponds to the JSON property `postalCodeRangeEnd`
|
4780
|
+
# @return [String]
|
4781
|
+
attr_accessor :postal_code_range_end
|
4782
|
+
|
4783
|
+
def initialize(**args)
|
4784
|
+
update!(**args)
|
4785
|
+
end
|
4786
|
+
|
4787
|
+
# Update properties of this object
|
4788
|
+
def update!(**args)
|
4789
|
+
@postal_code_range_begin = args[:postal_code_range_begin] if args.key?(:postal_code_range_begin)
|
4790
|
+
@postal_code_range_end = args[:postal_code_range_end] if args.key?(:postal_code_range_end)
|
4791
|
+
end
|
4792
|
+
end
|
4793
|
+
|
4537
4794
|
#
|
4538
4795
|
class Price
|
4539
4796
|
include Google::Apis::Core::Hashable
|
@@ -5834,6 +6091,387 @@ module Google
|
|
5834
6091
|
end
|
5835
6092
|
end
|
5836
6093
|
|
6094
|
+
#
|
6095
|
+
class RateGroup
|
6096
|
+
include Google::Apis::Core::Hashable
|
6097
|
+
|
6098
|
+
# A list of shipping labels defining the products to which this rate group
|
6099
|
+
# applies to. This is a disjunction: only one of the labels has to match for the
|
6100
|
+
# rate group to apply. May only be empty for the last rate group of a service.
|
6101
|
+
# Required.
|
6102
|
+
# Corresponds to the JSON property `applicableShippingLabels`
|
6103
|
+
# @return [Array<String>]
|
6104
|
+
attr_accessor :applicable_shipping_labels
|
6105
|
+
|
6106
|
+
# A list of carrier rates that can be referred to by mainTable or singleValue.
|
6107
|
+
# Corresponds to the JSON property `carrierRates`
|
6108
|
+
# @return [Array<Google::Apis::ContentV2::CarrierRate>]
|
6109
|
+
attr_accessor :carrier_rates
|
6110
|
+
|
6111
|
+
# A table defining the rate group, when singleValue is not expressive enough.
|
6112
|
+
# Can only be set if singleValue is not set.
|
6113
|
+
# Corresponds to the JSON property `mainTable`
|
6114
|
+
# @return [Google::Apis::ContentV2::Table]
|
6115
|
+
attr_accessor :main_table
|
6116
|
+
|
6117
|
+
# The single value of a rate group or the value of a rate group table's cell.
|
6118
|
+
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
|
6119
|
+
# subtableName must be set.
|
6120
|
+
# Corresponds to the JSON property `singleValue`
|
6121
|
+
# @return [Google::Apis::ContentV2::Value]
|
6122
|
+
attr_accessor :single_value
|
6123
|
+
|
6124
|
+
# A list of subtables referred to by mainTable. Can only be set if mainTable is
|
6125
|
+
# set.
|
6126
|
+
# Corresponds to the JSON property `subtables`
|
6127
|
+
# @return [Array<Google::Apis::ContentV2::Table>]
|
6128
|
+
attr_accessor :subtables
|
6129
|
+
|
6130
|
+
def initialize(**args)
|
6131
|
+
update!(**args)
|
6132
|
+
end
|
6133
|
+
|
6134
|
+
# Update properties of this object
|
6135
|
+
def update!(**args)
|
6136
|
+
@applicable_shipping_labels = args[:applicable_shipping_labels] if args.key?(:applicable_shipping_labels)
|
6137
|
+
@carrier_rates = args[:carrier_rates] if args.key?(:carrier_rates)
|
6138
|
+
@main_table = args[:main_table] if args.key?(:main_table)
|
6139
|
+
@single_value = args[:single_value] if args.key?(:single_value)
|
6140
|
+
@subtables = args[:subtables] if args.key?(:subtables)
|
6141
|
+
end
|
6142
|
+
end
|
6143
|
+
|
6144
|
+
#
|
6145
|
+
class Row
|
6146
|
+
include Google::Apis::Core::Hashable
|
6147
|
+
|
6148
|
+
# The list of cells that constitute the row. Must have the same length as
|
6149
|
+
# columnHeaders for two-dimensional tables, a length of 1 for one-dimensional
|
6150
|
+
# tables. Required.
|
6151
|
+
# Corresponds to the JSON property `cells`
|
6152
|
+
# @return [Array<Google::Apis::ContentV2::Value>]
|
6153
|
+
attr_accessor :cells
|
6154
|
+
|
6155
|
+
def initialize(**args)
|
6156
|
+
update!(**args)
|
6157
|
+
end
|
6158
|
+
|
6159
|
+
# Update properties of this object
|
6160
|
+
def update!(**args)
|
6161
|
+
@cells = args[:cells] if args.key?(:cells)
|
6162
|
+
end
|
6163
|
+
end
|
6164
|
+
|
6165
|
+
#
|
6166
|
+
class Service
|
6167
|
+
include Google::Apis::Core::Hashable
|
6168
|
+
|
6169
|
+
# A boolean exposing the active status of the shipping service. Required.
|
6170
|
+
# Corresponds to the JSON property `active`
|
6171
|
+
# @return [Boolean]
|
6172
|
+
attr_accessor :active
|
6173
|
+
alias_method :active?, :active
|
6174
|
+
|
6175
|
+
# The CLDR code of the currency to which this service applies. Must match that
|
6176
|
+
# of the prices in rate groups.
|
6177
|
+
# Corresponds to the JSON property `currency`
|
6178
|
+
# @return [String]
|
6179
|
+
attr_accessor :currency
|
6180
|
+
|
6181
|
+
# The CLDR territory code of the country to which the service applies. Required.
|
6182
|
+
# Corresponds to the JSON property `deliveryCountry`
|
6183
|
+
# @return [String]
|
6184
|
+
attr_accessor :delivery_country
|
6185
|
+
|
6186
|
+
# Time spent in various aspects from order to the delivery of the product.
|
6187
|
+
# Required.
|
6188
|
+
# Corresponds to the JSON property `deliveryTime`
|
6189
|
+
# @return [Google::Apis::ContentV2::DeliveryTime]
|
6190
|
+
attr_accessor :delivery_time
|
6191
|
+
|
6192
|
+
# Free-form name of the service. Must be unique within target account. Required.
|
6193
|
+
# Corresponds to the JSON property `name`
|
6194
|
+
# @return [String]
|
6195
|
+
attr_accessor :name
|
6196
|
+
|
6197
|
+
# Shipping rate group definitions. Only the last one is allowed to have an empty
|
6198
|
+
# applicableShippingLabels, which means "everything else". The other
|
6199
|
+
# applicableShippingLabels must not overlap.
|
6200
|
+
# Corresponds to the JSON property `rateGroups`
|
6201
|
+
# @return [Array<Google::Apis::ContentV2::RateGroup>]
|
6202
|
+
attr_accessor :rate_groups
|
6203
|
+
|
6204
|
+
def initialize(**args)
|
6205
|
+
update!(**args)
|
6206
|
+
end
|
6207
|
+
|
6208
|
+
# Update properties of this object
|
6209
|
+
def update!(**args)
|
6210
|
+
@active = args[:active] if args.key?(:active)
|
6211
|
+
@currency = args[:currency] if args.key?(:currency)
|
6212
|
+
@delivery_country = args[:delivery_country] if args.key?(:delivery_country)
|
6213
|
+
@delivery_time = args[:delivery_time] if args.key?(:delivery_time)
|
6214
|
+
@name = args[:name] if args.key?(:name)
|
6215
|
+
@rate_groups = args[:rate_groups] if args.key?(:rate_groups)
|
6216
|
+
end
|
6217
|
+
end
|
6218
|
+
|
6219
|
+
# The merchant account's shipping settings.
|
6220
|
+
class ShippingSettings
|
6221
|
+
include Google::Apis::Core::Hashable
|
6222
|
+
|
6223
|
+
# The ID of the account to which these account shipping settings belong. Ignored
|
6224
|
+
# upon update, always present in get request responses.
|
6225
|
+
# Corresponds to the JSON property `accountId`
|
6226
|
+
# @return [String]
|
6227
|
+
attr_accessor :account_id
|
6228
|
+
|
6229
|
+
# A list of postal code groups that can be referred to in services. Optional.
|
6230
|
+
# Corresponds to the JSON property `postalCodeGroups`
|
6231
|
+
# @return [Array<Google::Apis::ContentV2::PostalCodeGroup>]
|
6232
|
+
attr_accessor :postal_code_groups
|
6233
|
+
|
6234
|
+
# The target account's list of services. Optional.
|
6235
|
+
# Corresponds to the JSON property `services`
|
6236
|
+
# @return [Array<Google::Apis::ContentV2::Service>]
|
6237
|
+
attr_accessor :services
|
6238
|
+
|
6239
|
+
def initialize(**args)
|
6240
|
+
update!(**args)
|
6241
|
+
end
|
6242
|
+
|
6243
|
+
# Update properties of this object
|
6244
|
+
def update!(**args)
|
6245
|
+
@account_id = args[:account_id] if args.key?(:account_id)
|
6246
|
+
@postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
|
6247
|
+
@services = args[:services] if args.key?(:services)
|
6248
|
+
end
|
6249
|
+
end
|
6250
|
+
|
6251
|
+
#
|
6252
|
+
class ShippingsettingsCustomBatchRequest
|
6253
|
+
include Google::Apis::Core::Hashable
|
6254
|
+
|
6255
|
+
# The request entries to be processed in the batch.
|
6256
|
+
# Corresponds to the JSON property `entries`
|
6257
|
+
# @return [Array<Google::Apis::ContentV2::ShippingsettingsCustomBatchRequestEntry>]
|
6258
|
+
attr_accessor :entries
|
6259
|
+
|
6260
|
+
def initialize(**args)
|
6261
|
+
update!(**args)
|
6262
|
+
end
|
6263
|
+
|
6264
|
+
# Update properties of this object
|
6265
|
+
def update!(**args)
|
6266
|
+
@entries = args[:entries] if args.key?(:entries)
|
6267
|
+
end
|
6268
|
+
end
|
6269
|
+
|
6270
|
+
# A batch entry encoding a single non-batch accountshipping request.
|
6271
|
+
class ShippingsettingsCustomBatchRequestEntry
|
6272
|
+
include Google::Apis::Core::Hashable
|
6273
|
+
|
6274
|
+
# The ID of the account for which to get/update account shipping settings.
|
6275
|
+
# Corresponds to the JSON property `accountId`
|
6276
|
+
# @return [String]
|
6277
|
+
attr_accessor :account_id
|
6278
|
+
|
6279
|
+
# An entry ID, unique within the batch request.
|
6280
|
+
# Corresponds to the JSON property `batchId`
|
6281
|
+
# @return [Fixnum]
|
6282
|
+
attr_accessor :batch_id
|
6283
|
+
|
6284
|
+
# The ID of the managing account.
|
6285
|
+
# Corresponds to the JSON property `merchantId`
|
6286
|
+
# @return [String]
|
6287
|
+
attr_accessor :merchant_id
|
6288
|
+
|
6289
|
+
#
|
6290
|
+
# Corresponds to the JSON property `method`
|
6291
|
+
# @return [String]
|
6292
|
+
attr_accessor :method_prop
|
6293
|
+
|
6294
|
+
# The merchant account's shipping settings.
|
6295
|
+
# Corresponds to the JSON property `shippingSettings`
|
6296
|
+
# @return [Google::Apis::ContentV2::ShippingSettings]
|
6297
|
+
attr_accessor :shipping_settings
|
6298
|
+
|
6299
|
+
def initialize(**args)
|
6300
|
+
update!(**args)
|
6301
|
+
end
|
6302
|
+
|
6303
|
+
# Update properties of this object
|
6304
|
+
def update!(**args)
|
6305
|
+
@account_id = args[:account_id] if args.key?(:account_id)
|
6306
|
+
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
6307
|
+
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
6308
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
6309
|
+
@shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings)
|
6310
|
+
end
|
6311
|
+
end
|
6312
|
+
|
6313
|
+
#
|
6314
|
+
class ShippingsettingsCustomBatchResponse
|
6315
|
+
include Google::Apis::Core::Hashable
|
6316
|
+
|
6317
|
+
# The result of the execution of the batch requests.
|
6318
|
+
# Corresponds to the JSON property `entries`
|
6319
|
+
# @return [Array<Google::Apis::ContentV2::ShippingsettingsCustomBatchResponseEntry>]
|
6320
|
+
attr_accessor :entries
|
6321
|
+
|
6322
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
6323
|
+
# shippingsettingsCustomBatchResponse".
|
6324
|
+
# Corresponds to the JSON property `kind`
|
6325
|
+
# @return [String]
|
6326
|
+
attr_accessor :kind
|
6327
|
+
|
6328
|
+
def initialize(**args)
|
6329
|
+
update!(**args)
|
6330
|
+
end
|
6331
|
+
|
6332
|
+
# Update properties of this object
|
6333
|
+
def update!(**args)
|
6334
|
+
@entries = args[:entries] if args.key?(:entries)
|
6335
|
+
@kind = args[:kind] if args.key?(:kind)
|
6336
|
+
end
|
6337
|
+
end
|
6338
|
+
|
6339
|
+
# A batch entry encoding a single non-batch shipping settings response.
|
6340
|
+
class ShippingsettingsCustomBatchResponseEntry
|
6341
|
+
include Google::Apis::Core::Hashable
|
6342
|
+
|
6343
|
+
# The ID of the request entry to which this entry responds.
|
6344
|
+
# Corresponds to the JSON property `batchId`
|
6345
|
+
# @return [Fixnum]
|
6346
|
+
attr_accessor :batch_id
|
6347
|
+
|
6348
|
+
# A list of errors returned by a failed batch entry.
|
6349
|
+
# Corresponds to the JSON property `errors`
|
6350
|
+
# @return [Google::Apis::ContentV2::Errors]
|
6351
|
+
attr_accessor :errors
|
6352
|
+
|
6353
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
6354
|
+
# shippingsettingsCustomBatchResponseEntry".
|
6355
|
+
# Corresponds to the JSON property `kind`
|
6356
|
+
# @return [String]
|
6357
|
+
attr_accessor :kind
|
6358
|
+
|
6359
|
+
# The merchant account's shipping settings.
|
6360
|
+
# Corresponds to the JSON property `shippingSettings`
|
6361
|
+
# @return [Google::Apis::ContentV2::ShippingSettings]
|
6362
|
+
attr_accessor :shipping_settings
|
6363
|
+
|
6364
|
+
def initialize(**args)
|
6365
|
+
update!(**args)
|
6366
|
+
end
|
6367
|
+
|
6368
|
+
# Update properties of this object
|
6369
|
+
def update!(**args)
|
6370
|
+
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
6371
|
+
@errors = args[:errors] if args.key?(:errors)
|
6372
|
+
@kind = args[:kind] if args.key?(:kind)
|
6373
|
+
@shipping_settings = args[:shipping_settings] if args.key?(:shipping_settings)
|
6374
|
+
end
|
6375
|
+
end
|
6376
|
+
|
6377
|
+
#
|
6378
|
+
class ShippingsettingsGetSupportedCarriersResponse
|
6379
|
+
include Google::Apis::Core::Hashable
|
6380
|
+
|
6381
|
+
# A list of supported carriers. May be empty.
|
6382
|
+
# Corresponds to the JSON property `carriers`
|
6383
|
+
# @return [Array<Google::Apis::ContentV2::CarriersCarrier>]
|
6384
|
+
attr_accessor :carriers
|
6385
|
+
|
6386
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
6387
|
+
# shippingsettingsGetSupportedCarriersResponse".
|
6388
|
+
# Corresponds to the JSON property `kind`
|
6389
|
+
# @return [String]
|
6390
|
+
attr_accessor :kind
|
6391
|
+
|
6392
|
+
def initialize(**args)
|
6393
|
+
update!(**args)
|
6394
|
+
end
|
6395
|
+
|
6396
|
+
# Update properties of this object
|
6397
|
+
def update!(**args)
|
6398
|
+
@carriers = args[:carriers] if args.key?(:carriers)
|
6399
|
+
@kind = args[:kind] if args.key?(:kind)
|
6400
|
+
end
|
6401
|
+
end
|
6402
|
+
|
6403
|
+
#
|
6404
|
+
class ShippingsettingsListResponse
|
6405
|
+
include Google::Apis::Core::Hashable
|
6406
|
+
|
6407
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
6408
|
+
# shippingsettingsListResponse".
|
6409
|
+
# Corresponds to the JSON property `kind`
|
6410
|
+
# @return [String]
|
6411
|
+
attr_accessor :kind
|
6412
|
+
|
6413
|
+
# The token for the retrieval of the next page of shipping settings.
|
6414
|
+
# Corresponds to the JSON property `nextPageToken`
|
6415
|
+
# @return [String]
|
6416
|
+
attr_accessor :next_page_token
|
6417
|
+
|
6418
|
+
#
|
6419
|
+
# Corresponds to the JSON property `resources`
|
6420
|
+
# @return [Array<Google::Apis::ContentV2::ShippingSettings>]
|
6421
|
+
attr_accessor :resources
|
6422
|
+
|
6423
|
+
def initialize(**args)
|
6424
|
+
update!(**args)
|
6425
|
+
end
|
6426
|
+
|
6427
|
+
# Update properties of this object
|
6428
|
+
def update!(**args)
|
6429
|
+
@kind = args[:kind] if args.key?(:kind)
|
6430
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
6431
|
+
@resources = args[:resources] if args.key?(:resources)
|
6432
|
+
end
|
6433
|
+
end
|
6434
|
+
|
6435
|
+
#
|
6436
|
+
class Table
|
6437
|
+
include Google::Apis::Core::Hashable
|
6438
|
+
|
6439
|
+
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
6440
|
+
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
6441
|
+
# Corresponds to the JSON property `columnHeaders`
|
6442
|
+
# @return [Google::Apis::ContentV2::Headers]
|
6443
|
+
attr_accessor :column_headers
|
6444
|
+
|
6445
|
+
# Name of the table. Required for subtables, ignored for the main table.
|
6446
|
+
# Corresponds to the JSON property `name`
|
6447
|
+
# @return [String]
|
6448
|
+
attr_accessor :name
|
6449
|
+
|
6450
|
+
# A non-empty list of row or column headers for a table. Exactly one of prices,
|
6451
|
+
# weights, numItems, postalCodeGroupNames, or locations must be set.
|
6452
|
+
# Corresponds to the JSON property `rowHeaders`
|
6453
|
+
# @return [Google::Apis::ContentV2::Headers]
|
6454
|
+
attr_accessor :row_headers
|
6455
|
+
|
6456
|
+
# The list of rows that constitute the table. Must have the same length as
|
6457
|
+
# rowHeaders. Required.
|
6458
|
+
# Corresponds to the JSON property `rows`
|
6459
|
+
# @return [Array<Google::Apis::ContentV2::Row>]
|
6460
|
+
attr_accessor :rows
|
6461
|
+
|
6462
|
+
def initialize(**args)
|
6463
|
+
update!(**args)
|
6464
|
+
end
|
6465
|
+
|
6466
|
+
# Update properties of this object
|
6467
|
+
def update!(**args)
|
6468
|
+
@column_headers = args[:column_headers] if args.key?(:column_headers)
|
6469
|
+
@name = args[:name] if args.key?(:name)
|
6470
|
+
@row_headers = args[:row_headers] if args.key?(:row_headers)
|
6471
|
+
@rows = args[:rows] if args.key?(:rows)
|
6472
|
+
end
|
6473
|
+
end
|
6474
|
+
|
5837
6475
|
#
|
5838
6476
|
class TestOrder
|
5839
6477
|
include Google::Apis::Core::Hashable
|
@@ -6117,6 +6755,56 @@ module Google
|
|
6117
6755
|
end
|
6118
6756
|
end
|
6119
6757
|
|
6758
|
+
# The single value of a rate group or the value of a rate group table's cell.
|
6759
|
+
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
|
6760
|
+
# subtableName must be set.
|
6761
|
+
class Value
|
6762
|
+
include Google::Apis::Core::Hashable
|
6763
|
+
|
6764
|
+
# The name of a carrier rate referring to a carrier rate defined in the same
|
6765
|
+
# rate group. Can only be set if all other fields are not set.
|
6766
|
+
# Corresponds to the JSON property `carrierRateName`
|
6767
|
+
# @return [String]
|
6768
|
+
attr_accessor :carrier_rate_name
|
6769
|
+
|
6770
|
+
# A flat rate. Can only be set if all other fields are not set.
|
6771
|
+
# Corresponds to the JSON property `flatRate`
|
6772
|
+
# @return [Google::Apis::ContentV2::Price]
|
6773
|
+
attr_accessor :flat_rate
|
6774
|
+
|
6775
|
+
# If true, then the product can't ship. Must be true when set, can only be set
|
6776
|
+
# if all other fields are not set.
|
6777
|
+
# Corresponds to the JSON property `noShipping`
|
6778
|
+
# @return [Boolean]
|
6779
|
+
attr_accessor :no_shipping
|
6780
|
+
alias_method :no_shipping?, :no_shipping
|
6781
|
+
|
6782
|
+
# A percentage of the price represented as a number in decimal notation (e.g., "
|
6783
|
+
# 5.4"). Can only be set if all other fields are not set.
|
6784
|
+
# Corresponds to the JSON property `pricePercentage`
|
6785
|
+
# @return [String]
|
6786
|
+
attr_accessor :price_percentage
|
6787
|
+
|
6788
|
+
# The name of a subtable. Can only be set in table cells (i.e., not for single
|
6789
|
+
# values), and only if all other fields are not set.
|
6790
|
+
# Corresponds to the JSON property `subtableName`
|
6791
|
+
# @return [String]
|
6792
|
+
attr_accessor :subtable_name
|
6793
|
+
|
6794
|
+
def initialize(**args)
|
6795
|
+
update!(**args)
|
6796
|
+
end
|
6797
|
+
|
6798
|
+
# Update properties of this object
|
6799
|
+
def update!(**args)
|
6800
|
+
@carrier_rate_name = args[:carrier_rate_name] if args.key?(:carrier_rate_name)
|
6801
|
+
@flat_rate = args[:flat_rate] if args.key?(:flat_rate)
|
6802
|
+
@no_shipping = args[:no_shipping] if args.key?(:no_shipping)
|
6803
|
+
@price_percentage = args[:price_percentage] if args.key?(:price_percentage)
|
6804
|
+
@subtable_name = args[:subtable_name] if args.key?(:subtable_name)
|
6805
|
+
end
|
6806
|
+
end
|
6807
|
+
|
6120
6808
|
#
|
6121
6809
|
class Weight
|
6122
6810
|
include Google::Apis::Core::Hashable
|