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
@@ -28,11 +28,11 @@ module Google
28
28
  VERSION = 'V2'
29
29
  REVISION = '20170117'
30
30
 
31
- # View and manage your data across Google Cloud Platform services
32
- AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
-
34
31
  # Manage cloud debugger
35
32
  AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
33
+
34
+ # View and manage your data across Google Cloud Platform services
35
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
36
36
  end
37
37
  end
38
38
  end
@@ -22,92 +22,79 @@ module Google
22
22
  module Apis
23
23
  module ClouddebuggerV2
24
24
 
25
- # Represents the application to debug. The application may include one or more
26
- # replicated processes executing the same code. Each of these processes is
27
- # attached with a debugger agent, carrying out the debugging commands.
28
- # The agents attached to the same debuggee are identified by using exactly the
29
- # same field values when registering.
30
- class Debuggee
25
+ # A CloudRepoSourceContext denotes a particular revision in a cloud
26
+ # repo (a repo hosted by the Google Cloud Platform).
27
+ class CloudRepoSourceContext
31
28
  include Google::Apis::Core::Hashable
32
29
 
33
- # Unique identifier for the debuggee generated by the controller service.
34
- # Corresponds to the JSON property `id`
30
+ # A revision ID.
31
+ # Corresponds to the JSON property `revisionId`
35
32
  # @return [String]
36
- attr_accessor :id
33
+ attr_accessor :revision_id
37
34
 
38
- # Project the debuggee is associated with.
39
- # Use the project number when registering a Google Cloud Platform project.
40
- # Corresponds to the JSON property `project`
35
+ # The name of an alias (branch, tag, etc.).
36
+ # Corresponds to the JSON property `aliasName`
41
37
  # @return [String]
42
- attr_accessor :project
38
+ attr_accessor :alias_name
43
39
 
44
- # References to the locations and revisions of the source code used in the
45
- # deployed application.
46
- # Contexts describing a remote repo related to the source code
47
- # have a `category` label of `remote_repo`. Source snapshot source
48
- # contexts have a `category` of `snapshot`.
49
- # Corresponds to the JSON property `extSourceContexts`
50
- # @return [Array<Google::Apis::ClouddebuggerV2::ExtendedSourceContext>]
51
- attr_accessor :ext_source_contexts
40
+ # A unique identifier for a cloud repo.
41
+ # Corresponds to the JSON property `repoId`
42
+ # @return [Google::Apis::ClouddebuggerV2::RepoId]
43
+ attr_accessor :repo_id
52
44
 
53
- # Human readable description of the debuggee.
54
- # Including a human-readable project name, environment name and version
55
- # information is recommended.
56
- # Corresponds to the JSON property `description`
57
- # @return [String]
58
- attr_accessor :description
45
+ # An alias to a repo revision.
46
+ # Corresponds to the JSON property `aliasContext`
47
+ # @return [Google::Apis::ClouddebuggerV2::AliasContext]
48
+ attr_accessor :alias_context
59
49
 
60
- # If set to `true`, indicates that the agent should disable itself and
61
- # detach from the debuggee.
62
- # Corresponds to the JSON property `isDisabled`
63
- # @return [Boolean]
64
- attr_accessor :is_disabled
65
- alias_method :is_disabled?, :is_disabled
50
+ def initialize(**args)
51
+ update!(**args)
52
+ end
66
53
 
67
- # Represents a contextual status message.
68
- # The message can indicate an error or informational status, and refer to
69
- # specific parts of the containing object.
70
- # For example, the `Breakpoint.status` field can indicate an error referring
71
- # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
72
- # Corresponds to the JSON property `status`
73
- # @return [Google::Apis::ClouddebuggerV2::StatusMessage]
74
- attr_accessor :status
54
+ # Update properties of this object
55
+ def update!(**args)
56
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
57
+ @alias_name = args[:alias_name] if args.key?(:alias_name)
58
+ @repo_id = args[:repo_id] if args.key?(:repo_id)
59
+ @alias_context = args[:alias_context] if args.key?(:alias_context)
60
+ end
61
+ end
75
62
 
76
- # If set to `true`, indicates that the debuggee is considered as inactive by
77
- # the Controller service.
78
- # Corresponds to the JSON property `isInactive`
79
- # @return [Boolean]
80
- attr_accessor :is_inactive
81
- alias_method :is_inactive?, :is_inactive
63
+ # Request to register a debuggee.
64
+ class RegisterDebuggeeRequest
65
+ include Google::Apis::Core::Hashable
82
66
 
83
- # Version ID of the agent release. The version ID is structured as
84
- # following: `domain/type/vmajor.minor` (for example
85
- # `google.com/gcp-java/v1.1`).
86
- # Corresponds to the JSON property `agentVersion`
87
- # @return [String]
88
- attr_accessor :agent_version
67
+ # Represents the application to debug. The application may include one or more
68
+ # replicated processes executing the same code. Each of these processes is
69
+ # attached with a debugger agent, carrying out the debugging commands.
70
+ # The agents attached to the same debuggee are identified by using exactly the
71
+ # same field values when registering.
72
+ # Corresponds to the JSON property `debuggee`
73
+ # @return [Google::Apis::ClouddebuggerV2::Debuggee]
74
+ attr_accessor :debuggee
89
75
 
90
- # A set of custom debuggee properties, populated by the agent, to be
91
- # displayed to the user.
92
- # Corresponds to the JSON property `labels`
93
- # @return [Hash<String,String>]
94
- attr_accessor :labels
76
+ def initialize(**args)
77
+ update!(**args)
78
+ end
95
79
 
96
- # Debuggee uniquifier within the project.
97
- # Any string that identifies the application within the project can be used.
98
- # Including environment and version or build IDs is recommended.
99
- # Corresponds to the JSON property `uniquifier`
100
- # @return [String]
101
- attr_accessor :uniquifier
80
+ # Update properties of this object
81
+ def update!(**args)
82
+ @debuggee = args[:debuggee] if args.key?(:debuggee)
83
+ end
84
+ end
102
85
 
103
- # References to the locations and revisions of the source code used in the
104
- # deployed application.
105
- # NOTE: This field is deprecated. Consumers should use
106
- # `ext_source_contexts` if it is not empty. Debug agents should populate
107
- # both this field and `ext_source_contexts`.
108
- # Corresponds to the JSON property `sourceContexts`
109
- # @return [Array<Google::Apis::ClouddebuggerV2::SourceContext>]
110
- attr_accessor :source_contexts
86
+ # Response for registering a debuggee.
87
+ class RegisterDebuggeeResponse
88
+ include Google::Apis::Core::Hashable
89
+
90
+ # Represents the application to debug. The application may include one or more
91
+ # replicated processes executing the same code. Each of these processes is
92
+ # attached with a debugger agent, carrying out the debugging commands.
93
+ # The agents attached to the same debuggee are identified by using exactly the
94
+ # same field values when registering.
95
+ # Corresponds to the JSON property `debuggee`
96
+ # @return [Google::Apis::ClouddebuggerV2::Debuggee]
97
+ attr_accessor :debuggee
111
98
 
112
99
  def initialize(**args)
113
100
  update!(**args)
@@ -115,45 +102,52 @@ module Google
115
102
 
116
103
  # Update properties of this object
117
104
  def update!(**args)
118
- @id = args[:id] if args.key?(:id)
119
- @project = args[:project] if args.key?(:project)
120
- @ext_source_contexts = args[:ext_source_contexts] if args.key?(:ext_source_contexts)
121
- @description = args[:description] if args.key?(:description)
122
- @is_disabled = args[:is_disabled] if args.key?(:is_disabled)
123
- @status = args[:status] if args.key?(:status)
124
- @is_inactive = args[:is_inactive] if args.key?(:is_inactive)
125
- @agent_version = args[:agent_version] if args.key?(:agent_version)
126
- @labels = args[:labels] if args.key?(:labels)
127
- @uniquifier = args[:uniquifier] if args.key?(:uniquifier)
128
- @source_contexts = args[:source_contexts] if args.key?(:source_contexts)
105
+ @debuggee = args[:debuggee] if args.key?(:debuggee)
129
106
  end
130
107
  end
131
108
 
132
- # Represents a stack frame context.
133
- class StackFrame
109
+ # Response for getting breakpoint information.
110
+ class GetBreakpointResponse
134
111
  include Google::Apis::Core::Hashable
135
112
 
136
- # Set of local variables at the stack frame location.
137
- # Note that this might not be populated for all stack frames.
138
- # Corresponds to the JSON property `locals`
139
- # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
140
- attr_accessor :locals
113
+ # Represents the breakpoint specification, status and results.
114
+ # Corresponds to the JSON property `breakpoint`
115
+ # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
116
+ attr_accessor :breakpoint
141
117
 
142
- # Demangled function name at the call site.
143
- # Corresponds to the JSON property `function`
144
- # @return [String]
145
- attr_accessor :function
118
+ def initialize(**args)
119
+ update!(**args)
120
+ end
146
121
 
147
- # Represents a location in the source code.
148
- # Corresponds to the JSON property `location`
149
- # @return [Google::Apis::ClouddebuggerV2::SourceLocation]
150
- attr_accessor :location
122
+ # Update properties of this object
123
+ def update!(**args)
124
+ @breakpoint = args[:breakpoint] if args.key?(:breakpoint)
125
+ end
126
+ end
151
127
 
152
- # Set of arguments passed to this function.
153
- # Note that this might not be populated for all stack frames.
154
- # Corresponds to the JSON property `arguments`
155
- # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
156
- attr_accessor :arguments
128
+ # Represents a contextual status message.
129
+ # The message can indicate an error or informational status, and refer to
130
+ # specific parts of the containing object.
131
+ # For example, the `Breakpoint.status` field can indicate an error referring
132
+ # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
133
+ class StatusMessage
134
+ include Google::Apis::Core::Hashable
135
+
136
+ # Distinguishes errors from informational messages.
137
+ # Corresponds to the JSON property `isError`
138
+ # @return [Boolean]
139
+ attr_accessor :is_error
140
+ alias_method :is_error?, :is_error
141
+
142
+ # Represents a message with parameters.
143
+ # Corresponds to the JSON property `description`
144
+ # @return [Google::Apis::ClouddebuggerV2::FormatMessage]
145
+ attr_accessor :description
146
+
147
+ # Reference to which the message applies.
148
+ # Corresponds to the JSON property `refersTo`
149
+ # @return [String]
150
+ attr_accessor :refers_to
157
151
 
158
152
  def initialize(**args)
159
153
  update!(**args)
@@ -161,30 +155,27 @@ module Google
161
155
 
162
156
  # Update properties of this object
163
157
  def update!(**args)
164
- @locals = args[:locals] if args.key?(:locals)
165
- @function = args[:function] if args.key?(:function)
166
- @location = args[:location] if args.key?(:location)
167
- @arguments = args[:arguments] if args.key?(:arguments)
158
+ @is_error = args[:is_error] if args.key?(:is_error)
159
+ @description = args[:description] if args.key?(:description)
160
+ @refers_to = args[:refers_to] if args.key?(:refers_to)
168
161
  end
169
162
  end
170
163
 
171
- # Response for listing breakpoints.
172
- class ListBreakpointsResponse
164
+ # A GitSourceContext denotes a particular revision in a third party Git
165
+ # repository (e.g. GitHub).
166
+ class GitSourceContext
173
167
  include Google::Apis::Core::Hashable
174
168
 
175
- # List of breakpoints matching the request.
176
- # The fields `id` and `location` are guaranteed to be set on each breakpoint.
177
- # The fields: `stack_frames`, `evaluated_expressions` and `variable_table`
178
- # are cleared on each breakpoint regardless of it's status.
179
- # Corresponds to the JSON property `breakpoints`
180
- # @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
181
- attr_accessor :breakpoints
169
+ # Git commit hash.
170
+ # required.
171
+ # Corresponds to the JSON property `revisionId`
172
+ # @return [String]
173
+ attr_accessor :revision_id
182
174
 
183
- # A wait token that can be used in the next call to `list` (REST) or
184
- # `ListBreakpoints` (RPC) to block until the list of breakpoints has changes.
185
- # Corresponds to the JSON property `nextWaitToken`
175
+ # Git repository URL.
176
+ # Corresponds to the JSON property `url`
186
177
  # @return [String]
187
- attr_accessor :next_wait_token
178
+ attr_accessor :url
188
179
 
189
180
  def initialize(**args)
190
181
  update!(**args)
@@ -192,8 +183,8 @@ module Google
192
183
 
193
184
  # Update properties of this object
194
185
  def update!(**args)
195
- @breakpoints = args[:breakpoints] if args.key?(:breakpoints)
196
- @next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token)
186
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
187
+ @url = args[:url] if args.key?(:url)
197
188
  end
198
189
  end
199
190
 
@@ -289,6 +280,16 @@ module Google
289
280
  # @return [Fixnum]
290
281
  attr_accessor :var_table_index
291
282
 
283
+ # Simple value of the variable.
284
+ # Corresponds to the JSON property `value`
285
+ # @return [String]
286
+ attr_accessor :value
287
+
288
+ # Members contained or pointed to by the variable.
289
+ # Corresponds to the JSON property `members`
290
+ # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
291
+ attr_accessor :members
292
+
292
293
  # Represents a contextual status message.
293
294
  # The message can indicate an error or informational status, and refer to
294
295
  # specific parts of the containing object.
@@ -298,21 +299,11 @@ module Google
298
299
  # @return [Google::Apis::ClouddebuggerV2::StatusMessage]
299
300
  attr_accessor :status
300
301
 
301
- # Members contained or pointed to by the variable.
302
- # Corresponds to the JSON property `members`
303
- # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
304
- attr_accessor :members
305
-
306
302
  # Name of the variable, if any.
307
303
  # Corresponds to the JSON property `name`
308
304
  # @return [String]
309
305
  attr_accessor :name
310
306
 
311
- # Simple value of the variable.
312
- # Corresponds to the JSON property `value`
313
- # @return [String]
314
- attr_accessor :value
315
-
316
307
  # Variable type (e.g. `MyClass`). If the variable is split with
317
308
  # `var_table_index`, `type` goes next to `value`. The interpretation of
318
309
  # a type is agent specific. It is recommended to include the dynamic type
@@ -328,27 +319,39 @@ module Google
328
319
  # Update properties of this object
329
320
  def update!(**args)
330
321
  @var_table_index = args[:var_table_index] if args.key?(:var_table_index)
331
- @status = args[:status] if args.key?(:status)
322
+ @value = args[:value] if args.key?(:value)
332
323
  @members = args[:members] if args.key?(:members)
324
+ @status = args[:status] if args.key?(:status)
333
325
  @name = args[:name] if args.key?(:name)
334
- @value = args[:value] if args.key?(:value)
335
326
  @type = args[:type] if args.key?(:type)
336
327
  end
337
328
  end
338
329
 
339
- # Represents a location in the source code.
340
- class SourceLocation
330
+ # Represents a stack frame context.
331
+ class StackFrame
341
332
  include Google::Apis::Core::Hashable
342
333
 
343
- # Path to the source file within the source context of the target binary.
344
- # Corresponds to the JSON property `path`
345
- # @return [String]
346
- attr_accessor :path
334
+ # Set of arguments passed to this function.
335
+ # Note that this might not be populated for all stack frames.
336
+ # Corresponds to the JSON property `arguments`
337
+ # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
338
+ attr_accessor :arguments
347
339
 
348
- # Line inside the file. The first line in the file has the value `1`.
349
- # Corresponds to the JSON property `line`
350
- # @return [Fixnum]
351
- attr_accessor :line
340
+ # Set of local variables at the stack frame location.
341
+ # Note that this might not be populated for all stack frames.
342
+ # Corresponds to the JSON property `locals`
343
+ # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
344
+ attr_accessor :locals
345
+
346
+ # Represents a location in the source code.
347
+ # Corresponds to the JSON property `location`
348
+ # @return [Google::Apis::ClouddebuggerV2::SourceLocation]
349
+ attr_accessor :location
350
+
351
+ # Demangled function name at the call site.
352
+ # Corresponds to the JSON property `function`
353
+ # @return [String]
354
+ attr_accessor :function
352
355
 
353
356
  def initialize(**args)
354
357
  update!(**args)
@@ -356,41 +359,27 @@ module Google
356
359
 
357
360
  # Update properties of this object
358
361
  def update!(**args)
359
- @path = args[:path] if args.key?(:path)
360
- @line = args[:line] if args.key?(:line)
362
+ @arguments = args[:arguments] if args.key?(:arguments)
363
+ @locals = args[:locals] if args.key?(:locals)
364
+ @location = args[:location] if args.key?(:location)
365
+ @function = args[:function] if args.key?(:function)
361
366
  end
362
367
  end
363
368
 
364
- # A SourceContext referring to a Gerrit project.
365
- class GerritSourceContext
369
+ # A unique identifier for a cloud repo.
370
+ class RepoId
366
371
  include Google::Apis::Core::Hashable
367
372
 
368
- # The URI of a running Gerrit instance.
369
- # Corresponds to the JSON property `hostUri`
370
- # @return [String]
371
- attr_accessor :host_uri
372
-
373
- # The name of an alias (branch, tag, etc.).
374
- # Corresponds to the JSON property `aliasName`
375
- # @return [String]
376
- attr_accessor :alias_name
377
-
378
- # An alias to a repo revision.
379
- # Corresponds to the JSON property `aliasContext`
380
- # @return [Google::Apis::ClouddebuggerV2::AliasContext]
381
- attr_accessor :alias_context
382
-
383
- # The full project name within the host. Projects may be nested, so
384
- # "project/subproject" is a valid project name.
385
- # The "repo name" is hostURI/project.
386
- # Corresponds to the JSON property `gerritProject`
387
- # @return [String]
388
- attr_accessor :gerrit_project
373
+ # Selects a repo using a Google Cloud Platform project ID
374
+ # (e.g. winged-cargo-31) and a repo name within that project.
375
+ # Corresponds to the JSON property `projectRepoId`
376
+ # @return [Google::Apis::ClouddebuggerV2::ProjectRepoId]
377
+ attr_accessor :project_repo_id
389
378
 
390
- # A revision (commit) ID.
391
- # Corresponds to the JSON property `revisionId`
379
+ # A server-assigned, globally unique identifier.
380
+ # Corresponds to the JSON property `uid`
392
381
  # @return [String]
393
- attr_accessor :revision_id
382
+ attr_accessor :uid
394
383
 
395
384
  def initialize(**args)
396
385
  update!(**args)
@@ -398,11 +387,8 @@ module Google
398
387
 
399
388
  # Update properties of this object
400
389
  def update!(**args)
401
- @host_uri = args[:host_uri] if args.key?(:host_uri)
402
- @alias_name = args[:alias_name] if args.key?(:alias_name)
403
- @alias_context = args[:alias_context] if args.key?(:alias_context)
404
- @gerrit_project = args[:gerrit_project] if args.key?(:gerrit_project)
405
- @revision_id = args[:revision_id] if args.key?(:revision_id)
390
+ @project_repo_id = args[:project_repo_id] if args.key?(:project_repo_id)
391
+ @uid = args[:uid] if args.key?(:uid)
406
392
  end
407
393
  end
408
394
 
@@ -437,18 +423,21 @@ module Google
437
423
  end
438
424
  end
439
425
 
440
- # Response for registering a debuggee.
441
- class RegisterDebuggeeResponse
426
+ # An ExtendedSourceContext is a SourceContext combined with additional
427
+ # details describing the context.
428
+ class ExtendedSourceContext
442
429
  include Google::Apis::Core::Hashable
443
430
 
444
- # Represents the application to debug. The application may include one or more
445
- # replicated processes executing the same code. Each of these processes is
446
- # attached with a debugger agent, carrying out the debugging commands.
447
- # The agents attached to the same debuggee are identified by using exactly the
448
- # same field values when registering.
449
- # Corresponds to the JSON property `debuggee`
450
- # @return [Google::Apis::ClouddebuggerV2::Debuggee]
451
- attr_accessor :debuggee
431
+ # A SourceContext is a reference to a tree of files. A SourceContext together
432
+ # with a path point to a unique revision of a single file or directory.
433
+ # Corresponds to the JSON property `context`
434
+ # @return [Google::Apis::ClouddebuggerV2::SourceContext]
435
+ attr_accessor :context
436
+
437
+ # Labels with user defined metadata.
438
+ # Corresponds to the JSON property `labels`
439
+ # @return [Hash<String,String>]
440
+ attr_accessor :labels
452
441
 
453
442
  def initialize(**args)
454
443
  update!(**args)
@@ -456,18 +445,24 @@ module Google
456
445
 
457
446
  # Update properties of this object
458
447
  def update!(**args)
459
- @debuggee = args[:debuggee] if args.key?(:debuggee)
448
+ @context = args[:context] if args.key?(:context)
449
+ @labels = args[:labels] if args.key?(:labels)
460
450
  end
461
451
  end
462
452
 
463
- # Response for getting breakpoint information.
464
- class GetBreakpointResponse
453
+ # An alias to a repo revision.
454
+ class AliasContext
465
455
  include Google::Apis::Core::Hashable
466
456
 
467
- # Represents the breakpoint specification, status and results.
468
- # Corresponds to the JSON property `breakpoint`
469
- # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
470
- attr_accessor :breakpoint
457
+ # The alias name.
458
+ # Corresponds to the JSON property `name`
459
+ # @return [String]
460
+ attr_accessor :name
461
+
462
+ # The alias kind.
463
+ # Corresponds to the JSON property `kind`
464
+ # @return [String]
465
+ attr_accessor :kind
471
466
 
472
467
  def initialize(**args)
473
468
  update!(**args)
@@ -475,23 +470,23 @@ module Google
475
470
 
476
471
  # Update properties of this object
477
472
  def update!(**args)
478
- @breakpoint = args[:breakpoint] if args.key?(:breakpoint)
473
+ @name = args[:name] if args.key?(:name)
474
+ @kind = args[:kind] if args.key?(:kind)
479
475
  end
480
476
  end
481
477
 
482
- # An alias to a repo revision.
483
- class AliasContext
478
+ # Response for listing debuggees.
479
+ class ListDebuggeesResponse
484
480
  include Google::Apis::Core::Hashable
485
481
 
486
- # The alias kind.
487
- # Corresponds to the JSON property `kind`
488
- # @return [String]
489
- attr_accessor :kind
490
-
491
- # The alias name.
492
- # Corresponds to the JSON property `name`
493
- # @return [String]
494
- attr_accessor :name
482
+ # List of debuggees accessible to the calling user.
483
+ # Note that the `description` field is the only human readable field
484
+ # that should be displayed to the user.
485
+ # The fields `debuggee.id` and `description` fields are guaranteed to be
486
+ # set on each debuggee.
487
+ # Corresponds to the JSON property `debuggees`
488
+ # @return [Array<Google::Apis::ClouddebuggerV2::Debuggee>]
489
+ attr_accessor :debuggees
495
490
 
496
491
  def initialize(**args)
497
492
  update!(**args)
@@ -499,158 +494,140 @@ module Google
499
494
 
500
495
  # Update properties of this object
501
496
  def update!(**args)
502
- @kind = args[:kind] if args.key?(:kind)
503
- @name = args[:name] if args.key?(:name)
497
+ @debuggees = args[:debuggees] if args.key?(:debuggees)
504
498
  end
505
499
  end
506
500
 
507
- # A CloudWorkspaceId is a unique identifier for a cloud workspace.
508
- # A cloud workspace is a place associated with a repo where modified files
509
- # can be stored before they are committed.
510
- class CloudWorkspaceId
501
+ # A generic empty message that you can re-use to avoid defining duplicated
502
+ # empty messages in your APIs. A typical example is to use it as the request
503
+ # or the response type of an API method. For instance:
504
+ # service Foo `
505
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
506
+ # `
507
+ # The JSON representation for `Empty` is empty JSON object ````.
508
+ class Empty
511
509
  include Google::Apis::Core::Hashable
512
510
 
513
- # A unique identifier for a cloud repo.
514
- # Corresponds to the JSON property `repoId`
515
- # @return [Google::Apis::ClouddebuggerV2::RepoId]
516
- attr_accessor :repo_id
517
-
518
- # The unique name of the workspace within the repo. This is the name
519
- # chosen by the client in the Source API's CreateWorkspace method.
520
- # Corresponds to the JSON property `name`
521
- # @return [String]
522
- attr_accessor :name
523
-
524
511
  def initialize(**args)
525
512
  update!(**args)
526
513
  end
527
514
 
528
515
  # Update properties of this object
529
516
  def update!(**args)
530
- @repo_id = args[:repo_id] if args.key?(:repo_id)
531
- @name = args[:name] if args.key?(:name)
532
517
  end
533
518
  end
534
519
 
535
- # Represents the breakpoint specification, status and results.
536
- class Breakpoint
520
+ # Represents a location in the source code.
521
+ class SourceLocation
537
522
  include Google::Apis::Core::Hashable
538
523
 
539
- # Breakpoint identifier, unique in the scope of the debuggee.
540
- # Corresponds to the JSON property `id`
524
+ # Path to the source file within the source context of the target binary.
525
+ # Corresponds to the JSON property `path`
541
526
  # @return [String]
542
- attr_accessor :id
527
+ attr_accessor :path
543
528
 
544
- # The stack at breakpoint time.
545
- # Corresponds to the JSON property `stackFrames`
546
- # @return [Array<Google::Apis::ClouddebuggerV2::StackFrame>]
547
- attr_accessor :stack_frames
529
+ # Line inside the file. The first line in the file has the value `1`.
530
+ # Corresponds to the JSON property `line`
531
+ # @return [Fixnum]
532
+ attr_accessor :line
548
533
 
549
- # Represents a location in the source code.
550
- # Corresponds to the JSON property `location`
551
- # @return [Google::Apis::ClouddebuggerV2::SourceLocation]
552
- attr_accessor :location
534
+ def initialize(**args)
535
+ update!(**args)
536
+ end
553
537
 
554
- # Represents a contextual status message.
555
- # The message can indicate an error or informational status, and refer to
556
- # specific parts of the containing object.
557
- # For example, the `Breakpoint.status` field can indicate an error referring
558
- # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
559
- # Corresponds to the JSON property `status`
560
- # @return [Google::Apis::ClouddebuggerV2::StatusMessage]
561
- attr_accessor :status
538
+ # Update properties of this object
539
+ def update!(**args)
540
+ @path = args[:path] if args.key?(:path)
541
+ @line = args[:line] if args.key?(:line)
542
+ end
543
+ end
562
544
 
563
- # E-mail address of the user that created this breakpoint
564
- # Corresponds to the JSON property `userEmail`
565
- # @return [String]
566
- attr_accessor :user_email
545
+ # Represents the application to debug. The application may include one or more
546
+ # replicated processes executing the same code. Each of these processes is
547
+ # attached with a debugger agent, carrying out the debugging commands.
548
+ # The agents attached to the same debuggee are identified by using exactly the
549
+ # same field values when registering.
550
+ class Debuggee
551
+ include Google::Apis::Core::Hashable
567
552
 
568
- # Condition that triggers the breakpoint.
569
- # The condition is a compound boolean expression composed using expressions
570
- # in a programming language at the source location.
571
- # Corresponds to the JSON property `condition`
553
+ # Project the debuggee is associated with.
554
+ # Use the project number when registering a Google Cloud Platform project.
555
+ # Corresponds to the JSON property `project`
572
556
  # @return [String]
573
- attr_accessor :condition
557
+ attr_accessor :project
574
558
 
575
- # Time this breakpoint was finalized as seen by the server in seconds
576
- # resolution.
577
- # Corresponds to the JSON property `finalTime`
559
+ # Unique identifier for the debuggee generated by the controller service.
560
+ # Corresponds to the JSON property `id`
578
561
  # @return [String]
579
- attr_accessor :final_time
562
+ attr_accessor :id
580
563
 
581
- # Action that the agent should perform when the code at the
582
- # breakpoint location is hit.
583
- # Corresponds to the JSON property `action`
564
+ # Version ID of the agent release. The version ID is structured as
565
+ # following: `domain/type/vmajor.minor` (for example
566
+ # `google.com/gcp-java/v1.1`).
567
+ # Corresponds to the JSON property `agentVersion`
584
568
  # @return [String]
585
- attr_accessor :action
569
+ attr_accessor :agent_version
586
570
 
587
- # A set of custom breakpoint properties, populated by the agent, to be
588
- # displayed to the user.
589
- # Corresponds to the JSON property `labels`
590
- # @return [Hash<String,String>]
591
- attr_accessor :labels
571
+ # If set to `true`, indicates that the agent should disable itself and
572
+ # detach from the debuggee.
573
+ # Corresponds to the JSON property `isDisabled`
574
+ # @return [Boolean]
575
+ attr_accessor :is_disabled
576
+ alias_method :is_disabled?, :is_disabled
592
577
 
593
- # Only relevant when action is `LOG`. Defines the message to log when
594
- # the breakpoint hits. The message may include parameter placeholders `$0`,
595
- # `$1`, etc. These placeholders are replaced with the evaluated value
596
- # of the appropriate expression. Expressions not referenced in
597
- # `log_message_format` are not logged.
598
- # Example: `Message received, id = $0, count = $1` with
599
- # `expressions` = `[ message.id, message.count ]`.
600
- # Corresponds to the JSON property `logMessageFormat`
578
+ # Human readable description of the debuggee.
579
+ # Including a human-readable project name, environment name and version
580
+ # information is recommended.
581
+ # Corresponds to the JSON property `description`
601
582
  # @return [String]
602
- attr_accessor :log_message_format
583
+ attr_accessor :description
603
584
 
604
- # Time this breakpoint was created by the server in seconds resolution.
605
- # Corresponds to the JSON property `createTime`
585
+ # Debuggee uniquifier within the project.
586
+ # Any string that identifies the application within the project can be used.
587
+ # Including environment and version or build IDs is recommended.
588
+ # Corresponds to the JSON property `uniquifier`
606
589
  # @return [String]
607
- attr_accessor :create_time
590
+ attr_accessor :uniquifier
608
591
 
609
- # Indicates the severity of the log. Only relevant when action is `LOG`.
610
- # Corresponds to the JSON property `logLevel`
611
- # @return [String]
612
- attr_accessor :log_level
592
+ # References to the locations and revisions of the source code used in the
593
+ # deployed application.
594
+ # NOTE: This field is deprecated. Consumers should use
595
+ # `ext_source_contexts` if it is not empty. Debug agents should populate
596
+ # both this field and `ext_source_contexts`.
597
+ # Corresponds to the JSON property `sourceContexts`
598
+ # @return [Array<Google::Apis::ClouddebuggerV2::SourceContext>]
599
+ attr_accessor :source_contexts
613
600
 
614
- # Values of evaluated expressions at breakpoint time.
615
- # The evaluated expressions appear in exactly the same order they
616
- # are listed in the `expressions` field.
617
- # The `name` field holds the original expression text, the `value` or
618
- # `members` field holds the result of the evaluated expression.
619
- # If the expression cannot be evaluated, the `status` inside the `Variable`
620
- # will indicate an error and contain the error text.
621
- # Corresponds to the JSON property `evaluatedExpressions`
622
- # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
623
- attr_accessor :evaluated_expressions
601
+ # References to the locations and revisions of the source code used in the
602
+ # deployed application.
603
+ # Contexts describing a remote repo related to the source code
604
+ # have a `category` label of `remote_repo`. Source snapshot source
605
+ # contexts have a `category` of `snapshot`.
606
+ # Corresponds to the JSON property `extSourceContexts`
607
+ # @return [Array<Google::Apis::ClouddebuggerV2::ExtendedSourceContext>]
608
+ attr_accessor :ext_source_contexts
624
609
 
625
- # When true, indicates that this is a final result and the
626
- # breakpoint state will not change from here on.
627
- # Corresponds to the JSON property `isFinalState`
628
- # @return [Boolean]
629
- attr_accessor :is_final_state
630
- alias_method :is_final_state?, :is_final_state
610
+ # A set of custom debuggee properties, populated by the agent, to be
611
+ # displayed to the user.
612
+ # Corresponds to the JSON property `labels`
613
+ # @return [Hash<String,String>]
614
+ attr_accessor :labels
631
615
 
632
- # List of read-only expressions to evaluate at the breakpoint location.
633
- # The expressions are composed using expressions in the programming language
634
- # at the source location. If the breakpoint action is `LOG`, the evaluated
635
- # expressions are included in log statements.
636
- # Corresponds to the JSON property `expressions`
637
- # @return [Array<String>]
638
- attr_accessor :expressions
616
+ # Represents a contextual status message.
617
+ # The message can indicate an error or informational status, and refer to
618
+ # specific parts of the containing object.
619
+ # For example, the `Breakpoint.status` field can indicate an error referring
620
+ # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
621
+ # Corresponds to the JSON property `status`
622
+ # @return [Google::Apis::ClouddebuggerV2::StatusMessage]
623
+ attr_accessor :status
639
624
 
640
- # The `variable_table` exists to aid with computation, memory and network
641
- # traffic optimization. It enables storing a variable once and reference
642
- # it from multiple variables, including variables stored in the
643
- # `variable_table` itself.
644
- # For example, the same `this` object, which may appear at many levels of
645
- # the stack, can have all of its data stored once in this table. The
646
- # stack frame variables then would hold only a reference to it.
647
- # The variable `var_table_index` field is an index into this repeated field.
648
- # The stored objects are nameless and get their name from the referencing
649
- # variable. The effective variable is a merge of the referencing variable
650
- # and the referenced variable.
651
- # Corresponds to the JSON property `variableTable`
652
- # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
653
- attr_accessor :variable_table
625
+ # If set to `true`, indicates that the debuggee is considered as inactive by
626
+ # the Controller service.
627
+ # Corresponds to the JSON property `isInactive`
628
+ # @return [Boolean]
629
+ attr_accessor :is_inactive
630
+ alias_method :is_inactive?, :is_inactive
654
631
 
655
632
  def initialize(**args)
656
633
  update!(**args)
@@ -658,33 +635,34 @@ module Google
658
635
 
659
636
  # Update properties of this object
660
637
  def update!(**args)
638
+ @project = args[:project] if args.key?(:project)
661
639
  @id = args[:id] if args.key?(:id)
662
- @stack_frames = args[:stack_frames] if args.key?(:stack_frames)
663
- @location = args[:location] if args.key?(:location)
664
- @status = args[:status] if args.key?(:status)
665
- @user_email = args[:user_email] if args.key?(:user_email)
666
- @condition = args[:condition] if args.key?(:condition)
667
- @final_time = args[:final_time] if args.key?(:final_time)
668
- @action = args[:action] if args.key?(:action)
640
+ @agent_version = args[:agent_version] if args.key?(:agent_version)
641
+ @is_disabled = args[:is_disabled] if args.key?(:is_disabled)
642
+ @description = args[:description] if args.key?(:description)
643
+ @uniquifier = args[:uniquifier] if args.key?(:uniquifier)
644
+ @source_contexts = args[:source_contexts] if args.key?(:source_contexts)
645
+ @ext_source_contexts = args[:ext_source_contexts] if args.key?(:ext_source_contexts)
669
646
  @labels = args[:labels] if args.key?(:labels)
670
- @log_message_format = args[:log_message_format] if args.key?(:log_message_format)
671
- @create_time = args[:create_time] if args.key?(:create_time)
672
- @log_level = args[:log_level] if args.key?(:log_level)
673
- @evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions)
674
- @is_final_state = args[:is_final_state] if args.key?(:is_final_state)
675
- @expressions = args[:expressions] if args.key?(:expressions)
676
- @variable_table = args[:variable_table] if args.key?(:variable_table)
647
+ @status = args[:status] if args.key?(:status)
648
+ @is_inactive = args[:is_inactive] if args.key?(:is_inactive)
677
649
  end
678
650
  end
679
651
 
680
- # Response for setting a breakpoint.
681
- class SetBreakpointResponse
652
+ # Selects a repo using a Google Cloud Platform project ID
653
+ # (e.g. winged-cargo-31) and a repo name within that project.
654
+ class ProjectRepoId
682
655
  include Google::Apis::Core::Hashable
683
656
 
684
- # Represents the breakpoint specification, status and results.
685
- # Corresponds to the JSON property `breakpoint`
686
- # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
687
- attr_accessor :breakpoint
657
+ # The ID of the project.
658
+ # Corresponds to the JSON property `projectId`
659
+ # @return [String]
660
+ attr_accessor :project_id
661
+
662
+ # The name of the repo. Leave empty for the default repo.
663
+ # Corresponds to the JSON property `repoName`
664
+ # @return [String]
665
+ attr_accessor :repo_name
688
666
 
689
667
  def initialize(**args)
690
668
  update!(**args)
@@ -692,7 +670,8 @@ module Google
692
670
 
693
671
  # Update properties of this object
694
672
  def update!(**args)
695
- @breakpoint = args[:breakpoint] if args.key?(:breakpoint)
673
+ @project_id = args[:project_id] if args.key?(:project_id)
674
+ @repo_name = args[:repo_name] if args.key?(:repo_name)
696
675
  end
697
676
  end
698
677
 
@@ -700,12 +679,11 @@ module Google
700
679
  class ListActiveBreakpointsResponse
701
680
  include Google::Apis::Core::Hashable
702
681
 
703
- # The `wait_expired` field is set to true by the server when the
704
- # request times out and the field `success_on_timeout` is set to true.
705
- # Corresponds to the JSON property `waitExpired`
706
- # @return [Boolean]
707
- attr_accessor :wait_expired
708
- alias_method :wait_expired?, :wait_expired
682
+ # A wait token that can be used in the next method call to block until
683
+ # the list of breakpoints changes.
684
+ # Corresponds to the JSON property `nextWaitToken`
685
+ # @return [String]
686
+ attr_accessor :next_wait_token
709
687
 
710
688
  # List of all active breakpoints.
711
689
  # The fields `id` and `location` are guaranteed to be set on each breakpoint.
@@ -713,11 +691,12 @@ module Google
713
691
  # @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
714
692
  attr_accessor :breakpoints
715
693
 
716
- # A wait token that can be used in the next method call to block until
717
- # the list of breakpoints changes.
718
- # Corresponds to the JSON property `nextWaitToken`
719
- # @return [String]
720
- attr_accessor :next_wait_token
694
+ # The `wait_expired` field is set to true by the server when the
695
+ # request times out and the field `success_on_timeout` is set to true.
696
+ # Corresponds to the JSON property `waitExpired`
697
+ # @return [Boolean]
698
+ attr_accessor :wait_expired
699
+ alias_method :wait_expired?, :wait_expired
721
700
 
722
701
  def initialize(**args)
723
702
  update!(**args)
@@ -725,27 +704,28 @@ module Google
725
704
 
726
705
  # Update properties of this object
727
706
  def update!(**args)
728
- @wait_expired = args[:wait_expired] if args.key?(:wait_expired)
729
- @breakpoints = args[:breakpoints] if args.key?(:breakpoints)
730
707
  @next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token)
708
+ @breakpoints = args[:breakpoints] if args.key?(:breakpoints)
709
+ @wait_expired = args[:wait_expired] if args.key?(:wait_expired)
731
710
  end
732
711
  end
733
712
 
734
- # An ExtendedSourceContext is a SourceContext combined with additional
735
- # details describing the context.
736
- class ExtendedSourceContext
713
+ # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
714
+ class CloudWorkspaceSourceContext
737
715
  include Google::Apis::Core::Hashable
738
716
 
739
- # Labels with user defined metadata.
740
- # Corresponds to the JSON property `labels`
741
- # @return [Hash<String,String>]
742
- attr_accessor :labels
717
+ # The ID of the snapshot.
718
+ # An empty snapshot_id refers to the most recent snapshot.
719
+ # Corresponds to the JSON property `snapshotId`
720
+ # @return [String]
721
+ attr_accessor :snapshot_id
743
722
 
744
- # A SourceContext is a reference to a tree of files. A SourceContext together
745
- # with a path point to a unique revision of a single file or directory.
746
- # Corresponds to the JSON property `context`
747
- # @return [Google::Apis::ClouddebuggerV2::SourceContext]
748
- attr_accessor :context
723
+ # A CloudWorkspaceId is a unique identifier for a cloud workspace.
724
+ # A cloud workspace is a place associated with a repo where modified files
725
+ # can be stored before they are committed.
726
+ # Corresponds to the JSON property `workspaceId`
727
+ # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceId]
728
+ attr_accessor :workspace_id
749
729
 
750
730
  def initialize(**args)
751
731
  update!(**args)
@@ -753,74 +733,55 @@ module Google
753
733
 
754
734
  # Update properties of this object
755
735
  def update!(**args)
756
- @labels = args[:labels] if args.key?(:labels)
757
- @context = args[:context] if args.key?(:context)
736
+ @snapshot_id = args[:snapshot_id] if args.key?(:snapshot_id)
737
+ @workspace_id = args[:workspace_id] if args.key?(:workspace_id)
758
738
  end
759
739
  end
760
740
 
761
- # Request to register a debuggee.
762
- class RegisterDebuggeeRequest
741
+ # Response for updating an active breakpoint.
742
+ # The message is defined to allow future extensions.
743
+ class UpdateActiveBreakpointResponse
763
744
  include Google::Apis::Core::Hashable
764
745
 
765
- # Represents the application to debug. The application may include one or more
766
- # replicated processes executing the same code. Each of these processes is
767
- # attached with a debugger agent, carrying out the debugging commands.
768
- # The agents attached to the same debuggee are identified by using exactly the
769
- # same field values when registering.
770
- # Corresponds to the JSON property `debuggee`
771
- # @return [Google::Apis::ClouddebuggerV2::Debuggee]
772
- attr_accessor :debuggee
773
-
774
746
  def initialize(**args)
775
747
  update!(**args)
776
748
  end
777
749
 
778
750
  # Update properties of this object
779
751
  def update!(**args)
780
- @debuggee = args[:debuggee] if args.key?(:debuggee)
781
752
  end
782
753
  end
783
754
 
784
- # A unique identifier for a cloud repo.
785
- class RepoId
755
+ # A SourceContext referring to a Gerrit project.
756
+ class GerritSourceContext
786
757
  include Google::Apis::Core::Hashable
787
758
 
788
- # Selects a repo using a Google Cloud Platform project ID
789
- # (e.g. winged-cargo-31) and a repo name within that project.
790
- # Corresponds to the JSON property `projectRepoId`
791
- # @return [Google::Apis::ClouddebuggerV2::ProjectRepoId]
792
- attr_accessor :project_repo_id
793
-
794
- # A server-assigned, globally unique identifier.
795
- # Corresponds to the JSON property `uid`
759
+ # The URI of a running Gerrit instance.
760
+ # Corresponds to the JSON property `hostUri`
796
761
  # @return [String]
797
- attr_accessor :uid
762
+ attr_accessor :host_uri
798
763
 
799
- def initialize(**args)
800
- update!(**args)
801
- end
764
+ # A revision (commit) ID.
765
+ # Corresponds to the JSON property `revisionId`
766
+ # @return [String]
767
+ attr_accessor :revision_id
802
768
 
803
- # Update properties of this object
804
- def update!(**args)
805
- @project_repo_id = args[:project_repo_id] if args.key?(:project_repo_id)
806
- @uid = args[:uid] if args.key?(:uid)
807
- end
808
- end
769
+ # The name of an alias (branch, tag, etc.).
770
+ # Corresponds to the JSON property `aliasName`
771
+ # @return [String]
772
+ attr_accessor :alias_name
809
773
 
810
- # Selects a repo using a Google Cloud Platform project ID
811
- # (e.g. winged-cargo-31) and a repo name within that project.
812
- class ProjectRepoId
813
- include Google::Apis::Core::Hashable
814
-
815
- # The name of the repo. Leave empty for the default repo.
816
- # Corresponds to the JSON property `repoName`
774
+ # The full project name within the host. Projects may be nested, so
775
+ # "project/subproject" is a valid project name.
776
+ # The "repo name" is hostURI/project.
777
+ # Corresponds to the JSON property `gerritProject`
817
778
  # @return [String]
818
- attr_accessor :repo_name
779
+ attr_accessor :gerrit_project
819
780
 
820
- # The ID of the project.
821
- # Corresponds to the JSON property `projectId`
822
- # @return [String]
823
- attr_accessor :project_id
781
+ # An alias to a repo revision.
782
+ # Corresponds to the JSON property `aliasContext`
783
+ # @return [Google::Apis::ClouddebuggerV2::AliasContext]
784
+ attr_accessor :alias_context
824
785
 
825
786
  def initialize(**args)
826
787
  update!(**args)
@@ -828,27 +789,30 @@ module Google
828
789
 
829
790
  # Update properties of this object
830
791
  def update!(**args)
831
- @repo_name = args[:repo_name] if args.key?(:repo_name)
832
- @project_id = args[:project_id] if args.key?(:project_id)
792
+ @host_uri = args[:host_uri] if args.key?(:host_uri)
793
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
794
+ @alias_name = args[:alias_name] if args.key?(:alias_name)
795
+ @gerrit_project = args[:gerrit_project] if args.key?(:gerrit_project)
796
+ @alias_context = args[:alias_context] if args.key?(:alias_context)
833
797
  end
834
798
  end
835
799
 
836
- # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
837
- class CloudWorkspaceSourceContext
800
+ # A CloudWorkspaceId is a unique identifier for a cloud workspace.
801
+ # A cloud workspace is a place associated with a repo where modified files
802
+ # can be stored before they are committed.
803
+ class CloudWorkspaceId
838
804
  include Google::Apis::Core::Hashable
839
805
 
840
- # The ID of the snapshot.
841
- # An empty snapshot_id refers to the most recent snapshot.
842
- # Corresponds to the JSON property `snapshotId`
843
- # @return [String]
844
- attr_accessor :snapshot_id
806
+ # A unique identifier for a cloud repo.
807
+ # Corresponds to the JSON property `repoId`
808
+ # @return [Google::Apis::ClouddebuggerV2::RepoId]
809
+ attr_accessor :repo_id
845
810
 
846
- # A CloudWorkspaceId is a unique identifier for a cloud workspace.
847
- # A cloud workspace is a place associated with a repo where modified files
848
- # can be stored before they are committed.
849
- # Corresponds to the JSON property `workspaceId`
850
- # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceId]
851
- attr_accessor :workspace_id
811
+ # The unique name of the workspace within the repo. This is the name
812
+ # chosen by the client in the Source API's CreateWorkspace method.
813
+ # Corresponds to the JSON property `name`
814
+ # @return [String]
815
+ attr_accessor :name
852
816
 
853
817
  def initialize(**args)
854
818
  update!(**args)
@@ -856,23 +820,28 @@ module Google
856
820
 
857
821
  # Update properties of this object
858
822
  def update!(**args)
859
- @snapshot_id = args[:snapshot_id] if args.key?(:snapshot_id)
860
- @workspace_id = args[:workspace_id] if args.key?(:workspace_id)
823
+ @repo_id = args[:repo_id] if args.key?(:repo_id)
824
+ @name = args[:name] if args.key?(:name)
861
825
  end
862
826
  end
863
827
 
864
- # Response for listing debuggees.
865
- class ListDebuggeesResponse
828
+ # Response for listing breakpoints.
829
+ class ListBreakpointsResponse
866
830
  include Google::Apis::Core::Hashable
867
831
 
868
- # List of debuggees accessible to the calling user.
869
- # Note that the `description` field is the only human readable field
870
- # that should be displayed to the user.
871
- # The fields `debuggee.id` and `description` fields are guaranteed to be
872
- # set on each debuggee.
873
- # Corresponds to the JSON property `debuggees`
874
- # @return [Array<Google::Apis::ClouddebuggerV2::Debuggee>]
875
- attr_accessor :debuggees
832
+ # List of breakpoints matching the request.
833
+ # The fields `id` and `location` are guaranteed to be set on each breakpoint.
834
+ # The fields: `stack_frames`, `evaluated_expressions` and `variable_table`
835
+ # are cleared on each breakpoint regardless of it's status.
836
+ # Corresponds to the JSON property `breakpoints`
837
+ # @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
838
+ attr_accessor :breakpoints
839
+
840
+ # A wait token that can be used in the next call to `list` (REST) or
841
+ # `ListBreakpoints` (RPC) to block until the list of breakpoints has changes.
842
+ # Corresponds to the JSON property `nextWaitToken`
843
+ # @return [String]
844
+ attr_accessor :next_wait_token
876
845
 
877
846
  def initialize(**args)
878
847
  update!(**args)
@@ -880,93 +849,130 @@ module Google
880
849
 
881
850
  # Update properties of this object
882
851
  def update!(**args)
883
- @debuggees = args[:debuggees] if args.key?(:debuggees)
852
+ @breakpoints = args[:breakpoints] if args.key?(:breakpoints)
853
+ @next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token)
884
854
  end
885
855
  end
886
856
 
887
- # A CloudRepoSourceContext denotes a particular revision in a cloud
888
- # repo (a repo hosted by the Google Cloud Platform).
889
- class CloudRepoSourceContext
857
+ # Represents the breakpoint specification, status and results.
858
+ class Breakpoint
890
859
  include Google::Apis::Core::Hashable
891
860
 
892
- # The name of an alias (branch, tag, etc.).
893
- # Corresponds to the JSON property `aliasName`
894
- # @return [String]
895
- attr_accessor :alias_name
861
+ # List of read-only expressions to evaluate at the breakpoint location.
862
+ # The expressions are composed using expressions in the programming language
863
+ # at the source location. If the breakpoint action is `LOG`, the evaluated
864
+ # expressions are included in log statements.
865
+ # Corresponds to the JSON property `expressions`
866
+ # @return [Array<String>]
867
+ attr_accessor :expressions
896
868
 
897
- # An alias to a repo revision.
898
- # Corresponds to the JSON property `aliasContext`
899
- # @return [Google::Apis::ClouddebuggerV2::AliasContext]
900
- attr_accessor :alias_context
869
+ # Values of evaluated expressions at breakpoint time.
870
+ # The evaluated expressions appear in exactly the same order they
871
+ # are listed in the `expressions` field.
872
+ # The `name` field holds the original expression text, the `value` or
873
+ # `members` field holds the result of the evaluated expression.
874
+ # If the expression cannot be evaluated, the `status` inside the `Variable`
875
+ # will indicate an error and contain the error text.
876
+ # Corresponds to the JSON property `evaluatedExpressions`
877
+ # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
878
+ attr_accessor :evaluated_expressions
901
879
 
902
- # A unique identifier for a cloud repo.
903
- # Corresponds to the JSON property `repoId`
904
- # @return [Google::Apis::ClouddebuggerV2::RepoId]
905
- attr_accessor :repo_id
880
+ # When true, indicates that this is a final result and the
881
+ # breakpoint state will not change from here on.
882
+ # Corresponds to the JSON property `isFinalState`
883
+ # @return [Boolean]
884
+ attr_accessor :is_final_state
885
+ alias_method :is_final_state?, :is_final_state
906
886
 
907
- # A revision ID.
908
- # Corresponds to the JSON property `revisionId`
887
+ # The stack at breakpoint time.
888
+ # Corresponds to the JSON property `stackFrames`
889
+ # @return [Array<Google::Apis::ClouddebuggerV2::StackFrame>]
890
+ attr_accessor :stack_frames
891
+
892
+ # Condition that triggers the breakpoint.
893
+ # The condition is a compound boolean expression composed using expressions
894
+ # in a programming language at the source location.
895
+ # Corresponds to the JSON property `condition`
909
896
  # @return [String]
910
- attr_accessor :revision_id
897
+ attr_accessor :condition
911
898
 
912
- def initialize(**args)
913
- update!(**args)
914
- end
899
+ # Represents a contextual status message.
900
+ # The message can indicate an error or informational status, and refer to
901
+ # specific parts of the containing object.
902
+ # For example, the `Breakpoint.status` field can indicate an error referring
903
+ # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
904
+ # Corresponds to the JSON property `status`
905
+ # @return [Google::Apis::ClouddebuggerV2::StatusMessage]
906
+ attr_accessor :status
915
907
 
916
- # Update properties of this object
917
- def update!(**args)
918
- @alias_name = args[:alias_name] if args.key?(:alias_name)
919
- @alias_context = args[:alias_context] if args.key?(:alias_context)
920
- @repo_id = args[:repo_id] if args.key?(:repo_id)
921
- @revision_id = args[:revision_id] if args.key?(:revision_id)
922
- end
923
- end
908
+ # E-mail address of the user that created this breakpoint
909
+ # Corresponds to the JSON property `userEmail`
910
+ # @return [String]
911
+ attr_accessor :user_email
924
912
 
925
- # Request to update an active breakpoint.
926
- class UpdateActiveBreakpointRequest
927
- include Google::Apis::Core::Hashable
913
+ # Action that the agent should perform when the code at the
914
+ # breakpoint location is hit.
915
+ # Corresponds to the JSON property `action`
916
+ # @return [String]
917
+ attr_accessor :action
928
918
 
929
- # Represents the breakpoint specification, status and results.
930
- # Corresponds to the JSON property `breakpoint`
931
- # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
932
- attr_accessor :breakpoint
919
+ # Indicates the severity of the log. Only relevant when action is `LOG`.
920
+ # Corresponds to the JSON property `logLevel`
921
+ # @return [String]
922
+ attr_accessor :log_level
933
923
 
934
- def initialize(**args)
935
- update!(**args)
936
- end
924
+ # Breakpoint identifier, unique in the scope of the debuggee.
925
+ # Corresponds to the JSON property `id`
926
+ # @return [String]
927
+ attr_accessor :id
937
928
 
938
- # Update properties of this object
939
- def update!(**args)
940
- @breakpoint = args[:breakpoint] if args.key?(:breakpoint)
941
- end
942
- end
929
+ # Represents a location in the source code.
930
+ # Corresponds to the JSON property `location`
931
+ # @return [Google::Apis::ClouddebuggerV2::SourceLocation]
932
+ attr_accessor :location
943
933
 
944
- # A SourceContext is a reference to a tree of files. A SourceContext together
945
- # with a path point to a unique revision of a single file or directory.
946
- class SourceContext
947
- include Google::Apis::Core::Hashable
934
+ # Time this breakpoint was finalized as seen by the server in seconds
935
+ # resolution.
936
+ # Corresponds to the JSON property `finalTime`
937
+ # @return [String]
938
+ attr_accessor :final_time
948
939
 
949
- # A CloudRepoSourceContext denotes a particular revision in a cloud
950
- # repo (a repo hosted by the Google Cloud Platform).
951
- # Corresponds to the JSON property `cloudRepo`
952
- # @return [Google::Apis::ClouddebuggerV2::CloudRepoSourceContext]
953
- attr_accessor :cloud_repo
940
+ # The `variable_table` exists to aid with computation, memory and network
941
+ # traffic optimization. It enables storing a variable once and reference
942
+ # it from multiple variables, including variables stored in the
943
+ # `variable_table` itself.
944
+ # For example, the same `this` object, which may appear at many levels of
945
+ # the stack, can have all of its data stored once in this table. The
946
+ # stack frame variables then would hold only a reference to it.
947
+ # The variable `var_table_index` field is an index into this repeated field.
948
+ # The stored objects are nameless and get their name from the referencing
949
+ # variable. The effective variable is a merge of the referencing variable
950
+ # and the referenced variable.
951
+ # Corresponds to the JSON property `variableTable`
952
+ # @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
953
+ attr_accessor :variable_table
954
954
 
955
- # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
956
- # Corresponds to the JSON property `cloudWorkspace`
957
- # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext]
958
- attr_accessor :cloud_workspace
955
+ # A set of custom breakpoint properties, populated by the agent, to be
956
+ # displayed to the user.
957
+ # Corresponds to the JSON property `labels`
958
+ # @return [Hash<String,String>]
959
+ attr_accessor :labels
959
960
 
960
- # A GitSourceContext denotes a particular revision in a third party Git
961
- # repository (e.g. GitHub).
962
- # Corresponds to the JSON property `git`
963
- # @return [Google::Apis::ClouddebuggerV2::GitSourceContext]
964
- attr_accessor :git
961
+ # Time this breakpoint was created by the server in seconds resolution.
962
+ # Corresponds to the JSON property `createTime`
963
+ # @return [String]
964
+ attr_accessor :create_time
965
965
 
966
- # A SourceContext referring to a Gerrit project.
967
- # Corresponds to the JSON property `gerrit`
968
- # @return [Google::Apis::ClouddebuggerV2::GerritSourceContext]
969
- attr_accessor :gerrit
966
+ # Only relevant when action is `LOG`. Defines the message to log when
967
+ # the breakpoint hits. The message may include parameter placeholders `$0`,
968
+ # `$1`, etc. These placeholders are replaced with the evaluated value
969
+ # of the appropriate expression. Expressions not referenced in
970
+ # `log_message_format` are not logged.
971
+ # Example: `Message received, id = $0, count = $1` with
972
+ # `expressions` = `[ message.id, message.count ]`.
973
+ # Corresponds to the JSON property `logMessageFormat`
974
+ # @return [String]
975
+ attr_accessor :log_message_format
970
976
 
971
977
  def initialize(**args)
972
978
  update!(**args)
@@ -974,47 +980,52 @@ module Google
974
980
 
975
981
  # Update properties of this object
976
982
  def update!(**args)
977
- @cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo)
978
- @cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace)
979
- @git = args[:git] if args.key?(:git)
980
- @gerrit = args[:gerrit] if args.key?(:gerrit)
983
+ @expressions = args[:expressions] if args.key?(:expressions)
984
+ @evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions)
985
+ @is_final_state = args[:is_final_state] if args.key?(:is_final_state)
986
+ @stack_frames = args[:stack_frames] if args.key?(:stack_frames)
987
+ @condition = args[:condition] if args.key?(:condition)
988
+ @status = args[:status] if args.key?(:status)
989
+ @user_email = args[:user_email] if args.key?(:user_email)
990
+ @action = args[:action] if args.key?(:action)
991
+ @log_level = args[:log_level] if args.key?(:log_level)
992
+ @id = args[:id] if args.key?(:id)
993
+ @location = args[:location] if args.key?(:location)
994
+ @final_time = args[:final_time] if args.key?(:final_time)
995
+ @variable_table = args[:variable_table] if args.key?(:variable_table)
996
+ @labels = args[:labels] if args.key?(:labels)
997
+ @create_time = args[:create_time] if args.key?(:create_time)
998
+ @log_message_format = args[:log_message_format] if args.key?(:log_message_format)
981
999
  end
982
1000
  end
983
1001
 
984
- # A generic empty message that you can re-use to avoid defining duplicated
985
- # empty messages in your APIs. A typical example is to use it as the request
986
- # or the response type of an API method. For instance:
987
- # service Foo `
988
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
989
- # `
990
- # The JSON representation for `Empty` is empty JSON object ````.
991
- class Empty
1002
+ # Response for setting a breakpoint.
1003
+ class SetBreakpointResponse
992
1004
  include Google::Apis::Core::Hashable
993
1005
 
1006
+ # Represents the breakpoint specification, status and results.
1007
+ # Corresponds to the JSON property `breakpoint`
1008
+ # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
1009
+ attr_accessor :breakpoint
1010
+
994
1011
  def initialize(**args)
995
1012
  update!(**args)
996
1013
  end
997
1014
 
998
1015
  # Update properties of this object
999
1016
  def update!(**args)
1017
+ @breakpoint = args[:breakpoint] if args.key?(:breakpoint)
1000
1018
  end
1001
1019
  end
1002
1020
 
1003
- # A GitSourceContext denotes a particular revision in a third party Git
1004
- # repository (e.g. GitHub).
1005
- class GitSourceContext
1021
+ # Request to update an active breakpoint.
1022
+ class UpdateActiveBreakpointRequest
1006
1023
  include Google::Apis::Core::Hashable
1007
1024
 
1008
- # Git repository URL.
1009
- # Corresponds to the JSON property `url`
1010
- # @return [String]
1011
- attr_accessor :url
1012
-
1013
- # Git commit hash.
1014
- # required.
1015
- # Corresponds to the JSON property `revisionId`
1016
- # @return [String]
1017
- attr_accessor :revision_id
1025
+ # Represents the breakpoint specification, status and results.
1026
+ # Corresponds to the JSON property `breakpoint`
1027
+ # @return [Google::Apis::ClouddebuggerV2::Breakpoint]
1028
+ attr_accessor :breakpoint
1018
1029
 
1019
1030
  def initialize(**args)
1020
1031
  update!(**args)
@@ -1022,51 +1033,36 @@ module Google
1022
1033
 
1023
1034
  # Update properties of this object
1024
1035
  def update!(**args)
1025
- @url = args[:url] if args.key?(:url)
1026
- @revision_id = args[:revision_id] if args.key?(:revision_id)
1036
+ @breakpoint = args[:breakpoint] if args.key?(:breakpoint)
1027
1037
  end
1028
1038
  end
1029
1039
 
1030
- # Represents a contextual status message.
1031
- # The message can indicate an error or informational status, and refer to
1032
- # specific parts of the containing object.
1033
- # For example, the `Breakpoint.status` field can indicate an error referring
1034
- # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
1035
- class StatusMessage
1040
+ # A SourceContext is a reference to a tree of files. A SourceContext together
1041
+ # with a path point to a unique revision of a single file or directory.
1042
+ class SourceContext
1036
1043
  include Google::Apis::Core::Hashable
1037
1044
 
1038
- # Distinguishes errors from informational messages.
1039
- # Corresponds to the JSON property `isError`
1040
- # @return [Boolean]
1041
- attr_accessor :is_error
1042
- alias_method :is_error?, :is_error
1043
-
1044
- # Represents a message with parameters.
1045
- # Corresponds to the JSON property `description`
1046
- # @return [Google::Apis::ClouddebuggerV2::FormatMessage]
1047
- attr_accessor :description
1048
-
1049
- # Reference to which the message applies.
1050
- # Corresponds to the JSON property `refersTo`
1051
- # @return [String]
1052
- attr_accessor :refers_to
1045
+ # A GitSourceContext denotes a particular revision in a third party Git
1046
+ # repository (e.g. GitHub).
1047
+ # Corresponds to the JSON property `git`
1048
+ # @return [Google::Apis::ClouddebuggerV2::GitSourceContext]
1049
+ attr_accessor :git
1053
1050
 
1054
- def initialize(**args)
1055
- update!(**args)
1056
- end
1051
+ # A SourceContext referring to a Gerrit project.
1052
+ # Corresponds to the JSON property `gerrit`
1053
+ # @return [Google::Apis::ClouddebuggerV2::GerritSourceContext]
1054
+ attr_accessor :gerrit
1057
1055
 
1058
- # Update properties of this object
1059
- def update!(**args)
1060
- @is_error = args[:is_error] if args.key?(:is_error)
1061
- @description = args[:description] if args.key?(:description)
1062
- @refers_to = args[:refers_to] if args.key?(:refers_to)
1063
- end
1064
- end
1056
+ # A CloudRepoSourceContext denotes a particular revision in a cloud
1057
+ # repo (a repo hosted by the Google Cloud Platform).
1058
+ # Corresponds to the JSON property `cloudRepo`
1059
+ # @return [Google::Apis::ClouddebuggerV2::CloudRepoSourceContext]
1060
+ attr_accessor :cloud_repo
1065
1061
 
1066
- # Response for updating an active breakpoint.
1067
- # The message is defined to allow future extensions.
1068
- class UpdateActiveBreakpointResponse
1069
- include Google::Apis::Core::Hashable
1062
+ # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
1063
+ # Corresponds to the JSON property `cloudWorkspace`
1064
+ # @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext]
1065
+ attr_accessor :cloud_workspace
1070
1066
 
1071
1067
  def initialize(**args)
1072
1068
  update!(**args)
@@ -1074,6 +1070,10 @@ module Google
1074
1070
 
1075
1071
  # Update properties of this object
1076
1072
  def update!(**args)
1073
+ @git = args[:git] if args.key?(:git)
1074
+ @gerrit = args[:gerrit] if args.key?(:gerrit)
1075
+ @cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo)
1076
+ @cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace)
1077
1077
  end
1078
1078
  end
1079
1079
  end