google-cloud-os_config-v1alpha 0.5.0 → 0.6.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 +1 -1
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/client.rb +6 -4
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/operations.rb +5 -3
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/client.rb +6 -4
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/operations.rb +9 -7
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/service_stub.rb +14 -14
- data/lib/google/cloud/os_config/v1alpha/version.rb +1 -1
- data/lib/google/cloud/osconfig/v1alpha/config_common_pb.rb +24 -36
- data/lib/google/cloud/osconfig/v1alpha/instance_os_policies_compliance_pb.rb +26 -30
- data/lib/google/cloud/osconfig/v1alpha/inventory_pb.rb +26 -109
- data/lib/google/cloud/osconfig/v1alpha/os_policy_assignment_reports_pb.rb +25 -61
- data/lib/google/cloud/osconfig/v1alpha/os_policy_assignments_pb.rb +29 -94
- data/lib/google/cloud/osconfig/v1alpha/os_policy_pb.rb +24 -163
- data/lib/google/cloud/osconfig/v1alpha/osconfig_common_pb.rb +24 -7
- data/lib/google/cloud/osconfig/v1alpha/osconfig_zonal_service_pb.rb +25 -2
- data/lib/google/cloud/osconfig/v1alpha/vulnerability_pb.rb +25 -92
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2267179ebff003f3dbd4ad72a7f0f99fe7fc292897d1a8cbe9748c9b6a0a58a2
|
|
4
|
+
data.tar.gz: ffdd3389c1c4ca0bf0f86ebd8699db4de939a02a6544adfb08c007a0b21c30b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df49cdacad6f3708e058b0caf864ca5cf705a9f10bd6a5bc4a4c0f6daada991c68907051e209956b6c53815deeb8586bebdd6c2d485f6062f3d6526ea3acad14
|
|
7
|
+
data.tar.gz: 1d0cc61ea52c6bff0bb138e9ea57bb2eadfb3ba5b95279fda8a91a7ce35a04a18927ee47f854bac20570fdd125203c40baecb7df9a3d1c4cfffa1eafae594009
|
data/README.md
CHANGED
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
|
47
47
|
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
|
53
53
|
|
|
@@ -131,7 +131,7 @@ module Google
|
|
|
131
131
|
credentials = @config.credentials
|
|
132
132
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
133
133
|
# but only if the default endpoint does not have a region prefix.
|
|
134
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
134
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
135
135
|
!@config.endpoint.split(".").first.include?("-")
|
|
136
136
|
credentials ||= Credentials.default scope: @config.scope,
|
|
137
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -1624,9 +1624,9 @@ module Google
|
|
|
1624
1624
|
# * (`String`) The path to a service account key file in JSON format
|
|
1625
1625
|
# * (`Hash`) A service account key as a Hash
|
|
1626
1626
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1627
|
-
# (see the [googleauth docs](https://
|
|
1627
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1628
1628
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
1629
|
-
# (see the [signet docs](https://
|
|
1629
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
1630
1630
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
1631
1631
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
1632
1632
|
# * (`nil`) indicating no credentials
|
|
@@ -1668,7 +1668,9 @@ module Google
|
|
|
1668
1668
|
class Configuration
|
|
1669
1669
|
extend ::Gapic::Config
|
|
1670
1670
|
|
|
1671
|
-
|
|
1671
|
+
DEFAULT_ENDPOINT = "osconfig.googleapis.com"
|
|
1672
|
+
|
|
1673
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1672
1674
|
config_attr :credentials, nil do |value|
|
|
1673
1675
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1674
1676
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -620,9 +620,9 @@ module Google
|
|
|
620
620
|
# * (`String`) The path to a service account key file in JSON format
|
|
621
621
|
# * (`Hash`) A service account key as a Hash
|
|
622
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
623
|
-
# (see the [googleauth docs](https://
|
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
624
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
625
|
-
# (see the [signet docs](https://
|
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
626
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
627
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
628
628
|
# * (`nil`) indicating no credentials
|
|
@@ -664,7 +664,9 @@ module Google
|
|
|
664
664
|
class Configuration
|
|
665
665
|
extend ::Gapic::Config
|
|
666
666
|
|
|
667
|
-
|
|
667
|
+
DEFAULT_ENDPOINT = "osconfig.googleapis.com"
|
|
668
|
+
|
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
668
670
|
config_attr :credentials, nil do |value|
|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -127,7 +127,7 @@ module Google
|
|
|
127
127
|
credentials = @config.credentials
|
|
128
128
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
129
129
|
# but only if the default endpoint does not have a region prefix.
|
|
130
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
130
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
131
131
|
!@config.endpoint.split(".").first.include?("-")
|
|
132
132
|
credentials ||= Credentials.default scope: @config.scope,
|
|
133
133
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -1244,9 +1244,9 @@ module Google
|
|
|
1244
1244
|
# * (`String`) The path to a service account key file in JSON format
|
|
1245
1245
|
# * (`Hash`) A service account key as a Hash
|
|
1246
1246
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1247
|
-
# (see the [googleauth docs](https://
|
|
1247
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1248
1248
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
1249
|
-
# (see the [signet docs](https://
|
|
1249
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
1250
1250
|
# * (`nil`) indicating no credentials
|
|
1251
1251
|
# @return [::Object]
|
|
1252
1252
|
# @!attribute [rw] scope
|
|
@@ -1279,7 +1279,9 @@ module Google
|
|
|
1279
1279
|
class Configuration
|
|
1280
1280
|
extend ::Gapic::Config
|
|
1281
1281
|
|
|
1282
|
-
|
|
1282
|
+
DEFAULT_ENDPOINT = "osconfig.googleapis.com"
|
|
1283
|
+
|
|
1284
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1283
1285
|
config_attr :credentials, nil do |value|
|
|
1284
1286
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1285
1287
|
allowed.any? { |klass| klass === value }
|
|
@@ -411,9 +411,9 @@ module Google
|
|
|
411
411
|
# * (`String`) The path to a service account key file in JSON format
|
|
412
412
|
# * (`Hash`) A service account key as a Hash
|
|
413
413
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
414
|
-
# (see the [googleauth docs](https://
|
|
414
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
415
415
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
416
|
-
# (see the [signet docs](https://
|
|
416
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
417
417
|
# * (`nil`) indicating no credentials
|
|
418
418
|
# @return [::Object]
|
|
419
419
|
# @!attribute [rw] scope
|
|
@@ -446,7 +446,9 @@ module Google
|
|
|
446
446
|
class Configuration
|
|
447
447
|
extend ::Gapic::Config
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
DEFAULT_ENDPOINT = "osconfig.googleapis.com"
|
|
450
|
+
|
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
450
452
|
config_attr :credentials, nil do |value|
|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
452
454
|
allowed.any? { |klass| klass === value }
|
|
@@ -567,7 +569,7 @@ module Google
|
|
|
567
569
|
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
|
569
571
|
query_string_params = if query_string_params.any?
|
|
570
|
-
query_string_params.to_h { |p| p.split
|
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
571
573
|
else
|
|
572
574
|
{}
|
|
573
575
|
end
|
|
@@ -605,7 +607,7 @@ module Google
|
|
|
605
607
|
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
|
607
609
|
query_string_params = if query_string_params.any?
|
|
608
|
-
query_string_params.to_h { |p| p.split
|
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
609
611
|
else
|
|
610
612
|
{}
|
|
611
613
|
end
|
|
@@ -643,7 +645,7 @@ module Google
|
|
|
643
645
|
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
|
645
647
|
query_string_params = if query_string_params.any?
|
|
646
|
-
query_string_params.to_h { |p| p.split
|
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
647
649
|
else
|
|
648
650
|
{}
|
|
649
651
|
end
|
|
@@ -681,7 +683,7 @@ module Google
|
|
|
681
683
|
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
|
683
685
|
query_string_params = if query_string_params.any?
|
|
684
|
-
query_string_params.to_h { |p| p.split
|
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
685
687
|
else
|
|
686
688
|
{}
|
|
687
689
|
end
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_os_policy_assignment_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_os_policy_assignment_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_os_policy_assignment_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -173,7 +173,7 @@ module Google
|
|
|
173
173
|
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_os_policy_assignments_request request_pb
|
|
175
175
|
query_string_params = if query_string_params.any?
|
|
176
|
-
query_string_params.to_h { |p| p.split
|
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
177
177
|
else
|
|
178
178
|
{}
|
|
179
179
|
end
|
|
@@ -211,7 +211,7 @@ module Google
|
|
|
211
211
|
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_os_policy_assignment_revisions_request request_pb
|
|
213
213
|
query_string_params = if query_string_params.any?
|
|
214
|
-
query_string_params.to_h { |p| p.split
|
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
215
215
|
else
|
|
216
216
|
{}
|
|
217
217
|
end
|
|
@@ -249,7 +249,7 @@ module Google
|
|
|
249
249
|
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_os_policy_assignment_request request_pb
|
|
251
251
|
query_string_params = if query_string_params.any?
|
|
252
|
-
query_string_params.to_h { |p| p.split
|
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
253
253
|
else
|
|
254
254
|
{}
|
|
255
255
|
end
|
|
@@ -287,7 +287,7 @@ module Google
|
|
|
287
287
|
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_os_policies_compliance_request request_pb
|
|
289
289
|
query_string_params = if query_string_params.any?
|
|
290
|
-
query_string_params.to_h { |p| p.split
|
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
291
291
|
else
|
|
292
292
|
{}
|
|
293
293
|
end
|
|
@@ -325,7 +325,7 @@ module Google
|
|
|
325
325
|
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_instance_os_policies_compliances_request request_pb
|
|
327
327
|
query_string_params = if query_string_params.any?
|
|
328
|
-
query_string_params.to_h { |p| p.split
|
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
329
329
|
else
|
|
330
330
|
{}
|
|
331
331
|
end
|
|
@@ -363,7 +363,7 @@ module Google
|
|
|
363
363
|
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_os_policy_assignment_report_request request_pb
|
|
365
365
|
query_string_params = if query_string_params.any?
|
|
366
|
-
query_string_params.to_h { |p| p.split
|
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
367
367
|
else
|
|
368
368
|
{}
|
|
369
369
|
end
|
|
@@ -401,7 +401,7 @@ module Google
|
|
|
401
401
|
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_os_policy_assignment_reports_request request_pb
|
|
403
403
|
query_string_params = if query_string_params.any?
|
|
404
|
-
query_string_params.to_h { |p| p.split
|
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
405
405
|
else
|
|
406
406
|
{}
|
|
407
407
|
end
|
|
@@ -439,7 +439,7 @@ module Google
|
|
|
439
439
|
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_inventory_request request_pb
|
|
441
441
|
query_string_params = if query_string_params.any?
|
|
442
|
-
query_string_params.to_h { |p| p.split
|
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
443
443
|
else
|
|
444
444
|
{}
|
|
445
445
|
end
|
|
@@ -477,7 +477,7 @@ module Google
|
|
|
477
477
|
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_inventories_request request_pb
|
|
479
479
|
query_string_params = if query_string_params.any?
|
|
480
|
-
query_string_params.to_h { |p| p.split
|
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
481
481
|
else
|
|
482
482
|
{}
|
|
483
483
|
end
|
|
@@ -515,7 +515,7 @@ module Google
|
|
|
515
515
|
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_vulnerability_report_request request_pb
|
|
517
517
|
query_string_params = if query_string_params.any?
|
|
518
|
-
query_string_params.to_h { |p| p.split
|
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
519
519
|
else
|
|
520
520
|
{}
|
|
521
521
|
end
|
|
@@ -553,7 +553,7 @@ module Google
|
|
|
553
553
|
|
|
554
554
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_vulnerability_reports_request request_pb
|
|
555
555
|
query_string_params = if query_string_params.any?
|
|
556
|
-
query_string_params.to_h { |p| p.split
|
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
557
557
|
else
|
|
558
558
|
{}
|
|
559
559
|
end
|
|
@@ -1,46 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/cloud/osconfig/v1alpha/config_common.proto
|
|
3
4
|
|
|
4
5
|
require 'google/protobuf'
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
repeated :config_steps, :message, 2, "google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep"
|
|
28
|
-
optional :state, :enum, 3, "google.cloud.osconfig.v1alpha.OSPolicyComplianceState"
|
|
29
|
-
oneof :output do
|
|
30
|
-
optional :exec_resource_output, :message, 4, "google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput"
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
add_message "google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutput" do
|
|
34
|
-
optional :enforcement_output, :bytes, 2
|
|
35
|
-
end
|
|
36
|
-
add_enum "google.cloud.osconfig.v1alpha.OSPolicyComplianceState" do
|
|
37
|
-
value :OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED, 0
|
|
38
|
-
value :COMPLIANT, 1
|
|
39
|
-
value :NON_COMPLIANT, 2
|
|
40
|
-
value :UNKNOWN, 3
|
|
41
|
-
value :NO_OS_POLICIES_APPLICABLE, 4
|
|
7
|
+
|
|
8
|
+
descriptor_data = "\n1google/cloud/osconfig/v1alpha/config_common.proto\x12\x1dgoogle.cloud.osconfig.v1alpha\"\xb1\x03\n\x1aOSPolicyResourceConfigStep\x12L\n\x04type\x18\x01 \x01(\x0e\x32>.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Type\x12R\n\x07outcome\x18\x02 \x01(\x0e\x32\x41.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep.Outcome\x12\x15\n\rerror_message\x18\x03 \x01(\t\"\x92\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nVALIDATION\x10\x01\x12\x17\n\x13\x44\x45SIRED_STATE_CHECK\x10\x02\x12\x1d\n\x19\x44\x45SIRED_STATE_ENFORCEMENT\x10\x03\x12(\n$DESIRED_STATE_CHECK_POST_ENFORCEMENT\x10\x04\x1a\x02\x18\x01\"A\n\x07Outcome\x12\x17\n\x13OUTCOME_UNSPECIFIED\x10\x00\x12\r\n\tSUCCEEDED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x1a\x02\x18\x01:\x02\x18\x01\"\x85\x03\n\x1aOSPolicyResourceCompliance\x12\x1d\n\x15os_policy_resource_id\x18\x01 \x01(\t\x12O\n\x0c\x63onfig_steps\x18\x02 \x03(\x0b\x32\x39.google.cloud.osconfig.v1alpha.OSPolicyResourceConfigStep\x12\x45\n\x05state\x18\x03 \x01(\x0e\x32\x36.google.cloud.osconfig.v1alpha.OSPolicyComplianceState\x12l\n\x14\x65xec_resource_output\x18\x04 \x01(\x0b\x32L.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance.ExecResourceOutputH\x00\x1a\x34\n\x12\x45xecResourceOutput\x12\x1a\n\x12\x65nforcement_output\x18\x02 \x01(\x0c:\x02\x18\x01:\x02\x18\x01\x42\x08\n\x06output*\x97\x01\n\x17OSPolicyComplianceState\x12*\n&OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED\x10\x00\x12\r\n\tCOMPLIANT\x10\x01\x12\x11\n\rNON_COMPLIANT\x10\x02\x12\x0b\n\x07UNKNOWN\x10\x03\x12\x1d\n\x19NO_OS_POLICIES_APPLICABLE\x10\x04\x1a\x02\x18\x01\x42\xda\x01\n!com.google.cloud.osconfig.v1alphaB\x11\x43onfigCommonProtoP\x01Z=cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb\xaa\x02\x1dGoogle.Cloud.OsConfig.V1Alpha\xca\x02\x1dGoogle\\Cloud\\OsConfig\\V1alpha\xea\x02 Google::Cloud::OsConfig::V1alphab\x06proto3"
|
|
9
|
+
|
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
+
|
|
12
|
+
begin
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
rescue TypeError => e
|
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
18
|
+
parsed.clear_dependency
|
|
19
|
+
serialized = parsed.class.encode(parsed)
|
|
20
|
+
file = pool.add_serialized_file(serialized)
|
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
22
|
+
imports = [
|
|
23
|
+
]
|
|
24
|
+
imports.each do |type_name, expected_filename|
|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
26
|
+
if import_file.name != expected_filename
|
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
42
28
|
end
|
|
43
29
|
end
|
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
31
|
+
warn "This will become an error in the next major version."
|
|
44
32
|
end
|
|
45
33
|
|
|
46
34
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto
|
|
3
4
|
|
|
@@ -8,38 +9,33 @@ require 'google/api/resource_pb'
|
|
|
8
9
|
require 'google/cloud/osconfig/v1alpha/config_common_pb'
|
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
optional :page_size, :int32, 2
|
|
35
|
-
optional :page_token, :string, 3
|
|
36
|
-
optional :filter, :string, 4
|
|
37
|
-
end
|
|
38
|
-
add_message "google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse" do
|
|
39
|
-
repeated :instance_os_policies_compliances, :message, 1, "google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance"
|
|
40
|
-
optional :next_page_token, :string, 2
|
|
12
|
+
|
|
13
|
+
descriptor_data = "\nCgoogle/cloud/osconfig/v1alpha/instance_os_policies_compliance.proto\x12\x1dgoogle.cloud.osconfig.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x31google/cloud/osconfig/v1alpha/config_common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xee\x06\n\x1cInstanceOSPoliciesCompliance\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08instance\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12J\n\x05state\x18\x03 \x01(\x0e\x32\x36.google.cloud.osconfig.v1alpha.OSPolicyComplianceStateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x64\x65tailed_state\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64\x65tailed_state_reason\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12r\n\x15os_policy_compliances\x18\x06 \x03(\x0b\x32N.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyComplianceB\x03\xe0\x41\x03\x12\x43\n\x1alast_compliance_check_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12#\n\x16last_compliance_run_id\x18\x08 \x01(\tB\x03\xe0\x41\x03\x1a\xa7\x02\n\x12OSPolicyCompliance\x12\x14\n\x0cos_policy_id\x18\x01 \x01(\t\x12M\n\x14os_policy_assignment\x18\x02 \x01(\tB/\xfa\x41,\n*osconfig.googleapis.com/OSPolicyAssignment\x12\x45\n\x05state\x18\x04 \x01(\x0e\x32\x36.google.cloud.osconfig.v1alpha.OSPolicyComplianceState\x12\x61\n\x1eos_policy_resource_compliances\x18\x05 \x03(\x0b\x32\x39.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance:\x02\x18\x01:\x8e\x01\x18\x01\xea\x41\x88\x01\n4osconfig.googleapis.com/InstanceOSPoliciesCompliance\x12Pprojects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}\"x\n&GetInstanceOSPoliciesComplianceRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4osconfig.googleapis.com/InstanceOSPoliciesCompliance:\x02\x18\x01\"\xa0\x01\n(ListInstanceOSPoliciesCompliancesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t:\x02\x18\x01\"\xaf\x01\n)ListInstanceOSPoliciesCompliancesResponse\x12\x65\n instance_os_policies_compliances\x18\x01 \x03(\x0b\x32;.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t:\x02\x18\x01\x42\xea\x01\n!com.google.cloud.osconfig.v1alphaB!InstanceOSPoliciesComplianceProtoP\x01Z=cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb\xaa\x02\x1dGoogle.Cloud.OsConfig.V1Alpha\xca\x02\x1dGoogle\\Cloud\\OsConfig\\V1alpha\xea\x02 Google::Cloud::OsConfig::V1alphab\x06proto3"
|
|
14
|
+
|
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
|
|
17
|
+
begin
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
rescue TypeError => e
|
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
23
|
+
parsed.clear_dependency
|
|
24
|
+
serialized = parsed.class.encode(parsed)
|
|
25
|
+
file = pool.add_serialized_file(serialized)
|
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
27
|
+
imports = [
|
|
28
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
29
|
+
["google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance", "google/cloud/osconfig/v1alpha/config_common.proto"],
|
|
30
|
+
]
|
|
31
|
+
imports.each do |type_name, expected_filename|
|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
33
|
+
if import_file.name != expected_filename
|
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
41
35
|
end
|
|
42
36
|
end
|
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
38
|
+
warn "This will become an error in the next major version."
|
|
43
39
|
end
|
|
44
40
|
|
|
45
41
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/cloud/osconfig/v1alpha/inventory.proto
|
|
3
4
|
|
|
@@ -8,117 +9,33 @@ require 'google/api/resource_pb'
|
|
|
8
9
|
require 'google/protobuf/timestamp_pb'
|
|
9
10
|
require 'google/type/date_pb'
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
optional :type, :enum, 5, "google.cloud.osconfig.v1alpha.Inventory.Item.Type"
|
|
35
|
-
oneof :details do
|
|
36
|
-
optional :installed_package, :message, 6, "google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage"
|
|
37
|
-
optional :available_package, :message, 7, "google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage"
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
add_enum "google.cloud.osconfig.v1alpha.Inventory.Item.OriginType" do
|
|
41
|
-
value :ORIGIN_TYPE_UNSPECIFIED, 0
|
|
42
|
-
value :INVENTORY_REPORT, 1
|
|
43
|
-
end
|
|
44
|
-
add_enum "google.cloud.osconfig.v1alpha.Inventory.Item.Type" do
|
|
45
|
-
value :TYPE_UNSPECIFIED, 0
|
|
46
|
-
value :INSTALLED_PACKAGE, 1
|
|
47
|
-
value :AVAILABLE_PACKAGE, 2
|
|
48
|
-
end
|
|
49
|
-
add_message "google.cloud.osconfig.v1alpha.Inventory.SoftwarePackage" do
|
|
50
|
-
oneof :details do
|
|
51
|
-
optional :yum_package, :message, 1, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage"
|
|
52
|
-
optional :apt_package, :message, 2, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage"
|
|
53
|
-
optional :zypper_package, :message, 3, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage"
|
|
54
|
-
optional :googet_package, :message, 4, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage"
|
|
55
|
-
optional :zypper_patch, :message, 5, "google.cloud.osconfig.v1alpha.Inventory.ZypperPatch"
|
|
56
|
-
optional :wua_package, :message, 6, "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage"
|
|
57
|
-
optional :qfe_package, :message, 7, "google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage"
|
|
58
|
-
optional :cos_package, :message, 8, "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage"
|
|
59
|
-
optional :windows_application, :message, 9, "google.cloud.osconfig.v1alpha.Inventory.WindowsApplication"
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
add_message "google.cloud.osconfig.v1alpha.Inventory.VersionedPackage" do
|
|
63
|
-
optional :package_name, :string, 4
|
|
64
|
-
optional :architecture, :string, 2
|
|
65
|
-
optional :version, :string, 3
|
|
66
|
-
end
|
|
67
|
-
add_message "google.cloud.osconfig.v1alpha.Inventory.ZypperPatch" do
|
|
68
|
-
optional :patch_name, :string, 5
|
|
69
|
-
optional :category, :string, 2
|
|
70
|
-
optional :severity, :string, 3
|
|
71
|
-
optional :summary, :string, 4
|
|
72
|
-
end
|
|
73
|
-
add_message "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage" do
|
|
74
|
-
optional :title, :string, 1
|
|
75
|
-
optional :description, :string, 2
|
|
76
|
-
repeated :categories, :message, 3, "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory"
|
|
77
|
-
repeated :kb_article_ids, :string, 4
|
|
78
|
-
optional :support_url, :string, 11
|
|
79
|
-
repeated :more_info_urls, :string, 5
|
|
80
|
-
optional :update_id, :string, 6
|
|
81
|
-
optional :revision_number, :int32, 7
|
|
82
|
-
optional :last_deployment_change_time, :message, 10, "google.protobuf.Timestamp"
|
|
83
|
-
end
|
|
84
|
-
add_message "google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory" do
|
|
85
|
-
optional :id, :string, 1
|
|
86
|
-
optional :name, :string, 2
|
|
87
|
-
end
|
|
88
|
-
add_message "google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackage" do
|
|
89
|
-
optional :caption, :string, 1
|
|
90
|
-
optional :description, :string, 2
|
|
91
|
-
optional :hot_fix_id, :string, 3
|
|
92
|
-
optional :install_time, :message, 5, "google.protobuf.Timestamp"
|
|
93
|
-
end
|
|
94
|
-
add_message "google.cloud.osconfig.v1alpha.Inventory.WindowsApplication" do
|
|
95
|
-
optional :display_name, :string, 1
|
|
96
|
-
optional :display_version, :string, 2
|
|
97
|
-
optional :publisher, :string, 3
|
|
98
|
-
optional :install_date, :message, 4, "google.type.Date"
|
|
99
|
-
optional :help_link, :string, 5
|
|
100
|
-
end
|
|
101
|
-
add_message "google.cloud.osconfig.v1alpha.GetInventoryRequest" do
|
|
102
|
-
optional :name, :string, 1
|
|
103
|
-
optional :view, :enum, 2, "google.cloud.osconfig.v1alpha.InventoryView"
|
|
104
|
-
end
|
|
105
|
-
add_message "google.cloud.osconfig.v1alpha.ListInventoriesRequest" do
|
|
106
|
-
optional :parent, :string, 1
|
|
107
|
-
optional :view, :enum, 2, "google.cloud.osconfig.v1alpha.InventoryView"
|
|
108
|
-
optional :page_size, :int32, 3
|
|
109
|
-
optional :page_token, :string, 4
|
|
110
|
-
optional :filter, :string, 5
|
|
111
|
-
end
|
|
112
|
-
add_message "google.cloud.osconfig.v1alpha.ListInventoriesResponse" do
|
|
113
|
-
repeated :inventories, :message, 1, "google.cloud.osconfig.v1alpha.Inventory"
|
|
114
|
-
optional :next_page_token, :string, 2
|
|
115
|
-
end
|
|
116
|
-
add_enum "google.cloud.osconfig.v1alpha.InventoryView" do
|
|
117
|
-
value :INVENTORY_VIEW_UNSPECIFIED, 0
|
|
118
|
-
value :BASIC, 1
|
|
119
|
-
value :FULL, 2
|
|
12
|
+
|
|
13
|
+
descriptor_data = "\n-google/cloud/osconfig/v1alpha/inventory.proto\x12\x1dgoogle.cloud.osconfig.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"\xb7\x16\n\tInventory\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x07os_info\x18\x01 \x01(\x0b\x32/.google.cloud.osconfig.v1alpha.Inventory.OsInfoB\x03\xe0\x41\x03\x12G\n\x05items\x18\x02 \x03(\x0b\x32\x33.google.cloud.osconfig.v1alpha.Inventory.ItemsEntryB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\xb8\x01\n\x06OsInfo\x12\x10\n\x08hostname\x18\t \x01(\t\x12\x11\n\tlong_name\x18\x02 \x01(\t\x12\x12\n\nshort_name\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x12\x14\n\x0c\x61rchitecture\x18\x05 \x01(\t\x12\x16\n\x0ekernel_version\x18\x06 \x01(\t\x12\x16\n\x0ekernel_release\x18\x07 \x01(\t\x12\x1e\n\x16osconfig_agent_version\x18\x08 \x01(\t\x1a\xcb\x04\n\x04Item\x12\n\n\x02id\x18\x01 \x01(\t\x12M\n\x0borigin_type\x18\x02 \x01(\x0e\x32\x38.google.cloud.osconfig.v1alpha.Inventory.Item.OriginType\x12/\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x04type\x18\x05 \x01(\x0e\x32\x32.google.cloud.osconfig.v1alpha.Inventory.Item.Type\x12U\n\x11installed_package\x18\x06 \x01(\x0b\x32\x38.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackageH\x00\x12U\n\x11\x61vailable_package\x18\x07 \x01(\x0b\x32\x38.google.cloud.osconfig.v1alpha.Inventory.SoftwarePackageH\x00\"?\n\nOriginType\x12\x1b\n\x17ORIGIN_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10INVENTORY_REPORT\x10\x01\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11INSTALLED_PACKAGE\x10\x01\x12\x15\n\x11\x41VAILABLE_PACKAGE\x10\x02\x42\t\n\x07\x64\x65tails\x1a\x9f\x06\n\x0fSoftwarePackage\x12P\n\x0byum_package\x18\x01 \x01(\x0b\x32\x39.google.cloud.osconfig.v1alpha.Inventory.VersionedPackageH\x00\x12P\n\x0b\x61pt_package\x18\x02 \x01(\x0b\x32\x39.google.cloud.osconfig.v1alpha.Inventory.VersionedPackageH\x00\x12S\n\x0ezypper_package\x18\x03 \x01(\x0b\x32\x39.google.cloud.osconfig.v1alpha.Inventory.VersionedPackageH\x00\x12S\n\x0egooget_package\x18\x04 \x01(\x0b\x32\x39.google.cloud.osconfig.v1alpha.Inventory.VersionedPackageH\x00\x12L\n\x0czypper_patch\x18\x05 \x01(\x0b\x32\x34.google.cloud.osconfig.v1alpha.Inventory.ZypperPatchH\x00\x12T\n\x0bwua_package\x18\x06 \x01(\x0b\x32=.google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackageH\x00\x12\x61\n\x0bqfe_package\x18\x07 \x01(\x0b\x32J.google.cloud.osconfig.v1alpha.Inventory.WindowsQuickFixEngineeringPackageH\x00\x12P\n\x0b\x63os_package\x18\x08 \x01(\x0b\x32\x39.google.cloud.osconfig.v1alpha.Inventory.VersionedPackageH\x00\x12Z\n\x13windows_application\x18\t \x01(\x0b\x32;.google.cloud.osconfig.v1alpha.Inventory.WindowsApplicationH\x00\x42\t\n\x07\x64\x65tails\x1aO\n\x10VersionedPackage\x12\x14\n\x0cpackage_name\x18\x04 \x01(\t\x12\x14\n\x0c\x61rchitecture\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x1aV\n\x0bZypperPatch\x12\x12\n\npatch_name\x18\x05 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x02 \x01(\t\x12\x10\n\x08severity\x18\x03 \x01(\t\x12\x0f\n\x07summary\x18\x04 \x01(\t\x1a\x88\x03\n\x14WindowsUpdatePackage\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12g\n\ncategories\x18\x03 \x03(\x0b\x32S.google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory\x12\x16\n\x0ekb_article_ids\x18\x04 \x03(\t\x12\x13\n\x0bsupport_url\x18\x0b \x01(\t\x12\x16\n\x0emore_info_urls\x18\x05 \x03(\t\x12\x11\n\tupdate_id\x18\x06 \x01(\t\x12\x17\n\x0frevision_number\x18\x07 \x01(\x05\x12?\n\x1blast_deployment_change_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x31\n\x15WindowsUpdateCategory\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x1a\x8f\x01\n!WindowsQuickFixEngineeringPackage\x12\x0f\n\x07\x63\x61ption\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x12\n\nhot_fix_id\x18\x03 \x01(\t\x12\x30\n\x0cinstall_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x92\x01\n\x12WindowsApplication\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x17\n\x0f\x64isplay_version\x18\x02 \x01(\t\x12\x11\n\tpublisher\x18\x03 \x01(\t\x12\'\n\x0cinstall_date\x18\x04 \x01(\x0b\x32\x11.google.type.Date\x12\x11\n\thelp_link\x18\x05 \x01(\t\x1a[\n\nItemsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.google.cloud.osconfig.v1alpha.Inventory.Item:\x02\x38\x01:n\xea\x41k\n!osconfig.googleapis.com/Inventory\x12\x46projects/{project}/locations/{location}/instances/{instance}/inventory\"\x8a\x01\n\x13GetInventoryRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!osconfig.googleapis.com/Inventory\x12:\n\x04view\x18\x02 \x01(\x0e\x32,.google.cloud.osconfig.v1alpha.InventoryView\"\xc4\x01\n\x16ListInventoriesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63ompute.googleapis.com/Instance\x12:\n\x04view\x18\x02 \x01(\x0e\x32,.google.cloud.osconfig.v1alpha.InventoryView\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"q\n\x17ListInventoriesResponse\x12=\n\x0binventories\x18\x01 \x03(\x0b\x32(.google.cloud.osconfig.v1alpha.Inventory\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*D\n\rInventoryView\x12\x1e\n\x1aINVENTORY_VIEW_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\xd4\x01\n!com.google.cloud.osconfig.v1alphaB\x0bInventoriesP\x01Z=cloud.google.com/go/osconfig/apiv1alpha/osconfigpb;osconfigpb\xaa\x02\x1dGoogle.Cloud.OsConfig.V1Alpha\xca\x02\x1dGoogle\\Cloud\\OsConfig\\V1alpha\xea\x02 Google::Cloud::OsConfig::V1alphab\x06proto3"
|
|
14
|
+
|
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
|
|
17
|
+
begin
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
rescue TypeError => e
|
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
23
|
+
parsed.clear_dependency
|
|
24
|
+
serialized = parsed.class.encode(parsed)
|
|
25
|
+
file = pool.add_serialized_file(serialized)
|
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
27
|
+
imports = [
|
|
28
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
29
|
+
["google.type.Date", "google/type/date.proto"],
|
|
30
|
+
]
|
|
31
|
+
imports.each do |type_name, expected_filename|
|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
33
|
+
if import_file.name != expected_filename
|
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
120
35
|
end
|
|
121
36
|
end
|
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
38
|
+
warn "This will become an error in the next major version."
|
|
122
39
|
end
|
|
123
40
|
|
|
124
41
|
module Google
|