google-cloud-maintenance-api-v1beta 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/google/cloud/maintenance/api/v1beta/bindings_override.rb +1 -1
- data/lib/google/cloud/maintenance/api/v1beta/maintenance/client.rb +1 -1
- data/lib/google/cloud/maintenance/api/v1beta/maintenance/credentials.rb +1 -1
- data/lib/google/cloud/maintenance/api/v1beta/maintenance/paths.rb +1 -1
- data/lib/google/cloud/maintenance/api/v1beta/maintenance/rest/client.rb +1 -1
- data/lib/google/cloud/maintenance/api/v1beta/maintenance/rest/service_stub.rb +1 -1
- data/lib/google/cloud/maintenance/api/v1beta/maintenance/rest.rb +1 -1
- data/lib/google/cloud/maintenance/api/v1beta/maintenance.rb +1 -1
- data/lib/google/cloud/maintenance/api/v1beta/maintenance_service_pb.rb +1 -1
- data/lib/google/cloud/maintenance/api/v1beta/rest.rb +1 -1
- data/lib/google/cloud/maintenance/api/v1beta/version.rb +1 -1
- data/lib/google/cloud/maintenance/api/v1beta.rb +1 -1
- data/lib/google-cloud-maintenance-api-v1beta.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/field_info.rb +1 -1
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/cloud/maintenance/api/v1beta/maintenance_service.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- metadata +3 -4
- data/proto_docs/google/protobuf/any.rb +0 -145
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc307c9983c3d73342765d05b5f8bfd9648720b2342fdd7301e941dc4ef60b57
|
|
4
|
+
data.tar.gz: e065f4fdae5bacfa0bcfb486b1619e1aecd42268a343d5a493a3c741a9a57cde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6aee653cdf77d4383563964ff98d78e3a9ea8e8050193e20527a8bb793df6c9c5298c9f03ff7899fb5e478713f846adae5ded0e1dbe23b545613485b3ffe426c
|
|
7
|
+
data.tar.gz: b0cd69d57b7e3247eeb5a0c578b397b5bbe4457d04c16d4b882102d1ebdeb8f77f994562788515e07f775e67580c5799d0d1945137e55b59ac3d74c6954ea7b7
|
data/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
The Maintenance API provides a centralized view of planned disruptive maintenance events across supported Google Cloud products. It offers users visibility into upcoming, ongoing, and completed maintenance, along with controls to manage certain maintenance activities, such as mainteance windows, rescheduling, and on-demand updates.
|
|
4
4
|
|
|
5
|
-
The Maintenance API provides a centralized view of planned disruptive maintenance events across supported Google Cloud products. It offers users visibility into upcoming, ongoing, and completed maintenance, along with controls to manage certain maintenance activities, such as mainteance windows, rescheduling, and on-demand updates.
|
|
6
5
|
|
|
7
6
|
https://github.com/googleapis/google-cloud-ruby
|
|
8
7
|
|
|
@@ -12,7 +12,7 @@ require 'google/api/resource_pb'
|
|
|
12
12
|
require 'google/protobuf/timestamp_pb'
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
descriptor_data = "\n=google/cloud/maintenance/api/v1beta/maintenance_service.proto\x12#google.cloud.maintenance.api.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
15
|
+
descriptor_data = "\n=google/cloud/maintenance/api/v1beta/maintenance_service.proto\x12#google.cloud.maintenance.api.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb5\x01\n\x1cSummarizeMaintenancesRequest\x12H\n\x06parent\x18\x96N \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\x12.maintenance.googleapis.com/ResourceMaintenance\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\xa5\x01\n\x1dSummarizeMaintenancesResponse\x12N\n\x0cmaintenances\x18\x8dR \x03(\x0b\x32\x37.google.cloud.maintenance.api.v1beta.MaintenanceSummary\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x1a\n\x0bunreachable\x18\x8fR \x03(\tB\x04\xe2\x41\x01\x06\"\xb1\x06\n\x12MaintenanceSummary\x12\x1e\n\x10maintenance_name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x13\n\x05title\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x19\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12P\n\x08\x63\x61tegory\x18\r \x01(\x0e\x32\x38.google.cloud.maintenance.api.v1beta.MaintenanceCategoryB\x04\xe2\x41\x01\x03\x12J\n maintenance_scheduled_start_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12H\n\x1emaintenance_scheduled_end_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12@\n\x16maintenance_start_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12>\n\x14maintenance_end_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x1f\n\x11user_controllable\x18\n \x01(\x08\x42\x04\xe2\x41\x01\x03\x12O\n\x08\x63ontrols\x18\x0e \x03(\x0b\x32\x37.google.cloud.maintenance.api.v1beta.MaintenanceControlB\x04\xe2\x41\x01\x03\x12R\n\x05stats\x18\x0c \x03(\x0b\x32=.google.cloud.maintenance.api.v1beta.MaintenanceSummary.StatsB\x04\xe2\x41\x01\x03\x1ap\n\x05Stats\x12\x10\n\x08group_by\x18\x01 \x01(\t\x12U\n\naggregates\x18\x02 \x03(\x0b\x32\x41.google.cloud.maintenance.api.v1beta.MaintenanceSummary.Aggregate\x1a)\n\tAggregate\x12\r\n\x05group\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\"\xdf\r\n\x13ResourceMaintenance\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x08\x12Y\n\x08resource\x18\x02 \x01(\x0b\x32\x41.google.cloud.maintenance.api.v1beta.ResourceMaintenance.ResourceB\x04\xe2\x41\x01\x03\x12_\n\x0bmaintenance\x18\x03 \x01(\x0b\x32\x44.google.cloud.maintenance.api.v1beta.ResourceMaintenance.MaintenanceB\x04\xe2\x41\x01\x03\x12S\n\x05state\x18\x04 \x01(\x0e\x32>.google.cloud.maintenance.api.v1beta.ResourceMaintenance.StateB\x04\xe2\x41\x01\x03\x12\x35\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12@\n\x16maintenance_start_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12>\n\x14maintenance_end_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x41\n\x17maintenance_cancel_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12J\n maintenance_scheduled_start_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12H\n\x1emaintenance_scheduled_end_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x1f\n\x11user_controllable\x18\x0c \x01(\x08\x42\x04\xe2\x41\x01\x03\x12O\n\x08\x63ontrols\x18\r \x03(\x0b\x32\x37.google.cloud.maintenance.api.v1beta.MaintenanceControlB\x04\xe2\x41\x01\x03\x12[\n\x06labels\x18\xa1Q \x03(\x0b\x32\x44.google.cloud.maintenance.api.v1beta.ResourceMaintenance.LabelsEntryB\x04\xe2\x41\x01\x01\x12\x65\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32I.google.cloud.maintenance.api.v1beta.ResourceMaintenance.AnnotationsEntryB\x04\xe2\x41\x01\x01\x12\x1a\n\x03uid\x18\xd9O \x01(\tB\x0c\xe2\x41\x01\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x13\n\x04\x65tag\x18\xdaO \x01(\tB\x04\xe2\x41\x01\x03\x1aS\n\x08Resource\x12\x1b\n\rresource_name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x16\n\x08location\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x12\n\x04type\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x1a\xa9\x01\n\x0bMaintenance\x12\x18\n\x10maintenance_name\x18\x01 \x01(\t\x12\x13\n\x05title\x18\x02 \x01(\tB\x04\xe2\x41\x01\x03\x12\x19\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12P\n\x08\x63\x61tegory\x18\x04 \x01(\x0e\x32\x38.google.cloud.maintenance.api.v1beta.MaintenanceCategoryB\x04\xe2\x41\x01\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04:\xb4\x01\xea\x41\xb0\x01\n.maintenance.googleapis.com/ResourceMaintenance\x12Sprojects/{project}/locations/{location}/resourceMaintenances/{resource_maintenance}*\x14resourceMaintenances2\x13resourceMaintenance\"\xe2\x01\n\x12MaintenanceControl\x12P\n\x07\x63ontrol\x18\x01 \x01(\x0e\x32?.google.cloud.maintenance.api.v1beta.MaintenanceControl.Control\x12\x11\n\tis_custom\x18\x02 \x01(\x08\x12\x15\n\rdocumentation\x18\x03 \x01(\t\"P\n\x07\x43ontrol\x12\x17\n\x13\x43ONTROL_UNSPECIFIED\x10\x00\x12\t\n\x05\x41PPLY\x10\x01\x12\x11\n\rMANAGE_POLICY\x10\x02\x12\x0e\n\nRESCHEDULE\x10\x03\"\xb8\x01\n\x1fListResourceMaintenancesRequest\x12H\n\x06parent\x18\x96N \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\x12.maintenance.googleapis.com/ResourceMaintenance\x12\x12\n\tpage_size\x18\x89R \x01(\x05\x12\x13\n\npage_token\x18\x8aR \x01(\t\x12\x0f\n\x06\x66ilter\x18\x8bR \x01(\t\x12\x11\n\x08order_by\x18\x8cR \x01(\t\"\xac\x01\n ListResourceMaintenancesResponse\x12X\n\x15resource_maintenances\x18\x8dR \x03(\x0b\x32\x38.google.cloud.maintenance.api.v1beta.ResourceMaintenance\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"g\n\x1dGetResourceMaintenanceRequest\x12\x46\n\x04name\x18\x91N \x01(\tB7\xe2\x41\x01\x02\xfa\x41\x30\n.maintenance.googleapis.com/ResourceMaintenance*c\n\x13MaintenanceCategory\x12$\n MAINTENANCE_CATEGORY_UNSPECIFIED\x10\x00\x12\x12\n\x0eINFRASTRUCTURE\x10\x01\x12\x12\n\x0eSERVICE_UPDATE\x10\x03\x32\xb6\x06\n\x0bMaintenance\x12\xf7\x01\n\x15SummarizeMaintenances\x12\x41.google.cloud.maintenance.api.v1beta.SummarizeMaintenancesRequest\x1a\x42.google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/v1beta/{parent=projects/*/locations/*}/resourceMaintenances:summarize\x12\xf6\x01\n\x18ListResourceMaintenances\x12\x44.google.cloud.maintenance.api.v1beta.ListResourceMaintenancesRequest\x1a\x45.google.cloud.maintenance.api.v1beta.ListResourceMaintenancesResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12</v1beta/{parent=projects/*/locations/*}/resourceMaintenances\x12\xe3\x01\n\x16GetResourceMaintenance\x12\x42.google.cloud.maintenance.api.v1beta.GetResourceMaintenanceRequest\x1a\x38.google.cloud.maintenance.api.v1beta.ResourceMaintenance\"K\xda\x41\x04name\x82\xd3\xe4\x93\x02>\x12</v1beta/{name=projects/*/locations/*/resourceMaintenances/*}\x1aN\xca\x41\x1amaintenance.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBw\n\'com.google.cloud.maintenance.api.v1betaB\x0fUMMServiceProtoP\x01Z9cloud.google.com/go/maintenance/api/apiv1beta/apipb;apipbb\x06proto3"
|
|
16
16
|
|
|
17
17
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
18
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -110,14 +110,15 @@ module Google
|
|
|
110
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
|
111
111
|
# @!attribute [rw] seconds
|
|
112
112
|
# @return [::Integer]
|
|
113
|
-
# Represents seconds of UTC time since Unix epoch
|
|
114
|
-
#
|
|
115
|
-
# 9999-12-31T23:59:59Z
|
|
113
|
+
# Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
|
|
114
|
+
# be between -315576000000 and 315576000000 inclusive (which corresponds to
|
|
115
|
+
# 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
|
116
116
|
# @!attribute [rw] nanos
|
|
117
117
|
# @return [::Integer]
|
|
118
|
-
# Non-negative fractions of a second at nanosecond resolution.
|
|
119
|
-
#
|
|
120
|
-
#
|
|
118
|
+
# Non-negative fractions of a second at nanosecond resolution. This field is
|
|
119
|
+
# the nanosecond portion of the duration, not an alternative to seconds.
|
|
120
|
+
# Negative second values with fractions must still have non-negative nanos
|
|
121
|
+
# values that count forward in time. Must be between 0 and 999,999,999
|
|
121
122
|
# inclusive.
|
|
122
123
|
class Timestamp
|
|
123
124
|
include ::Google::Protobuf::MessageExts
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-maintenance-api-v1beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.6'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.6'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: google-cloud-errors
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -88,7 +88,6 @@ files:
|
|
|
88
88
|
- proto_docs/google/api/launch_stage.rb
|
|
89
89
|
- proto_docs/google/api/resource.rb
|
|
90
90
|
- proto_docs/google/cloud/maintenance/api/v1beta/maintenance_service.rb
|
|
91
|
-
- proto_docs/google/protobuf/any.rb
|
|
92
91
|
- proto_docs/google/protobuf/duration.rb
|
|
93
92
|
- proto_docs/google/protobuf/timestamp.rb
|
|
94
93
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# Copyright 2025 Google LLC
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
|
-
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
module Google
|
|
21
|
-
module Protobuf
|
|
22
|
-
# `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
23
|
-
# URL that describes the type of the serialized message.
|
|
24
|
-
#
|
|
25
|
-
# Protobuf library provides support to pack/unpack Any values in the form
|
|
26
|
-
# of utility functions or additional generated methods of the Any type.
|
|
27
|
-
#
|
|
28
|
-
# Example 1: Pack and unpack a message in C++.
|
|
29
|
-
#
|
|
30
|
-
# Foo foo = ...;
|
|
31
|
-
# Any any;
|
|
32
|
-
# any.PackFrom(foo);
|
|
33
|
-
# ...
|
|
34
|
-
# if (any.UnpackTo(&foo)) {
|
|
35
|
-
# ...
|
|
36
|
-
# }
|
|
37
|
-
#
|
|
38
|
-
# Example 2: Pack and unpack a message in Java.
|
|
39
|
-
#
|
|
40
|
-
# Foo foo = ...;
|
|
41
|
-
# Any any = Any.pack(foo);
|
|
42
|
-
# ...
|
|
43
|
-
# if (any.is(Foo.class)) {
|
|
44
|
-
# foo = any.unpack(Foo.class);
|
|
45
|
-
# }
|
|
46
|
-
# // or ...
|
|
47
|
-
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
|
48
|
-
# foo = any.unpack(Foo.getDefaultInstance());
|
|
49
|
-
# }
|
|
50
|
-
#
|
|
51
|
-
# Example 3: Pack and unpack a message in Python.
|
|
52
|
-
#
|
|
53
|
-
# foo = Foo(...)
|
|
54
|
-
# any = Any()
|
|
55
|
-
# any.Pack(foo)
|
|
56
|
-
# ...
|
|
57
|
-
# if any.Is(Foo.DESCRIPTOR):
|
|
58
|
-
# any.Unpack(foo)
|
|
59
|
-
# ...
|
|
60
|
-
#
|
|
61
|
-
# Example 4: Pack and unpack a message in Go
|
|
62
|
-
#
|
|
63
|
-
# foo := &pb.Foo{...}
|
|
64
|
-
# any, err := anypb.New(foo)
|
|
65
|
-
# if err != nil {
|
|
66
|
-
# ...
|
|
67
|
-
# }
|
|
68
|
-
# ...
|
|
69
|
-
# foo := &pb.Foo{}
|
|
70
|
-
# if err := any.UnmarshalTo(foo); err != nil {
|
|
71
|
-
# ...
|
|
72
|
-
# }
|
|
73
|
-
#
|
|
74
|
-
# The pack methods provided by protobuf library will by default use
|
|
75
|
-
# 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
76
|
-
# methods only use the fully qualified type name after the last '/'
|
|
77
|
-
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
78
|
-
# name "y.z".
|
|
79
|
-
#
|
|
80
|
-
# JSON
|
|
81
|
-
# ====
|
|
82
|
-
# The JSON representation of an `Any` value uses the regular
|
|
83
|
-
# representation of the deserialized, embedded message, with an
|
|
84
|
-
# additional field `@type` which contains the type URL. Example:
|
|
85
|
-
#
|
|
86
|
-
# package google.profile;
|
|
87
|
-
# message Person {
|
|
88
|
-
# string first_name = 1;
|
|
89
|
-
# string last_name = 2;
|
|
90
|
-
# }
|
|
91
|
-
#
|
|
92
|
-
# {
|
|
93
|
-
# "@type": "type.googleapis.com/google.profile.Person",
|
|
94
|
-
# "firstName": <string>,
|
|
95
|
-
# "lastName": <string>
|
|
96
|
-
# }
|
|
97
|
-
#
|
|
98
|
-
# If the embedded message type is well-known and has a custom JSON
|
|
99
|
-
# representation, that representation will be embedded adding a field
|
|
100
|
-
# `value` which holds the custom JSON in addition to the `@type`
|
|
101
|
-
# field. Example (for message [google.protobuf.Duration][]):
|
|
102
|
-
#
|
|
103
|
-
# {
|
|
104
|
-
# "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
105
|
-
# "value": "1.212s"
|
|
106
|
-
# }
|
|
107
|
-
# @!attribute [rw] type_url
|
|
108
|
-
# @return [::String]
|
|
109
|
-
# A URL/resource name that uniquely identifies the type of the serialized
|
|
110
|
-
# protocol buffer message. This string must contain at least
|
|
111
|
-
# one "/" character. The last segment of the URL's path must represent
|
|
112
|
-
# the fully qualified name of the type (as in
|
|
113
|
-
# `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
114
|
-
# (e.g., leading "." is not accepted).
|
|
115
|
-
#
|
|
116
|
-
# In practice, teams usually precompile into the binary all types that they
|
|
117
|
-
# expect it to use in the context of Any. However, for URLs which use the
|
|
118
|
-
# scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
119
|
-
# server that maps type URLs to message definitions as follows:
|
|
120
|
-
#
|
|
121
|
-
# * If no scheme is provided, `https` is assumed.
|
|
122
|
-
# * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
123
|
-
# value in binary format, or produce an error.
|
|
124
|
-
# * Applications are allowed to cache lookup results based on the
|
|
125
|
-
# URL, or have them precompiled into a binary to avoid any
|
|
126
|
-
# lookup. Therefore, binary compatibility needs to be preserved
|
|
127
|
-
# on changes to types. (Use versioned type names to manage
|
|
128
|
-
# breaking changes.)
|
|
129
|
-
#
|
|
130
|
-
# Note: this functionality is not currently available in the official
|
|
131
|
-
# protobuf release, and it is not used for type URLs beginning with
|
|
132
|
-
# type.googleapis.com. As of May 2023, there are no widely used type server
|
|
133
|
-
# implementations and no plans to implement one.
|
|
134
|
-
#
|
|
135
|
-
# Schemes other than `http`, `https` (or the empty scheme) might be
|
|
136
|
-
# used with implementation specific semantics.
|
|
137
|
-
# @!attribute [rw] value
|
|
138
|
-
# @return [::String]
|
|
139
|
-
# Must be a valid serialized protocol buffer of the above specified type.
|
|
140
|
-
class Any
|
|
141
|
-
include ::Google::Protobuf::MessageExts
|
|
142
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
end
|