google-api-client 0.28.0 → 0.28.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  4. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +4 -5
  5. data/generated/google/apis/admin_directory_v1.rb +1 -1
  6. data/generated/google/apis/admin_directory_v1/classes.rb +13 -1
  7. data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
  8. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1/classes.rb +3 -2
  10. data/generated/google/apis/androidenterprise_v1/service.rb +0 -33
  11. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  12. data/generated/google/apis/androidpublisher_v1_1/classes.rb +1 -0
  13. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  14. data/generated/google/apis/androidpublisher_v2/classes.rb +1 -0
  15. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  16. data/generated/google/apis/androidpublisher_v3/classes.rb +1 -0
  17. data/generated/google/apis/appsmarket_v2.rb +3 -3
  18. data/generated/google/apis/appsmarket_v2/service.rb +2 -2
  19. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  20. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +48 -0
  21. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +17 -0
  22. data/generated/google/apis/books_v1.rb +1 -1
  23. data/generated/google/apis/books_v1/classes.rb +6 -0
  24. data/generated/google/apis/books_v1/representations.rb +1 -0
  25. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  26. data/generated/google/apis/cloudidentity_v1/service.rb +12 -12
  27. data/generated/google/apis/compute_alpha.rb +1 -1
  28. data/generated/google/apis/compute_alpha/classes.rb +698 -240
  29. data/generated/google/apis/compute_alpha/representations.rb +185 -63
  30. data/generated/google/apis/compute_alpha/service.rb +286 -2
  31. data/generated/google/apis/compute_beta.rb +1 -1
  32. data/generated/google/apis/compute_beta/classes.rb +195 -148
  33. data/generated/google/apis/compute_beta/representations.rb +80 -62
  34. data/generated/google/apis/compute_beta/service.rb +85 -2
  35. data/generated/google/apis/compute_v1.rb +1 -1
  36. data/generated/google/apis/compute_v1/classes.rb +209 -17
  37. data/generated/google/apis/compute_v1/representations.rb +70 -0
  38. data/generated/google/apis/compute_v1/service.rb +2 -2
  39. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  40. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +78 -0
  41. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +33 -0
  42. data/generated/google/apis/content_v2.rb +1 -1
  43. data/generated/google/apis/content_v2/classes.rb +9 -6
  44. data/generated/google/apis/content_v2/service.rb +1 -1
  45. data/generated/google/apis/content_v2_1.rb +1 -1
  46. data/generated/google/apis/content_v2_1/classes.rb +12 -213
  47. data/generated/google/apis/content_v2_1/representations.rb +2 -117
  48. data/generated/google/apis/content_v2_1/service.rb +1 -161
  49. data/generated/google/apis/dialogflow_v2.rb +1 -1
  50. data/generated/google/apis/dialogflow_v2/classes.rb +39 -29
  51. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  52. data/generated/google/apis/dialogflow_v2beta1/classes.rb +39 -29
  53. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  54. data/generated/google/apis/file_v1.rb +34 -0
  55. data/generated/google/apis/file_v1/classes.rb +576 -0
  56. data/generated/google/apis/file_v1/representations.rb +219 -0
  57. data/generated/google/apis/file_v1/service.rb +472 -0
  58. data/generated/google/apis/gmail_v1.rb +1 -1
  59. data/generated/google/apis/gmail_v1/classes.rb +6 -2
  60. data/generated/google/apis/jobs_v3.rb +1 -1
  61. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  62. data/generated/google/apis/jobs_v3p1beta1/classes.rb +3 -3
  63. data/generated/google/apis/ml_v1.rb +1 -1
  64. data/generated/google/apis/ml_v1/service.rb +33 -33
  65. data/generated/google/apis/monitoring_v3.rb +1 -1
  66. data/generated/google/apis/monitoring_v3/classes.rb +1 -1
  67. data/generated/google/apis/pubsub_v1.rb +1 -1
  68. data/generated/google/apis/pubsub_v1/service.rb +4 -2
  69. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  70. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +2 -0
  71. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  72. data/generated/google/apis/servicenetworking_v1beta/service.rb +40 -40
  73. data/generated/google/apis/testing_v1.rb +1 -1
  74. data/generated/google/apis/texttospeech_v1.rb +1 -1
  75. data/generated/google/apis/texttospeech_v1/classes.rb +12 -0
  76. data/generated/google/apis/texttospeech_v1/representations.rb +1 -0
  77. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  78. data/generated/google/apis/vision_v1.rb +1 -1
  79. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  80. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  81. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  82. data/lib/google/apis/version.rb +1 -1
  83. metadata +6 -2
@@ -3560,6 +3560,290 @@ module Google
3560
3560
  execute_or_queue_command(command, &block)
3561
3561
  end
3562
3562
 
3563
+ # Deletes the specified externalVpnGateway.
3564
+ # @param [String] project
3565
+ # Project ID for this request.
3566
+ # @param [String] external_vpn_gateway
3567
+ # Name of the externalVpnGateways to delete.
3568
+ # @param [String] request_id
3569
+ # An optional request ID to identify requests. Specify a unique request ID so
3570
+ # that if you must retry your request, the server will know to ignore the
3571
+ # request if it has already been completed.
3572
+ # For example, consider a situation where you make an initial request and the
3573
+ # request times out. If you make the request again with the same request ID, the
3574
+ # server can check if original operation with the same request ID was received,
3575
+ # and if so, will ignore the second request. This prevents clients from
3576
+ # accidentally creating duplicate commitments.
3577
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3578
+ # supported (00000000-0000-0000-0000-000000000000).
3579
+ # @param [String] fields
3580
+ # Selector specifying which fields to include in a partial response.
3581
+ # @param [String] quota_user
3582
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3583
+ # characters.
3584
+ # @param [String] user_ip
3585
+ # Deprecated. Please use quotaUser instead.
3586
+ # @param [Google::Apis::RequestOptions] options
3587
+ # Request-specific options
3588
+ #
3589
+ # @yield [result, err] Result & error if block supplied
3590
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
3591
+ # @yieldparam err [StandardError] error object if request failed
3592
+ #
3593
+ # @return [Google::Apis::ComputeAlpha::Operation]
3594
+ #
3595
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3596
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3597
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3598
+ def delete_external_vpn_gateway(project, external_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3599
+ command = make_simple_command(:delete, '{project}/global/externalVpnGateways/{externalVpnGateway}', options)
3600
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
3601
+ command.response_class = Google::Apis::ComputeAlpha::Operation
3602
+ command.params['project'] = project unless project.nil?
3603
+ command.params['externalVpnGateway'] = external_vpn_gateway unless external_vpn_gateway.nil?
3604
+ command.query['requestId'] = request_id unless request_id.nil?
3605
+ command.query['fields'] = fields unless fields.nil?
3606
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3607
+ command.query['userIp'] = user_ip unless user_ip.nil?
3608
+ execute_or_queue_command(command, &block)
3609
+ end
3610
+
3611
+ # Returns the specified externalVpnGateway. Get a list of available
3612
+ # externalVpnGateways by making a list() request.
3613
+ # @param [String] project
3614
+ # Project ID for this request.
3615
+ # @param [String] external_vpn_gateway
3616
+ # Name of the externalVpnGateway to return.
3617
+ # @param [String] fields
3618
+ # Selector specifying which fields to include in a partial response.
3619
+ # @param [String] quota_user
3620
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3621
+ # characters.
3622
+ # @param [String] user_ip
3623
+ # Deprecated. Please use quotaUser instead.
3624
+ # @param [Google::Apis::RequestOptions] options
3625
+ # Request-specific options
3626
+ #
3627
+ # @yield [result, err] Result & error if block supplied
3628
+ # @yieldparam result [Google::Apis::ComputeAlpha::ExternalVpnGateway] parsed result object
3629
+ # @yieldparam err [StandardError] error object if request failed
3630
+ #
3631
+ # @return [Google::Apis::ComputeAlpha::ExternalVpnGateway]
3632
+ #
3633
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3634
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3635
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3636
+ def get_external_vpn_gateway(project, external_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3637
+ command = make_simple_command(:get, '{project}/global/externalVpnGateways/{externalVpnGateway}', options)
3638
+ command.response_representation = Google::Apis::ComputeAlpha::ExternalVpnGateway::Representation
3639
+ command.response_class = Google::Apis::ComputeAlpha::ExternalVpnGateway
3640
+ command.params['project'] = project unless project.nil?
3641
+ command.params['externalVpnGateway'] = external_vpn_gateway unless external_vpn_gateway.nil?
3642
+ command.query['fields'] = fields unless fields.nil?
3643
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3644
+ command.query['userIp'] = user_ip unless user_ip.nil?
3645
+ execute_or_queue_command(command, &block)
3646
+ end
3647
+
3648
+ # Creates a ExternalVpnGateway in the specified project using the data included
3649
+ # in the request.
3650
+ # @param [String] project
3651
+ # Project ID for this request.
3652
+ # @param [Google::Apis::ComputeAlpha::ExternalVpnGateway] external_vpn_gateway_object
3653
+ # @param [String] request_id
3654
+ # An optional request ID to identify requests. Specify a unique request ID so
3655
+ # that if you must retry your request, the server will know to ignore the
3656
+ # request if it has already been completed.
3657
+ # For example, consider a situation where you make an initial request and the
3658
+ # request times out. If you make the request again with the same request ID, the
3659
+ # server can check if original operation with the same request ID was received,
3660
+ # and if so, will ignore the second request. This prevents clients from
3661
+ # accidentally creating duplicate commitments.
3662
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3663
+ # supported (00000000-0000-0000-0000-000000000000).
3664
+ # @param [String] fields
3665
+ # Selector specifying which fields to include in a partial response.
3666
+ # @param [String] quota_user
3667
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3668
+ # characters.
3669
+ # @param [String] user_ip
3670
+ # Deprecated. Please use quotaUser instead.
3671
+ # @param [Google::Apis::RequestOptions] options
3672
+ # Request-specific options
3673
+ #
3674
+ # @yield [result, err] Result & error if block supplied
3675
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
3676
+ # @yieldparam err [StandardError] error object if request failed
3677
+ #
3678
+ # @return [Google::Apis::ComputeAlpha::Operation]
3679
+ #
3680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3683
+ def insert_external_vpn_gateway(project, external_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3684
+ command = make_simple_command(:post, '{project}/global/externalVpnGateways', options)
3685
+ command.request_representation = Google::Apis::ComputeAlpha::ExternalVpnGateway::Representation
3686
+ command.request_object = external_vpn_gateway_object
3687
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
3688
+ command.response_class = Google::Apis::ComputeAlpha::Operation
3689
+ command.params['project'] = project unless project.nil?
3690
+ command.query['requestId'] = request_id unless request_id.nil?
3691
+ command.query['fields'] = fields unless fields.nil?
3692
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3693
+ command.query['userIp'] = user_ip unless user_ip.nil?
3694
+ execute_or_queue_command(command, &block)
3695
+ end
3696
+
3697
+ # Retrieves the list of ExternalVpnGateway available to the specified project.
3698
+ # @param [String] project
3699
+ # Project ID for this request.
3700
+ # @param [String] filter
3701
+ # A filter expression that filters resources listed in the response. The
3702
+ # expression must specify the field name, a comparison operator, and the value
3703
+ # that you want to use for filtering. The value must be a string, a number, or a
3704
+ # boolean. The comparison operator must be either =, !=, >, or <.
3705
+ # For example, if you are filtering Compute Engine instances, you can exclude
3706
+ # instances named example-instance by specifying name != example-instance.
3707
+ # You can also filter nested fields. For example, you could specify scheduling.
3708
+ # automaticRestart = false to include instances only if they are not scheduled
3709
+ # for automatic restarts. You can use filtering on nested fields to filter based
3710
+ # on resource labels.
3711
+ # To filter on multiple expressions, provide each separate expression within
3712
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
3713
+ # Intel Skylake"). By default, each expression is an AND expression. However,
3714
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
3715
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
3716
+ # automaticRestart = true).
3717
+ # @param [Fixnum] max_results
3718
+ # The maximum number of results per page that should be returned. If the number
3719
+ # of available results is larger than maxResults, Compute Engine returns a
3720
+ # nextPageToken that can be used to get the next page of results in subsequent
3721
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
3722
+ # @param [String] order_by
3723
+ # Sorts list results by a certain order. By default, results are returned in
3724
+ # alphanumerical order based on the resource name.
3725
+ # You can also sort results in descending order based on the creation timestamp
3726
+ # using orderBy="creationTimestamp desc". This sorts results based on the
3727
+ # creationTimestamp field in reverse chronological order (newest result first).
3728
+ # Use this to sort resources like operations so that the newest operation is
3729
+ # returned first.
3730
+ # Currently, only sorting by name or creationTimestamp desc is supported.
3731
+ # @param [String] page_token
3732
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
3733
+ # a previous list request to get the next page of results.
3734
+ # @param [String] fields
3735
+ # Selector specifying which fields to include in a partial response.
3736
+ # @param [String] quota_user
3737
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3738
+ # characters.
3739
+ # @param [String] user_ip
3740
+ # Deprecated. Please use quotaUser instead.
3741
+ # @param [Google::Apis::RequestOptions] options
3742
+ # Request-specific options
3743
+ #
3744
+ # @yield [result, err] Result & error if block supplied
3745
+ # @yieldparam result [Google::Apis::ComputeAlpha::ExternalVpnGatewayList] parsed result object
3746
+ # @yieldparam err [StandardError] error object if request failed
3747
+ #
3748
+ # @return [Google::Apis::ComputeAlpha::ExternalVpnGatewayList]
3749
+ #
3750
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3751
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3752
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3753
+ def list_external_vpn_gateways(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3754
+ command = make_simple_command(:get, '{project}/global/externalVpnGateways', options)
3755
+ command.response_representation = Google::Apis::ComputeAlpha::ExternalVpnGatewayList::Representation
3756
+ command.response_class = Google::Apis::ComputeAlpha::ExternalVpnGatewayList
3757
+ command.params['project'] = project unless project.nil?
3758
+ command.query['filter'] = filter unless filter.nil?
3759
+ command.query['maxResults'] = max_results unless max_results.nil?
3760
+ command.query['orderBy'] = order_by unless order_by.nil?
3761
+ command.query['pageToken'] = page_token unless page_token.nil?
3762
+ command.query['fields'] = fields unless fields.nil?
3763
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3764
+ command.query['userIp'] = user_ip unless user_ip.nil?
3765
+ execute_or_queue_command(command, &block)
3766
+ end
3767
+
3768
+ # Sets the labels on an ExternalVpnGateway. To learn more about labels, read the
3769
+ # Labeling Resources documentation.
3770
+ # @param [String] project
3771
+ # Project ID for this request.
3772
+ # @param [String] resource
3773
+ # Name or id of the resource for this request.
3774
+ # @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
3775
+ # @param [String] fields
3776
+ # Selector specifying which fields to include in a partial response.
3777
+ # @param [String] quota_user
3778
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3779
+ # characters.
3780
+ # @param [String] user_ip
3781
+ # Deprecated. Please use quotaUser instead.
3782
+ # @param [Google::Apis::RequestOptions] options
3783
+ # Request-specific options
3784
+ #
3785
+ # @yield [result, err] Result & error if block supplied
3786
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
3787
+ # @yieldparam err [StandardError] error object if request failed
3788
+ #
3789
+ # @return [Google::Apis::ComputeAlpha::Operation]
3790
+ #
3791
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3792
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3793
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3794
+ def set_external_vpn_gateway_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3795
+ command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/setLabels', options)
3796
+ command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation
3797
+ command.request_object = global_set_labels_request_object
3798
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
3799
+ command.response_class = Google::Apis::ComputeAlpha::Operation
3800
+ command.params['project'] = project unless project.nil?
3801
+ command.params['resource'] = resource unless resource.nil?
3802
+ command.query['fields'] = fields unless fields.nil?
3803
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3804
+ command.query['userIp'] = user_ip unless user_ip.nil?
3805
+ execute_or_queue_command(command, &block)
3806
+ end
3807
+
3808
+ # Returns permissions that a caller has on the specified resource.
3809
+ # @param [String] project
3810
+ # Project ID for this request.
3811
+ # @param [String] resource
3812
+ # Name or id of the resource for this request.
3813
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
3814
+ # @param [String] fields
3815
+ # Selector specifying which fields to include in a partial response.
3816
+ # @param [String] quota_user
3817
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3818
+ # characters.
3819
+ # @param [String] user_ip
3820
+ # Deprecated. Please use quotaUser instead.
3821
+ # @param [Google::Apis::RequestOptions] options
3822
+ # Request-specific options
3823
+ #
3824
+ # @yield [result, err] Result & error if block supplied
3825
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
3826
+ # @yieldparam err [StandardError] error object if request failed
3827
+ #
3828
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
3829
+ #
3830
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3831
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3832
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3833
+ def test_external_vpn_gateway_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3834
+ command = make_simple_command(:post, '{project}/global/externalVpnGateways/{resource}/testIamPermissions', options)
3835
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
3836
+ command.request_object = test_permissions_request_object
3837
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
3838
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
3839
+ command.params['project'] = project unless project.nil?
3840
+ command.params['resource'] = resource unless resource.nil?
3841
+ command.query['fields'] = fields unless fields.nil?
3842
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3843
+ command.query['userIp'] = user_ip unless user_ip.nil?
3844
+ execute_or_queue_command(command, &block)
3845
+ end
3846
+
3563
3847
  # Deletes the specified firewall.
3564
3848
  # @param [String] project
3565
3849
  # Project ID for this request.
@@ -10222,8 +10506,8 @@ module Google
10222
10506
  execute_or_queue_command(command, &block)
10223
10507
  end
10224
10508
 
10225
- # Performs a reset on the instance. For more information, see Resetting an
10226
- # instance.
10509
+ # Performs a reset on the instance. This is a hard reset; the VM does not do a
10510
+ # graceful shutdown. For more information, see Resetting an instance.
10227
10511
  # @param [String] project
10228
10512
  # Project ID for this request.
10229
10513
  # @param [String] zone
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeBeta
27
27
  VERSION = 'Beta'
28
- REVISION = '20181217'
28
+ REVISION = '20190107'
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'
@@ -10697,6 +10697,11 @@ module Google
10697
10697
  # @return [Array<Google::Apis::ComputeBeta::AttachedDisk>]
10698
10698
  attr_accessor :disks
10699
10699
 
10700
+ # A set of Display Device options
10701
+ # Corresponds to the JSON property `displayDevice`
10702
+ # @return [Google::Apis::ComputeBeta::DisplayDevice]
10703
+ attr_accessor :display_device
10704
+
10700
10705
  # A list of guest accelerator cards' type and count to use for instances created
10701
10706
  # from the instance template.
10702
10707
  # Corresponds to the JSON property `guestAccelerators`
@@ -10764,6 +10769,7 @@ module Google
10764
10769
  @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
10765
10770
  @description = args[:description] if args.key?(:description)
10766
10771
  @disks = args[:disks] if args.key?(:disks)
10772
+ @display_device = args[:display_device] if args.key?(:display_device)
10767
10773
  @guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
10768
10774
  @labels = args[:labels] if args.key?(:labels)
10769
10775
  @machine_type = args[:machine_type] if args.key?(:machine_type)
@@ -17251,12 +17257,14 @@ module Google
17251
17257
  # - https://www.googleapis.com/compute/v1/projects/project/global/
17252
17258
  # backendServices/backendService
17253
17259
  # - compute/v1/projects/project/global/backendServices/backendService
17254
- # - global/backendServices/backendService
17255
- # Use defaultService instead of defaultRouteAction when simple routing to a
17256
- # backend service is desired and other advanced capabilities like traffic
17257
- # splitting and URL rewrites are not required.
17258
- # Only one of defaultService, defaultRouteAction or defaultUrlRedirect must be
17259
- # set.
17260
+ # - global/backendServices/backendService If defaultRouteAction is additionally
17261
+ # specified, advanced routing actions like URL Rewrites, etc. take effect prior
17262
+ # to sending the request to the backend. However, if defaultService is specified,
17263
+ # defaultRouteAction cannot contain any weightedBackendServices. Conversely, if
17264
+ # defaultRouteAction specifies any weightedBackendServices, defaultService must
17265
+ # not be specified.
17266
+ # Only one of defaultService, defaultUrlRedirect or defaultRouteAction.
17267
+ # weightedBackendService must be set.
17260
17268
  # Authorization requires one or more of the following Google IAM permissions on
17261
17269
  # the specified resource default_service:
17262
17270
  # - compute.backendBuckets.use
@@ -17313,11 +17321,14 @@ module Google
17313
17321
  # @return [Array<String>]
17314
17322
  attr_accessor :paths
17315
17323
 
17316
- # The URL of the backend service resource if this rule is matched.
17317
- # Use service instead of routeAction when simple routing to a backend service is
17318
- # desired and other advanced capabilities like traffic splitting and rewrites
17319
- # are not required.
17320
- # Only one of service, routeAction or urlRedirect should must be set.
17324
+ # The full or partial URL of the backend service resource to which traffic is
17325
+ # directed if this rule is matched. If routeAction is additionally specified,
17326
+ # advanced routing actions like URL Rewrites, etc. take effect prior to sending
17327
+ # the request to the backend. However, if service is specified, routeAction
17328
+ # cannot contain any weightedBackendService s. Conversely, if routeAction
17329
+ # specifies any weightedBackendServices, service must not be specified.
17330
+ # Only one of urlRedirect, service or routeAction.weightedBackendService must be
17331
+ # set.
17321
17332
  # Corresponds to the JSON property `service`
17322
17333
  # @return [String]
17323
17334
  attr_accessor :service
@@ -19005,13 +19016,6 @@ module Google
19005
19016
  class ResourcePolicy
19006
19017
  include Google::Apis::Core::Hashable
19007
19018
 
19008
- # A backup schedule policy specifies when and how frequently snapshots are to be
19009
- # created for the target disk. Also specifies how many and how long these
19010
- # scheduled snapshots should be retained.
19011
- # Corresponds to the JSON property `backupSchedulePolicy`
19012
- # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicy]
19013
- attr_accessor :backup_schedule_policy
19014
-
19015
19019
  # [Output Only] Creation timestamp in RFC3339 text format.
19016
19020
  # Corresponds to the JSON property `creationTimestamp`
19017
19021
  # @return [String]
@@ -19055,13 +19059,19 @@ module Google
19055
19059
  # @return [String]
19056
19060
  attr_accessor :self_link
19057
19061
 
19062
+ # A snapshot schedule policy specifies when and how frequently snapshots are to
19063
+ # be created for the target disk. Also specifies how many and how long these
19064
+ # scheduled snapshots should be retained.
19065
+ # Corresponds to the JSON property `snapshotSchedulePolicy`
19066
+ # @return [Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicy]
19067
+ attr_accessor :snapshot_schedule_policy
19068
+
19058
19069
  def initialize(**args)
19059
19070
  update!(**args)
19060
19071
  end
19061
19072
 
19062
19073
  # Update properties of this object
19063
19074
  def update!(**args)
19064
- @backup_schedule_policy = args[:backup_schedule_policy] if args.key?(:backup_schedule_policy)
19065
19075
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
19066
19076
  @description = args[:description] if args.key?(:description)
19067
19077
  @id = args[:id] if args.key?(:id)
@@ -19069,6 +19079,7 @@ module Google
19069
19079
  @name = args[:name] if args.key?(:name)
19070
19080
  @region = args[:region] if args.key?(:region)
19071
19081
  @self_link = args[:self_link] if args.key?(:self_link)
19082
+ @snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy)
19072
19083
  end
19073
19084
  end
19074
19085
 
@@ -19195,129 +19206,6 @@ module Google
19195
19206
  end
19196
19207
  end
19197
19208
 
19198
- # A backup schedule policy specifies when and how frequently snapshots are to be
19199
- # created for the target disk. Also specifies how many and how long these
19200
- # scheduled snapshots should be retained.
19201
- class ResourcePolicyBackupSchedulePolicy
19202
- include Google::Apis::Core::Hashable
19203
-
19204
- # Policy for retention of scheduled snapshots.
19205
- # Corresponds to the JSON property `retentionPolicy`
19206
- # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy]
19207
- attr_accessor :retention_policy
19208
-
19209
- # A schedule for disks where the schedueled operations are performed.
19210
- # Corresponds to the JSON property `schedule`
19211
- # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySchedule]
19212
- attr_accessor :schedule
19213
-
19214
- # Specified snapshot properties for scheduled snapshots created by this policy.
19215
- # Corresponds to the JSON property `snapshotProperties`
19216
- # @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySnapshotProperties]
19217
- attr_accessor :snapshot_properties
19218
-
19219
- def initialize(**args)
19220
- update!(**args)
19221
- end
19222
-
19223
- # Update properties of this object
19224
- def update!(**args)
19225
- @retention_policy = args[:retention_policy] if args.key?(:retention_policy)
19226
- @schedule = args[:schedule] if args.key?(:schedule)
19227
- @snapshot_properties = args[:snapshot_properties] if args.key?(:snapshot_properties)
19228
- end
19229
- end
19230
-
19231
- # Policy for retention of scheduled snapshots.
19232
- class ResourcePolicyBackupSchedulePolicyRetentionPolicy
19233
- include Google::Apis::Core::Hashable
19234
-
19235
- # Maximum age of the snapshot that is allowed to be kept.
19236
- # Corresponds to the JSON property `maxRetentionDays`
19237
- # @return [Fixnum]
19238
- attr_accessor :max_retention_days
19239
-
19240
- # Specifies the behavior to apply to scheduled snapshots when the source disk is
19241
- # deleted.
19242
- # Corresponds to the JSON property `onSourceDiskDelete`
19243
- # @return [String]
19244
- attr_accessor :on_source_disk_delete
19245
-
19246
- def initialize(**args)
19247
- update!(**args)
19248
- end
19249
-
19250
- # Update properties of this object
19251
- def update!(**args)
19252
- @max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days)
19253
- @on_source_disk_delete = args[:on_source_disk_delete] if args.key?(:on_source_disk_delete)
19254
- end
19255
- end
19256
-
19257
- # A schedule for disks where the schedueled operations are performed.
19258
- class ResourcePolicyBackupSchedulePolicySchedule
19259
- include Google::Apis::Core::Hashable
19260
-
19261
- # Time window specified for daily operations.
19262
- # Corresponds to the JSON property `dailySchedule`
19263
- # @return [Google::Apis::ComputeBeta::ResourcePolicyDailyCycle]
19264
- attr_accessor :daily_schedule
19265
-
19266
- # Time window specified for hourly operations.
19267
- # Corresponds to the JSON property `hourlySchedule`
19268
- # @return [Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle]
19269
- attr_accessor :hourly_schedule
19270
-
19271
- # Time window specified for weekly operations.
19272
- # Corresponds to the JSON property `weeklySchedule`
19273
- # @return [Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle]
19274
- attr_accessor :weekly_schedule
19275
-
19276
- def initialize(**args)
19277
- update!(**args)
19278
- end
19279
-
19280
- # Update properties of this object
19281
- def update!(**args)
19282
- @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule)
19283
- @hourly_schedule = args[:hourly_schedule] if args.key?(:hourly_schedule)
19284
- @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule)
19285
- end
19286
- end
19287
-
19288
- # Specified snapshot properties for scheduled snapshots created by this policy.
19289
- class ResourcePolicyBackupSchedulePolicySnapshotProperties
19290
- include Google::Apis::Core::Hashable
19291
-
19292
- # Indication to perform a ?guest aware? snapshot.
19293
- # Corresponds to the JSON property `guestFlush`
19294
- # @return [Boolean]
19295
- attr_accessor :guest_flush
19296
- alias_method :guest_flush?, :guest_flush
19297
-
19298
- # Labels to apply to scheduled snapshots. These can be later modified by the
19299
- # setLabels method. Label values may be empty.
19300
- # Corresponds to the JSON property `labels`
19301
- # @return [Hash<String,String>]
19302
- attr_accessor :labels
19303
-
19304
- # GCS bucket storage location of the auto snapshot (regional or multi-regional).
19305
- # Corresponds to the JSON property `storageLocations`
19306
- # @return [Array<String>]
19307
- attr_accessor :storage_locations
19308
-
19309
- def initialize(**args)
19310
- update!(**args)
19311
- end
19312
-
19313
- # Update properties of this object
19314
- def update!(**args)
19315
- @guest_flush = args[:guest_flush] if args.key?(:guest_flush)
19316
- @labels = args[:labels] if args.key?(:labels)
19317
- @storage_locations = args[:storage_locations] if args.key?(:storage_locations)
19318
- end
19319
- end
19320
-
19321
19209
  # Time window specified for daily operations.
19322
19210
  class ResourcePolicyDailyCycle
19323
19211
  include Google::Apis::Core::Hashable
@@ -19509,6 +19397,129 @@ module Google
19509
19397
  end
19510
19398
  end
19511
19399
 
19400
+ # A snapshot schedule policy specifies when and how frequently snapshots are to
19401
+ # be created for the target disk. Also specifies how many and how long these
19402
+ # scheduled snapshots should be retained.
19403
+ class ResourcePolicySnapshotSchedulePolicy
19404
+ include Google::Apis::Core::Hashable
19405
+
19406
+ # Policy for retention of scheduled snapshots.
19407
+ # Corresponds to the JSON property `retentionPolicy`
19408
+ # @return [Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicyRetentionPolicy]
19409
+ attr_accessor :retention_policy
19410
+
19411
+ # A schedule for disks where the schedueled operations are performed.
19412
+ # Corresponds to the JSON property `schedule`
19413
+ # @return [Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySchedule]
19414
+ attr_accessor :schedule
19415
+
19416
+ # Specified snapshot properties for scheduled snapshots created by this policy.
19417
+ # Corresponds to the JSON property `snapshotProperties`
19418
+ # @return [Google::Apis::ComputeBeta::ResourcePolicySnapshotSchedulePolicySnapshotProperties]
19419
+ attr_accessor :snapshot_properties
19420
+
19421
+ def initialize(**args)
19422
+ update!(**args)
19423
+ end
19424
+
19425
+ # Update properties of this object
19426
+ def update!(**args)
19427
+ @retention_policy = args[:retention_policy] if args.key?(:retention_policy)
19428
+ @schedule = args[:schedule] if args.key?(:schedule)
19429
+ @snapshot_properties = args[:snapshot_properties] if args.key?(:snapshot_properties)
19430
+ end
19431
+ end
19432
+
19433
+ # Policy for retention of scheduled snapshots.
19434
+ class ResourcePolicySnapshotSchedulePolicyRetentionPolicy
19435
+ include Google::Apis::Core::Hashable
19436
+
19437
+ # Maximum age of the snapshot that is allowed to be kept.
19438
+ # Corresponds to the JSON property `maxRetentionDays`
19439
+ # @return [Fixnum]
19440
+ attr_accessor :max_retention_days
19441
+
19442
+ # Specifies the behavior to apply to scheduled snapshots when the source disk is
19443
+ # deleted.
19444
+ # Corresponds to the JSON property `onSourceDiskDelete`
19445
+ # @return [String]
19446
+ attr_accessor :on_source_disk_delete
19447
+
19448
+ def initialize(**args)
19449
+ update!(**args)
19450
+ end
19451
+
19452
+ # Update properties of this object
19453
+ def update!(**args)
19454
+ @max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days)
19455
+ @on_source_disk_delete = args[:on_source_disk_delete] if args.key?(:on_source_disk_delete)
19456
+ end
19457
+ end
19458
+
19459
+ # A schedule for disks where the schedueled operations are performed.
19460
+ class ResourcePolicySnapshotSchedulePolicySchedule
19461
+ include Google::Apis::Core::Hashable
19462
+
19463
+ # Time window specified for daily operations.
19464
+ # Corresponds to the JSON property `dailySchedule`
19465
+ # @return [Google::Apis::ComputeBeta::ResourcePolicyDailyCycle]
19466
+ attr_accessor :daily_schedule
19467
+
19468
+ # Time window specified for hourly operations.
19469
+ # Corresponds to the JSON property `hourlySchedule`
19470
+ # @return [Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle]
19471
+ attr_accessor :hourly_schedule
19472
+
19473
+ # Time window specified for weekly operations.
19474
+ # Corresponds to the JSON property `weeklySchedule`
19475
+ # @return [Google::Apis::ComputeBeta::ResourcePolicyWeeklyCycle]
19476
+ attr_accessor :weekly_schedule
19477
+
19478
+ def initialize(**args)
19479
+ update!(**args)
19480
+ end
19481
+
19482
+ # Update properties of this object
19483
+ def update!(**args)
19484
+ @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule)
19485
+ @hourly_schedule = args[:hourly_schedule] if args.key?(:hourly_schedule)
19486
+ @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule)
19487
+ end
19488
+ end
19489
+
19490
+ # Specified snapshot properties for scheduled snapshots created by this policy.
19491
+ class ResourcePolicySnapshotSchedulePolicySnapshotProperties
19492
+ include Google::Apis::Core::Hashable
19493
+
19494
+ # Indication to perform a ?guest aware? snapshot.
19495
+ # Corresponds to the JSON property `guestFlush`
19496
+ # @return [Boolean]
19497
+ attr_accessor :guest_flush
19498
+ alias_method :guest_flush?, :guest_flush
19499
+
19500
+ # Labels to apply to scheduled snapshots. These can be later modified by the
19501
+ # setLabels method. Label values may be empty.
19502
+ # Corresponds to the JSON property `labels`
19503
+ # @return [Hash<String,String>]
19504
+ attr_accessor :labels
19505
+
19506
+ # GCS bucket storage location of the auto snapshot (regional or multi-regional).
19507
+ # Corresponds to the JSON property `storageLocations`
19508
+ # @return [Array<String>]
19509
+ attr_accessor :storage_locations
19510
+
19511
+ def initialize(**args)
19512
+ update!(**args)
19513
+ end
19514
+
19515
+ # Update properties of this object
19516
+ def update!(**args)
19517
+ @guest_flush = args[:guest_flush] if args.key?(:guest_flush)
19518
+ @labels = args[:labels] if args.key?(:labels)
19519
+ @storage_locations = args[:storage_locations] if args.key?(:storage_locations)
19520
+ end
19521
+ end
19522
+
19512
19523
  # Time window specified for weekly operations.
19513
19524
  class ResourcePolicyWeeklyCycle
19514
19525
  include Google::Apis::Core::Hashable
@@ -20461,6 +20472,11 @@ module Google
20461
20472
  # @return [Fixnum]
20462
20473
  attr_accessor :icmp_idle_timeout_sec
20463
20474
 
20475
+ # Configuration of logging on a NAT.
20476
+ # Corresponds to the JSON property `logConfig`
20477
+ # @return [Google::Apis::ComputeBeta::RouterNatLogConfig]
20478
+ attr_accessor :log_config
20479
+
20464
20480
  # Minimum number of ports allocated to a VM from this NAT config. If not set, a
20465
20481
  # default number of ports is allocated to a VM. This gets rounded up to the
20466
20482
  # nearest power of 2. Eg. if the value of this field is 50, at least 64 ports
@@ -20526,6 +20542,7 @@ module Google
20526
20542
  # Update properties of this object
20527
20543
  def update!(**args)
20528
20544
  @icmp_idle_timeout_sec = args[:icmp_idle_timeout_sec] if args.key?(:icmp_idle_timeout_sec)
20545
+ @log_config = args[:log_config] if args.key?(:log_config)
20529
20546
  @min_ports_per_vm = args[:min_ports_per_vm] if args.key?(:min_ports_per_vm)
20530
20547
  @name = args[:name] if args.key?(:name)
20531
20548
  @nat_ip_allocate_option = args[:nat_ip_allocate_option] if args.key?(:nat_ip_allocate_option)
@@ -20538,6 +20555,33 @@ module Google
20538
20555
  end
20539
20556
  end
20540
20557
 
20558
+ # Configuration of logging on a NAT.
20559
+ class RouterNatLogConfig
20560
+ include Google::Apis::Core::Hashable
20561
+
20562
+ # Indicates whether or not to export logs. This is false by default.
20563
+ # Corresponds to the JSON property `enable`
20564
+ # @return [Boolean]
20565
+ attr_accessor :enable
20566
+ alias_method :enable?, :enable
20567
+
20568
+ # Specifies the desired filtering of logs on this NAT. If unspecified, logs are
20569
+ # exported for all connections handled by this NAT.
20570
+ # Corresponds to the JSON property `filter`
20571
+ # @return [String]
20572
+ attr_accessor :filter
20573
+
20574
+ def initialize(**args)
20575
+ update!(**args)
20576
+ end
20577
+
20578
+ # Update properties of this object
20579
+ def update!(**args)
20580
+ @enable = args[:enable] if args.key?(:enable)
20581
+ @filter = args[:filter] if args.key?(:filter)
20582
+ end
20583
+ end
20584
+
20541
20585
  # Defines the IP ranges that want to use NAT for a subnetwork.
20542
20586
  class RouterNatSubnetworkToNat
20543
20587
  include Google::Apis::Core::Hashable
@@ -25714,12 +25758,15 @@ module Google
25714
25758
  # @return [String]
25715
25759
  attr_accessor :creation_timestamp
25716
25760
 
25717
- # The URL of the backendService resource if none of the hostRules match.
25718
- # Use defaultService instead of defaultRouteAction when simple routing to a
25719
- # backendService is desired and other advanced capabilities like traffic
25720
- # splitting and rewrites are not required.
25721
- # Only one of defaultService, defaultRouteAction or defaultUrlRedirect should
25722
- # must be set.
25761
+ # The full or partial URL of the defaultService resource to which traffic is
25762
+ # directed if none of the hostRules match. If defaultRouteAction is additionally
25763
+ # specified, advanced routing actions like URL Rewrites, etc. take effect prior
25764
+ # to sending the request to the backend. However, if defaultService is specified,
25765
+ # defaultRouteAction cannot contain any weightedBackendServices. Conversely, if
25766
+ # routeAction specifies any weightedBackendServices, service must not be
25767
+ # specified.
25768
+ # Only one of defaultService, defaultUrlRedirect or defaultRouteAction.
25769
+ # weightedBackendService must be set.
25723
25770
  # Corresponds to the JSON property `defaultService`
25724
25771
  # @return [String]
25725
25772
  attr_accessor :default_service