google-api-client 0.14.3 → 0.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  4. data/generated/google/apis/analytics_v3/service.rb +1 -1
  5. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -1
  6. data/generated/google/apis/compute_alpha.rb +1 -1
  7. data/generated/google/apis/compute_alpha/classes.rb +77 -9
  8. data/generated/google/apis/compute_alpha/representations.rb +33 -0
  9. data/generated/google/apis/compute_alpha/service.rb +122 -0
  10. data/generated/google/apis/compute_beta.rb +1 -1
  11. data/generated/google/apis/compute_beta/classes.rb +57 -9
  12. data/generated/google/apis/compute_beta/representations.rb +5 -0
  13. data/generated/google/apis/compute_beta/service.rb +180 -0
  14. data/generated/google/apis/compute_v1.rb +1 -1
  15. data/generated/google/apis/compute_v1/classes.rb +30 -9
  16. data/generated/google/apis/compute_v1/representations.rb +4 -0
  17. data/generated/google/apis/compute_v1/service.rb +1 -1
  18. data/generated/google/apis/content_v2.rb +1 -1
  19. data/generated/google/apis/content_v2/classes.rb +137 -8
  20. data/generated/google/apis/content_v2/representations.rb +38 -0
  21. data/generated/google/apis/content_v2/service.rb +13 -1
  22. data/generated/google/apis/content_v2sandbox.rb +1 -1
  23. data/generated/google/apis/content_v2sandbox/classes.rb +9 -1
  24. data/generated/google/apis/resourceviews_v1beta1/service.rb +1 -1
  25. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  26. data/generated/google/apis/servicecontrol_v1/classes.rb +47 -17
  27. data/generated/google/apis/servicecontrol_v1/representations.rb +16 -1
  28. data/generated/google/apis/servicecontrol_v1/service.rb +10 -18
  29. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -1
  30. data/lib/google/apis/version.rb +1 -1
  31. metadata +2 -2
@@ -2946,6 +2946,8 @@ module Google
2946
2946
  property :kind, as: 'kind'
2947
2947
  property :name, as: 'name'
2948
2948
  property :nat_ip, as: 'natIP'
2949
+ property :public_ptr_domain_name, as: 'publicPtrDomainName'
2950
+ property :set_public_ptr, as: 'setPublicPtr'
2949
2951
  property :type, as: 'type'
2950
2952
  end
2951
2953
  end
@@ -5716,6 +5718,7 @@ module Google
5716
5718
 
5717
5719
  collection :alias_ip_ranges, as: 'aliasIpRanges', class: Google::Apis::ComputeBeta::AliasIpRange, decorator: Google::Apis::ComputeBeta::AliasIpRange::Representation
5718
5720
 
5721
+ property :fingerprint, :base64 => true, as: 'fingerprint'
5719
5722
  property :kind, as: 'kind'
5720
5723
  property :name, as: 'name'
5721
5724
  property :network, as: 'network'
@@ -6821,8 +6824,10 @@ module Google
6821
6824
  class Subnetwork
6822
6825
  # @private
6823
6826
  class Representation < Google::Apis::Core::JsonRepresentation
6827
+ property :allow_subnet_cidr_routes_overlap, as: 'allowSubnetCidrRoutesOverlap'
6824
6828
  property :creation_timestamp, as: 'creationTimestamp'
6825
6829
  property :description, as: 'description'
6830
+ property :fingerprint, :base64 => true, as: 'fingerprint'
6826
6831
  property :gateway_address, as: 'gatewayAddress'
6827
6832
  property :id, :numeric_string => true, as: 'id'
6828
6833
  property :ip_cidr_range, as: 'ipCidrRange'
@@ -9280,6 +9280,126 @@ module Google
9280
9280
  execute_or_queue_command(command, &block)
9281
9281
  end
9282
9282
 
9283
+ # Updates the specified access config from an instance's network interface with
9284
+ # the data included in the request. This method supports PATCH semantics and
9285
+ # uses the JSON merge patch format and processing rules.
9286
+ # @param [String] project
9287
+ # Project ID for this request.
9288
+ # @param [String] zone
9289
+ # The name of the zone for this request.
9290
+ # @param [String] instance
9291
+ # The instance name for this request.
9292
+ # @param [String] network_interface
9293
+ # The name of the network interface where the access config is attached.
9294
+ # @param [Google::Apis::ComputeBeta::AccessConfig] access_config_object
9295
+ # @param [String] request_id
9296
+ # An optional request ID to identify requests. Specify a unique request ID so
9297
+ # that if you must retry your request, the server will know to ignore the
9298
+ # request if it has already been completed.
9299
+ # For example, consider a situation where you make an initial request and the
9300
+ # request times out. If you make the request again with the same request ID, the
9301
+ # server can check if original operation with the same request ID was received,
9302
+ # and if so, will ignore the second request. This prevents clients from
9303
+ # accidentally creating duplicate commitments.
9304
+ # The request ID must be a valid UUID with the exception that zero UUID is not
9305
+ # supported (00000000-0000-0000-0000-000000000000).
9306
+ # @param [String] fields
9307
+ # Selector specifying which fields to include in a partial response.
9308
+ # @param [String] quota_user
9309
+ # Available to use for quota purposes for server-side applications. Can be any
9310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9311
+ # Overrides userIp if both are provided.
9312
+ # @param [String] user_ip
9313
+ # IP address of the site where the request originates. Use this if you want to
9314
+ # enforce per-user limits.
9315
+ # @param [Google::Apis::RequestOptions] options
9316
+ # Request-specific options
9317
+ #
9318
+ # @yield [result, err] Result & error if block supplied
9319
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
9320
+ # @yieldparam err [StandardError] error object if request failed
9321
+ #
9322
+ # @return [Google::Apis::ComputeBeta::Operation]
9323
+ #
9324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9327
+ def update_instance_access_config(project, zone, instance, network_interface, access_config_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9328
+ command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/updateAccessConfig', options)
9329
+ command.request_representation = Google::Apis::ComputeBeta::AccessConfig::Representation
9330
+ command.request_object = access_config_object
9331
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9332
+ command.response_class = Google::Apis::ComputeBeta::Operation
9333
+ command.params['project'] = project unless project.nil?
9334
+ command.params['zone'] = zone unless zone.nil?
9335
+ command.params['instance'] = instance unless instance.nil?
9336
+ command.query['networkInterface'] = network_interface unless network_interface.nil?
9337
+ command.query['requestId'] = request_id unless request_id.nil?
9338
+ command.query['fields'] = fields unless fields.nil?
9339
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9340
+ command.query['userIp'] = user_ip unless user_ip.nil?
9341
+ execute_or_queue_command(command, &block)
9342
+ end
9343
+
9344
+ # Updates an instance's network interface. This method follows PATCH semantics.
9345
+ # @param [String] project
9346
+ # Project ID for this request.
9347
+ # @param [String] zone
9348
+ # The name of the zone for this request.
9349
+ # @param [String] instance
9350
+ # The instance name for this request.
9351
+ # @param [String] network_interface
9352
+ # The name of the network interface to update.
9353
+ # @param [Google::Apis::ComputeBeta::NetworkInterface] network_interface_object
9354
+ # @param [String] request_id
9355
+ # An optional request ID to identify requests. Specify a unique request ID so
9356
+ # that if you must retry your request, the server will know to ignore the
9357
+ # request if it has already been completed.
9358
+ # For example, consider a situation where you make an initial request and the
9359
+ # request times out. If you make the request again with the same request ID, the
9360
+ # server can check if original operation with the same request ID was received,
9361
+ # and if so, will ignore the second request. This prevents clients from
9362
+ # accidentally creating duplicate commitments.
9363
+ # The request ID must be a valid UUID with the exception that zero UUID is not
9364
+ # supported (00000000-0000-0000-0000-000000000000).
9365
+ # @param [String] fields
9366
+ # Selector specifying which fields to include in a partial response.
9367
+ # @param [String] quota_user
9368
+ # Available to use for quota purposes for server-side applications. Can be any
9369
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9370
+ # Overrides userIp if both are provided.
9371
+ # @param [String] user_ip
9372
+ # IP address of the site where the request originates. Use this if you want to
9373
+ # enforce per-user limits.
9374
+ # @param [Google::Apis::RequestOptions] options
9375
+ # Request-specific options
9376
+ #
9377
+ # @yield [result, err] Result & error if block supplied
9378
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
9379
+ # @yieldparam err [StandardError] error object if request failed
9380
+ #
9381
+ # @return [Google::Apis::ComputeBeta::Operation]
9382
+ #
9383
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9384
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9385
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9386
+ def update_instance_network_interface(project, zone, instance, network_interface, network_interface_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9387
+ command = make_simple_command(:patch, '{project}/zones/{zone}/instances/{instance}/updateNetworkInterface', options)
9388
+ command.request_representation = Google::Apis::ComputeBeta::NetworkInterface::Representation
9389
+ command.request_object = network_interface_object
9390
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9391
+ command.response_class = Google::Apis::ComputeBeta::Operation
9392
+ command.params['project'] = project unless project.nil?
9393
+ command.params['zone'] = zone unless zone.nil?
9394
+ command.params['instance'] = instance unless instance.nil?
9395
+ command.query['networkInterface'] = network_interface unless network_interface.nil?
9396
+ command.query['requestId'] = request_id unless request_id.nil?
9397
+ command.query['fields'] = fields unless fields.nil?
9398
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9399
+ command.query['userIp'] = user_ip unless user_ip.nil?
9400
+ execute_or_queue_command(command, &block)
9401
+ end
9402
+
9283
9403
  # Retrieves an aggregated list of interconnect attachments.
9284
9404
  # @param [String] project
9285
9405
  # Project ID for this request.
@@ -15883,6 +16003,66 @@ module Google
15883
16003
  execute_or_queue_command(command, &block)
15884
16004
  end
15885
16005
 
16006
+ # Patches the specified subnetwork with the data included in the request. Only
16007
+ # the following fields within the subnetwork resource can be specified in the
16008
+ # request: secondary_ip_range and allow_subnet_cidr_routes_overlap. It is also
16009
+ # mandatory to specify the current fingeprint of the subnetwork resource being
16010
+ # patched.
16011
+ # @param [String] project
16012
+ # Project ID for this request.
16013
+ # @param [String] region
16014
+ # Name of the region scoping this request.
16015
+ # @param [String] subnetwork
16016
+ # Name of the Subnetwork resource to patch.
16017
+ # @param [Google::Apis::ComputeBeta::Subnetwork] subnetwork_object
16018
+ # @param [String] request_id
16019
+ # An optional request ID to identify requests. Specify a unique request ID so
16020
+ # that if you must retry your request, the server will know to ignore the
16021
+ # request if it has already been completed.
16022
+ # For example, consider a situation where you make an initial request and the
16023
+ # request times out. If you make the request again with the same request ID, the
16024
+ # server can check if original operation with the same request ID was received,
16025
+ # and if so, will ignore the second request. This prevents clients from
16026
+ # accidentally creating duplicate commitments.
16027
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16028
+ # supported (00000000-0000-0000-0000-000000000000).
16029
+ # @param [String] fields
16030
+ # Selector specifying which fields to include in a partial response.
16031
+ # @param [String] quota_user
16032
+ # Available to use for quota purposes for server-side applications. Can be any
16033
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16034
+ # Overrides userIp if both are provided.
16035
+ # @param [String] user_ip
16036
+ # IP address of the site where the request originates. Use this if you want to
16037
+ # enforce per-user limits.
16038
+ # @param [Google::Apis::RequestOptions] options
16039
+ # Request-specific options
16040
+ #
16041
+ # @yield [result, err] Result & error if block supplied
16042
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
16043
+ # @yieldparam err [StandardError] error object if request failed
16044
+ #
16045
+ # @return [Google::Apis::ComputeBeta::Operation]
16046
+ #
16047
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16048
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16049
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16050
+ def patch_subnetwork(project, region, subnetwork, subnetwork_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16051
+ command = make_simple_command(:patch, '{project}/regions/{region}/subnetworks/{subnetwork}', options)
16052
+ command.request_representation = Google::Apis::ComputeBeta::Subnetwork::Representation
16053
+ command.request_object = subnetwork_object
16054
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16055
+ command.response_class = Google::Apis::ComputeBeta::Operation
16056
+ command.params['project'] = project unless project.nil?
16057
+ command.params['region'] = region unless region.nil?
16058
+ command.params['subnetwork'] = subnetwork unless subnetwork.nil?
16059
+ command.query['requestId'] = request_id unless request_id.nil?
16060
+ command.query['fields'] = fields unless fields.nil?
16061
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16062
+ command.query['userIp'] = user_ip unless user_ip.nil?
16063
+ execute_or_queue_command(command, &block)
16064
+ end
16065
+
15886
16066
  # Sets the access control policy on the specified resource. Replaces any
15887
16067
  # existing policy.
15888
16068
  # @param [String] project
@@ -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 = '20170905'
28
+ REVISION = '20170908'
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'
@@ -355,7 +355,7 @@ module Google
355
355
  class Address
356
356
  include Google::Apis::Core::Hashable
357
357
 
358
- # The static external IP address represented by this resource.
358
+ # The static IP address represented by this resource.
359
359
  # Corresponds to the JSON property `address`
360
360
  # @return [String]
361
361
  attr_accessor :address
@@ -3846,8 +3846,7 @@ module Google
3846
3846
 
3847
3847
  # The type of supported feature. Currently only VIRTIO_SCSI_MULTIQUEUE is
3848
3848
  # supported. For newer Windows images, the server might also populate this
3849
- # property with the value WINDOWS to indicate that this is a Windows image. This
3850
- # value is purely informational and does not enable or disable any features.
3849
+ # property with the value WINDOWS to indicate that this is a Windows image.
3851
3850
  # Corresponds to the JSON property `type`
3852
3851
  # @return [String]
3853
3852
  attr_accessor :type
@@ -4570,9 +4569,8 @@ module Google
4570
4569
  # can only enable VIRTIO_SCSI_MULTIQUEUE on images with driver version 1.2.0.
4571
4570
  # 1621 or higher. Linux images with kernel versions 3.17 and higher will support
4572
4571
  # VIRTIO_SCSI_MULTIQUEUE.
4573
- # For new Windows images, the server might also populate this field with the
4574
- # value WINDOWS, to indicate that this is a Windows image. This value is purely
4575
- # informational and does not enable or disable any features.
4572
+ # For newer Windows images, the server might also populate this property with
4573
+ # the value WINDOWS to indicate that this is a Windows image.
4576
4574
  # Corresponds to the JSON property `guestOsFeatures`
4577
4575
  # @return [Array<Google::Apis::ComputeV1::GuestOsFeature>]
4578
4576
  attr_accessor :guest_os_features
@@ -4658,6 +4656,27 @@ module Google
4658
4656
  # @return [String]
4659
4657
  attr_accessor :source_disk_id
4660
4658
 
4659
+ # URL of the source image used to create this image. This can be a full or valid
4660
+ # partial URL. You must provide exactly one of:
4661
+ # - this property, or
4662
+ # - the rawDisk.source property, or
4663
+ # - the sourceDisk property in order to create an image.
4664
+ # Corresponds to the JSON property `sourceImage`
4665
+ # @return [String]
4666
+ attr_accessor :source_image
4667
+
4668
+ # Represents a customer-supplied encryption key
4669
+ # Corresponds to the JSON property `sourceImageEncryptionKey`
4670
+ # @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
4671
+ attr_accessor :source_image_encryption_key
4672
+
4673
+ # [Output Only] The ID value of the image used to create this image. This value
4674
+ # may be used to determine whether the image was taken from the current or a
4675
+ # previous instance of a given image name.
4676
+ # Corresponds to the JSON property `sourceImageId`
4677
+ # @return [String]
4678
+ attr_accessor :source_image_id
4679
+
4661
4680
  # The type of the image used to create this disk. The default and only value is
4662
4681
  # RAW
4663
4682
  # Corresponds to the JSON property `sourceType`
@@ -4697,6 +4716,9 @@ module Google
4697
4716
  @source_disk = args[:source_disk] if args.key?(:source_disk)
4698
4717
  @source_disk_encryption_key = args[:source_disk_encryption_key] if args.key?(:source_disk_encryption_key)
4699
4718
  @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id)
4719
+ @source_image = args[:source_image] if args.key?(:source_image)
4720
+ @source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key)
4721
+ @source_image_id = args[:source_image_id] if args.key?(:source_image_id)
4700
4722
  @source_type = args[:source_type] if args.key?(:source_type)
4701
4723
  @status = args[:status] if args.key?(:status)
4702
4724
  end
@@ -9828,9 +9850,8 @@ module Google
9828
9850
  # @return [String]
9829
9851
  attr_accessor :status
9830
9852
 
9831
- # [Output Only] A size of the the storage used by the snapshot. As snapshots
9832
- # share storage, this number is expected to change with snapshot creation/
9833
- # deletion.
9853
+ # [Output Only] A size of the storage used by the snapshot. As snapshots share
9854
+ # storage, this number is expected to change with snapshot creation/deletion.
9834
9855
  # Corresponds to the JSON property `storageBytes`
9835
9856
  # @return [Fixnum]
9836
9857
  attr_accessor :storage_bytes
@@ -2788,6 +2788,10 @@ module Google
2788
2788
  property :source_disk_encryption_key, as: 'sourceDiskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
2789
2789
 
2790
2790
  property :source_disk_id, as: 'sourceDiskId'
2791
+ property :source_image, as: 'sourceImage'
2792
+ property :source_image_encryption_key, as: 'sourceImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
2793
+
2794
+ property :source_image_id, as: 'sourceImageId'
2791
2795
  property :source_type, as: 'sourceType'
2792
2796
  property :status, as: 'status'
2793
2797
  end
@@ -50,7 +50,7 @@ module Google
50
50
 
51
51
  def initialize
52
52
  super('https://www.googleapis.com/', 'compute/v1/projects/')
53
- @batch_path = 'batch'
53
+ @batch_path = 'batch/compute/v1'
54
54
  end
55
55
 
56
56
  # Retrieves an aggregated list of accelerator types.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/shopping-content
27
27
  module ContentV2
28
28
  VERSION = 'V2'
29
- REVISION = '20170914'
29
+ REVISION = '20170921'
30
30
 
31
31
  # Manage your product listings and accounts for Google Shopping
32
32
  AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -78,6 +78,15 @@ module Google
78
78
  # @return [String]
79
79
  attr_accessor :website_url
80
80
 
81
+ # List of linked YouTube channels that are active or pending approval. To create
82
+ # a new link request, add a new link with status active to the list. It will
83
+ # remain in a pending state until approved or rejected in the YT Creator Studio
84
+ # interface. To delete an active link, or to cancel a link request, remove it
85
+ # from the list.
86
+ # Corresponds to the JSON property `youtubeChannelLinks`
87
+ # @return [Array<Google::Apis::ContentV2::AccountYouTubeChannelLink>]
88
+ attr_accessor :youtube_channel_links
89
+
81
90
  def initialize(**args)
82
91
  update!(**args)
83
92
  end
@@ -93,6 +102,7 @@ module Google
93
102
  @seller_id = args[:seller_id] if args.key?(:seller_id)
94
103
  @users = args[:users] if args.key?(:users)
95
104
  @website_url = args[:website_url] if args.key?(:website_url)
105
+ @youtube_channel_links = args[:youtube_channel_links] if args.key?(:youtube_channel_links)
96
106
  end
97
107
  end
98
108
 
@@ -467,6 +477,39 @@ module Google
467
477
  end
468
478
  end
469
479
 
480
+ #
481
+ class AccountYouTubeChannelLink
482
+ include Google::Apis::Core::Hashable
483
+
484
+ # Channel ID.
485
+ # Corresponds to the JSON property `channelId`
486
+ # @return [String]
487
+ attr_accessor :channel_id
488
+
489
+ # Status of the link between this Merchant Center account and the YouTube
490
+ # channel. Upon retrieval, it represents the actual status of the link and can
491
+ # be either active if it was approved in YT Creator Studio or pending if it's
492
+ # pending approval. Upon insertion, it represents the intended status of the
493
+ # link. Re-uploading a link with status active when it's still pending or with
494
+ # status pending when it's already active will have no effect: the status will
495
+ # remain unchanged. Re-uploading a link with deprecated status inactive is
496
+ # equivalent to not submitting the link at all and will delete the link if it
497
+ # was active or cancel the link request if it was pending.
498
+ # Corresponds to the JSON property `status`
499
+ # @return [String]
500
+ attr_accessor :status
501
+
502
+ def initialize(**args)
503
+ update!(**args)
504
+ end
505
+
506
+ # Update properties of this object
507
+ def update!(**args)
508
+ @channel_id = args[:channel_id] if args.key?(:channel_id)
509
+ @status = args[:status] if args.key?(:status)
510
+ end
511
+ end
512
+
470
513
  #
471
514
  class AccountsAuthInfoResponse
472
515
  include Google::Apis::Core::Hashable
@@ -1093,8 +1136,8 @@ module Google
1093
1136
  # @return [String]
1094
1137
  attr_accessor :attribute_language
1095
1138
 
1096
- # The two-letter ISO 639-1 language of the items in the feed. Must be a valid
1097
- # language for targetCountry.
1139
+ # [DEPRECATED] Please use target.language instead. The two-letter ISO 639-1
1140
+ # language of the items in the feed. Must be a valid language for targetCountry.
1098
1141
  # Corresponds to the JSON property `contentLanguage`
1099
1142
  # @return [String]
1100
1143
  attr_accessor :content_language
@@ -1128,8 +1171,8 @@ module Google
1128
1171
  # @return [Fixnum]
1129
1172
  attr_accessor :id
1130
1173
 
1131
- # The list of intended destinations (corresponds to checked check boxes in
1132
- # Merchant Center).
1174
+ # [DEPRECATED] Please use target.includedDestination instead. The list of
1175
+ # intended destinations (corresponds to checked check boxes in Merchant Center).
1133
1176
  # Corresponds to the JSON property `intendedDestinations`
1134
1177
  # @return [Array<String>]
1135
1178
  attr_accessor :intended_destinations
@@ -1145,12 +1188,18 @@ module Google
1145
1188
  # @return [String]
1146
1189
  attr_accessor :name
1147
1190
 
1148
- # The country where the items in the feed will be included in the search index,
1149
- # represented as a CLDR territory code.
1191
+ # [DEPRECATED] Please use target.country instead. The country where the items in
1192
+ # the feed will be included in the search index, represented as a CLDR territory
1193
+ # code.
1150
1194
  # Corresponds to the JSON property `targetCountry`
1151
1195
  # @return [String]
1152
1196
  attr_accessor :target_country
1153
1197
 
1198
+ # The targets this feed should apply to (country, language, destinations).
1199
+ # Corresponds to the JSON property `targets`
1200
+ # @return [Array<Google::Apis::ContentV2::DatafeedTarget>]
1201
+ attr_accessor :targets
1202
+
1154
1203
  def initialize(**args)
1155
1204
  update!(**args)
1156
1205
  end
@@ -1168,6 +1217,7 @@ module Google
1168
1217
  @kind = args[:kind] if args.key?(:kind)
1169
1218
  @name = args[:name] if args.key?(:name)
1170
1219
  @target_country = args[:target_country] if args.key?(:target_country)
1220
+ @targets = args[:targets] if args.key?(:targets)
1171
1221
  end
1172
1222
  end
1173
1223
 
@@ -1285,6 +1335,12 @@ module Google
1285
1335
  class DatafeedStatus
1286
1336
  include Google::Apis::Core::Hashable
1287
1337
 
1338
+ # The country for which the status is reported, represented as a CLDR territory
1339
+ # code.
1340
+ # Corresponds to the JSON property `country`
1341
+ # @return [String]
1342
+ attr_accessor :country
1343
+
1288
1344
  # The ID of the feed for which the status is reported.
1289
1345
  # Corresponds to the JSON property `datafeedId`
1290
1346
  # @return [Fixnum]
@@ -1311,6 +1367,11 @@ module Google
1311
1367
  # @return [String]
1312
1368
  attr_accessor :kind
1313
1369
 
1370
+ # The two-letter ISO 639-1 language for which the status is reported.
1371
+ # Corresponds to the JSON property `language`
1372
+ # @return [String]
1373
+ attr_accessor :language
1374
+
1314
1375
  # The last date at which the feed was uploaded.
1315
1376
  # Corresponds to the JSON property `lastUploadDate`
1316
1377
  # @return [String]
@@ -1332,11 +1393,13 @@ module Google
1332
1393
 
1333
1394
  # Update properties of this object
1334
1395
  def update!(**args)
1396
+ @country = args[:country] if args.key?(:country)
1335
1397
  @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id)
1336
1398
  @errors = args[:errors] if args.key?(:errors)
1337
1399
  @items_total = args[:items_total] if args.key?(:items_total)
1338
1400
  @items_valid = args[:items_valid] if args.key?(:items_valid)
1339
1401
  @kind = args[:kind] if args.key?(:kind)
1402
+ @language = args[:language] if args.key?(:language)
1340
1403
  @last_upload_date = args[:last_upload_date] if args.key?(:last_upload_date)
1341
1404
  @processing_status = args[:processing_status] if args.key?(:processing_status)
1342
1405
  @warnings = args[:warnings] if args.key?(:warnings)
@@ -1411,6 +1474,48 @@ module Google
1411
1474
  end
1412
1475
  end
1413
1476
 
1477
+ #
1478
+ class DatafeedTarget
1479
+ include Google::Apis::Core::Hashable
1480
+
1481
+ # The country where the items in the feed will be included in the search index,
1482
+ # represented as a CLDR territory code.
1483
+ # Corresponds to the JSON property `country`
1484
+ # @return [String]
1485
+ attr_accessor :country
1486
+
1487
+ # The list of destinations to exclude for this target (corresponds to unchecked
1488
+ # check boxes in Merchant Center).
1489
+ # Corresponds to the JSON property `excludedDestinations`
1490
+ # @return [Array<String>]
1491
+ attr_accessor :excluded_destinations
1492
+
1493
+ # The list of destinations to include for this target (corresponds to checked
1494
+ # check boxes in Merchant Center). Default destinations are always included
1495
+ # unless provided in the excluded_destination field.
1496
+ # Corresponds to the JSON property `includedDestinations`
1497
+ # @return [Array<String>]
1498
+ attr_accessor :included_destinations
1499
+
1500
+ # The two-letter ISO 639-1 language of the items in the feed. Must be a valid
1501
+ # language for targetCountryLanguage.country.
1502
+ # Corresponds to the JSON property `language`
1503
+ # @return [String]
1504
+ attr_accessor :language
1505
+
1506
+ def initialize(**args)
1507
+ update!(**args)
1508
+ end
1509
+
1510
+ # Update properties of this object
1511
+ def update!(**args)
1512
+ @country = args[:country] if args.key?(:country)
1513
+ @excluded_destinations = args[:excluded_destinations] if args.key?(:excluded_destinations)
1514
+ @included_destinations = args[:included_destinations] if args.key?(:included_destinations)
1515
+ @language = args[:language] if args.key?(:language)
1516
+ end
1517
+ end
1518
+
1414
1519
  #
1415
1520
  class BatchDatafeedsRequest
1416
1521
  include Google::Apis::Core::Hashable
@@ -1590,11 +1695,25 @@ module Google
1590
1695
  # @return [Fixnum]
1591
1696
  attr_accessor :batch_id
1592
1697
 
1593
- # The ID of the data feed to get or delete.
1698
+ # The country for which to get the datafeed status. If this parameter is
1699
+ # provided then language must also be provided. Note that for multi-target
1700
+ # datafeeds this parameter is required.
1701
+ # Corresponds to the JSON property `country`
1702
+ # @return [String]
1703
+ attr_accessor :country
1704
+
1705
+ # The ID of the data feed to get.
1594
1706
  # Corresponds to the JSON property `datafeedId`
1595
1707
  # @return [Fixnum]
1596
1708
  attr_accessor :datafeed_id
1597
1709
 
1710
+ # The language for which to get the datafeed status. If this parameter is
1711
+ # provided then country must also be provided. Note that for multi-target
1712
+ # datafeeds this parameter is required.
1713
+ # Corresponds to the JSON property `language`
1714
+ # @return [String]
1715
+ attr_accessor :language
1716
+
1598
1717
  # The ID of the managing account.
1599
1718
  # Corresponds to the JSON property `merchantId`
1600
1719
  # @return [Fixnum]
@@ -1612,7 +1731,9 @@ module Google
1612
1731
  # Update properties of this object
1613
1732
  def update!(**args)
1614
1733
  @batch_id = args[:batch_id] if args.key?(:batch_id)
1734
+ @country = args[:country] if args.key?(:country)
1615
1735
  @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id)
1736
+ @language = args[:language] if args.key?(:language)
1616
1737
  @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
1617
1738
  @request_method = args[:request_method] if args.key?(:request_method)
1618
1739
  end
@@ -2928,7 +3049,15 @@ module Google
2928
3049
  # @return [String]
2929
3050
  attr_accessor :phone_number
2930
3051
 
2931
- # The type of instrument (VISA, Mastercard, etc).
3052
+ # The type of instrument.
3053
+ # Acceptable values are:
3054
+ # - "AMEX"
3055
+ # - "DISCOVER"
3056
+ # - "JCB"
3057
+ # - "MASTERCARD"
3058
+ # - "UNIONPAY"
3059
+ # - "VISA"
3060
+ # - ""
2932
3061
  # Corresponds to the JSON property `type`
2933
3062
  # @return [String]
2934
3063
  attr_accessor :type