google-api-client 0.10.0 → 0.10.1

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 (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -28,16 +28,16 @@ module Google
28
28
  # @see https://cloud.google.com/trace
29
29
  module CloudtraceV1
30
30
  VERSION = 'V1'
31
- REVISION = '20170208'
31
+ REVISION = '20170225'
32
+
33
+ # Read Trace data for a project or application
34
+ AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
32
35
 
33
36
  # Write Trace data for a project or application
34
37
  AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
35
38
 
36
39
  # View and manage your data across Google Cloud Platform services
37
40
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
38
-
39
- # Read Trace data for a project or application
40
- AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
41
41
  end
42
42
  end
43
43
  end
@@ -22,25 +22,6 @@ module Google
22
22
  module Apis
23
23
  module CloudtraceV1
24
24
 
25
- # List of new or updated traces.
26
- class Traces
27
- include Google::Apis::Core::Hashable
28
-
29
- # List of traces.
30
- # Corresponds to the JSON property `traces`
31
- # @return [Array<Google::Apis::CloudtraceV1::Trace>]
32
- attr_accessor :traces
33
-
34
- def initialize(**args)
35
- update!(**args)
36
- end
37
-
38
- # Update properties of this object
39
- def update!(**args)
40
- @traces = args[:traces] if args.key?(:traces)
41
- end
42
- end
43
-
44
25
  # A span represents a single timed event within a trace. Spans can be nested
45
26
  # and form a trace tree. Often, a trace contains a root span that describes the
46
27
  # end-to-end latency of an operation and, optionally, one or more subspans for
@@ -49,23 +30,6 @@ module Google
49
30
  class TraceSpan
50
31
  include Google::Apis::Core::Hashable
51
32
 
52
- # End time of the span in nanoseconds from the UNIX epoch.
53
- # Corresponds to the JSON property `endTime`
54
- # @return [String]
55
- attr_accessor :end_time
56
-
57
- # Start time of the span in nanoseconds from the UNIX epoch.
58
- # Corresponds to the JSON property `startTime`
59
- # @return [String]
60
- attr_accessor :start_time
61
-
62
- # Distinguishes between spans generated in a particular context. For example,
63
- # two spans with the same name may be distinguished using `RPC_CLIENT`
64
- # and `RPC_SERVER` to identify queueing latency associated with the span.
65
- # Corresponds to the JSON property `kind`
66
- # @return [String]
67
- attr_accessor :kind
68
-
69
33
  # Collection of labels associated with the span. Label keys must be less than
70
34
  # 128 bytes. Label values must be less than 16 kilobytes.
71
35
  # Corresponds to the JSON property `labels`
@@ -94,19 +58,36 @@ module Google
94
58
  # @return [String]
95
59
  attr_accessor :parent_span_id
96
60
 
61
+ # End time of the span in nanoseconds from the UNIX epoch.
62
+ # Corresponds to the JSON property `endTime`
63
+ # @return [String]
64
+ attr_accessor :end_time
65
+
66
+ # Start time of the span in nanoseconds from the UNIX epoch.
67
+ # Corresponds to the JSON property `startTime`
68
+ # @return [String]
69
+ attr_accessor :start_time
70
+
71
+ # Distinguishes between spans generated in a particular context. For example,
72
+ # two spans with the same name may be distinguished using `RPC_CLIENT`
73
+ # and `RPC_SERVER` to identify queueing latency associated with the span.
74
+ # Corresponds to the JSON property `kind`
75
+ # @return [String]
76
+ attr_accessor :kind
77
+
97
78
  def initialize(**args)
98
79
  update!(**args)
99
80
  end
100
81
 
101
82
  # Update properties of this object
102
83
  def update!(**args)
103
- @end_time = args[:end_time] if args.key?(:end_time)
104
- @start_time = args[:start_time] if args.key?(:start_time)
105
- @kind = args[:kind] if args.key?(:kind)
106
84
  @labels = args[:labels] if args.key?(:labels)
107
85
  @name = args[:name] if args.key?(:name)
108
86
  @span_id = args[:span_id] if args.key?(:span_id)
109
87
  @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
88
+ @end_time = args[:end_time] if args.key?(:end_time)
89
+ @start_time = args[:start_time] if args.key?(:start_time)
90
+ @kind = args[:kind] if args.key?(:kind)
110
91
  end
111
92
  end
112
93
 
@@ -189,6 +170,25 @@ module Google
189
170
  @trace_id = args[:trace_id] if args.key?(:trace_id)
190
171
  end
191
172
  end
173
+
174
+ # List of new or updated traces.
175
+ class Traces
176
+ include Google::Apis::Core::Hashable
177
+
178
+ # List of traces.
179
+ # Corresponds to the JSON property `traces`
180
+ # @return [Array<Google::Apis::CloudtraceV1::Trace>]
181
+ attr_accessor :traces
182
+
183
+ def initialize(**args)
184
+ update!(**args)
185
+ end
186
+
187
+ # Update properties of this object
188
+ def update!(**args)
189
+ @traces = args[:traces] if args.key?(:traces)
190
+ end
191
+ end
192
192
  end
193
193
  end
194
194
  end
@@ -22,12 +22,6 @@ module Google
22
22
  module Apis
23
23
  module CloudtraceV1
24
24
 
25
- class Traces
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
25
  class TraceSpan
32
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
27
 
@@ -53,23 +47,21 @@ module Google
53
47
  end
54
48
 
55
49
  class Traces
56
- # @private
57
- class Representation < Google::Apis::Core::JsonRepresentation
58
- collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
59
51
 
60
- end
52
+ include Google::Apis::Core::JsonObjectSupport
61
53
  end
62
54
 
63
55
  class TraceSpan
64
56
  # @private
65
57
  class Representation < Google::Apis::Core::JsonRepresentation
66
- property :end_time, as: 'endTime'
67
- property :start_time, as: 'startTime'
68
- property :kind, as: 'kind'
69
58
  hash :labels, as: 'labels'
70
59
  property :name, as: 'name'
71
60
  property :span_id, as: 'spanId'
72
61
  property :parent_span_id, as: 'parentSpanId'
62
+ property :end_time, as: 'endTime'
63
+ property :start_time, as: 'startTime'
64
+ property :kind, as: 'kind'
73
65
  end
74
66
  end
75
67
 
@@ -97,6 +89,14 @@ module Google
97
89
  property :trace_id, as: 'traceId'
98
90
  end
99
91
  end
92
+
93
+ class Traces
94
+ # @private
95
+ class Representation < Google::Apis::Core::JsonRepresentation
96
+ collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
97
+
98
+ end
99
+ end
100
100
  end
101
101
  end
102
102
  end
@@ -35,16 +35,16 @@ module Google
35
35
  #
36
36
  # @see https://cloud.google.com/trace
37
37
  class CloudTraceService < Google::Apis::Core::BaseService
38
- # @return [String]
39
- # API key. Your API key identifies your project and provides you with API access,
40
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
41
- attr_accessor :key
42
-
43
38
  # @return [String]
44
39
  # Available to use for quota purposes for server-side applications. Can be any
45
40
  # arbitrary string assigned to a user, but should not exceed 40 characters.
46
41
  attr_accessor :quota_user
47
42
 
43
+ # @return [String]
44
+ # API key. Your API key identifies your project and provides you with API access,
45
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
46
+ attr_accessor :key
47
+
48
48
  def initialize
49
49
  super('https://cloudtrace.googleapis.com/', '')
50
50
  end
@@ -57,11 +57,11 @@ module Google
57
57
  # @param [String] project_id
58
58
  # ID of the Cloud project where the trace data is stored.
59
59
  # @param [Google::Apis::CloudtraceV1::Traces] traces_object
60
- # @param [String] fields
61
- # Selector specifying which fields to include in a partial response.
62
60
  # @param [String] quota_user
63
61
  # Available to use for quota purposes for server-side applications. Can be any
64
62
  # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [String] fields
64
+ # Selector specifying which fields to include in a partial response.
65
65
  # @param [Google::Apis::RequestOptions] options
66
66
  # Request-specific options
67
67
  #
@@ -74,15 +74,15 @@ module Google
74
74
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
75
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
76
  # @raise [Google::Apis::AuthorizationError] Authorization is required
77
- def patch_project_traces(project_id, traces_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ def patch_project_traces(project_id, traces_object = nil, quota_user: nil, fields: nil, options: nil, &block)
78
78
  command = make_simple_command(:patch, 'v1/projects/{projectId}/traces', options)
79
79
  command.request_representation = Google::Apis::CloudtraceV1::Traces::Representation
80
80
  command.request_object = traces_object
81
81
  command.response_representation = Google::Apis::CloudtraceV1::Empty::Representation
82
82
  command.response_class = Google::Apis::CloudtraceV1::Empty
83
83
  command.params['projectId'] = project_id unless project_id.nil?
84
- command.query['fields'] = fields unless fields.nil?
85
84
  command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ command.query['fields'] = fields unless fields.nil?
86
86
  execute_or_queue_command(command, &block)
87
87
  end
88
88
 
@@ -118,11 +118,11 @@ module Google
118
118
  # Descending order can be specified by appending `desc` to the sort field
119
119
  # (for example, `name desc`).
120
120
  # Only one sort field is permitted.
121
- # @param [String] fields
122
- # Selector specifying which fields to include in a partial response.
123
121
  # @param [String] quota_user
124
122
  # Available to use for quota purposes for server-side applications. Can be any
125
123
  # arbitrary string assigned to a user, but should not exceed 40 characters.
124
+ # @param [String] fields
125
+ # Selector specifying which fields to include in a partial response.
126
126
  # @param [Google::Apis::RequestOptions] options
127
127
  # Request-specific options
128
128
  #
@@ -135,7 +135,7 @@ module Google
135
135
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
136
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
137
  # @raise [Google::Apis::AuthorizationError] Authorization is required
138
- def list_project_traces(project_id, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block)
138
+ def list_project_traces(project_id, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, order_by: nil, quota_user: nil, fields: nil, options: nil, &block)
139
139
  command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
140
140
  command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
141
141
  command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
@@ -147,8 +147,8 @@ module Google
147
147
  command.query['pageSize'] = page_size unless page_size.nil?
148
148
  command.query['view'] = view unless view.nil?
149
149
  command.query['orderBy'] = order_by unless order_by.nil?
150
- command.query['fields'] = fields unless fields.nil?
151
150
  command.query['quotaUser'] = quota_user unless quota_user.nil?
151
+ command.query['fields'] = fields unless fields.nil?
152
152
  execute_or_queue_command(command, &block)
153
153
  end
154
154
 
@@ -157,11 +157,11 @@ module Google
157
157
  # ID of the Cloud project where the trace data is stored.
158
158
  # @param [String] trace_id
159
159
  # ID of the trace to return.
160
- # @param [String] fields
161
- # Selector specifying which fields to include in a partial response.
162
160
  # @param [String] quota_user
163
161
  # Available to use for quota purposes for server-side applications. Can be any
164
162
  # arbitrary string assigned to a user, but should not exceed 40 characters.
163
+ # @param [String] fields
164
+ # Selector specifying which fields to include in a partial response.
165
165
  # @param [Google::Apis::RequestOptions] options
166
166
  # Request-specific options
167
167
  #
@@ -174,22 +174,22 @@ module Google
174
174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
176
  # @raise [Google::Apis::AuthorizationError] Authorization is required
177
- def get_project_trace(project_id, trace_id, fields: nil, quota_user: nil, options: nil, &block)
177
+ def get_project_trace(project_id, trace_id, quota_user: nil, fields: nil, options: nil, &block)
178
178
  command = make_simple_command(:get, 'v1/projects/{projectId}/traces/{traceId}', options)
179
179
  command.response_representation = Google::Apis::CloudtraceV1::Trace::Representation
180
180
  command.response_class = Google::Apis::CloudtraceV1::Trace
181
181
  command.params['projectId'] = project_id unless project_id.nil?
182
182
  command.params['traceId'] = trace_id unless trace_id.nil?
183
- command.query['fields'] = fields unless fields.nil?
184
183
  command.query['quotaUser'] = quota_user unless quota_user.nil?
184
+ command.query['fields'] = fields unless fields.nil?
185
185
  execute_or_queue_command(command, &block)
186
186
  end
187
187
 
188
188
  protected
189
189
 
190
190
  def apply_command_defaults(command)
191
- command.query['key'] = key unless key.nil?
192
191
  command.query['quotaUser'] = quota_user unless quota_user.nil?
192
+ command.query['key'] = key unless key.nil?
193
193
  end
194
194
  end
195
195
  end
@@ -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 = '20170124'
28
+ REVISION = '20170224'
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'
@@ -619,6 +619,37 @@ module Google
619
619
  end
620
620
  end
621
621
 
622
+ # An alias IP range attached to an instance's network interface.
623
+ class AliasIpRange
624
+ include Google::Apis::Core::Hashable
625
+
626
+ # The IP CIDR range represented by this alias IP range. This IP CIDR range must
627
+ # belong to the specified subnetwork and cannot contain IP addresses reserved by
628
+ # system or used by other network interfaces. This range may be a single IP
629
+ # address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format string (e.g. 10.
630
+ # 1.2.0/24).
631
+ # Corresponds to the JSON property `ipCidrRange`
632
+ # @return [String]
633
+ attr_accessor :ip_cidr_range
634
+
635
+ # Optional subnetwork secondary range name specifying the secondary range from
636
+ # which to allocate the IP CIDR range for this alias IP range. If left
637
+ # unspecified, the primary range of the subnetwork will be used.
638
+ # Corresponds to the JSON property `subnetworkRangeName`
639
+ # @return [String]
640
+ attr_accessor :subnetwork_range_name
641
+
642
+ def initialize(**args)
643
+ update!(**args)
644
+ end
645
+
646
+ # Update properties of this object
647
+ def update!(**args)
648
+ @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
649
+ @subnetwork_range_name = args[:subnetwork_range_name] if args.key?(:subnetwork_range_name)
650
+ end
651
+ end
652
+
622
653
  # An instance-attached disk resource.
623
654
  class AttachedDisk
624
655
  include Google::Apis::Core::Hashable
@@ -817,6 +848,18 @@ module Google
817
848
  # Specifies the audit configuration for a service. It consists of which
818
849
  # permission types are logged, and what identities, if any, are exempted from
819
850
  # logging. An AuditConifg must have one or more AuditLogConfigs.
851
+ # If there are AuditConfigs for both `allServices` and a specific service, the
852
+ # union of the two AuditConfigs is used for that service: the log_types
853
+ # specified in each AuditConfig are enabled, and the exempted_members in each
854
+ # AuditConfig are exempted. Example Policy with multiple AuditConfigs: ` "
855
+ # audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` "
856
+ # log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] `, ` "
857
+ # log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": "
858
+ # fooservice@googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", `,
859
+ # ` "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] ` ] `
860
+ # ] ` For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
861
+ # logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.
862
+ # com from DATA_WRITE logging.
820
863
  class AuditConfig
821
864
  include Google::Apis::Core::Hashable
822
865
 
@@ -825,9 +868,7 @@ module Google
825
868
  # @return [Array<Google::Apis::ComputeBeta::AuditLogConfig>]
826
869
  attr_accessor :audit_log_configs
827
870
 
828
- # Specifies the identities that are exempted from "data access" audit logging
829
- # for the `service` specified above. Follows the same format of Binding.members.
830
- # This field is deprecated in favor of per-permission-type exemptions.
871
+ #
831
872
  # Corresponds to the JSON property `exemptedMembers`
832
873
  # @return [Array<String>]
833
874
  attr_accessor :exempted_members
@@ -1620,7 +1661,7 @@ module Google
1620
1661
  # @return [Array<String>]
1621
1662
  attr_accessor :health_checks
1622
1663
 
1623
- # Identity-Aware Proxy (Cloud Gatekeeper)
1664
+ # Identity-Aware Proxy
1624
1665
  # Corresponds to the JSON property `iap`
1625
1666
  # @return [Google::Apis::ComputeBeta::BackendServiceIap]
1626
1667
  attr_accessor :iap
@@ -1668,7 +1709,7 @@ module Google
1668
1709
  attr_accessor :port_name
1669
1710
 
1670
1711
  # The protocol this BackendService uses to communicate with backends.
1671
- # Possible values are HTTP, HTTPS, HTTP2, TCP and SSL. The default is HTTP.
1712
+ # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
1672
1713
  # For internal load balancing, the possible values are TCP and UDP, and the
1673
1714
  # default is TCP.
1674
1715
  # Corresponds to the JSON property `protocol`
@@ -1821,7 +1862,7 @@ module Google
1821
1862
  end
1822
1863
  end
1823
1864
 
1824
- # Identity-Aware Proxy (Cloud Gatekeeper)
1865
+ # Identity-Aware Proxy
1825
1866
  class BackendServiceIap
1826
1867
  include Google::Apis::Core::Hashable
1827
1868
 
@@ -1879,7 +1920,11 @@ module Google
1879
1920
  # @return [String]
1880
1921
  attr_accessor :kind
1881
1922
 
1882
- # [Output Only] A token used to continue a truncated list request.
1923
+ # [Output Only] This token allows you to get the next page of results for list
1924
+ # requests. If the number of results is larger than maxResults, use the
1925
+ # nextPageToken as a value for the query parameter pageToken in the next list
1926
+ # request. Subsequent list requests will have their own nextPageToken to
1927
+ # continue paging through the results.
1883
1928
  # Corresponds to the JSON property `nextPageToken`
1884
1929
  # @return [String]
1885
1930
  attr_accessor :next_page_token
@@ -2115,6 +2160,301 @@ module Google
2115
2160
  end
2116
2161
  end
2117
2162
 
2163
+ # A usage-commitment with a start / end time. Users create commitments for
2164
+ # particular resources (e.g. memory). Actual usage is first deducted from
2165
+ # available commitments made prior, perhaps at a reduced price (as laid out in
2166
+ # the commitment).
2167
+ class Commitment
2168
+ include Google::Apis::Core::Hashable
2169
+
2170
+ # [Output Only] Creation timestamp in RFC3339 text format.
2171
+ # Corresponds to the JSON property `creationTimestamp`
2172
+ # @return [String]
2173
+ attr_accessor :creation_timestamp
2174
+
2175
+ # An optional description of this resource. Provide this property when you
2176
+ # create the resource.
2177
+ # Corresponds to the JSON property `description`
2178
+ # @return [String]
2179
+ attr_accessor :description
2180
+
2181
+ # [Output Only] Commitment end time in RFC3339 text format.
2182
+ # Corresponds to the JSON property `endTimestamp`
2183
+ # @return [String]
2184
+ attr_accessor :end_timestamp
2185
+
2186
+ # [Output Only] The unique identifier for the resource. This identifier is
2187
+ # defined by the server.
2188
+ # Corresponds to the JSON property `id`
2189
+ # @return [String]
2190
+ attr_accessor :id
2191
+
2192
+ # [Output Only] Type of the resource. Always compute#commitment for commitments.
2193
+ # Corresponds to the JSON property `kind`
2194
+ # @return [String]
2195
+ attr_accessor :kind
2196
+
2197
+ # Name of the resource. Provided by the client when the resource is created. The
2198
+ # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
2199
+ # name must be 1-63 characters long and match the regular expression [a-z]([-a-
2200
+ # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
2201
+ # and all following characters must be a dash, lowercase letter, or digit,
2202
+ # except the last character, which cannot be a dash.
2203
+ # Corresponds to the JSON property `name`
2204
+ # @return [String]
2205
+ attr_accessor :name
2206
+
2207
+ # The plan for this commitment, which determines duration and discount rate. The
2208
+ # currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3
2209
+ # years).
2210
+ # Corresponds to the JSON property `plan`
2211
+ # @return [String]
2212
+ attr_accessor :plan
2213
+
2214
+ # [Output Only] URL of the region where this commitment may be used.
2215
+ # Corresponds to the JSON property `region`
2216
+ # @return [String]
2217
+ attr_accessor :region
2218
+
2219
+ # List of commitment amounts for particular resources. Note that VCPU and MEMORY
2220
+ # resource commitments must occur together.
2221
+ # Corresponds to the JSON property `resources`
2222
+ # @return [Array<Google::Apis::ComputeBeta::ResourceCommitment>]
2223
+ attr_accessor :resources
2224
+
2225
+ # [Output Only] Server-defined URL for the resource.
2226
+ # Corresponds to the JSON property `selfLink`
2227
+ # @return [String]
2228
+ attr_accessor :self_link
2229
+
2230
+ # [Output Only] Commitment start time in RFC3339 text format.
2231
+ # Corresponds to the JSON property `startTimestamp`
2232
+ # @return [String]
2233
+ attr_accessor :start_timestamp
2234
+
2235
+ # [Output Only] Status of the commitment with regards to eventual expiration (
2236
+ # each commitment has an end-date defined). One of the following values:
2237
+ # NOT_YET_ACTIVE, ACTIVE, EXPIRED.
2238
+ # Corresponds to the JSON property `status`
2239
+ # @return [String]
2240
+ attr_accessor :status
2241
+
2242
+ # [Output Only] An optional, human-readable explanation of the status.
2243
+ # Corresponds to the JSON property `statusMessage`
2244
+ # @return [String]
2245
+ attr_accessor :status_message
2246
+
2247
+ def initialize(**args)
2248
+ update!(**args)
2249
+ end
2250
+
2251
+ # Update properties of this object
2252
+ def update!(**args)
2253
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
2254
+ @description = args[:description] if args.key?(:description)
2255
+ @end_timestamp = args[:end_timestamp] if args.key?(:end_timestamp)
2256
+ @id = args[:id] if args.key?(:id)
2257
+ @kind = args[:kind] if args.key?(:kind)
2258
+ @name = args[:name] if args.key?(:name)
2259
+ @plan = args[:plan] if args.key?(:plan)
2260
+ @region = args[:region] if args.key?(:region)
2261
+ @resources = args[:resources] if args.key?(:resources)
2262
+ @self_link = args[:self_link] if args.key?(:self_link)
2263
+ @start_timestamp = args[:start_timestamp] if args.key?(:start_timestamp)
2264
+ @status = args[:status] if args.key?(:status)
2265
+ @status_message = args[:status_message] if args.key?(:status_message)
2266
+ end
2267
+ end
2268
+
2269
+ #
2270
+ class CommitmentAggregatedList
2271
+ include Google::Apis::Core::Hashable
2272
+
2273
+ # [Output Only] The unique identifier for the resource. This identifier is
2274
+ # defined by the server.
2275
+ # Corresponds to the JSON property `id`
2276
+ # @return [String]
2277
+ attr_accessor :id
2278
+
2279
+ # Commitments by scope.
2280
+ # Corresponds to the JSON property `items`
2281
+ # @return [Hash<String,Google::Apis::ComputeBeta::CommitmentsScopedList>]
2282
+ attr_accessor :items
2283
+
2284
+ # [Output Only] Type of resource. Always compute#commitmentAggregatedList for
2285
+ # aggregated lists of commitments.
2286
+ # Corresponds to the JSON property `kind`
2287
+ # @return [String]
2288
+ attr_accessor :kind
2289
+
2290
+ # [Output Only] This token allows you to get the next page of results for list
2291
+ # requests. If the number of results is larger than maxResults, use the
2292
+ # nextPageToken as a value for the query parameter pageToken in the next list
2293
+ # request. Subsequent list requests will have their own nextPageToken to
2294
+ # continue paging through the results.
2295
+ # Corresponds to the JSON property `nextPageToken`
2296
+ # @return [String]
2297
+ attr_accessor :next_page_token
2298
+
2299
+ # [Output Only] Server-defined URL for this resource.
2300
+ # Corresponds to the JSON property `selfLink`
2301
+ # @return [String]
2302
+ attr_accessor :self_link
2303
+
2304
+ def initialize(**args)
2305
+ update!(**args)
2306
+ end
2307
+
2308
+ # Update properties of this object
2309
+ def update!(**args)
2310
+ @id = args[:id] if args.key?(:id)
2311
+ @items = args[:items] if args.key?(:items)
2312
+ @kind = args[:kind] if args.key?(:kind)
2313
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2314
+ @self_link = args[:self_link] if args.key?(:self_link)
2315
+ end
2316
+ end
2317
+
2318
+ # Contains a list of Commitment resources.
2319
+ class CommitmentList
2320
+ include Google::Apis::Core::Hashable
2321
+
2322
+ # [Output Only] The unique identifier for the resource. This identifier is
2323
+ # defined by the server.
2324
+ # Corresponds to the JSON property `id`
2325
+ # @return [String]
2326
+ attr_accessor :id
2327
+
2328
+ # A list of Commitment resources.
2329
+ # Corresponds to the JSON property `items`
2330
+ # @return [Array<Google::Apis::ComputeBeta::Commitment>]
2331
+ attr_accessor :items
2332
+
2333
+ # [Output Only] Type of resource. Always compute#commitmentList for lists of
2334
+ # commitments.
2335
+ # Corresponds to the JSON property `kind`
2336
+ # @return [String]
2337
+ attr_accessor :kind
2338
+
2339
+ # [Output Only] This token allows you to get the next page of results for list
2340
+ # requests. If the number of results is larger than maxResults, use the
2341
+ # nextPageToken as a value for the query parameter pageToken in the next list
2342
+ # request. Subsequent list requests will have their own nextPageToken to
2343
+ # continue paging through the results.
2344
+ # Corresponds to the JSON property `nextPageToken`
2345
+ # @return [String]
2346
+ attr_accessor :next_page_token
2347
+
2348
+ # [Output Only] Server-defined URL for this resource.
2349
+ # Corresponds to the JSON property `selfLink`
2350
+ # @return [String]
2351
+ attr_accessor :self_link
2352
+
2353
+ def initialize(**args)
2354
+ update!(**args)
2355
+ end
2356
+
2357
+ # Update properties of this object
2358
+ def update!(**args)
2359
+ @id = args[:id] if args.key?(:id)
2360
+ @items = args[:items] if args.key?(:items)
2361
+ @kind = args[:kind] if args.key?(:kind)
2362
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2363
+ @self_link = args[:self_link] if args.key?(:self_link)
2364
+ end
2365
+ end
2366
+
2367
+ #
2368
+ class CommitmentsScopedList
2369
+ include Google::Apis::Core::Hashable
2370
+
2371
+ # [Output Only] List of commitments contained in this scope.
2372
+ # Corresponds to the JSON property `commitments`
2373
+ # @return [Array<Google::Apis::ComputeBeta::Commitment>]
2374
+ attr_accessor :commitments
2375
+
2376
+ # [Output Only] Informational warning which replaces the list of commitments
2377
+ # when the list is empty.
2378
+ # Corresponds to the JSON property `warning`
2379
+ # @return [Google::Apis::ComputeBeta::CommitmentsScopedList::Warning]
2380
+ attr_accessor :warning
2381
+
2382
+ def initialize(**args)
2383
+ update!(**args)
2384
+ end
2385
+
2386
+ # Update properties of this object
2387
+ def update!(**args)
2388
+ @commitments = args[:commitments] if args.key?(:commitments)
2389
+ @warning = args[:warning] if args.key?(:warning)
2390
+ end
2391
+
2392
+ # [Output Only] Informational warning which replaces the list of commitments
2393
+ # when the list is empty.
2394
+ class Warning
2395
+ include Google::Apis::Core::Hashable
2396
+
2397
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
2398
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
2399
+ # Corresponds to the JSON property `code`
2400
+ # @return [String]
2401
+ attr_accessor :code
2402
+
2403
+ # [Output Only] Metadata about this warning in key: value format. For example:
2404
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
2405
+ # Corresponds to the JSON property `data`
2406
+ # @return [Array<Google::Apis::ComputeBeta::CommitmentsScopedList::Warning::Datum>]
2407
+ attr_accessor :data
2408
+
2409
+ # [Output Only] A human-readable description of the warning code.
2410
+ # Corresponds to the JSON property `message`
2411
+ # @return [String]
2412
+ attr_accessor :message
2413
+
2414
+ def initialize(**args)
2415
+ update!(**args)
2416
+ end
2417
+
2418
+ # Update properties of this object
2419
+ def update!(**args)
2420
+ @code = args[:code] if args.key?(:code)
2421
+ @data = args[:data] if args.key?(:data)
2422
+ @message = args[:message] if args.key?(:message)
2423
+ end
2424
+
2425
+ #
2426
+ class Datum
2427
+ include Google::Apis::Core::Hashable
2428
+
2429
+ # [Output Only] A key that provides more detail on the warning being returned.
2430
+ # For example, for warnings where there are no results in a list request for a
2431
+ # particular zone, this key might be scope and the key value might be the zone
2432
+ # name. Other examples might be a key indicating a deprecated resource and a
2433
+ # suggested replacement, or a warning about invalid network settings (for
2434
+ # example, if an instance attempts to perform IP forwarding but is not enabled
2435
+ # for IP forwarding).
2436
+ # Corresponds to the JSON property `key`
2437
+ # @return [String]
2438
+ attr_accessor :key
2439
+
2440
+ # [Output Only] A warning data value corresponding to the key.
2441
+ # Corresponds to the JSON property `value`
2442
+ # @return [String]
2443
+ attr_accessor :value
2444
+
2445
+ def initialize(**args)
2446
+ update!(**args)
2447
+ end
2448
+
2449
+ # Update properties of this object
2450
+ def update!(**args)
2451
+ @key = args[:key] if args.key?(:key)
2452
+ @value = args[:value] if args.key?(:value)
2453
+ end
2454
+ end
2455
+ end
2456
+ end
2457
+
2118
2458
  # A condition to be met.
2119
2459
  class Condition
2120
2460
  include Google::Apis::Core::Hashable
@@ -2348,8 +2688,7 @@ module Google
2348
2688
  attr_accessor :label_fingerprint
2349
2689
 
2350
2690
  # Labels to apply to this disk. These can be later modified by the setLabels
2351
- # method. Each label key/value pair must comply with RFC1035. Label values may
2352
- # be empty.
2691
+ # method.
2353
2692
  # Corresponds to the JSON property `labels`
2354
2693
  # @return [Hash<String,String>]
2355
2694
  attr_accessor :labels
@@ -2543,7 +2882,8 @@ module Google
2543
2882
  # requests. If the number of results is larger than maxResults, use the
2544
2883
  # nextPageToken as a value for the query parameter pageToken in the next list
2545
2884
  # request. Subsequent list requests will have their own nextPageToken to
2546
- # continue paging through the results.
2885
+ # continue paging through the results. Acceptable values are 0 to 500, inclusive.
2886
+ # (Default: 500)
2547
2887
  # Corresponds to the JSON property `nextPageToken`
2548
2888
  # @return [String]
2549
2889
  attr_accessor :next_page_token
@@ -2586,7 +2926,11 @@ module Google
2586
2926
  # @return [String]
2587
2927
  attr_accessor :kind
2588
2928
 
2589
- # [Output Only] A token used to continue a truncated list request.
2929
+ # This token allows you to get the next page of results for list requests. If
2930
+ # the number of results is larger than maxResults, use the nextPageToken as a
2931
+ # value for the query parameter pageToken in the next list request. Subsequent
2932
+ # list requests will have their own nextPageToken to continue paging through the
2933
+ # results.
2590
2934
  # Corresponds to the JSON property `nextPageToken`
2591
2935
  # @return [String]
2592
2936
  attr_accessor :next_page_token
@@ -3331,10 +3675,10 @@ module Google
3331
3675
 
3332
3676
  # The URL of the target resource to receive the matched traffic. For regional
3333
3677
  # forwarding rules, this target must live in the same region as the forwarding
3334
- # rule. For global forwarding rules, this target must be a global
3335
- # TargetHttpProxy or TargetHttpsProxy resource. The forwarded traffic must be of
3336
- # a type appropriate to the target object. For example, TargetHttpProxy requires
3337
- # HTTP traffic, and TargetHttpsProxy requires HTTPS traffic.
3678
+ # rule. For global forwarding rules, this target must be a global load balancing
3679
+ # resource. The forwarded traffic must be of a type appropriate to the target
3680
+ # object. For example, TargetHttpProxy requires HTTP traffic, and
3681
+ # TargetHttpsProxy requires HTTPS traffic.
3338
3682
  # This field is not used for internal load balancing.
3339
3683
  # Corresponds to the JSON property `target`
3340
3684
  # @return [String]
@@ -3621,6 +3965,7 @@ module Google
3621
3965
  attr_accessor :host
3622
3966
 
3623
3967
  # The TCP port number for the health check request. The default value is 80.
3968
+ # Valid values are 1 through 65535.
3624
3969
  # Corresponds to the JSON property `port`
3625
3970
  # @return [Fixnum]
3626
3971
  attr_accessor :port
@@ -3668,6 +4013,7 @@ module Google
3668
4013
  attr_accessor :host
3669
4014
 
3670
4015
  # The TCP port number for the health check request. The default value is 443.
4016
+ # Valid values are 1 through 65535.
3671
4017
  # Corresponds to the JSON property `port`
3672
4018
  # @return [Fixnum]
3673
4019
  attr_accessor :port
@@ -4356,8 +4702,7 @@ module Google
4356
4702
  attr_accessor :label_fingerprint
4357
4703
 
4358
4704
  # Labels to apply to this image. These can be later modified by the setLabels
4359
- # method. Each label key/value pair must comply with RFC1035. Label values may
4360
- # be empty.
4705
+ # method.
4361
4706
  # Corresponds to the JSON property `labels`
4362
4707
  # @return [Hash<String,String>]
4363
4708
  attr_accessor :labels
@@ -4598,8 +4943,7 @@ module Google
4598
4943
  attr_accessor :label_fingerprint
4599
4944
 
4600
4945
  # Labels to apply to this instance. These can be later modified by the setLabels
4601
- # method. Each label key/value pair must comply with RFC1035. Label values may
4602
- # be empty.
4946
+ # method.
4603
4947
  # Corresponds to the JSON property `labels`
4604
4948
  # @return [Hash<String,String>]
4605
4949
  attr_accessor :labels
@@ -4654,8 +4998,9 @@ module Google
4654
4998
  attr_accessor :self_link
4655
4999
 
4656
5000
  # A list of service accounts, with their specified scopes, authorized for this
4657
- # instance. Service accounts generate access tokens that can be accessed through
4658
- # the metadata server and used to authenticate applications on the instance. See
5001
+ # instance. Only one service account per VM instance is supported.
5002
+ # Service accounts generate access tokens that can be accessed through the
5003
+ # metadata server and used to authenticate applications on the instance. See
4659
5004
  # Service Accounts for more information.
4660
5005
  # Corresponds to the JSON property `serviceAccounts`
4661
5006
  # @return [Array<Google::Apis::ComputeBeta::ServiceAccount>]
@@ -5950,8 +6295,7 @@ module Google
5950
6295
  # @return [Array<Google::Apis::ComputeBeta::AttachedDisk>]
5951
6296
  attr_accessor :disks
5952
6297
 
5953
- # Labels to apply to instances that are created from this template. Each label
5954
- # key/value pair must comply with RFC1035. Label values may be empty.
6298
+ # Labels to apply to instances that are created from this template.
5955
6299
  # Corresponds to the JSON property `labels`
5956
6300
  # @return [Hash<String,String>]
5957
6301
  attr_accessor :labels
@@ -6273,14 +6617,7 @@ module Google
6273
6617
  # @return [String]
6274
6618
  attr_accessor :label_fingerprint
6275
6619
 
6276
- # A list of labels to apply for this instance. Changing instance labels will
6277
- # also change the instance tags.
6278
- # Each label key & value must comply with RFC1035. Specifically, the name must
6279
- # be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-
6280
- # 9])? which means the first character must be a lowercase letter, and all
6281
- # following characters must be a dash, lowercase letter, or digit, except the
6282
- # last character, which cannot be a dash. For example, "webserver-frontend": "
6283
- # images". A label value can also be empty (e.g. "my-label": "").
6620
+ #
6284
6621
  # Corresponds to the JSON property `labels`
6285
6622
  # @return [Hash<String,String>]
6286
6623
  attr_accessor :labels
@@ -7091,6 +7428,12 @@ module Google
7091
7428
  # @return [Array<Google::Apis::ComputeBeta::AccessConfig>]
7092
7429
  attr_accessor :access_configs
7093
7430
 
7431
+ # An array of alias IP ranges for this network interface. Can only be specified
7432
+ # for network interfaces on subnet-mode networks.
7433
+ # Corresponds to the JSON property `aliasIpRanges`
7434
+ # @return [Array<Google::Apis::ComputeBeta::AliasIpRange>]
7435
+ attr_accessor :alias_ip_ranges
7436
+
7094
7437
  # [Output Only] Type of the resource. Always compute#networkInterface for
7095
7438
  # network interfaces.
7096
7439
  # Corresponds to the JSON property `kind`
@@ -7146,6 +7489,7 @@ module Google
7146
7489
  # Update properties of this object
7147
7490
  def update!(**args)
7148
7491
  @access_configs = args[:access_configs] if args.key?(:access_configs)
7492
+ @alias_ip_ranges = args[:alias_ip_ranges] if args.key?(:alias_ip_ranges)
7149
7493
  @kind = args[:kind] if args.key?(:kind)
7150
7494
  @name = args[:name] if args.key?(:name)
7151
7495
  @network = args[:network] if args.key?(:network)
@@ -7260,6 +7604,60 @@ module Google
7260
7604
  end
7261
7605
  end
7262
7606
 
7607
+ #
7608
+ class NetworksAddPeeringRequest
7609
+ include Google::Apis::Core::Hashable
7610
+
7611
+ # Whether Google Compute Engine manages the routes automatically.
7612
+ # Corresponds to the JSON property `autoCreateRoutes`
7613
+ # @return [Boolean]
7614
+ attr_accessor :auto_create_routes
7615
+ alias_method :auto_create_routes?, :auto_create_routes
7616
+
7617
+ # Name of the peering, which should conform to RFC1035.
7618
+ # Corresponds to the JSON property `name`
7619
+ # @return [String]
7620
+ attr_accessor :name
7621
+
7622
+ # URL of the peer network. It can be either full URL or partial URL. The peer
7623
+ # network may belong to a different project. If the partial URL does not contain
7624
+ # project, it is assumed that the peer network is in the same project as the
7625
+ # current network.
7626
+ # Corresponds to the JSON property `peerNetwork`
7627
+ # @return [String]
7628
+ attr_accessor :peer_network
7629
+
7630
+ def initialize(**args)
7631
+ update!(**args)
7632
+ end
7633
+
7634
+ # Update properties of this object
7635
+ def update!(**args)
7636
+ @auto_create_routes = args[:auto_create_routes] if args.key?(:auto_create_routes)
7637
+ @name = args[:name] if args.key?(:name)
7638
+ @peer_network = args[:peer_network] if args.key?(:peer_network)
7639
+ end
7640
+ end
7641
+
7642
+ #
7643
+ class NetworksRemovePeeringRequest
7644
+ include Google::Apis::Core::Hashable
7645
+
7646
+ # Name of the peering, which should conform to RFC1035.
7647
+ # Corresponds to the JSON property `name`
7648
+ # @return [String]
7649
+ attr_accessor :name
7650
+
7651
+ def initialize(**args)
7652
+ update!(**args)
7653
+ end
7654
+
7655
+ # Update properties of this object
7656
+ def update!(**args)
7657
+ @name = args[:name] if args.key?(:name)
7658
+ end
7659
+ end
7660
+
7263
7661
  # An Operation resource, used to manage asynchronous API requests.
7264
7662
  class Operation
7265
7663
  include Google::Apis::Core::Hashable
@@ -7269,7 +7667,7 @@ module Google
7269
7667
  # @return [String]
7270
7668
  attr_accessor :client_operation_id
7271
7669
 
7272
- # [Output Only] Creation timestamp in RFC3339 text format.
7670
+ # [Deprecated] This field is deprecated.
7273
7671
  # Corresponds to the JSON property `creationTimestamp`
7274
7672
  # @return [String]
7275
7673
  attr_accessor :creation_timestamp
@@ -7929,38 +8327,121 @@ module Google
7929
8327
  # @return [String]
7930
8328
  attr_accessor :id
7931
8329
 
7932
- # [Output Only] Type of the resource. Always compute#project for projects.
8330
+ # [Output Only] Type of the resource. Always compute#project for projects.
8331
+ # Corresponds to the JSON property `kind`
8332
+ # @return [String]
8333
+ attr_accessor :kind
8334
+
8335
+ # The project ID. For example: my-example-project. Use the project ID to make
8336
+ # requests to Compute Engine.
8337
+ # Corresponds to the JSON property `name`
8338
+ # @return [String]
8339
+ attr_accessor :name
8340
+
8341
+ # [Output Only] Quotas assigned to this project.
8342
+ # Corresponds to the JSON property `quotas`
8343
+ # @return [Array<Google::Apis::ComputeBeta::Quota>]
8344
+ attr_accessor :quotas
8345
+
8346
+ # [Output Only] Server-defined URL for the resource.
8347
+ # Corresponds to the JSON property `selfLink`
8348
+ # @return [String]
8349
+ attr_accessor :self_link
8350
+
8351
+ # The location in Cloud Storage and naming method of the daily usage report.
8352
+ # Contains bucket_name and report_name prefix.
8353
+ # Corresponds to the JSON property `usageExportLocation`
8354
+ # @return [Google::Apis::ComputeBeta::UsageExportLocation]
8355
+ attr_accessor :usage_export_location
8356
+
8357
+ # [Output Only] The role this project has in a Cross Project Network (XPN)
8358
+ # configuration. Currently only HOST projects are differentiated.
8359
+ # Corresponds to the JSON property `xpnProjectStatus`
8360
+ # @return [String]
8361
+ attr_accessor :xpn_project_status
8362
+
8363
+ def initialize(**args)
8364
+ update!(**args)
8365
+ end
8366
+
8367
+ # Update properties of this object
8368
+ def update!(**args)
8369
+ @common_instance_metadata = args[:common_instance_metadata] if args.key?(:common_instance_metadata)
8370
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
8371
+ @default_service_account = args[:default_service_account] if args.key?(:default_service_account)
8372
+ @description = args[:description] if args.key?(:description)
8373
+ @enabled_features = args[:enabled_features] if args.key?(:enabled_features)
8374
+ @id = args[:id] if args.key?(:id)
8375
+ @kind = args[:kind] if args.key?(:kind)
8376
+ @name = args[:name] if args.key?(:name)
8377
+ @quotas = args[:quotas] if args.key?(:quotas)
8378
+ @self_link = args[:self_link] if args.key?(:self_link)
8379
+ @usage_export_location = args[:usage_export_location] if args.key?(:usage_export_location)
8380
+ @xpn_project_status = args[:xpn_project_status] if args.key?(:xpn_project_status)
8381
+ end
8382
+ end
8383
+
8384
+ #
8385
+ class ProjectsDisableXpnResourceRequest
8386
+ include Google::Apis::Core::Hashable
8387
+
8388
+ # XpnResourceId
8389
+ # Corresponds to the JSON property `xpnResource`
8390
+ # @return [Google::Apis::ComputeBeta::XpnResourceId]
8391
+ attr_accessor :xpn_resource
8392
+
8393
+ def initialize(**args)
8394
+ update!(**args)
8395
+ end
8396
+
8397
+ # Update properties of this object
8398
+ def update!(**args)
8399
+ @xpn_resource = args[:xpn_resource] if args.key?(:xpn_resource)
8400
+ end
8401
+ end
8402
+
8403
+ #
8404
+ class ProjectsEnableXpnResourceRequest
8405
+ include Google::Apis::Core::Hashable
8406
+
8407
+ # XpnResourceId
8408
+ # Corresponds to the JSON property `xpnResource`
8409
+ # @return [Google::Apis::ComputeBeta::XpnResourceId]
8410
+ attr_accessor :xpn_resource
8411
+
8412
+ def initialize(**args)
8413
+ update!(**args)
8414
+ end
8415
+
8416
+ # Update properties of this object
8417
+ def update!(**args)
8418
+ @xpn_resource = args[:xpn_resource] if args.key?(:xpn_resource)
8419
+ end
8420
+ end
8421
+
8422
+ #
8423
+ class ProjectsGetXpnResources
8424
+ include Google::Apis::Core::Hashable
8425
+
8426
+ # [Output Only] Type of resource. Always compute#projectsGetXpnResources for
8427
+ # lists of XPN resources.
7933
8428
  # Corresponds to the JSON property `kind`
7934
8429
  # @return [String]
7935
8430
  attr_accessor :kind
7936
8431
 
7937
- # The project ID. For example: my-example-project. Use the project ID to make
7938
- # requests to Compute Engine.
7939
- # Corresponds to the JSON property `name`
7940
- # @return [String]
7941
- attr_accessor :name
7942
-
7943
- # [Output Only] Quotas assigned to this project.
7944
- # Corresponds to the JSON property `quotas`
7945
- # @return [Array<Google::Apis::ComputeBeta::Quota>]
7946
- attr_accessor :quotas
7947
-
7948
- # [Output Only] Server-defined URL for the resource.
7949
- # Corresponds to the JSON property `selfLink`
8432
+ # [Output Only] This token allows you to get the next page of results for list
8433
+ # requests. If the number of results is larger than maxResults, use the
8434
+ # nextPageToken as a value for the query parameter pageToken in the next list
8435
+ # request. Subsequent list requests will have their own nextPageToken to
8436
+ # continue paging through the results.
8437
+ # Corresponds to the JSON property `nextPageToken`
7950
8438
  # @return [String]
7951
- attr_accessor :self_link
7952
-
7953
- # The location in Cloud Storage and naming method of the daily usage report.
7954
- # Contains bucket_name and report_name prefix.
7955
- # Corresponds to the JSON property `usageExportLocation`
7956
- # @return [Google::Apis::ComputeBeta::UsageExportLocation]
7957
- attr_accessor :usage_export_location
8439
+ attr_accessor :next_page_token
7958
8440
 
7959
- # [Output Only] The role this project has in a Cross Project Network (XPN)
7960
- # configuration. Currently only HOST projects are differentiated.
7961
- # Corresponds to the JSON property `xpnProjectStatus`
7962
- # @return [String]
7963
- attr_accessor :xpn_project_status
8441
+ # XPN resources attached to this project as their XPN host.
8442
+ # Corresponds to the JSON property `resources`
8443
+ # @return [Array<Google::Apis::ComputeBeta::XpnResourceId>]
8444
+ attr_accessor :resources
7964
8445
 
7965
8446
  def initialize(**args)
7966
8447
  update!(**args)
@@ -7968,18 +8449,9 @@ module Google
7968
8449
 
7969
8450
  # Update properties of this object
7970
8451
  def update!(**args)
7971
- @common_instance_metadata = args[:common_instance_metadata] if args.key?(:common_instance_metadata)
7972
- @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
7973
- @default_service_account = args[:default_service_account] if args.key?(:default_service_account)
7974
- @description = args[:description] if args.key?(:description)
7975
- @enabled_features = args[:enabled_features] if args.key?(:enabled_features)
7976
- @id = args[:id] if args.key?(:id)
7977
8452
  @kind = args[:kind] if args.key?(:kind)
7978
- @name = args[:name] if args.key?(:name)
7979
- @quotas = args[:quotas] if args.key?(:quotas)
7980
- @self_link = args[:self_link] if args.key?(:self_link)
7981
- @usage_export_location = args[:usage_export_location] if args.key?(:usage_export_location)
7982
- @xpn_project_status = args[:xpn_project_status] if args.key?(:xpn_project_status)
8453
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8454
+ @resources = args[:resources] if args.key?(:resources)
7983
8455
  end
7984
8456
  end
7985
8457
 
@@ -8545,6 +9017,32 @@ module Google
8545
9017
  end
8546
9018
  end
8547
9019
 
9020
+ # Commitment for a particular resource (a Commitment is composed of one or more
9021
+ # of these).
9022
+ class ResourceCommitment
9023
+ include Google::Apis::Core::Hashable
9024
+
9025
+ # The amount of the resource purchased (in a type-dependent unit, such as bytes).
9026
+ # Corresponds to the JSON property `amount`
9027
+ # @return [String]
9028
+ attr_accessor :amount
9029
+
9030
+ # Type of resource for which this commitment applies.
9031
+ # Corresponds to the JSON property `type`
9032
+ # @return [String]
9033
+ attr_accessor :type
9034
+
9035
+ def initialize(**args)
9036
+ update!(**args)
9037
+ end
9038
+
9039
+ # Update properties of this object
9040
+ def update!(**args)
9041
+ @amount = args[:amount] if args.key?(:amount)
9042
+ @type = args[:type] if args.key?(:type)
9043
+ end
9044
+ end
9045
+
8548
9046
  #
8549
9047
  class ResourceGroupReference
8550
9048
  include Google::Apis::Core::Hashable
@@ -9422,6 +9920,7 @@ module Google
9422
9920
  include Google::Apis::Core::Hashable
9423
9921
 
9424
9922
  # The TCP port number for the health check request. The default value is 443.
9923
+ # Valid values are 1 through 65535.
9425
9924
  # Corresponds to the JSON property `port`
9426
9925
  # @return [Fixnum]
9427
9926
  attr_accessor :port
@@ -9532,10 +10031,10 @@ module Google
9532
10031
  # @return [String]
9533
10032
  attr_accessor :self_link
9534
10033
 
9535
- # [Output Only] The starting byte position of the output that was returned. This
9536
- # should match the start parameter sent with the request. If the serial console
9537
- # output exceeds the size of the buffer, older output will be overwritten by
9538
- # newer content and the start values will be mismatched.
10034
+ # The starting byte position of the output that was returned. This should match
10035
+ # the start parameter sent with the request. If the serial console output
10036
+ # exceeds the size of the buffer, older output will be overwritten by newer
10037
+ # content and the start values will be mismatched.
9539
10038
  # Corresponds to the JSON property `start`
9540
10039
  # @return [String]
9541
10040
  attr_accessor :start
@@ -9622,8 +10121,7 @@ module Google
9622
10121
  attr_accessor :label_fingerprint
9623
10122
 
9624
10123
  # Labels to apply to this snapshot. These can be later modified by the setLabels
9625
- # method. Each label key/value pair must comply with RFC1035. Label values may
9626
- # be empty.
10124
+ # method. Label values may be empty.
9627
10125
  # Corresponds to the JSON property `labels`
9628
10126
  # @return [Hash<String,String>]
9629
10127
  attr_accessor :labels
@@ -9946,11 +10444,26 @@ module Google
9946
10444
  # @return [String]
9947
10445
  attr_accessor :network
9948
10446
 
10447
+ # Whether the VMs in this subnet can access Google services without assigned
10448
+ # external IP addresses.
10449
+ # Corresponds to the JSON property `privateIpGoogleAccess`
10450
+ # @return [Boolean]
10451
+ attr_accessor :private_ip_google_access
10452
+ alias_method :private_ip_google_access?, :private_ip_google_access
10453
+
9949
10454
  # URL of the region where the Subnetwork resides.
9950
10455
  # Corresponds to the JSON property `region`
9951
10456
  # @return [String]
9952
10457
  attr_accessor :region
9953
10458
 
10459
+ # An array of configurations for secondary IP ranges for VM instances contained
10460
+ # in this subnetwork. The primary IP of such VM must belong to the primary
10461
+ # ipCidrRange of the subnetwork. The alias IPs may belong to either primary or
10462
+ # secondary ranges.
10463
+ # Corresponds to the JSON property `secondaryIpRanges`
10464
+ # @return [Array<Google::Apis::ComputeBeta::SubnetworkSecondaryRange>]
10465
+ attr_accessor :secondary_ip_ranges
10466
+
9954
10467
  # [Output Only] Server-defined URL for the resource.
9955
10468
  # Corresponds to the JSON property `selfLink`
9956
10469
  # @return [String]
@@ -9970,7 +10483,9 @@ module Google
9970
10483
  @kind = args[:kind] if args.key?(:kind)
9971
10484
  @name = args[:name] if args.key?(:name)
9972
10485
  @network = args[:network] if args.key?(:network)
10486
+ @private_ip_google_access = args[:private_ip_google_access] if args.key?(:private_ip_google_access)
9973
10487
  @region = args[:region] if args.key?(:region)
10488
+ @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges)
9974
10489
  @self_link = args[:self_link] if args.key?(:self_link)
9975
10490
  end
9976
10491
  end
@@ -10073,6 +10588,36 @@ module Google
10073
10588
  end
10074
10589
  end
10075
10590
 
10591
+ # Represents a secondary IP range of a subnetwork.
10592
+ class SubnetworkSecondaryRange
10593
+ include Google::Apis::Core::Hashable
10594
+
10595
+ # The range of IP addresses belonging to this subnetwork secondary range.
10596
+ # Provide this property when you create the subnetwork. Ranges must be unique
10597
+ # and non-overlapping with all primary and secondary IP ranges within a network.
10598
+ # Only IPv4 is supported.
10599
+ # Corresponds to the JSON property `ipCidrRange`
10600
+ # @return [String]
10601
+ attr_accessor :ip_cidr_range
10602
+
10603
+ # The name associated with this subnetwork secondary range, used when adding an
10604
+ # alias IP range to a VM instance. The name must be 1-63 characters long, and
10605
+ # comply with RFC1035. The name must be unique within the subnetwork.
10606
+ # Corresponds to the JSON property `rangeName`
10607
+ # @return [String]
10608
+ attr_accessor :range_name
10609
+
10610
+ def initialize(**args)
10611
+ update!(**args)
10612
+ end
10613
+
10614
+ # Update properties of this object
10615
+ def update!(**args)
10616
+ @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
10617
+ @range_name = args[:range_name] if args.key?(:range_name)
10618
+ end
10619
+ end
10620
+
10076
10621
  #
10077
10622
  class SubnetworksExpandIpCidrRangeRequest
10078
10623
  include Google::Apis::Core::Hashable
@@ -10189,6 +10734,7 @@ module Google
10189
10734
  include Google::Apis::Core::Hashable
10190
10735
 
10191
10736
  # The TCP port number for the health check request. The default value is 80.
10737
+ # Valid values are 1 through 65535.
10192
10738
  # Corresponds to the JSON property `port`
10193
10739
  # @return [Fixnum]
10194
10740
  attr_accessor :port
@@ -10793,8 +11339,8 @@ module Google
10793
11339
  end
10794
11340
  end
10795
11341
 
10796
- # A TargetPool resource. This resource defines a pool of instances, associated
10797
- # HttpHealthCheck resources, and the fallback target pool.
11342
+ # A TargetPool resource. This resource defines a pool of instances, an
11343
+ # associated HttpHealthCheck resource, and the fallback target pool.
10798
11344
  class TargetPool
10799
11345
  include Google::Apis::Core::Hashable
10800
11346
 
@@ -10840,9 +11386,10 @@ module Google
10840
11386
  # @return [Float]
10841
11387
  attr_accessor :failover_ratio
10842
11388
 
10843
- # A list of URLs to the HttpHealthCheck resource. A member instance in this pool
10844
- # is considered healthy if and only if all specified health checks pass. An
10845
- # empty list means all member instances will be considered healthy at all times.
11389
+ # The URL of the HttpHealthCheck resource. A member instance in this pool is
11390
+ # considered healthy if and only if the health checks pass. An empty list means
11391
+ # all member instances will be considered healthy at all times. Only
11392
+ # HttpHealthChecks are supported. Only one health check may be specified.
10846
11393
  # Corresponds to the JSON property `healthChecks`
10847
11394
  # @return [Array<String>]
10848
11395
  attr_accessor :health_checks
@@ -11041,7 +11588,7 @@ module Google
11041
11588
  class AddTargetPoolsHealthCheckRequest
11042
11589
  include Google::Apis::Core::Hashable
11043
11590
 
11044
- # A list of HttpHealthCheck resources to add to the target pool.
11591
+ # The HttpHealthCheck to add to the target pool.
11045
11592
  # Corresponds to the JSON property `healthChecks`
11046
11593
  # @return [Array<Google::Apis::ComputeBeta::HealthCheckReference>]
11047
11594
  attr_accessor :health_checks
@@ -11417,6 +11964,163 @@ module Google
11417
11964
  end
11418
11965
  end
11419
11966
 
11967
+ #
11968
+ class TargetTcpProxiesSetBackendServiceRequest
11969
+ include Google::Apis::Core::Hashable
11970
+
11971
+ # The URL of the new BackendService resource for the targetTcpProxy.
11972
+ # Corresponds to the JSON property `service`
11973
+ # @return [String]
11974
+ attr_accessor :service
11975
+
11976
+ def initialize(**args)
11977
+ update!(**args)
11978
+ end
11979
+
11980
+ # Update properties of this object
11981
+ def update!(**args)
11982
+ @service = args[:service] if args.key?(:service)
11983
+ end
11984
+ end
11985
+
11986
+ #
11987
+ class TargetTcpProxiesSetProxyHeaderRequest
11988
+ include Google::Apis::Core::Hashable
11989
+
11990
+ # The new type of proxy header to append before sending data to the backend.
11991
+ # NONE or PROXY_V1 are allowed.
11992
+ # Corresponds to the JSON property `proxyHeader`
11993
+ # @return [String]
11994
+ attr_accessor :proxy_header
11995
+
11996
+ def initialize(**args)
11997
+ update!(**args)
11998
+ end
11999
+
12000
+ # Update properties of this object
12001
+ def update!(**args)
12002
+ @proxy_header = args[:proxy_header] if args.key?(:proxy_header)
12003
+ end
12004
+ end
12005
+
12006
+ # A TargetTcpProxy resource. This resource defines a TCP proxy.
12007
+ class TargetTcpProxy
12008
+ include Google::Apis::Core::Hashable
12009
+
12010
+ # [Output Only] Creation timestamp in RFC3339 text format.
12011
+ # Corresponds to the JSON property `creationTimestamp`
12012
+ # @return [String]
12013
+ attr_accessor :creation_timestamp
12014
+
12015
+ # An optional description of this resource. Provide this property when you
12016
+ # create the resource.
12017
+ # Corresponds to the JSON property `description`
12018
+ # @return [String]
12019
+ attr_accessor :description
12020
+
12021
+ # [Output Only] The unique identifier for the resource. This identifier is
12022
+ # defined by the server.
12023
+ # Corresponds to the JSON property `id`
12024
+ # @return [String]
12025
+ attr_accessor :id
12026
+
12027
+ # [Output Only] Type of the resource. Always compute#targetTcpProxy for target
12028
+ # TCP proxies.
12029
+ # Corresponds to the JSON property `kind`
12030
+ # @return [String]
12031
+ attr_accessor :kind
12032
+
12033
+ # Name of the resource. Provided by the client when the resource is created. The
12034
+ # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
12035
+ # name must be 1-63 characters long and match the regular expression [a-z]([-a-
12036
+ # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
12037
+ # and all following characters must be a dash, lowercase letter, or digit,
12038
+ # except the last character, which cannot be a dash.
12039
+ # Corresponds to the JSON property `name`
12040
+ # @return [String]
12041
+ attr_accessor :name
12042
+
12043
+ # Specifies the type of proxy header to append before sending data to the
12044
+ # backend, either NONE or PROXY_V1. The default is NONE.
12045
+ # Corresponds to the JSON property `proxyHeader`
12046
+ # @return [String]
12047
+ attr_accessor :proxy_header
12048
+
12049
+ # [Output Only] Server-defined URL for the resource.
12050
+ # Corresponds to the JSON property `selfLink`
12051
+ # @return [String]
12052
+ attr_accessor :self_link
12053
+
12054
+ # URL to the BackendService resource.
12055
+ # Corresponds to the JSON property `service`
12056
+ # @return [String]
12057
+ attr_accessor :service
12058
+
12059
+ def initialize(**args)
12060
+ update!(**args)
12061
+ end
12062
+
12063
+ # Update properties of this object
12064
+ def update!(**args)
12065
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
12066
+ @description = args[:description] if args.key?(:description)
12067
+ @id = args[:id] if args.key?(:id)
12068
+ @kind = args[:kind] if args.key?(:kind)
12069
+ @name = args[:name] if args.key?(:name)
12070
+ @proxy_header = args[:proxy_header] if args.key?(:proxy_header)
12071
+ @self_link = args[:self_link] if args.key?(:self_link)
12072
+ @service = args[:service] if args.key?(:service)
12073
+ end
12074
+ end
12075
+
12076
+ # Contains a list of TargetTcpProxy resources.
12077
+ class TargetTcpProxyList
12078
+ include Google::Apis::Core::Hashable
12079
+
12080
+ # [Output Only] The unique identifier for the resource. This identifier is
12081
+ # defined by the server.
12082
+ # Corresponds to the JSON property `id`
12083
+ # @return [String]
12084
+ attr_accessor :id
12085
+
12086
+ # A list of TargetTcpProxy resources.
12087
+ # Corresponds to the JSON property `items`
12088
+ # @return [Array<Google::Apis::ComputeBeta::TargetTcpProxy>]
12089
+ attr_accessor :items
12090
+
12091
+ # Type of resource.
12092
+ # Corresponds to the JSON property `kind`
12093
+ # @return [String]
12094
+ attr_accessor :kind
12095
+
12096
+ # [Output Only] This token allows you to get the next page of results for list
12097
+ # requests. If the number of results is larger than maxResults, use the
12098
+ # nextPageToken as a value for the query parameter pageToken in the next list
12099
+ # request. Subsequent list requests will have their own nextPageToken to
12100
+ # continue paging through the results.
12101
+ # Corresponds to the JSON property `nextPageToken`
12102
+ # @return [String]
12103
+ attr_accessor :next_page_token
12104
+
12105
+ # [Output Only] Server-defined URL for this resource.
12106
+ # Corresponds to the JSON property `selfLink`
12107
+ # @return [String]
12108
+ attr_accessor :self_link
12109
+
12110
+ def initialize(**args)
12111
+ update!(**args)
12112
+ end
12113
+
12114
+ # Update properties of this object
12115
+ def update!(**args)
12116
+ @id = args[:id] if args.key?(:id)
12117
+ @items = args[:items] if args.key?(:items)
12118
+ @kind = args[:kind] if args.key?(:kind)
12119
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
12120
+ @self_link = args[:self_link] if args.key?(:self_link)
12121
+ end
12122
+ end
12123
+
11420
12124
  # Represents a Target VPN gateway resource.
11421
12125
  class TargetVpnGateway
11422
12126
  include Google::Apis::Core::Hashable
@@ -11777,7 +12481,8 @@ module Google
11777
12481
  class UdpHealthCheck
11778
12482
  include Google::Apis::Core::Hashable
11779
12483
 
11780
- # The UDP port number for the health check request.
12484
+ # The UDP port number for the health check request. Valid values are 1 through
12485
+ # 65535.
11781
12486
  # Corresponds to the JSON property `port`
11782
12487
  # @return [Fixnum]
11783
12488
  attr_accessor :port
@@ -12488,6 +13193,32 @@ module Google
12488
13193
  end
12489
13194
  end
12490
13195
 
13196
+ # XpnResourceId
13197
+ class XpnResourceId
13198
+ include Google::Apis::Core::Hashable
13199
+
13200
+ # The ID of the XPN resource. In the case of projects, this field matches the
13201
+ # project's name, not the canonical ID.
13202
+ # Corresponds to the JSON property `id`
13203
+ # @return [String]
13204
+ attr_accessor :id
13205
+
13206
+ # The type of the XPN resource.
13207
+ # Corresponds to the JSON property `type`
13208
+ # @return [String]
13209
+ attr_accessor :type
13210
+
13211
+ def initialize(**args)
13212
+ update!(**args)
13213
+ end
13214
+
13215
+ # Update properties of this object
13216
+ def update!(**args)
13217
+ @id = args[:id] if args.key?(:id)
13218
+ @type = args[:type] if args.key?(:type)
13219
+ end
13220
+ end
13221
+
12491
13222
  # A Zone resource.
12492
13223
  class Zone
12493
13224
  include Google::Apis::Core::Hashable