google-cloud-maintenance-api-v1 0.1.0 → 0.2.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a1cf8f687c03cabb2c2bef972d2203a72709c2e2d4c26e902bd264a554e57ae
|
|
4
|
+
data.tar.gz: e572fa7dd26342c841212e4d49d812d7ad30bd592df458258db9f94cbe988c6d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3e9533a3d274225806461c85109bf84f33e30a2f36f610b1b6432d1fd98287a990c3fdd4b514e90d5299d3e87d80a764aaefb03cec48573f4111af17c8c0a6a
|
|
7
|
+
data.tar.gz: 5c1e7e70b4bcf5061cb2f0b2fe55c76bb14bcc9377520634d718b4e334d95b236eefc2eaec208a73aefd5fab310235c31fa1570638981bfa69aadf0b51376cfc
|
|
@@ -14,30 +14,8 @@ require 'google/protobuf/timestamp_pb'
|
|
|
14
14
|
|
|
15
15
|
descriptor_data = "\n9google/cloud/maintenance/api/v1/maintenance_service.proto\x12\x1fgoogle.cloud.maintenance.api.v1\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\"\xb4\x01\n\x1cSummarizeMaintenancesRequest\x12G\n\x06parent\x18\x96N \x01(\tB6\xe0\x41\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\"\xa0\x01\n\x1dSummarizeMaintenancesResponse\x12J\n\x0cmaintenances\x18\x8dR \x03(\x0b\x32\x33.google.cloud.maintenance.api.v1.MaintenanceSummary\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x19\n\x0bunreachable\x18\x8fR \x03(\tB\x03\xe0\x41\x06\"\x96\x06\n\x12MaintenanceSummary\x12\x1d\n\x10maintenance_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12K\n\x08\x63\x61tegory\x18\r \x01(\x0e\x32\x34.google.cloud.maintenance.api.v1.MaintenanceCategoryB\x03\xe0\x41\x03\x12I\n maintenance_scheduled_start_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x1emaintenance_scheduled_end_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16maintenance_start_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14maintenance_end_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1e\n\x11user_controllable\x18\n \x01(\x08\x42\x03\xe0\x41\x03\x12J\n\x08\x63ontrols\x18\x0e \x03(\x0b\x32\x33.google.cloud.maintenance.api.v1.MaintenanceControlB\x03\xe0\x41\x03\x12M\n\x05stats\x18\x0c \x03(\x0b\x32\x39.google.cloud.maintenance.api.v1.MaintenanceSummary.StatsB\x03\xe0\x41\x03\x1al\n\x05Stats\x12\x10\n\x08group_by\x18\x01 \x01(\t\x12Q\n\naggregates\x18\x02 \x03(\x0b\x32=.google.cloud.maintenance.api.v1.MaintenanceSummary.Aggregate\x1a)\n\tAggregate\x12\r\n\x05group\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\"\xac\r\n\x13ResourceMaintenance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12T\n\x08resource\x18\x02 \x01(\x0b\x32=.google.cloud.maintenance.api.v1.ResourceMaintenance.ResourceB\x03\xe0\x41\x03\x12Z\n\x0bmaintenance\x18\x03 \x01(\x0b\x32@.google.cloud.maintenance.api.v1.ResourceMaintenance.MaintenanceB\x03\xe0\x41\x03\x12N\n\x05state\x18\x04 \x01(\x0e\x32:.google.cloud.maintenance.api.v1.ResourceMaintenance.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16maintenance_start_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14maintenance_end_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x17maintenance_cancel_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12I\n maintenance_scheduled_start_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x1emaintenance_scheduled_end_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1e\n\x11user_controllable\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12J\n\x08\x63ontrols\x18\r \x03(\x0b\x32\x33.google.cloud.maintenance.api.v1.MaintenanceControlB\x03\xe0\x41\x03\x12V\n\x06labels\x18\xa1Q \x03(\x0b\x32@.google.cloud.maintenance.api.v1.ResourceMaintenance.LabelsEntryB\x03\xe0\x41\x01\x12`\n\x0b\x61nnotations\x18\xa2Q \x03(\x0b\x32\x45.google.cloud.maintenance.api.v1.ResourceMaintenance.AnnotationsEntryB\x03\xe0\x41\x01\x12\x19\n\x03uid\x18\xd9O \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x04\x65tag\x18\xdaO \x01(\tB\x03\xe0\x41\x03\x1aP\n\x08Resource\x12\x1a\n\rresource_name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08location\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04type\x18\x03 \x01(\tB\x03\xe0\x41\x03\x1a\xa2\x01\n\x0bMaintenance\x12\x18\n\x10maintenance_name\x18\x01 \x01(\t\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12K\n\x08\x63\x61tegory\x18\x04 \x01(\x0e\x32\x34.google.cloud.maintenance.api.v1.MaintenanceCategoryB\x03\xe0\x41\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\"\xde\x01\n\x12MaintenanceControl\x12L\n\x07\x63ontrol\x18\x01 \x01(\x0e\x32;.google.cloud.maintenance.api.v1.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\"\xb7\x01\n\x1fListResourceMaintenancesRequest\x12G\n\x06parent\x18\x96N \x01(\tB6\xe0\x41\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\"\xa8\x01\n ListResourceMaintenancesResponse\x12T\n\x15resource_maintenances\x18\x8dR \x03(\x0b\x32\x34.google.cloud.maintenance.api.v1.ResourceMaintenance\x12\x18\n\x0fnext_page_token\x18\x8eR \x01(\t\x12\x14\n\x0bunreachable\x18\x8fR \x03(\t\"f\n\x1dGetResourceMaintenanceRequest\x12\x45\n\x04name\x18\x91N \x01(\tB6\xe0\x41\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\x92\x06\n\x0bMaintenance\x12\xeb\x01\n\x15SummarizeMaintenances\x12=.google.cloud.maintenance.api.v1.SummarizeMaintenancesRequest\x1a>.google.cloud.maintenance.api.v1.SummarizeMaintenancesResponse\"S\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*}/resourceMaintenances:summarize\x12\xea\x01\n\x18ListResourceMaintenances\x12@.google.cloud.maintenance.api.v1.ListResourceMaintenancesRequest\x1a\x41.google.cloud.maintenance.api.v1.ListResourceMaintenancesResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*}/resourceMaintenances\x12\xd7\x01\n\x16GetResourceMaintenance\x12>.google.cloud.maintenance.api.v1.GetResourceMaintenanceRequest\x1a\x34.google.cloud.maintenance.api.v1.ResourceMaintenance\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/resourceMaintenances/*}\x1aN\xca\x41\x1amaintenance.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBo\n#com.google.cloud.maintenance.api.v1B\x0fUMMServiceProtoP\x01Z5cloud.google.com/go/maintenance/api/apiv1/apipb;apipbb\x06proto3"
|
|
16
16
|
|
|
17
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
-
|
|
19
|
-
begin
|
|
20
|
-
pool.add_serialized_file(descriptor_data)
|
|
21
|
-
rescue TypeError
|
|
22
|
-
# Compatibility code: will be removed in the next major version.
|
|
23
|
-
require 'google/protobuf/descriptor_pb'
|
|
24
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
25
|
-
parsed.clear_dependency
|
|
26
|
-
serialized = parsed.class.encode(parsed)
|
|
27
|
-
file = pool.add_serialized_file(serialized)
|
|
28
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
29
|
-
imports = [
|
|
30
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
31
|
-
]
|
|
32
|
-
imports.each do |type_name, expected_filename|
|
|
33
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
34
|
-
if import_file.name != expected_filename
|
|
35
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
39
|
-
warn "This will become an error in the next major version."
|
|
40
|
-
end
|
|
17
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
41
19
|
|
|
42
20
|
module Google
|
|
43
21
|
module Cloud
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-maintenance-api-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -102,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
102
102
|
requirements:
|
|
103
103
|
- - ">="
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
|
-
version: '3.
|
|
105
|
+
version: '3.2'
|
|
106
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - ">="
|