feat!: remove Start/EndTime from LogSink, Metadata from LogEntry, implement multipattern resource names #174
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Regenerates the Logging Client with the v2 Gapic configuration which includes multi-pattern resource names
NOTE if you are only using the hand-written layer, no changes should be necessary. The protobuf messages and generated clients are part of the public surface area so this is a major version bump.
Breaking proto message changes
startTimeandendTimefields fromLogSinkprotobuf messagemetadatafield fromLogEntryprotobuf messageResource ames
Rather than providing an abstract base class for a resource name type, we provide a concrete base class which serves as the default resource name.
For example, we previously provided an abstract class
LogNamewith concrete implementations ofBillingLogName,FolderLogName,OrganizationLogName, andProjectLogNamefrom which you would pick one to use. NowLogNamebehaves like aProjectLogNameby default but can also be used to build all types -LogName.ofProjectLogName,LogName.ofBillingLogName,LogName.ofFolderLogName,LogName.ofOrganizationLogName. If you were using theLogNames.parse(String)static method, you can now useLogName.parse(String).PiperOrigin-RevId: 313460921
Source-Link: googleapis/googleapis@c4e3701
PiperOrigin-RevId: 312088359
Source-Link: googleapis/googleapis@5a90d46
PiperOrigin-RevId: 309824146
Source-Link: googleapis/googleapis@e0f9d9e
BREAKING CHANGE:
com.google.cloud.loggingclasses (without the v2), you should not need to change any code.