google-api-client 0.9.26 → 0.9.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +36326 -36213
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +155 -155
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +32 -32
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +104 -104
  9. data/generated/google/apis/adsense_v1_4.rb +1 -1
  10. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  11. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  12. data/generated/google/apis/appstate_v1.rb +1 -1
  13. data/generated/google/apis/calendar_v3.rb +1 -1
  14. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  15. data/generated/google/apis/cloudbuild_v1/classes.rb +260 -248
  16. data/generated/google/apis/cloudbuild_v1/representations.rb +47 -45
  17. data/generated/google/apis/cloudbuild_v1/service.rb +167 -167
  18. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  19. data/generated/google/apis/clouddebugger_v2/classes.rb +569 -569
  20. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  21. data/generated/google/apis/clouddebugger_v2/service.rb +145 -145
  22. data/generated/google/apis/cloudkms_v1beta1.rb +4 -3
  23. data/generated/google/apis/cloudkms_v1beta1/classes.rb +428 -428
  24. data/generated/google/apis/cloudkms_v1beta1/representations.rb +115 -115
  25. data/generated/google/apis/cloudkms_v1beta1/service.rb +161 -160
  26. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  27. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  28. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +583 -583
  29. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +100 -100
  30. data/generated/google/apis/cloudresourcemanager_v1/service.rb +116 -116
  31. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  32. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +195 -195
  33. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +58 -58
  34. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +316 -316
  35. data/generated/google/apis/content_v2.rb +1 -1
  36. data/generated/google/apis/content_v2/classes.rb +12 -0
  37. data/generated/google/apis/content_v2/representations.rb +2 -0
  38. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  39. data/generated/google/apis/dataflow_v1b3/classes.rb +2833 -2694
  40. data/generated/google/apis/dataflow_v1b3/representations.rb +666 -666
  41. data/generated/google/apis/dataflow_v1b3/service.rb +351 -349
  42. data/generated/google/apis/datastore_v1.rb +1 -1
  43. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  44. data/generated/google/apis/deploymentmanager_v2/classes.rb +21 -12
  45. data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
  46. data/generated/google/apis/deploymentmanager_v2/service.rb +5 -5
  47. data/generated/google/apis/dns_v1.rb +1 -1
  48. data/generated/google/apis/dns_v2beta1.rb +1 -1
  49. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  50. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  51. data/generated/google/apis/drive_v2.rb +1 -1
  52. data/generated/google/apis/drive_v2/classes.rb +26 -0
  53. data/generated/google/apis/drive_v2/representations.rb +14 -0
  54. data/generated/google/apis/drive_v2/service.rb +38 -2
  55. data/generated/google/apis/drive_v3.rb +1 -1
  56. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  57. data/generated/google/apis/games_management_v1management.rb +1 -1
  58. data/generated/google/apis/games_v1.rb +1 -1
  59. data/generated/google/apis/genomics_v1.rb +4 -4
  60. data/generated/google/apis/genomics_v1/classes.rb +2317 -2317
  61. data/generated/google/apis/genomics_v1/representations.rb +476 -476
  62. data/generated/google/apis/genomics_v1/service.rb +1038 -1038
  63. data/generated/google/apis/gmail_v1.rb +1 -1
  64. data/generated/google/apis/gmail_v1/classes.rb +82 -1
  65. data/generated/google/apis/gmail_v1/representations.rb +33 -0
  66. data/generated/google/apis/gmail_v1/service.rb +215 -5
  67. data/generated/google/apis/iam_v1.rb +1 -1
  68. data/generated/google/apis/iam_v1/classes.rb +446 -343
  69. data/generated/google/apis/iam_v1/representations.rb +112 -85
  70. data/generated/google/apis/iam_v1/service.rb +248 -192
  71. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  72. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  73. data/generated/google/apis/kgsearch_v1/service.rb +15 -15
  74. data/generated/google/apis/language_v1beta1.rb +1 -1
  75. data/generated/google/apis/language_v1beta1/classes.rb +396 -396
  76. data/generated/google/apis/language_v1beta1/representations.rb +97 -97
  77. data/generated/google/apis/language_v1beta1/service.rb +42 -42
  78. data/generated/google/apis/logging_v2beta1.rb +1 -1
  79. data/generated/google/apis/logging_v2beta1/classes.rb +855 -855
  80. data/generated/google/apis/logging_v2beta1/representations.rb +155 -155
  81. data/generated/google/apis/logging_v2beta1/service.rb +214 -214
  82. data/generated/google/apis/monitoring_v3.rb +4 -4
  83. data/generated/google/apis/monitoring_v3/classes.rb +551 -551
  84. data/generated/google/apis/monitoring_v3/representations.rb +123 -123
  85. data/generated/google/apis/monitoring_v3/service.rb +80 -80
  86. data/generated/google/apis/plus_domains_v1.rb +1 -1
  87. data/generated/google/apis/plus_v1.rb +1 -1
  88. data/generated/google/apis/pubsub_v1.rb +3 -3
  89. data/generated/google/apis/pubsub_v1/classes.rb +391 -391
  90. data/generated/google/apis/pubsub_v1/representations.rb +83 -83
  91. data/generated/google/apis/pubsub_v1/service.rb +257 -257
  92. data/generated/google/apis/sheets_v4.rb +1 -1
  93. data/generated/google/apis/sheets_v4/classes.rb +4334 -4334
  94. data/generated/google/apis/sheets_v4/representations.rb +861 -861
  95. data/generated/google/apis/sheets_v4/service.rb +191 -191
  96. data/generated/google/apis/slides_v1.rb +7 -7
  97. data/generated/google/apis/slides_v1/classes.rb +2726 -2555
  98. data/generated/google/apis/slides_v1/representations.rb +678 -607
  99. data/generated/google/apis/slides_v1/service.rb +16 -16
  100. data/generated/google/apis/speech_v1beta1.rb +1 -1
  101. data/generated/google/apis/speech_v1beta1/classes.rb +57 -59
  102. data/generated/google/apis/speech_v1beta1/representations.rb +9 -9
  103. data/generated/google/apis/speech_v1beta1/service.rb +63 -63
  104. data/generated/google/apis/storage_v1.rb +1 -1
  105. data/generated/google/apis/storage_v1/classes.rb +4 -3
  106. data/generated/google/apis/vision_v1/classes.rb +925 -925
  107. data/generated/google/apis/vision_v1/representations.rb +134 -134
  108. data/generated/google/apis/vision_v1/service.rb +4 -4
  109. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  110. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  111. data/generated/google/apis/youtube_v3.rb +1 -1
  112. data/generated/google/apis/youtube_v3/classes.rb +234 -1
  113. data/generated/google/apis/youtube_v3/representations.rb +83 -0
  114. data/generated/google/apis/youtube_v3/service.rb +55 -0
  115. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  116. data/generated/google/apis/youtubereporting_v1/classes.rb +105 -105
  117. data/generated/google/apis/youtubereporting_v1/representations.rb +31 -31
  118. data/generated/google/apis/youtubereporting_v1/service.rb +78 -78
  119. data/lib/google/apis/core/api_command.rb +11 -5
  120. data/lib/google/apis/core/base_service.rb +7 -5
  121. data/lib/google/apis/errors.rb +4 -0
  122. data/lib/google/apis/version.rb +1 -1
  123. metadata +28 -28
@@ -47,15 +47,15 @@ module Google
47
47
  super('https://clouddebugger.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Registers the debuggee with the controller service.
51
- # All agents attached to the same application should call this method with
52
- # the same request content to get back the same stable `debuggee_id`. Agents
53
- # should call this method again whenever `google.rpc.Code.NOT_FOUND` is
54
- # returned from any controller method.
55
- # This allows the controller service to disable the agent or recover from any
56
- # data loss. If the debuggee is disabled by the server, the response will
57
- # have `is_disabled` set to `true`.
58
- # @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object
50
+ # Lists all the debuggees that the user can set breakpoints to.
51
+ # @param [String] client_version
52
+ # The client version making the call.
53
+ # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
54
+ # @param [Boolean] include_inactive
55
+ # When set to `true`, the result includes all debuggees. Otherwise, the
56
+ # result includes only debuggees that are active.
57
+ # @param [String] project
58
+ # Project number of a Google Cloud project whose debuggees to list.
59
59
  # @param [String] quota_user
60
60
  # Available to use for quota purposes for server-side applications. Can be any
61
61
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -65,38 +65,33 @@ module Google
65
65
  # Request-specific options
66
66
  #
67
67
  # @yield [result, err] Result & error if block supplied
68
- # @yieldparam result [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse] parsed result object
68
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse] parsed result object
69
69
  # @yieldparam err [StandardError] error object if request failed
70
70
  #
71
- # @return [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse]
71
+ # @return [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse]
72
72
  #
73
73
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
74
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
75
  # @raise [Google::Apis::AuthorizationError] Authorization is required
76
- def register_debuggee(register_debuggee_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
77
- command = make_simple_command(:post, 'v2/controller/debuggees/register', options)
78
- command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation
79
- command.request_object = register_debuggee_request_object
80
- command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation
81
- command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse
76
+ def list_debugger_debuggees(client_version: nil, include_inactive: nil, project: nil, quota_user: nil, fields: nil, options: nil, &block)
77
+ command = make_simple_command(:get, 'v2/debugger/debuggees', options)
78
+ command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation
79
+ command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse
80
+ command.query['clientVersion'] = client_version unless client_version.nil?
81
+ command.query['includeInactive'] = include_inactive unless include_inactive.nil?
82
+ command.query['project'] = project unless project.nil?
82
83
  command.query['quotaUser'] = quota_user unless quota_user.nil?
83
84
  command.query['fields'] = fields unless fields.nil?
84
85
  execute_or_queue_command(command, &block)
85
86
  end
86
87
 
87
- # Updates the breakpoint state or mutable fields.
88
- # The entire Breakpoint message must be sent back to the controller
89
- # service.
90
- # Updates to active breakpoint fields are only allowed if the new value
91
- # does not change the breakpoint specification. Updates to the `location`,
92
- # `condition` and `expression` fields should not alter the breakpoint
93
- # semantics. These may only make changes such as canonicalizing a value
94
- # or snapping the location to the correct line of code.
88
+ # Sets the breakpoint to the debuggee.
95
89
  # @param [String] debuggee_id
96
- # Identifies the debuggee being debugged.
97
- # @param [String] id
98
- # Breakpoint identifier, unique in the scope of the debuggee.
99
- # @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
90
+ # ID of the debuggee where the breakpoint is to be set.
91
+ # @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
92
+ # @param [String] client_version
93
+ # The client version making the call.
94
+ # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
100
95
  # @param [String] quota_user
101
96
  # Available to use for quota purposes for server-side applications. Can be any
102
97
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -106,85 +101,32 @@ module Google
106
101
  # Request-specific options
107
102
  #
108
103
  # @yield [result, err] Result & error if block supplied
109
- # @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
104
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] parsed result object
110
105
  # @yieldparam err [StandardError] error object if request failed
111
106
  #
112
- # @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
107
+ # @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
113
108
  #
114
109
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
110
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
111
  # @raise [Google::Apis::AuthorizationError] Authorization is required
117
- def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
118
- command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
119
- command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
120
- command.request_object = update_active_breakpoint_request_object
121
- command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
122
- command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
112
+ def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
113
+ command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
114
+ command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
115
+ command.request_object = breakpoint_object
116
+ command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
117
+ command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
123
118
  command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
124
- command.params['id'] = id unless id.nil?
119
+ command.query['clientVersion'] = client_version unless client_version.nil?
125
120
  command.query['quotaUser'] = quota_user unless quota_user.nil?
126
121
  command.query['fields'] = fields unless fields.nil?
127
122
  execute_or_queue_command(command, &block)
128
123
  end
129
124
 
130
- # Returns the list of all active breakpoints for the debuggee.
131
- # The breakpoint specification (location, condition, and expression
132
- # fields) is semantically immutable, although the field values may
133
- # change. For example, an agent may update the location line number
134
- # to reflect the actual line where the breakpoint was set, but this
135
- # doesn't change the breakpoint semantics.
136
- # This means that an agent does not need to check if a breakpoint has changed
137
- # when it encounters the same breakpoint on a successive call.
138
- # Moreover, an agent should remember the breakpoints that are completed
139
- # until the controller removes them from the active list to avoid
140
- # setting those breakpoints again.
125
+ # Deletes the breakpoint from the debuggee.
141
126
  # @param [String] debuggee_id
142
- # Identifies the debuggee.
143
- # @param [Boolean] success_on_timeout
144
- # If set to `true`, returns `google.rpc.Code.OK` status and sets the
145
- # `wait_expired` response field to `true` when the server-selected timeout
146
- # has expired (recommended).
147
- # If set to `false`, returns `google.rpc.Code.ABORTED` status when the
148
- # server-selected timeout has expired (deprecated).
149
- # @param [String] wait_token
150
- # A wait token that, if specified, blocks the method call until the list
151
- # of active breakpoints has changed, or a server selected timeout has
152
- # expired. The value should be set from the last returned response.
153
- # @param [String] quota_user
154
- # Available to use for quota purposes for server-side applications. Can be any
155
- # arbitrary string assigned to a user, but should not exceed 40 characters.
156
- # @param [String] fields
157
- # Selector specifying which fields to include in a partial response.
158
- # @param [Google::Apis::RequestOptions] options
159
- # Request-specific options
160
- #
161
- # @yield [result, err] Result & error if block supplied
162
- # @yieldparam result [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object
163
- # @yieldparam err [StandardError] error object if request failed
164
- #
165
- # @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse]
166
- #
167
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
168
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
- # @raise [Google::Apis::AuthorizationError] Authorization is required
170
- def list_controller_debuggee_breakpoints(debuggee_id, success_on_timeout: nil, wait_token: nil, quota_user: nil, fields: nil, options: nil, &block)
171
- command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
172
- command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
173
- command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
174
- command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
175
- command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil?
176
- command.query['waitToken'] = wait_token unless wait_token.nil?
177
- command.query['quotaUser'] = quota_user unless quota_user.nil?
178
- command.query['fields'] = fields unless fields.nil?
179
- execute_or_queue_command(command, &block)
180
- end
181
-
182
- # Lists all the debuggees that the user can set breakpoints to.
183
- # @param [Boolean] include_inactive
184
- # When set to `true`, the result includes all debuggees. Otherwise, the
185
- # result includes only debuggees that are active.
186
- # @param [String] project
187
- # Project number of a Google Cloud project whose debuggees to list.
127
+ # ID of the debuggee whose breakpoint to delete.
128
+ # @param [String] breakpoint_id
129
+ # ID of the breakpoint to delete.
188
130
  # @param [String] client_version
189
131
  # The client version making the call.
190
132
  # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
@@ -197,20 +139,20 @@ module Google
197
139
  # Request-specific options
198
140
  #
199
141
  # @yield [result, err] Result & error if block supplied
200
- # @yieldparam result [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse] parsed result object
142
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::Empty] parsed result object
201
143
  # @yieldparam err [StandardError] error object if request failed
202
144
  #
203
- # @return [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse]
145
+ # @return [Google::Apis::ClouddebuggerV2::Empty]
204
146
  #
205
147
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
206
148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
207
149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
208
- def list_debugger_debuggees(include_inactive: nil, project: nil, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
209
- command = make_simple_command(:get, 'v2/debugger/debuggees', options)
210
- command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation
211
- command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse
212
- command.query['includeInactive'] = include_inactive unless include_inactive.nil?
213
- command.query['project'] = project unless project.nil?
150
+ def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
151
+ command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
152
+ command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
153
+ command.response_class = Google::Apis::ClouddebuggerV2::Empty
154
+ command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
155
+ command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
214
156
  command.query['clientVersion'] = client_version unless client_version.nil?
215
157
  command.query['quotaUser'] = quota_user unless quota_user.nil?
216
158
  command.query['fields'] = fields unless fields.nil?
@@ -257,26 +199,26 @@ module Google
257
199
  # Lists all breakpoints for the debuggee.
258
200
  # @param [String] debuggee_id
259
201
  # ID of the debuggee whose breakpoints to list.
260
- # @param [String] client_version
261
- # The client version making the call.
262
- # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
202
+ # @param [Boolean] include_inactive
203
+ # When set to `true`, the response includes active and inactive
204
+ # breakpoints. Otherwise, it includes only active breakpoints.
263
205
  # @param [Boolean] include_all_users
264
206
  # When set to `true`, the response includes the list of breakpoints set by
265
207
  # any user. Otherwise, it includes only breakpoints set by the caller.
266
208
  # @param [Boolean] strip_results
267
209
  # This field is deprecated. The following fields are always stripped out of
268
210
  # the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
269
- # @param [String] action_value
270
- # Only breakpoints with the specified action will pass the filter.
271
- # @param [Boolean] include_inactive
272
- # When set to `true`, the response includes active and inactive
273
- # breakpoints. Otherwise, it includes only active breakpoints.
274
211
  # @param [String] wait_token
275
212
  # A wait token that, if specified, blocks the call until the breakpoints
276
213
  # list has changed, or a server selected timeout has expired. The value
277
214
  # should be set from the last response. The error code
278
215
  # `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
279
216
  # should be called again with the same `wait_token`.
217
+ # @param [String] client_version
218
+ # The client version making the call.
219
+ # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
220
+ # @param [String] action_value
221
+ # Only breakpoints with the specified action will pass the filter.
280
222
  # @param [String] quota_user
281
223
  # Available to use for quota purposes for server-side applications. Can be any
282
224
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -294,29 +236,82 @@ module Google
294
236
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
295
237
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
296
238
  # @raise [Google::Apis::AuthorizationError] Authorization is required
297
- def list_debugger_debuggee_breakpoints(debuggee_id, client_version: nil, include_all_users: nil, strip_results: nil, action_value: nil, include_inactive: nil, wait_token: nil, quota_user: nil, fields: nil, options: nil, &block)
239
+ def list_debugger_debuggee_breakpoints(debuggee_id, include_inactive: nil, include_all_users: nil, strip_results: nil, wait_token: nil, client_version: nil, action_value: nil, quota_user: nil, fields: nil, options: nil, &block)
298
240
  command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
299
241
  command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
300
242
  command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
301
243
  command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
302
- command.query['clientVersion'] = client_version unless client_version.nil?
244
+ command.query['includeInactive'] = include_inactive unless include_inactive.nil?
303
245
  command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
304
246
  command.query['stripResults'] = strip_results unless strip_results.nil?
305
- command.query['action.value'] = action_value unless action_value.nil?
306
- command.query['includeInactive'] = include_inactive unless include_inactive.nil?
307
247
  command.query['waitToken'] = wait_token unless wait_token.nil?
248
+ command.query['clientVersion'] = client_version unless client_version.nil?
249
+ command.query['action.value'] = action_value unless action_value.nil?
308
250
  command.query['quotaUser'] = quota_user unless quota_user.nil?
309
251
  command.query['fields'] = fields unless fields.nil?
310
252
  execute_or_queue_command(command, &block)
311
253
  end
312
254
 
313
- # Sets the breakpoint to the debuggee.
255
+ # Registers the debuggee with the controller service.
256
+ # All agents attached to the same application should call this method with
257
+ # the same request content to get back the same stable `debuggee_id`. Agents
258
+ # should call this method again whenever `google.rpc.Code.NOT_FOUND` is
259
+ # returned from any controller method.
260
+ # This allows the controller service to disable the agent or recover from any
261
+ # data loss. If the debuggee is disabled by the server, the response will
262
+ # have `is_disabled` set to `true`.
263
+ # @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object
264
+ # @param [String] quota_user
265
+ # Available to use for quota purposes for server-side applications. Can be any
266
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
267
+ # @param [String] fields
268
+ # Selector specifying which fields to include in a partial response.
269
+ # @param [Google::Apis::RequestOptions] options
270
+ # Request-specific options
271
+ #
272
+ # @yield [result, err] Result & error if block supplied
273
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse] parsed result object
274
+ # @yieldparam err [StandardError] error object if request failed
275
+ #
276
+ # @return [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse]
277
+ #
278
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
279
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
280
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
281
+ def register_debuggee(register_debuggee_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
282
+ command = make_simple_command(:post, 'v2/controller/debuggees/register', options)
283
+ command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation
284
+ command.request_object = register_debuggee_request_object
285
+ command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation
286
+ command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse
287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
288
+ command.query['fields'] = fields unless fields.nil?
289
+ execute_or_queue_command(command, &block)
290
+ end
291
+
292
+ # Returns the list of all active breakpoints for the debuggee.
293
+ # The breakpoint specification (location, condition, and expression
294
+ # fields) is semantically immutable, although the field values may
295
+ # change. For example, an agent may update the location line number
296
+ # to reflect the actual line where the breakpoint was set, but this
297
+ # doesn't change the breakpoint semantics.
298
+ # This means that an agent does not need to check if a breakpoint has changed
299
+ # when it encounters the same breakpoint on a successive call.
300
+ # Moreover, an agent should remember the breakpoints that are completed
301
+ # until the controller removes them from the active list to avoid
302
+ # setting those breakpoints again.
314
303
  # @param [String] debuggee_id
315
- # ID of the debuggee where the breakpoint is to be set.
316
- # @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
317
- # @param [String] client_version
318
- # The client version making the call.
319
- # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
304
+ # Identifies the debuggee.
305
+ # @param [Boolean] success_on_timeout
306
+ # If set to `true`, returns `google.rpc.Code.OK` status and sets the
307
+ # `wait_expired` response field to `true` when the server-selected timeout
308
+ # has expired (recommended).
309
+ # If set to `false`, returns `google.rpc.Code.ABORTED` status when the
310
+ # server-selected timeout has expired (deprecated).
311
+ # @param [String] wait_token
312
+ # A wait token that, if specified, blocks the method call until the list
313
+ # of active breakpoints has changed, or a server selected timeout has
314
+ # expired. The value should be set from the last returned response.
320
315
  # @param [String] quota_user
321
316
  # Available to use for quota purposes for server-side applications. Can be any
322
317
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -326,35 +321,39 @@ module Google
326
321
  # Request-specific options
327
322
  #
328
323
  # @yield [result, err] Result & error if block supplied
329
- # @yieldparam result [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] parsed result object
324
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object
330
325
  # @yieldparam err [StandardError] error object if request failed
331
326
  #
332
- # @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
327
+ # @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse]
333
328
  #
334
329
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
335
330
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
336
331
  # @raise [Google::Apis::AuthorizationError] Authorization is required
337
- def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
338
- command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
339
- command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
340
- command.request_object = breakpoint_object
341
- command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
342
- command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
332
+ def list_controller_debuggee_breakpoints(debuggee_id, success_on_timeout: nil, wait_token: nil, quota_user: nil, fields: nil, options: nil, &block)
333
+ command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
334
+ command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
335
+ command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
343
336
  command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
344
- command.query['clientVersion'] = client_version unless client_version.nil?
337
+ command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil?
338
+ command.query['waitToken'] = wait_token unless wait_token.nil?
345
339
  command.query['quotaUser'] = quota_user unless quota_user.nil?
346
340
  command.query['fields'] = fields unless fields.nil?
347
341
  execute_or_queue_command(command, &block)
348
342
  end
349
343
 
350
- # Deletes the breakpoint from the debuggee.
344
+ # Updates the breakpoint state or mutable fields.
345
+ # The entire Breakpoint message must be sent back to the controller
346
+ # service.
347
+ # Updates to active breakpoint fields are only allowed if the new value
348
+ # does not change the breakpoint specification. Updates to the `location`,
349
+ # `condition` and `expression` fields should not alter the breakpoint
350
+ # semantics. These may only make changes such as canonicalizing a value
351
+ # or snapping the location to the correct line of code.
351
352
  # @param [String] debuggee_id
352
- # ID of the debuggee whose breakpoint to delete.
353
- # @param [String] breakpoint_id
354
- # ID of the breakpoint to delete.
355
- # @param [String] client_version
356
- # The client version making the call.
357
- # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
353
+ # Identifies the debuggee being debugged.
354
+ # @param [String] id
355
+ # Breakpoint identifier, unique in the scope of the debuggee.
356
+ # @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
358
357
  # @param [String] quota_user
359
358
  # Available to use for quota purposes for server-side applications. Can be any
360
359
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -364,21 +363,22 @@ module Google
364
363
  # Request-specific options
365
364
  #
366
365
  # @yield [result, err] Result & error if block supplied
367
- # @yieldparam result [Google::Apis::ClouddebuggerV2::Empty] parsed result object
366
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
368
367
  # @yieldparam err [StandardError] error object if request failed
369
368
  #
370
- # @return [Google::Apis::ClouddebuggerV2::Empty]
369
+ # @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
371
370
  #
372
371
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
373
372
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
374
373
  # @raise [Google::Apis::AuthorizationError] Authorization is required
375
- def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
376
- command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
377
- command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
378
- command.response_class = Google::Apis::ClouddebuggerV2::Empty
374
+ def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
375
+ command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
376
+ command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
377
+ command.request_object = update_active_breakpoint_request_object
378
+ command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
379
+ command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
379
380
  command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
380
- command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
381
- command.query['clientVersion'] = client_version unless client_version.nil?
381
+ command.params['id'] = id unless id.nil?
382
382
  command.query['quotaUser'] = quota_user unless quota_user.nil?
383
383
  command.query['fields'] = fields unless fields.nil?
384
384
  execute_or_queue_command(command, &block)
@@ -18,14 +18,15 @@ require 'google/apis/cloudkms_v1beta1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Google Cloud KMS API
21
+ # Google Cloud Key Management Service (KMS) API
22
22
  #
23
- #
23
+ # Manages encryption for your cloud services the same way you do on-premise. You
24
+ # can generate, use, rotate, and destroy AES256 encryption keys.
24
25
  #
25
26
  # @see https://cloud.google.com/kms/
26
27
  module CloudkmsV1beta1
27
28
  VERSION = 'V1beta1'
28
- REVISION = '20170117'
29
+ REVISION = '20170124'
29
30
 
30
31
  # View and manage your data across Google Cloud Platform services
31
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,281 +22,6 @@ module Google
22
22
  module Apis
23
23
  module CloudkmsV1beta1
24
24
 
25
- # Write a Cloud Audit log
26
- class CloudAuditOptions
27
- include Google::Apis::Core::Hashable
28
-
29
- def initialize(**args)
30
- update!(**args)
31
- end
32
-
33
- # Update properties of this object
34
- def update!(**args)
35
- end
36
- end
37
-
38
- # Associates `members` with a `role`.
39
- class Binding
40
- include Google::Apis::Core::Hashable
41
-
42
- # Specifies the identities requesting access for a Cloud Platform resource.
43
- # `members` can have the following values:
44
- # * `allUsers`: A special identifier that represents anyone who is
45
- # on the internet; with or without a Google account.
46
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
47
- # who is authenticated with a Google account or a service account.
48
- # * `user:`emailid``: An email address that represents a specific Google
49
- # account. For example, `alice@gmail.com` or `joe@example.com`.
50
- # * `serviceAccount:`emailid``: An email address that represents a service
51
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
52
- # * `group:`emailid``: An email address that represents a Google group.
53
- # For example, `admins@example.com`.
54
- # * `domain:`domain``: A Google Apps domain name that represents all the
55
- # users of that domain. For example, `google.com` or `example.com`.
56
- # Corresponds to the JSON property `members`
57
- # @return [Array<String>]
58
- attr_accessor :members
59
-
60
- # Role that is assigned to `members`.
61
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
62
- # Required
63
- # Corresponds to the JSON property `role`
64
- # @return [String]
65
- attr_accessor :role
66
-
67
- def initialize(**args)
68
- update!(**args)
69
- end
70
-
71
- # Update properties of this object
72
- def update!(**args)
73
- @members = args[:members] if args.key?(:members)
74
- @role = args[:role] if args.key?(:role)
75
- end
76
- end
77
-
78
- # Request message for KeyManagementService.Encrypt.
79
- class EncryptRequest
80
- include Google::Apis::Core::Hashable
81
-
82
- # Required. The data to encrypt. Must be no larger than 64KiB.
83
- # Corresponds to the JSON property `plaintext`
84
- # @return [String]
85
- attr_accessor :plaintext
86
-
87
- # Optional data that, if specified, must also be provided during decryption
88
- # through DecryptRequest.additional_authenticated_data. Must be no
89
- # larger than 64KiB.
90
- # Corresponds to the JSON property `additionalAuthenticatedData`
91
- # @return [String]
92
- attr_accessor :additional_authenticated_data
93
-
94
- def initialize(**args)
95
- update!(**args)
96
- end
97
-
98
- # Update properties of this object
99
- def update!(**args)
100
- @plaintext = args[:plaintext] if args.key?(:plaintext)
101
- @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
102
- end
103
- end
104
-
105
- # Response message for KeyManagementService.ListCryptoKeyVersions.
106
- class ListCryptoKeyVersionsResponse
107
- include Google::Apis::Core::Hashable
108
-
109
- # The list of CryptoKeyVersions.
110
- # Corresponds to the JSON property `cryptoKeyVersions`
111
- # @return [Array<Google::Apis::CloudkmsV1beta1::CryptoKeyVersion>]
112
- attr_accessor :crypto_key_versions
113
-
114
- # A token to retrieve next page of results. Pass this value in
115
- # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of
116
- # results.
117
- # Corresponds to the JSON property `nextPageToken`
118
- # @return [String]
119
- attr_accessor :next_page_token
120
-
121
- # The total number of CryptoKeyVersions that matched the
122
- # query.
123
- # Corresponds to the JSON property `totalSize`
124
- # @return [Fixnum]
125
- attr_accessor :total_size
126
-
127
- def initialize(**args)
128
- update!(**args)
129
- end
130
-
131
- # Update properties of this object
132
- def update!(**args)
133
- @crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
134
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
135
- @total_size = args[:total_size] if args.key?(:total_size)
136
- end
137
- end
138
-
139
- # Response message for `TestIamPermissions` method.
140
- class TestIamPermissionsResponse
141
- include Google::Apis::Core::Hashable
142
-
143
- # A subset of `TestPermissionsRequest.permissions` that the caller is
144
- # allowed.
145
- # Corresponds to the JSON property `permissions`
146
- # @return [Array<String>]
147
- attr_accessor :permissions
148
-
149
- def initialize(**args)
150
- update!(**args)
151
- end
152
-
153
- # Update properties of this object
154
- def update!(**args)
155
- @permissions = args[:permissions] if args.key?(:permissions)
156
- end
157
- end
158
-
159
- # Request message for KeyManagementService.DestroyCryptoKeyVersion.
160
- class DestroyCryptoKeyVersionRequest
161
- include Google::Apis::Core::Hashable
162
-
163
- def initialize(**args)
164
- update!(**args)
165
- end
166
-
167
- # Update properties of this object
168
- def update!(**args)
169
- end
170
- end
171
-
172
- # A CryptoKey represents a logical key that can be used for cryptographic
173
- # operations.
174
- # A CryptoKey is made up of one or more versions, which
175
- # represent the actual key material used in cryptographic operations.
176
- class CryptoKey
177
- include Google::Apis::Core::Hashable
178
-
179
- # Output only. The resource name for this CryptoKey in the format
180
- # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
181
- # Corresponds to the JSON property `name`
182
- # @return [String]
183
- attr_accessor :name
184
-
185
- # The immutable purpose of this CryptoKey. Currently, the only acceptable
186
- # purpose is ENCRYPT_DECRYPT.
187
- # Corresponds to the JSON property `purpose`
188
- # @return [String]
189
- attr_accessor :purpose
190
-
191
- # At next_rotation_time, the Key Management Service will automatically:
192
- # 1. Create a new version of this CryptoKey.
193
- # 2. Mark the new version as primary.
194
- # Key rotations performed manually via
195
- # CreateCryptoKeyVersion and
196
- # UpdateCryptoKeyPrimaryVersion
197
- # do not affect next_rotation_time.
198
- # Corresponds to the JSON property `nextRotationTime`
199
- # @return [String]
200
- attr_accessor :next_rotation_time
201
-
202
- # Output only. The time at which this CryptoKey was created.
203
- # Corresponds to the JSON property `createTime`
204
- # @return [String]
205
- attr_accessor :create_time
206
-
207
- # next_rotation_time will be advanced by this period when the service
208
- # automatically rotates a key. Must be at least one day.
209
- # If rotation_period is set, next_rotation_time must also be set.
210
- # Corresponds to the JSON property `rotationPeriod`
211
- # @return [String]
212
- attr_accessor :rotation_period
213
-
214
- # A CryptoKeyVersion represents an individual cryptographic key, and the
215
- # associated key material.
216
- # It can be used for cryptographic operations either directly, or via its
217
- # parent CryptoKey, in which case the server will choose the appropriate
218
- # version for the operation.
219
- # Corresponds to the JSON property `primary`
220
- # @return [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion]
221
- attr_accessor :primary
222
-
223
- def initialize(**args)
224
- update!(**args)
225
- end
226
-
227
- # Update properties of this object
228
- def update!(**args)
229
- @name = args[:name] if args.key?(:name)
230
- @purpose = args[:purpose] if args.key?(:purpose)
231
- @next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
232
- @create_time = args[:create_time] if args.key?(:create_time)
233
- @rotation_period = args[:rotation_period] if args.key?(:rotation_period)
234
- @primary = args[:primary] if args.key?(:primary)
235
- end
236
- end
237
-
238
- # A rule to be applied in a Policy.
239
- class Rule
240
- include Google::Apis::Core::Hashable
241
-
242
- # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
243
- # that match the LOG action.
244
- # Corresponds to the JSON property `logConfig`
245
- # @return [Array<Google::Apis::CloudkmsV1beta1::LogConfig>]
246
- attr_accessor :log_config
247
-
248
- # If one or more 'in' clauses are specified, the rule matches if
249
- # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
250
- # Corresponds to the JSON property `in`
251
- # @return [Array<String>]
252
- attr_accessor :in
253
-
254
- # A permission is a string of form '<service>.<resource type>.<verb>'
255
- # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
256
- # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
257
- # Corresponds to the JSON property `permissions`
258
- # @return [Array<String>]
259
- attr_accessor :permissions
260
-
261
- # Required
262
- # Corresponds to the JSON property `action`
263
- # @return [String]
264
- attr_accessor :action
265
-
266
- # If one or more 'not_in' clauses are specified, the rule matches
267
- # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
268
- # The format for in and not_in entries is the same as for members in a
269
- # Binding (see google/iam/v1/policy.proto).
270
- # Corresponds to the JSON property `notIn`
271
- # @return [Array<String>]
272
- attr_accessor :not_in
273
-
274
- # Human-readable description of the rule.
275
- # Corresponds to the JSON property `description`
276
- # @return [String]
277
- attr_accessor :description
278
-
279
- # Additional restrictions that must be met
280
- # Corresponds to the JSON property `conditions`
281
- # @return [Array<Google::Apis::CloudkmsV1beta1::Condition>]
282
- attr_accessor :conditions
283
-
284
- def initialize(**args)
285
- update!(**args)
286
- end
287
-
288
- # Update properties of this object
289
- def update!(**args)
290
- @log_config = args[:log_config] if args.key?(:log_config)
291
- @in = args[:in] if args.key?(:in)
292
- @permissions = args[:permissions] if args.key?(:permissions)
293
- @action = args[:action] if args.key?(:action)
294
- @not_in = args[:not_in] if args.key?(:not_in)
295
- @description = args[:description] if args.key?(:description)
296
- @conditions = args[:conditions] if args.key?(:conditions)
297
- end
298
- end
299
-
300
25
  # Specifies what kind of log the caller must write
301
26
  # Increment a streamz counter with the specified metric and field names.
302
27
  # Metric names should start with a '/', generally be lowercase-only,
@@ -430,6 +155,17 @@ module Google
430
155
  class Location
431
156
  include Google::Apis::Core::Hashable
432
157
 
158
+ # The canonical id for this location. For example: `"us-east1"`.
159
+ # Corresponds to the JSON property `locationId`
160
+ # @return [String]
161
+ attr_accessor :location_id
162
+
163
+ # Service-specific metadata. For example the available capacity at the given
164
+ # location.
165
+ # Corresponds to the JSON property `metadata`
166
+ # @return [Hash<String,Object>]
167
+ attr_accessor :metadata
168
+
433
169
  # Cross-service attributes for the location. For example
434
170
  # `"cloud.googleapis.com/region": "us-east1"`
435
171
  # Corresponds to the JSON property `labels`
@@ -442,27 +178,16 @@ module Google
442
178
  # @return [String]
443
179
  attr_accessor :name
444
180
 
445
- # The canonical id for this location. For example: `"us-east1"`.
446
- # Corresponds to the JSON property `locationId`
447
- # @return [String]
448
- attr_accessor :location_id
449
-
450
- # Service-specific metadata. For example the available capacity at the given
451
- # location.
452
- # Corresponds to the JSON property `metadata`
453
- # @return [Hash<String,Object>]
454
- attr_accessor :metadata
455
-
456
181
  def initialize(**args)
457
182
  update!(**args)
458
183
  end
459
184
 
460
185
  # Update properties of this object
461
186
  def update!(**args)
462
- @labels = args[:labels] if args.key?(:labels)
463
- @name = args[:name] if args.key?(:name)
464
187
  @location_id = args[:location_id] if args.key?(:location_id)
465
188
  @metadata = args[:metadata] if args.key?(:metadata)
189
+ @labels = args[:labels] if args.key?(:labels)
190
+ @name = args[:name] if args.key?(:name)
466
191
  end
467
192
  end
468
193
 
@@ -502,10 +227,10 @@ module Google
502
227
  class Condition
503
228
  include Google::Apis::Core::Hashable
504
229
 
505
- # Trusted attributes discharged by the service.
506
- # Corresponds to the JSON property `svc`
230
+ # DEPRECATED. Use 'values' instead.
231
+ # Corresponds to the JSON property `value`
507
232
  # @return [String]
508
- attr_accessor :svc
233
+ attr_accessor :value
509
234
 
510
235
  # Trusted attributes supplied by any service that owns resources and uses
511
236
  # the IAM system for access control.
@@ -513,11 +238,6 @@ module Google
513
238
  # @return [String]
514
239
  attr_accessor :sys
515
240
 
516
- # DEPRECATED. Use 'values' instead.
517
- # Corresponds to the JSON property `value`
518
- # @return [String]
519
- attr_accessor :value
520
-
521
241
  # The objects of the condition. This is mutually exclusive with 'value'.
522
242
  # Corresponds to the JSON property `values`
523
243
  # @return [Array<String>]
@@ -533,18 +253,23 @@ module Google
533
253
  # @return [String]
534
254
  attr_accessor :op
535
255
 
256
+ # Trusted attributes discharged by the service.
257
+ # Corresponds to the JSON property `svc`
258
+ # @return [String]
259
+ attr_accessor :svc
260
+
536
261
  def initialize(**args)
537
262
  update!(**args)
538
263
  end
539
264
 
540
265
  # Update properties of this object
541
266
  def update!(**args)
542
- @svc = args[:svc] if args.key?(:svc)
543
- @sys = args[:sys] if args.key?(:sys)
544
267
  @value = args[:value] if args.key?(:value)
268
+ @sys = args[:sys] if args.key?(:sys)
545
269
  @values = args[:values] if args.key?(:values)
546
270
  @iam = args[:iam] if args.key?(:iam)
547
271
  @op = args[:op] if args.key?(:op)
272
+ @svc = args[:svc] if args.key?(:svc)
548
273
  end
549
274
  end
550
275
 
@@ -639,13 +364,37 @@ module Google
639
364
  class TestIamPermissionsRequest
640
365
  include Google::Apis::Core::Hashable
641
366
 
642
- # The set of permissions to check for the `resource`. Permissions with
643
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
644
- # information see
645
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
646
- # Corresponds to the JSON property `permissions`
647
- # @return [Array<String>]
648
- attr_accessor :permissions
367
+ # The set of permissions to check for the `resource`. Permissions with
368
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
369
+ # information see
370
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
371
+ # Corresponds to the JSON property `permissions`
372
+ # @return [Array<String>]
373
+ attr_accessor :permissions
374
+
375
+ def initialize(**args)
376
+ update!(**args)
377
+ end
378
+
379
+ # Update properties of this object
380
+ def update!(**args)
381
+ @permissions = args[:permissions] if args.key?(:permissions)
382
+ end
383
+ end
384
+
385
+ # The response message for Locations.ListLocations.
386
+ class ListLocationsResponse
387
+ include Google::Apis::Core::Hashable
388
+
389
+ # The standard List next-page token.
390
+ # Corresponds to the JSON property `nextPageToken`
391
+ # @return [String]
392
+ attr_accessor :next_page_token
393
+
394
+ # A list of locations that matches the specified filter in the request.
395
+ # Corresponds to the JSON property `locations`
396
+ # @return [Array<Google::Apis::CloudkmsV1beta1::Location>]
397
+ attr_accessor :locations
649
398
 
650
399
  def initialize(**args)
651
400
  update!(**args)
@@ -653,7 +402,8 @@ module Google
653
402
 
654
403
  # Update properties of this object
655
404
  def update!(**args)
656
- @permissions = args[:permissions] if args.key?(:permissions)
405
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
406
+ @locations = args[:locations] if args.key?(:locations)
657
407
  end
658
408
  end
659
409
 
@@ -759,10 +509,258 @@ module Google
759
509
  # @return [String]
760
510
  attr_accessor :ciphertext
761
511
 
762
- # The resource name of the CryptoKeyVersion used in encryption.
763
- # Corresponds to the JSON property `name`
512
+ # The resource name of the CryptoKeyVersion used in encryption.
513
+ # Corresponds to the JSON property `name`
514
+ # @return [String]
515
+ attr_accessor :name
516
+
517
+ def initialize(**args)
518
+ update!(**args)
519
+ end
520
+
521
+ # Update properties of this object
522
+ def update!(**args)
523
+ @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
524
+ @name = args[:name] if args.key?(:name)
525
+ end
526
+ end
527
+
528
+ # A KeyRing is a toplevel logical grouping of CryptoKeys.
529
+ class KeyRing
530
+ include Google::Apis::Core::Hashable
531
+
532
+ # Output only. The time at which this KeyRing was created.
533
+ # Corresponds to the JSON property `createTime`
534
+ # @return [String]
535
+ attr_accessor :create_time
536
+
537
+ # Output only. The resource name for the KeyRing in the format
538
+ # `projects/*/locations/*/keyRings/*`.
539
+ # Corresponds to the JSON property `name`
540
+ # @return [String]
541
+ attr_accessor :name
542
+
543
+ def initialize(**args)
544
+ update!(**args)
545
+ end
546
+
547
+ # Update properties of this object
548
+ def update!(**args)
549
+ @create_time = args[:create_time] if args.key?(:create_time)
550
+ @name = args[:name] if args.key?(:name)
551
+ end
552
+ end
553
+
554
+ # Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion.
555
+ class UpdateCryptoKeyPrimaryVersionRequest
556
+ include Google::Apis::Core::Hashable
557
+
558
+ # The id of the child CryptoKeyVersion to use as primary.
559
+ # Corresponds to the JSON property `cryptoKeyVersionId`
560
+ # @return [String]
561
+ attr_accessor :crypto_key_version_id
562
+
563
+ def initialize(**args)
564
+ update!(**args)
565
+ end
566
+
567
+ # Update properties of this object
568
+ def update!(**args)
569
+ @crypto_key_version_id = args[:crypto_key_version_id] if args.key?(:crypto_key_version_id)
570
+ end
571
+ end
572
+
573
+ # Request message for KeyManagementService.RestoreCryptoKeyVersion.
574
+ class RestoreCryptoKeyVersionRequest
575
+ include Google::Apis::Core::Hashable
576
+
577
+ def initialize(**args)
578
+ update!(**args)
579
+ end
580
+
581
+ # Update properties of this object
582
+ def update!(**args)
583
+ end
584
+ end
585
+
586
+ # Write a Data Access (Gin) log
587
+ class DataAccessOptions
588
+ include Google::Apis::Core::Hashable
589
+
590
+ def initialize(**args)
591
+ update!(**args)
592
+ end
593
+
594
+ # Update properties of this object
595
+ def update!(**args)
596
+ end
597
+ end
598
+
599
+ # Response message for KeyManagementService.ListKeyRings.
600
+ class ListKeyRingsResponse
601
+ include Google::Apis::Core::Hashable
602
+
603
+ # The list of KeyRings.
604
+ # Corresponds to the JSON property `keyRings`
605
+ # @return [Array<Google::Apis::CloudkmsV1beta1::KeyRing>]
606
+ attr_accessor :key_rings
607
+
608
+ # A token to retrieve next page of results. Pass this value in
609
+ # ListKeyRingsRequest.page_token to retrieve the next page of results.
610
+ # Corresponds to the JSON property `nextPageToken`
611
+ # @return [String]
612
+ attr_accessor :next_page_token
613
+
614
+ # The total number of KeyRings that matched the query.
615
+ # Corresponds to the JSON property `totalSize`
616
+ # @return [Fixnum]
617
+ attr_accessor :total_size
618
+
619
+ def initialize(**args)
620
+ update!(**args)
621
+ end
622
+
623
+ # Update properties of this object
624
+ def update!(**args)
625
+ @key_rings = args[:key_rings] if args.key?(:key_rings)
626
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
627
+ @total_size = args[:total_size] if args.key?(:total_size)
628
+ end
629
+ end
630
+
631
+ # Specifies the audit configuration for a service.
632
+ # It consists of which permission types are logged, and what identities, if
633
+ # any, are exempted from logging.
634
+ # An AuditConifg must have one or more AuditLogConfigs.
635
+ class AuditConfig
636
+ include Google::Apis::Core::Hashable
637
+
638
+ # The configuration for logging of each type of permission.
639
+ # Next ID: 4
640
+ # Corresponds to the JSON property `auditLogConfigs`
641
+ # @return [Array<Google::Apis::CloudkmsV1beta1::AuditLogConfig>]
642
+ attr_accessor :audit_log_configs
643
+
644
+ # Specifies the identities that are exempted from "data access" audit
645
+ # logging for the `service` specified above.
646
+ # Follows the same format of Binding.members.
647
+ # This field is deprecated in favor of per-permission-type exemptions.
648
+ # Corresponds to the JSON property `exemptedMembers`
649
+ # @return [Array<String>]
650
+ attr_accessor :exempted_members
651
+
652
+ # Specifies a service that will be enabled for audit logging.
653
+ # For example, `resourcemanager`, `storage`, `compute`.
654
+ # `allServices` is a special value that covers all services.
655
+ # Corresponds to the JSON property `service`
656
+ # @return [String]
657
+ attr_accessor :service
658
+
659
+ def initialize(**args)
660
+ update!(**args)
661
+ end
662
+
663
+ # Update properties of this object
664
+ def update!(**args)
665
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
666
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
667
+ @service = args[:service] if args.key?(:service)
668
+ end
669
+ end
670
+
671
+ # A CryptoKeyVersion represents an individual cryptographic key, and the
672
+ # associated key material.
673
+ # It can be used for cryptographic operations either directly, or via its
674
+ # parent CryptoKey, in which case the server will choose the appropriate
675
+ # version for the operation.
676
+ class CryptoKeyVersion
677
+ include Google::Apis::Core::Hashable
678
+
679
+ # Output only. The time at which this CryptoKeyVersion was created.
680
+ # Corresponds to the JSON property `createTime`
681
+ # @return [String]
682
+ attr_accessor :create_time
683
+
684
+ # The current state of the CryptoKeyVersion.
685
+ # Corresponds to the JSON property `state`
686
+ # @return [String]
687
+ attr_accessor :state
688
+
689
+ # Output only. The resource name for this CryptoKeyVersion in the format
690
+ # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
691
+ # Corresponds to the JSON property `name`
692
+ # @return [String]
693
+ attr_accessor :name
694
+
695
+ # Output only. The time this CryptoKeyVersion's key material was
696
+ # destroyed. Only present if state is
697
+ # DESTROYED.
698
+ # Corresponds to the JSON property `destroyEventTime`
699
+ # @return [String]
700
+ attr_accessor :destroy_event_time
701
+
702
+ # Output only. The time this CryptoKeyVersion's key material is scheduled
703
+ # for destruction. Only present if state is
704
+ # DESTROY_SCHEDULED.
705
+ # Corresponds to the JSON property `destroyTime`
706
+ # @return [String]
707
+ attr_accessor :destroy_time
708
+
709
+ def initialize(**args)
710
+ update!(**args)
711
+ end
712
+
713
+ # Update properties of this object
714
+ def update!(**args)
715
+ @create_time = args[:create_time] if args.key?(:create_time)
716
+ @state = args[:state] if args.key?(:state)
717
+ @name = args[:name] if args.key?(:name)
718
+ @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
719
+ @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
720
+ end
721
+ end
722
+
723
+ # Write a Cloud Audit log
724
+ class CloudAuditOptions
725
+ include Google::Apis::Core::Hashable
726
+
727
+ def initialize(**args)
728
+ update!(**args)
729
+ end
730
+
731
+ # Update properties of this object
732
+ def update!(**args)
733
+ end
734
+ end
735
+
736
+ # Associates `members` with a `role`.
737
+ class Binding
738
+ include Google::Apis::Core::Hashable
739
+
740
+ # Specifies the identities requesting access for a Cloud Platform resource.
741
+ # `members` can have the following values:
742
+ # * `allUsers`: A special identifier that represents anyone who is
743
+ # on the internet; with or without a Google account.
744
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
745
+ # who is authenticated with a Google account or a service account.
746
+ # * `user:`emailid``: An email address that represents a specific Google
747
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
748
+ # * `serviceAccount:`emailid``: An email address that represents a service
749
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
750
+ # * `group:`emailid``: An email address that represents a Google group.
751
+ # For example, `admins@example.com`.
752
+ # * `domain:`domain``: A Google Apps domain name that represents all the
753
+ # users of that domain. For example, `google.com` or `example.com`.
754
+ # Corresponds to the JSON property `members`
755
+ # @return [Array<String>]
756
+ attr_accessor :members
757
+
758
+ # Role that is assigned to `members`.
759
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
760
+ # Required
761
+ # Corresponds to the JSON property `role`
764
762
  # @return [String]
765
- attr_accessor :name
763
+ attr_accessor :role
766
764
 
767
765
  def initialize(**args)
768
766
  update!(**args)
@@ -770,25 +768,26 @@ module Google
770
768
 
771
769
  # Update properties of this object
772
770
  def update!(**args)
773
- @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
774
- @name = args[:name] if args.key?(:name)
771
+ @members = args[:members] if args.key?(:members)
772
+ @role = args[:role] if args.key?(:role)
775
773
  end
776
774
  end
777
775
 
778
- # A KeyRing is a toplevel logical grouping of CryptoKeys.
779
- class KeyRing
776
+ # Request message for KeyManagementService.Encrypt.
777
+ class EncryptRequest
780
778
  include Google::Apis::Core::Hashable
781
779
 
782
- # Output only. The time at which this KeyRing was created.
783
- # Corresponds to the JSON property `createTime`
780
+ # Required. The data to encrypt. Must be no larger than 64KiB.
781
+ # Corresponds to the JSON property `plaintext`
784
782
  # @return [String]
785
- attr_accessor :create_time
783
+ attr_accessor :plaintext
786
784
 
787
- # Output only. The resource name for the KeyRing in the format
788
- # `projects/*/locations/*/keyRings/*`.
789
- # Corresponds to the JSON property `name`
785
+ # Optional data that, if specified, must also be provided during decryption
786
+ # through DecryptRequest.additional_authenticated_data. Must be no
787
+ # larger than 64KiB.
788
+ # Corresponds to the JSON property `additionalAuthenticatedData`
790
789
  # @return [String]
791
- attr_accessor :name
790
+ attr_accessor :additional_authenticated_data
792
791
 
793
792
  def initialize(**args)
794
793
  update!(**args)
@@ -796,24 +795,32 @@ module Google
796
795
 
797
796
  # Update properties of this object
798
797
  def update!(**args)
799
- @create_time = args[:create_time] if args.key?(:create_time)
800
- @name = args[:name] if args.key?(:name)
798
+ @plaintext = args[:plaintext] if args.key?(:plaintext)
799
+ @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
801
800
  end
802
801
  end
803
802
 
804
- # The response message for Locations.ListLocations.
805
- class ListLocationsResponse
803
+ # Response message for KeyManagementService.ListCryptoKeyVersions.
804
+ class ListCryptoKeyVersionsResponse
806
805
  include Google::Apis::Core::Hashable
807
806
 
808
- # The standard List next-page token.
807
+ # The list of CryptoKeyVersions.
808
+ # Corresponds to the JSON property `cryptoKeyVersions`
809
+ # @return [Array<Google::Apis::CloudkmsV1beta1::CryptoKeyVersion>]
810
+ attr_accessor :crypto_key_versions
811
+
812
+ # A token to retrieve next page of results. Pass this value in
813
+ # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of
814
+ # results.
809
815
  # Corresponds to the JSON property `nextPageToken`
810
816
  # @return [String]
811
817
  attr_accessor :next_page_token
812
818
 
813
- # A list of locations that matches the specified filter in the request.
814
- # Corresponds to the JSON property `locations`
815
- # @return [Array<Google::Apis::CloudkmsV1beta1::Location>]
816
- attr_accessor :locations
819
+ # The total number of CryptoKeyVersions that matched the
820
+ # query.
821
+ # Corresponds to the JSON property `totalSize`
822
+ # @return [Fixnum]
823
+ attr_accessor :total_size
817
824
 
818
825
  def initialize(**args)
819
826
  update!(**args)
@@ -821,19 +828,21 @@ module Google
821
828
 
822
829
  # Update properties of this object
823
830
  def update!(**args)
831
+ @crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
824
832
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
825
- @locations = args[:locations] if args.key?(:locations)
833
+ @total_size = args[:total_size] if args.key?(:total_size)
826
834
  end
827
835
  end
828
836
 
829
- # Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion.
830
- class UpdateCryptoKeyPrimaryVersionRequest
837
+ # Response message for `TestIamPermissions` method.
838
+ class TestIamPermissionsResponse
831
839
  include Google::Apis::Core::Hashable
832
840
 
833
- # The id of the child CryptoKeyVersion to use as primary.
834
- # Corresponds to the JSON property `cryptoKeyVersionId`
835
- # @return [String]
836
- attr_accessor :crypto_key_version_id
841
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
842
+ # allowed.
843
+ # Corresponds to the JSON property `permissions`
844
+ # @return [Array<String>]
845
+ attr_accessor :permissions
837
846
 
838
847
  def initialize(**args)
839
848
  update!(**args)
@@ -841,12 +850,12 @@ module Google
841
850
 
842
851
  # Update properties of this object
843
852
  def update!(**args)
844
- @crypto_key_version_id = args[:crypto_key_version_id] if args.key?(:crypto_key_version_id)
853
+ @permissions = args[:permissions] if args.key?(:permissions)
845
854
  end
846
855
  end
847
856
 
848
- # Request message for KeyManagementService.RestoreCryptoKeyVersion.
849
- class RestoreCryptoKeyVersionRequest
857
+ # Request message for KeyManagementService.DestroyCryptoKeyVersion.
858
+ class DestroyCryptoKeyVersionRequest
850
859
  include Google::Apis::Core::Hashable
851
860
 
852
861
  def initialize(**args)
@@ -858,78 +867,51 @@ module Google
858
867
  end
859
868
  end
860
869
 
861
- # Write a Data Access (Gin) log
862
- class DataAccessOptions
870
+ # A rule to be applied in a Policy.
871
+ class Rule
863
872
  include Google::Apis::Core::Hashable
864
873
 
865
- def initialize(**args)
866
- update!(**args)
867
- end
868
-
869
- # Update properties of this object
870
- def update!(**args)
871
- end
872
- end
873
-
874
- # Response message for KeyManagementService.ListKeyRings.
875
- class ListKeyRingsResponse
876
- include Google::Apis::Core::Hashable
874
+ # If one or more 'not_in' clauses are specified, the rule matches
875
+ # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
876
+ # The format for in and not_in entries is the same as for members in a
877
+ # Binding (see google/iam/v1/policy.proto).
878
+ # Corresponds to the JSON property `notIn`
879
+ # @return [Array<String>]
880
+ attr_accessor :not_in
877
881
 
878
- # A token to retrieve next page of results. Pass this value in
879
- # ListKeyRingsRequest.page_token to retrieve the next page of results.
880
- # Corresponds to the JSON property `nextPageToken`
882
+ # Human-readable description of the rule.
883
+ # Corresponds to the JSON property `description`
881
884
  # @return [String]
882
- attr_accessor :next_page_token
883
-
884
- # The total number of KeyRings that matched the query.
885
- # Corresponds to the JSON property `totalSize`
886
- # @return [Fixnum]
887
- attr_accessor :total_size
888
-
889
- # The list of KeyRings.
890
- # Corresponds to the JSON property `keyRings`
891
- # @return [Array<Google::Apis::CloudkmsV1beta1::KeyRing>]
892
- attr_accessor :key_rings
893
-
894
- def initialize(**args)
895
- update!(**args)
896
- end
885
+ attr_accessor :description
897
886
 
898
- # Update properties of this object
899
- def update!(**args)
900
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
901
- @total_size = args[:total_size] if args.key?(:total_size)
902
- @key_rings = args[:key_rings] if args.key?(:key_rings)
903
- end
904
- end
887
+ # Additional restrictions that must be met
888
+ # Corresponds to the JSON property `conditions`
889
+ # @return [Array<Google::Apis::CloudkmsV1beta1::Condition>]
890
+ attr_accessor :conditions
905
891
 
906
- # Specifies the audit configuration for a service.
907
- # It consists of which permission types are logged, and what identities, if
908
- # any, are exempted from logging.
909
- # An AuditConifg must have one or more AuditLogConfigs.
910
- class AuditConfig
911
- include Google::Apis::Core::Hashable
892
+ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
893
+ # that match the LOG action.
894
+ # Corresponds to the JSON property `logConfig`
895
+ # @return [Array<Google::Apis::CloudkmsV1beta1::LogConfig>]
896
+ attr_accessor :log_config
912
897
 
913
- # The configuration for logging of each type of permission.
914
- # Next ID: 4
915
- # Corresponds to the JSON property `auditLogConfigs`
916
- # @return [Array<Google::Apis::CloudkmsV1beta1::AuditLogConfig>]
917
- attr_accessor :audit_log_configs
898
+ # If one or more 'in' clauses are specified, the rule matches if
899
+ # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
900
+ # Corresponds to the JSON property `in`
901
+ # @return [Array<String>]
902
+ attr_accessor :in
918
903
 
919
- # Specifies the identities that are exempted from "data access" audit
920
- # logging for the `service` specified above.
921
- # Follows the same format of Binding.members.
922
- # This field is deprecated in favor of per-permission-type exemptions.
923
- # Corresponds to the JSON property `exemptedMembers`
904
+ # A permission is a string of form '<service>.<resource type>.<verb>'
905
+ # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
906
+ # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
907
+ # Corresponds to the JSON property `permissions`
924
908
  # @return [Array<String>]
925
- attr_accessor :exempted_members
909
+ attr_accessor :permissions
926
910
 
927
- # Specifies a service that will be enabled for audit logging.
928
- # For example, `resourcemanager`, `storage`, `compute`.
929
- # `allServices` is a special value that covers all services.
930
- # Corresponds to the JSON property `service`
911
+ # Required
912
+ # Corresponds to the JSON property `action`
931
913
  # @return [String]
932
- attr_accessor :service
914
+ attr_accessor :action
933
915
 
934
916
  def initialize(**args)
935
917
  update!(**args)
@@ -937,49 +919,66 @@ module Google
937
919
 
938
920
  # Update properties of this object
939
921
  def update!(**args)
940
- @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
941
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
942
- @service = args[:service] if args.key?(:service)
922
+ @not_in = args[:not_in] if args.key?(:not_in)
923
+ @description = args[:description] if args.key?(:description)
924
+ @conditions = args[:conditions] if args.key?(:conditions)
925
+ @log_config = args[:log_config] if args.key?(:log_config)
926
+ @in = args[:in] if args.key?(:in)
927
+ @permissions = args[:permissions] if args.key?(:permissions)
928
+ @action = args[:action] if args.key?(:action)
943
929
  end
944
930
  end
945
931
 
946
- # A CryptoKeyVersion represents an individual cryptographic key, and the
947
- # associated key material.
948
- # It can be used for cryptographic operations either directly, or via its
949
- # parent CryptoKey, in which case the server will choose the appropriate
950
- # version for the operation.
951
- class CryptoKeyVersion
932
+ # A CryptoKey represents a logical key that can be used for cryptographic
933
+ # operations.
934
+ # A CryptoKey is made up of one or more versions, which
935
+ # represent the actual key material used in cryptographic operations.
936
+ class CryptoKey
952
937
  include Google::Apis::Core::Hashable
953
938
 
954
- # Output only. The time at which this CryptoKeyVersion was created.
939
+ # Output only. The time at which this CryptoKey was created.
955
940
  # Corresponds to the JSON property `createTime`
956
941
  # @return [String]
957
942
  attr_accessor :create_time
958
943
 
959
- # The current state of the CryptoKeyVersion.
960
- # Corresponds to the JSON property `state`
944
+ # next_rotation_time will be advanced by this period when the service
945
+ # automatically rotates a key. Must be at least one day.
946
+ # If rotation_period is set, next_rotation_time must also be set.
947
+ # Corresponds to the JSON property `rotationPeriod`
961
948
  # @return [String]
962
- attr_accessor :state
949
+ attr_accessor :rotation_period
963
950
 
964
- # Output only. The resource name for this CryptoKeyVersion in the format
965
- # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
951
+ # A CryptoKeyVersion represents an individual cryptographic key, and the
952
+ # associated key material.
953
+ # It can be used for cryptographic operations either directly, or via its
954
+ # parent CryptoKey, in which case the server will choose the appropriate
955
+ # version for the operation.
956
+ # Corresponds to the JSON property `primary`
957
+ # @return [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion]
958
+ attr_accessor :primary
959
+
960
+ # Output only. The resource name for this CryptoKey in the format
961
+ # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
966
962
  # Corresponds to the JSON property `name`
967
963
  # @return [String]
968
964
  attr_accessor :name
969
965
 
970
- # Output only. The time this CryptoKeyVersion's key material was
971
- # destroyed. Only present if state is
972
- # DESTROYED.
973
- # Corresponds to the JSON property `destroyEventTime`
966
+ # The immutable purpose of this CryptoKey. Currently, the only acceptable
967
+ # purpose is ENCRYPT_DECRYPT.
968
+ # Corresponds to the JSON property `purpose`
974
969
  # @return [String]
975
- attr_accessor :destroy_event_time
970
+ attr_accessor :purpose
976
971
 
977
- # Output only. The time this CryptoKeyVersion's key material is scheduled
978
- # for destruction. Only present if state is
979
- # DESTROY_SCHEDULED.
980
- # Corresponds to the JSON property `destroyTime`
972
+ # At next_rotation_time, the Key Management Service will automatically:
973
+ # 1. Create a new version of this CryptoKey.
974
+ # 2. Mark the new version as primary.
975
+ # Key rotations performed manually via
976
+ # CreateCryptoKeyVersion and
977
+ # UpdateCryptoKeyPrimaryVersion
978
+ # do not affect next_rotation_time.
979
+ # Corresponds to the JSON property `nextRotationTime`
981
980
  # @return [String]
982
- attr_accessor :destroy_time
981
+ attr_accessor :next_rotation_time
983
982
 
984
983
  def initialize(**args)
985
984
  update!(**args)
@@ -988,10 +987,11 @@ module Google
988
987
  # Update properties of this object
989
988
  def update!(**args)
990
989
  @create_time = args[:create_time] if args.key?(:create_time)
991
- @state = args[:state] if args.key?(:state)
990
+ @rotation_period = args[:rotation_period] if args.key?(:rotation_period)
991
+ @primary = args[:primary] if args.key?(:primary)
992
992
  @name = args[:name] if args.key?(:name)
993
- @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
994
- @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
993
+ @purpose = args[:purpose] if args.key?(:purpose)
994
+ @next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
995
995
  end
996
996
  end
997
997
  end