google-api-client 0.9.19 → 0.9.20

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 (115) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -1
  3. data/api_names.yaml +2 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +20 -3
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  11. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  13. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  14. data/generated/google/apis/androidenterprise_v1/classes.rb +9 -7
  15. data/generated/google/apis/androidenterprise_v1/service.rb +7 -1
  16. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  17. data/generated/google/apis/appengine_v1beta5/classes.rb +86 -25
  18. data/generated/google/apis/appengine_v1beta5/representations.rb +31 -12
  19. data/generated/google/apis/appengine_v1beta5/service.rb +33 -33
  20. data/generated/google/apis/appsactivity_v1.rb +1 -1
  21. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  22. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  23. data/generated/google/apis/appstate_v1.rb +1 -1
  24. data/generated/google/apis/bigquery_v2.rb +1 -1
  25. data/generated/google/apis/bigquery_v2/classes.rb +27 -18
  26. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  27. data/generated/google/apis/calendar_v3.rb +1 -1
  28. data/generated/google/apis/civicinfo_v2.rb +1 -1
  29. data/generated/google/apis/civicinfo_v2/classes.rb +243 -0
  30. data/generated/google/apis/civicinfo_v2/representations.rb +64 -0
  31. data/generated/google/apis/classroom_v1/service.rb +1 -1
  32. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1/classes.rb +8 -0
  34. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  35. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  36. data/generated/google/apis/compute_beta.rb +1 -1
  37. data/generated/google/apis/compute_beta/classes.rb +443 -13
  38. data/generated/google/apis/compute_beta/representations.rb +155 -0
  39. data/generated/google/apis/compute_beta/service.rb +383 -2
  40. data/generated/google/apis/compute_v1.rb +1 -1
  41. data/generated/google/apis/compute_v1/classes.rb +43 -13
  42. data/generated/google/apis/compute_v1/representations.rb +13 -0
  43. data/generated/google/apis/compute_v1/service.rb +89 -1
  44. data/generated/google/apis/content_v2.rb +1 -1
  45. data/generated/google/apis/content_v2/classes.rb +48 -0
  46. data/generated/google/apis/content_v2/representations.rb +18 -0
  47. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  48. data/generated/google/apis/dataflow_v1b3/classes.rb +44 -0
  49. data/generated/google/apis/dataflow_v1b3/representations.rb +18 -0
  50. data/generated/google/apis/dataflow_v1b3/service.rb +367 -7
  51. data/generated/google/apis/dataproc_v1.rb +2 -2
  52. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  53. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  54. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  55. data/generated/google/apis/datastore_v1.rb +1 -1
  56. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  57. data/generated/google/apis/deploymentmanager_v2/classes.rb +3 -3
  58. data/generated/google/apis/deploymentmanager_v2/service.rb +55 -5
  59. data/generated/google/apis/dfareporting_v2_6.rb +1 -1
  60. data/generated/google/apis/dfareporting_v2_6/classes.rb +4 -3
  61. data/generated/google/apis/dfareporting_v2_6/service.rb +48 -29
  62. data/generated/google/apis/dns_v1.rb +1 -1
  63. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  64. data/generated/google/apis/drive_v2.rb +1 -1
  65. data/generated/google/apis/drive_v2/classes.rb +7 -0
  66. data/generated/google/apis/drive_v2/representations.rb +1 -0
  67. data/generated/google/apis/drive_v3.rb +1 -1
  68. data/generated/google/apis/drive_v3/classes.rb +7 -0
  69. data/generated/google/apis/drive_v3/representations.rb +1 -0
  70. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  71. data/generated/google/apis/games_management_v1management.rb +1 -1
  72. data/generated/google/apis/games_v1.rb +1 -1
  73. data/generated/google/apis/genomics_v1.rb +1 -1
  74. data/generated/google/apis/genomics_v1/classes.rb +9 -2
  75. data/generated/google/apis/genomics_v1/representations.rb +1 -0
  76. data/generated/google/apis/genomics_v1/service.rb +2 -1
  77. data/generated/google/apis/gmail_v1.rb +4 -1
  78. data/generated/google/apis/gmail_v1/classes.rb +8 -10
  79. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  80. data/generated/google/apis/identitytoolkit_v3/classes.rb +39 -6
  81. data/generated/google/apis/identitytoolkit_v3/representations.rb +6 -1
  82. data/generated/google/apis/language_v1beta1.rb +1 -1
  83. data/generated/google/apis/language_v1beta1/classes.rb +3 -2
  84. data/generated/google/apis/language_v1beta1/service.rb +2 -2
  85. data/generated/google/apis/logging_v2beta1.rb +1 -1
  86. data/generated/google/apis/logging_v2beta1/classes.rb +22 -18
  87. data/generated/google/apis/logging_v2beta1/service.rb +17 -3
  88. data/generated/google/apis/monitoring_v3.rb +1 -1
  89. data/generated/google/apis/monitoring_v3/classes.rb +26 -24
  90. data/generated/google/apis/oauth2_v2.rb +1 -1
  91. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  92. data/generated/google/apis/plus_domains_v1.rb +1 -1
  93. data/generated/google/apis/plus_v1.rb +1 -1
  94. data/generated/google/apis/sheets_v4.rb +1 -1
  95. data/generated/google/apis/sheets_v4/classes.rb +771 -75
  96. data/generated/google/apis/sheets_v4/representations.rb +125 -10
  97. data/generated/google/apis/sheets_v4/service.rb +39 -2
  98. data/generated/google/apis/slides_v1.rb +49 -0
  99. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  100. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  101. data/generated/google/apis/slides_v1/service.rb +202 -0
  102. data/generated/google/apis/speech_v1beta1.rb +1 -1
  103. data/generated/google/apis/speech_v1beta1/service.rb +25 -25
  104. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  105. data/generated/google/apis/storage_v1.rb +1 -1
  106. data/generated/google/apis/vision_v1.rb +1 -1
  107. data/generated/google/apis/vision_v1/classes.rb +2 -2
  108. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  109. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  110. data/generated/google/apis/youtube_v3.rb +1 -1
  111. data/generated/google/apis/youtube_v3/classes.rb +20 -19
  112. data/generated/google/apis/youtube_v3/representations.rb +3 -4
  113. data/generated/google/apis/youtube_v3/service.rb +35 -3
  114. data/lib/google/apis/version.rb +1 -1
  115. metadata +6 -2
@@ -76,6 +76,12 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class AuditConfig
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
79
85
  class Autoscaler
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
@@ -148,6 +154,18 @@ module Google
148
154
  include Google::Apis::Core::JsonObjectSupport
149
155
  end
150
156
 
157
+ class BackendBucket
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class BackendBucketList
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
151
169
  class BackendService
152
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
171
 
@@ -190,12 +208,24 @@ module Google
190
208
  include Google::Apis::Core::JsonObjectSupport
191
209
  end
192
210
 
211
+ class Binding
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
193
217
  class CacheInvalidationRule
194
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
219
 
196
220
  include Google::Apis::Core::JsonObjectSupport
197
221
  end
198
222
 
223
+ class Condition
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
199
229
  class ConnectionDraining
200
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
231
 
@@ -718,6 +748,18 @@ module Google
718
748
  include Google::Apis::Core::JsonObjectSupport
719
749
  end
720
750
 
751
+ class LogConfig
752
+ class Representation < Google::Apis::Core::JsonRepresentation; end
753
+
754
+ include Google::Apis::Core::JsonObjectSupport
755
+ end
756
+
757
+ class LogConfigCounterOptions
758
+ class Representation < Google::Apis::Core::JsonRepresentation; end
759
+
760
+ include Google::Apis::Core::JsonObjectSupport
761
+ end
762
+
721
763
  class MachineType
722
764
  class Representation < Google::Apis::Core::JsonRepresentation; end
723
765
 
@@ -886,6 +928,12 @@ module Google
886
928
  include Google::Apis::Core::JsonObjectSupport
887
929
  end
888
930
 
931
+ class Policy
932
+ class Representation < Google::Apis::Core::JsonRepresentation; end
933
+
934
+ include Google::Apis::Core::JsonObjectSupport
935
+ end
936
+
889
937
  class Project
890
938
  class Representation < Google::Apis::Core::JsonRepresentation; end
891
939
 
@@ -1096,6 +1144,12 @@ module Google
1096
1144
  include Google::Apis::Core::JsonObjectSupport
1097
1145
  end
1098
1146
 
1147
+ class Rule
1148
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1149
+
1150
+ include Google::Apis::Core::JsonObjectSupport
1151
+ end
1152
+
1099
1153
  class SslHealthCheck
1100
1154
  class Representation < Google::Apis::Core::JsonRepresentation; end
1101
1155
 
@@ -1633,6 +1687,14 @@ module Google
1633
1687
  end
1634
1688
  end
1635
1689
 
1690
+ class AuditConfig
1691
+ # @private
1692
+ class Representation < Google::Apis::Core::JsonRepresentation
1693
+ collection :exempted_members, as: 'exemptedMembers'
1694
+ property :service, as: 'service'
1695
+ end
1696
+ end
1697
+
1636
1698
  class Autoscaler
1637
1699
  # @private
1638
1700
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1766,6 +1828,32 @@ module Google
1766
1828
  end
1767
1829
  end
1768
1830
 
1831
+ class BackendBucket
1832
+ # @private
1833
+ class Representation < Google::Apis::Core::JsonRepresentation
1834
+ property :bucket_name, as: 'bucketName'
1835
+ property :creation_timestamp, as: 'creationTimestamp'
1836
+ property :description, as: 'description'
1837
+ property :enable_cdn, as: 'enableCdn'
1838
+ property :id, as: 'id'
1839
+ property :kind, as: 'kind'
1840
+ property :name, as: 'name'
1841
+ property :self_link, as: 'selfLink'
1842
+ end
1843
+ end
1844
+
1845
+ class BackendBucketList
1846
+ # @private
1847
+ class Representation < Google::Apis::Core::JsonRepresentation
1848
+ property :id, as: 'id'
1849
+ collection :items, as: 'items', class: Google::Apis::ComputeBeta::BackendBucket, decorator: Google::Apis::ComputeBeta::BackendBucket::Representation
1850
+
1851
+ property :kind, as: 'kind'
1852
+ property :next_page_token, as: 'nextPageToken'
1853
+ property :self_link, as: 'selfLink'
1854
+ end
1855
+ end
1856
+
1769
1857
  class BackendService
1770
1858
  # @private
1771
1859
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1854,13 +1942,34 @@ module Google
1854
1942
  end
1855
1943
  end
1856
1944
 
1945
+ class Binding
1946
+ # @private
1947
+ class Representation < Google::Apis::Core::JsonRepresentation
1948
+ collection :members, as: 'members'
1949
+ property :role, as: 'role'
1950
+ end
1951
+ end
1952
+
1857
1953
  class CacheInvalidationRule
1858
1954
  # @private
1859
1955
  class Representation < Google::Apis::Core::JsonRepresentation
1956
+ property :host, as: 'host'
1860
1957
  property :path, as: 'path'
1861
1958
  end
1862
1959
  end
1863
1960
 
1961
+ class Condition
1962
+ # @private
1963
+ class Representation < Google::Apis::Core::JsonRepresentation
1964
+ property :iam, as: 'iam'
1965
+ property :op, as: 'op'
1966
+ property :svc, as: 'svc'
1967
+ property :sys, as: 'sys'
1968
+ property :value, as: 'value'
1969
+ collection :values, as: 'values'
1970
+ end
1971
+ end
1972
+
1864
1973
  class ConnectionDraining
1865
1974
  # @private
1866
1975
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2874,6 +2983,22 @@ module Google
2874
2983
  end
2875
2984
  end
2876
2985
 
2986
+ class LogConfig
2987
+ # @private
2988
+ class Representation < Google::Apis::Core::JsonRepresentation
2989
+ property :counter, as: 'counter', class: Google::Apis::ComputeBeta::LogConfigCounterOptions, decorator: Google::Apis::ComputeBeta::LogConfigCounterOptions::Representation
2990
+
2991
+ end
2992
+ end
2993
+
2994
+ class LogConfigCounterOptions
2995
+ # @private
2996
+ class Representation < Google::Apis::Core::JsonRepresentation
2997
+ property :field, as: 'field'
2998
+ property :metric, as: 'metric'
2999
+ end
3000
+ end
3001
+
2877
3002
  class MachineType
2878
3003
  # @private
2879
3004
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3186,6 +3311,21 @@ module Google
3186
3311
  end
3187
3312
  end
3188
3313
 
3314
+ class Policy
3315
+ # @private
3316
+ class Representation < Google::Apis::Core::JsonRepresentation
3317
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ComputeBeta::AuditConfig, decorator: Google::Apis::ComputeBeta::AuditConfig::Representation
3318
+
3319
+ collection :bindings, as: 'bindings', class: Google::Apis::ComputeBeta::Binding, decorator: Google::Apis::ComputeBeta::Binding::Representation
3320
+
3321
+ property :etag, :base64 => true, as: 'etag'
3322
+ property :iam_owned, as: 'iamOwned'
3323
+ collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::Rule, decorator: Google::Apis::ComputeBeta::Rule::Representation
3324
+
3325
+ property :version, as: 'version'
3326
+ end
3327
+ end
3328
+
3189
3329
  class Project
3190
3330
  # @private
3191
3331
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3568,6 +3708,21 @@ module Google
3568
3708
  end
3569
3709
  end
3570
3710
 
3711
+ class Rule
3712
+ # @private
3713
+ class Representation < Google::Apis::Core::JsonRepresentation
3714
+ property :action, as: 'action'
3715
+ collection :conditions, as: 'conditions', class: Google::Apis::ComputeBeta::Condition, decorator: Google::Apis::ComputeBeta::Condition::Representation
3716
+
3717
+ property :description, as: 'description'
3718
+ collection :ins, as: 'ins'
3719
+ collection :log_configs, as: 'logConfigs', class: Google::Apis::ComputeBeta::LogConfig, decorator: Google::Apis::ComputeBeta::LogConfig::Representation
3720
+
3721
+ collection :not_ins, as: 'notIns'
3722
+ collection :permissions, as: 'permissions'
3723
+ end
3724
+ end
3725
+
3571
3726
  class SslHealthCheck
3572
3727
  # @private
3573
3728
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -793,6 +793,284 @@ module Google
793
793
  execute_or_queue_command(command, &block)
794
794
  end
795
795
 
796
+ # Deletes the specified BackendBucket resource.
797
+ # @param [String] project
798
+ # Project ID for this request.
799
+ # @param [String] backend_bucket
800
+ # Name of the BackendBucket resource to delete.
801
+ # @param [String] fields
802
+ # Selector specifying which fields to include in a partial response.
803
+ # @param [String] quota_user
804
+ # Available to use for quota purposes for server-side applications. Can be any
805
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
806
+ # Overrides userIp if both are provided.
807
+ # @param [String] user_ip
808
+ # IP address of the site where the request originates. Use this if you want to
809
+ # enforce per-user limits.
810
+ # @param [Google::Apis::RequestOptions] options
811
+ # Request-specific options
812
+ #
813
+ # @yield [result, err] Result & error if block supplied
814
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
815
+ # @yieldparam err [StandardError] error object if request failed
816
+ #
817
+ # @return [Google::Apis::ComputeBeta::Operation]
818
+ #
819
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
820
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
821
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
822
+ def delete_backend_bucket(project, backend_bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
823
+ command = make_simple_command(:delete, '{project}/global/backendBuckets/{backendBucket}', options)
824
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
825
+ command.response_class = Google::Apis::ComputeBeta::Operation
826
+ command.params['project'] = project unless project.nil?
827
+ command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
828
+ command.query['fields'] = fields unless fields.nil?
829
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
830
+ command.query['userIp'] = user_ip unless user_ip.nil?
831
+ execute_or_queue_command(command, &block)
832
+ end
833
+
834
+ # Returns the specified BackendBucket resource. Get a list of available backend
835
+ # buckets by making a list() request.
836
+ # @param [String] project
837
+ # Project ID for this request.
838
+ # @param [String] backend_bucket
839
+ # Name of the BackendBucket resource to return.
840
+ # @param [String] fields
841
+ # Selector specifying which fields to include in a partial response.
842
+ # @param [String] quota_user
843
+ # Available to use for quota purposes for server-side applications. Can be any
844
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
845
+ # Overrides userIp if both are provided.
846
+ # @param [String] user_ip
847
+ # IP address of the site where the request originates. Use this if you want to
848
+ # enforce per-user limits.
849
+ # @param [Google::Apis::RequestOptions] options
850
+ # Request-specific options
851
+ #
852
+ # @yield [result, err] Result & error if block supplied
853
+ # @yieldparam result [Google::Apis::ComputeBeta::BackendBucket] parsed result object
854
+ # @yieldparam err [StandardError] error object if request failed
855
+ #
856
+ # @return [Google::Apis::ComputeBeta::BackendBucket]
857
+ #
858
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
859
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
860
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
861
+ def get_backend_bucket(project, backend_bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
862
+ command = make_simple_command(:get, '{project}/global/backendBuckets/{backendBucket}', options)
863
+ command.response_representation = Google::Apis::ComputeBeta::BackendBucket::Representation
864
+ command.response_class = Google::Apis::ComputeBeta::BackendBucket
865
+ command.params['project'] = project unless project.nil?
866
+ command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
867
+ command.query['fields'] = fields unless fields.nil?
868
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
869
+ command.query['userIp'] = user_ip unless user_ip.nil?
870
+ execute_or_queue_command(command, &block)
871
+ end
872
+
873
+ # Creates a BackendBucket resource in the specified project using the data
874
+ # included in the request.
875
+ # @param [String] project
876
+ # Project ID for this request.
877
+ # @param [Google::Apis::ComputeBeta::BackendBucket] backend_bucket_object
878
+ # @param [String] fields
879
+ # Selector specifying which fields to include in a partial response.
880
+ # @param [String] quota_user
881
+ # Available to use for quota purposes for server-side applications. Can be any
882
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
883
+ # Overrides userIp if both are provided.
884
+ # @param [String] user_ip
885
+ # IP address of the site where the request originates. Use this if you want to
886
+ # enforce per-user limits.
887
+ # @param [Google::Apis::RequestOptions] options
888
+ # Request-specific options
889
+ #
890
+ # @yield [result, err] Result & error if block supplied
891
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
892
+ # @yieldparam err [StandardError] error object if request failed
893
+ #
894
+ # @return [Google::Apis::ComputeBeta::Operation]
895
+ #
896
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
897
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
898
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
899
+ def insert_backend_bucket(project, backend_bucket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
900
+ command = make_simple_command(:post, '{project}/global/backendBuckets', options)
901
+ command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation
902
+ command.request_object = backend_bucket_object
903
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
904
+ command.response_class = Google::Apis::ComputeBeta::Operation
905
+ command.params['project'] = project unless project.nil?
906
+ command.query['fields'] = fields unless fields.nil?
907
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
908
+ command.query['userIp'] = user_ip unless user_ip.nil?
909
+ execute_or_queue_command(command, &block)
910
+ end
911
+
912
+ # Retrieves the list of BackendBucket resources available to the specified
913
+ # project.
914
+ # @param [String] project
915
+ # Project ID for this request.
916
+ # @param [String] filter
917
+ # Sets a filter expression for filtering listed resources, in the form filter=`
918
+ # expression`. Your `expression` must be in the format: field_name
919
+ # comparison_string literal_string.
920
+ # The field_name is the name of the field you want to compare. Only atomic field
921
+ # types are supported (string, number, boolean). The comparison_string must be
922
+ # either eq (equals) or ne (not equals). The literal_string is the string value
923
+ # to filter to. The literal value must be valid for the type of field you are
924
+ # filtering by (string, number, boolean). For string fields, the literal value
925
+ # is interpreted as a regular expression using RE2 syntax. The literal value
926
+ # must match the entire field.
927
+ # For example, to filter for instances that do not have a name of example-
928
+ # instance, you would use filter=name ne example-instance.
929
+ # You can filter on nested fields. For example, you could filter on instances
930
+ # that have set the scheduling.automaticRestart field to true. Use filtering on
931
+ # nested fields to take advantage of labels to organize and search for results
932
+ # based on label values.
933
+ # To filter on multiple expressions, provide each separate expression within
934
+ # parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
935
+ # central1-f). Multiple expressions are treated as AND expressions, meaning that
936
+ # resources must match all expressions to pass the filters.
937
+ # @param [Fixnum] max_results
938
+ # The maximum number of results per page that should be returned. If the number
939
+ # of available results is larger than maxResults, Compute Engine returns a
940
+ # nextPageToken that can be used to get the next page of results in subsequent
941
+ # list requests.
942
+ # @param [String] order_by
943
+ # Sorts list results by a certain order. By default, results are returned in
944
+ # alphanumerical order based on the resource name.
945
+ # You can also sort results in descending order based on the creation timestamp
946
+ # using orderBy="creationTimestamp desc". This sorts results based on the
947
+ # creationTimestamp field in reverse chronological order (newest result first).
948
+ # Use this to sort resources like operations so that the newest operation is
949
+ # returned first.
950
+ # Currently, only sorting by name or creationTimestamp desc is supported.
951
+ # @param [String] page_token
952
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
953
+ # a previous list request to get the next page of results.
954
+ # @param [String] fields
955
+ # Selector specifying which fields to include in a partial response.
956
+ # @param [String] quota_user
957
+ # Available to use for quota purposes for server-side applications. Can be any
958
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
959
+ # Overrides userIp if both are provided.
960
+ # @param [String] user_ip
961
+ # IP address of the site where the request originates. Use this if you want to
962
+ # enforce per-user limits.
963
+ # @param [Google::Apis::RequestOptions] options
964
+ # Request-specific options
965
+ #
966
+ # @yield [result, err] Result & error if block supplied
967
+ # @yieldparam result [Google::Apis::ComputeBeta::BackendBucketList] parsed result object
968
+ # @yieldparam err [StandardError] error object if request failed
969
+ #
970
+ # @return [Google::Apis::ComputeBeta::BackendBucketList]
971
+ #
972
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
973
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
974
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
975
+ def list_backend_buckets(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
976
+ command = make_simple_command(:get, '{project}/global/backendBuckets', options)
977
+ command.response_representation = Google::Apis::ComputeBeta::BackendBucketList::Representation
978
+ command.response_class = Google::Apis::ComputeBeta::BackendBucketList
979
+ command.params['project'] = project unless project.nil?
980
+ command.query['filter'] = filter unless filter.nil?
981
+ command.query['maxResults'] = max_results unless max_results.nil?
982
+ command.query['orderBy'] = order_by unless order_by.nil?
983
+ command.query['pageToken'] = page_token unless page_token.nil?
984
+ command.query['fields'] = fields unless fields.nil?
985
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
986
+ command.query['userIp'] = user_ip unless user_ip.nil?
987
+ execute_or_queue_command(command, &block)
988
+ end
989
+
990
+ # Updates the specified BackendBucket resource with the data included in the
991
+ # request. This method supports patch semantics.
992
+ # @param [String] project
993
+ # Project ID for this request.
994
+ # @param [String] backend_bucket
995
+ # Name of the BackendBucket resource to update.
996
+ # @param [Google::Apis::ComputeBeta::BackendBucket] backend_bucket_object
997
+ # @param [String] fields
998
+ # Selector specifying which fields to include in a partial response.
999
+ # @param [String] quota_user
1000
+ # Available to use for quota purposes for server-side applications. Can be any
1001
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1002
+ # Overrides userIp if both are provided.
1003
+ # @param [String] user_ip
1004
+ # IP address of the site where the request originates. Use this if you want to
1005
+ # enforce per-user limits.
1006
+ # @param [Google::Apis::RequestOptions] options
1007
+ # Request-specific options
1008
+ #
1009
+ # @yield [result, err] Result & error if block supplied
1010
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
1011
+ # @yieldparam err [StandardError] error object if request failed
1012
+ #
1013
+ # @return [Google::Apis::ComputeBeta::Operation]
1014
+ #
1015
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1016
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1017
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1018
+ def patch_backend_bucket(project, backend_bucket, backend_bucket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1019
+ command = make_simple_command(:patch, '{project}/global/backendBuckets/{backendBucket}', options)
1020
+ command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation
1021
+ command.request_object = backend_bucket_object
1022
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
1023
+ command.response_class = Google::Apis::ComputeBeta::Operation
1024
+ command.params['project'] = project unless project.nil?
1025
+ command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
1026
+ command.query['fields'] = fields unless fields.nil?
1027
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1028
+ command.query['userIp'] = user_ip unless user_ip.nil?
1029
+ execute_or_queue_command(command, &block)
1030
+ end
1031
+
1032
+ # Updates the specified BackendBucket resource with the data included in the
1033
+ # request.
1034
+ # @param [String] project
1035
+ # Project ID for this request.
1036
+ # @param [String] backend_bucket
1037
+ # Name of the BackendBucket resource to update.
1038
+ # @param [Google::Apis::ComputeBeta::BackendBucket] backend_bucket_object
1039
+ # @param [String] fields
1040
+ # Selector specifying which fields to include in a partial response.
1041
+ # @param [String] quota_user
1042
+ # Available to use for quota purposes for server-side applications. Can be any
1043
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1044
+ # Overrides userIp if both are provided.
1045
+ # @param [String] user_ip
1046
+ # IP address of the site where the request originates. Use this if you want to
1047
+ # enforce per-user limits.
1048
+ # @param [Google::Apis::RequestOptions] options
1049
+ # Request-specific options
1050
+ #
1051
+ # @yield [result, err] Result & error if block supplied
1052
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
1053
+ # @yieldparam err [StandardError] error object if request failed
1054
+ #
1055
+ # @return [Google::Apis::ComputeBeta::Operation]
1056
+ #
1057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1060
+ def update_backend_bucket(project, backend_bucket, backend_bucket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1061
+ command = make_simple_command(:put, '{project}/global/backendBuckets/{backendBucket}', options)
1062
+ command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation
1063
+ command.request_object = backend_bucket_object
1064
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
1065
+ command.response_class = Google::Apis::ComputeBeta::Operation
1066
+ command.params['project'] = project unless project.nil?
1067
+ command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
1068
+ command.query['fields'] = fields unless fields.nil?
1069
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1070
+ command.query['userIp'] = user_ip unless user_ip.nil?
1071
+ execute_or_queue_command(command, &block)
1072
+ end
1073
+
796
1074
  # Retrieves the list of all BackendService resources, regional and global,
797
1075
  # available to the specified project.
798
1076
  # @param [String] project
@@ -5048,6 +5326,10 @@ module Google
5048
5326
  # The name of the zone where the managed instance group is located.
5049
5327
  # @param [String] instance_group_manager
5050
5328
  # The name of the managed instance group.
5329
+ # @param [String] filter
5330
+ # @param [Fixnum] max_results
5331
+ # @param [String] order_by
5332
+ # @param [String] page_token
5051
5333
  # @param [String] fields
5052
5334
  # Selector specifying which fields to include in a partial response.
5053
5335
  # @param [String] quota_user
@@ -5069,13 +5351,17 @@ module Google
5069
5351
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5070
5352
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5071
5353
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5072
- def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5354
+ def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5073
5355
  command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options)
5074
5356
  command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagersListManagedInstancesResponse::Representation
5075
5357
  command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagersListManagedInstancesResponse
5076
5358
  command.params['project'] = project unless project.nil?
5077
5359
  command.params['zone'] = zone unless zone.nil?
5078
5360
  command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
5361
+ command.query['filter'] = filter unless filter.nil?
5362
+ command.query['maxResults'] = max_results unless max_results.nil?
5363
+ command.query['order_by'] = order_by unless order_by.nil?
5364
+ command.query['pageToken'] = page_token unless page_token.nil?
5079
5365
  command.query['fields'] = fields unless fields.nil?
5080
5366
  command.query['quotaUser'] = quota_user unless quota_user.nil?
5081
5367
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -8955,6 +9241,10 @@ module Google
8955
9241
  # Name of the region scoping this request.
8956
9242
  # @param [String] instance_group_manager
8957
9243
  # The name of the managed instance group.
9244
+ # @param [String] filter
9245
+ # @param [Fixnum] max_results
9246
+ # @param [String] order_by
9247
+ # @param [String] page_token
8958
9248
  # @param [String] fields
8959
9249
  # Selector specifying which fields to include in a partial response.
8960
9250
  # @param [String] quota_user
@@ -8976,13 +9266,17 @@ module Google
8976
9266
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8977
9267
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8978
9268
  # @raise [Google::Apis::AuthorizationError] Authorization is required
8979
- def list_region_instance_group_manager_managed_instances(project, region, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9269
+ def list_region_instance_group_manager_managed_instances(project, region, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8980
9270
  command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options)
8981
9271
  command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersListInstancesResponse::Representation
8982
9272
  command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupManagersListInstancesResponse
8983
9273
  command.params['project'] = project unless project.nil?
8984
9274
  command.params['region'] = region unless region.nil?
8985
9275
  command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9276
+ command.query['filter'] = filter unless filter.nil?
9277
+ command.query['maxResults'] = max_results unless max_results.nil?
9278
+ command.query['order_by'] = order_by unless order_by.nil?
9279
+ command.query['pageToken'] = page_token unless page_token.nil?
8986
9280
  command.query['fields'] = fields unless fields.nil?
8987
9281
  command.query['quotaUser'] = quota_user unless quota_user.nil?
8988
9282
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -11353,6 +11647,48 @@ module Google
11353
11647
  execute_or_queue_command(command, &block)
11354
11648
  end
11355
11649
 
11650
+ # Gets the access control policy for a resource. May be empty if no such policy
11651
+ # or resource exists.
11652
+ # @param [String] project
11653
+ # Project ID for this request.
11654
+ # @param [String] region
11655
+ # The name of the region for this request.
11656
+ # @param [String] resource
11657
+ # Name of the resource for this request.
11658
+ # @param [String] fields
11659
+ # Selector specifying which fields to include in a partial response.
11660
+ # @param [String] quota_user
11661
+ # Available to use for quota purposes for server-side applications. Can be any
11662
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11663
+ # Overrides userIp if both are provided.
11664
+ # @param [String] user_ip
11665
+ # IP address of the site where the request originates. Use this if you want to
11666
+ # enforce per-user limits.
11667
+ # @param [Google::Apis::RequestOptions] options
11668
+ # Request-specific options
11669
+ #
11670
+ # @yield [result, err] Result & error if block supplied
11671
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
11672
+ # @yieldparam err [StandardError] error object if request failed
11673
+ #
11674
+ # @return [Google::Apis::ComputeBeta::Policy]
11675
+ #
11676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11679
+ def get_subnetwork_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11680
+ command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{resource}/getIamPolicy', options)
11681
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
11682
+ command.response_class = Google::Apis::ComputeBeta::Policy
11683
+ command.params['project'] = project unless project.nil?
11684
+ command.params['region'] = region unless region.nil?
11685
+ command.params['resource'] = resource unless resource.nil?
11686
+ command.query['fields'] = fields unless fields.nil?
11687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11688
+ command.query['userIp'] = user_ip unless user_ip.nil?
11689
+ execute_or_queue_command(command, &block)
11690
+ end
11691
+
11356
11692
  # Creates a subnetwork in the specified project using the data included in the
11357
11693
  # request.
11358
11694
  # @param [String] project
@@ -11475,6 +11811,51 @@ module Google
11475
11811
  execute_or_queue_command(command, &block)
11476
11812
  end
11477
11813
 
11814
+ # Sets the access control policy on the specified resource. Replaces any
11815
+ # existing policy.
11816
+ # @param [String] project
11817
+ # Project ID for this request.
11818
+ # @param [String] region
11819
+ # The name of the region for this request.
11820
+ # @param [String] resource
11821
+ # Name of the resource for this request.
11822
+ # @param [Google::Apis::ComputeBeta::Policy] policy_object
11823
+ # @param [String] fields
11824
+ # Selector specifying which fields to include in a partial response.
11825
+ # @param [String] quota_user
11826
+ # Available to use for quota purposes for server-side applications. Can be any
11827
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11828
+ # Overrides userIp if both are provided.
11829
+ # @param [String] user_ip
11830
+ # IP address of the site where the request originates. Use this if you want to
11831
+ # enforce per-user limits.
11832
+ # @param [Google::Apis::RequestOptions] options
11833
+ # Request-specific options
11834
+ #
11835
+ # @yield [result, err] Result & error if block supplied
11836
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
11837
+ # @yieldparam err [StandardError] error object if request failed
11838
+ #
11839
+ # @return [Google::Apis::ComputeBeta::Policy]
11840
+ #
11841
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11842
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11843
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11844
+ def set_subnetwork_iam_policy(project, region, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11845
+ command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/setIamPolicy', options)
11846
+ command.request_representation = Google::Apis::ComputeBeta::Policy::Representation
11847
+ command.request_object = policy_object
11848
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
11849
+ command.response_class = Google::Apis::ComputeBeta::Policy
11850
+ command.params['project'] = project unless project.nil?
11851
+ command.params['region'] = region unless region.nil?
11852
+ command.params['resource'] = resource unless resource.nil?
11853
+ command.query['fields'] = fields unless fields.nil?
11854
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11855
+ command.query['userIp'] = user_ip unless user_ip.nil?
11856
+ execute_or_queue_command(command, &block)
11857
+ end
11858
+
11478
11859
  # Returns permissions that a caller has on the specified resource.
11479
11860
  # @param [String] project
11480
11861
  # Project ID for this request.