google-cloud-os_config-v1alpha 0.6.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -101
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/client.rb +42 -9
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/operations.rb +38 -7
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/client.rb +303 -7
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/operations.rb +108 -8
- data/lib/google/cloud/os_config/v1alpha/os_config_zonal_service/rest/service_stub.rb +14 -2
- data/lib/google/cloud/os_config/v1alpha/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/osconfig/v1alpha/config_common.rb +6 -0
- data/proto_docs/google/cloud/osconfig/v1alpha/instance_os_policies_compliance.rb +5 -0
- data/proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb +1 -0
- data/proto_docs/google/cloud/osconfig/v1alpha/os_policy_assignments.rb +1 -0
- data/proto_docs/google/cloud/osconfig/v1alpha/vulnerability.rb +2 -0
- metadata +5 -5
@@ -30,16 +30,28 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
def initialize endpoint:, credentials:
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
34
|
# These require statements are intentionally placed here to initialize
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
39
42
|
numeric_enums: true,
|
40
43
|
raise_faraday_errors: false
|
41
44
|
end
|
42
45
|
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
43
55
|
##
|
44
56
|
# Baseline implementation for the create_os_policy_assignment REST call
|
45
57
|
#
|
@@ -21,6 +21,7 @@ module Google
|
|
21
21
|
module Api
|
22
22
|
# Required information for every language.
|
23
23
|
# @!attribute [rw] reference_docs_uri
|
24
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
24
25
|
# @return [::String]
|
25
26
|
# Link to automatically generated reference documentation. Example:
|
26
27
|
# https://cloud.google.com/nodejs/docs/reference/asset/latest
|
@@ -304,6 +305,19 @@ module Google
|
|
304
305
|
# seconds: 360 # 6 minutes
|
305
306
|
# total_poll_timeout:
|
306
307
|
# seconds: 54000 # 90 minutes
|
308
|
+
# @!attribute [rw] auto_populated_fields
|
309
|
+
# @return [::Array<::String>]
|
310
|
+
# List of top-level fields of the request message, that should be
|
311
|
+
# automatically populated by the client libraries based on their
|
312
|
+
# (google.api.field_info).format. Currently supported format: UUID4.
|
313
|
+
#
|
314
|
+
# Example of a YAML configuration:
|
315
|
+
#
|
316
|
+
# publishing:
|
317
|
+
# method_settings:
|
318
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
319
|
+
# auto_populated_fields:
|
320
|
+
# - request_id
|
307
321
|
class MethodSettings
|
308
322
|
include ::Google::Protobuf::MessageExts
|
309
323
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -23,6 +23,7 @@ module Google
|
|
23
23
|
module V1alpha
|
24
24
|
# Step performed by the OS Config agent for configuring an `OSPolicyResource`
|
25
25
|
# to its desired state.
|
26
|
+
# @deprecated This message is deprecated and may be removed in the next major version update.
|
26
27
|
# @!attribute [rw] type
|
27
28
|
# @return [::Google::Cloud::OsConfig::V1alpha::OSPolicyResourceConfigStep::Type]
|
28
29
|
# Configuration step type.
|
@@ -38,6 +39,7 @@ module Google
|
|
38
39
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
39
40
|
|
40
41
|
# Supported configuration step types
|
42
|
+
# @deprecated This enum is deprecated and may be removed in the next major version update.
|
41
43
|
module Type
|
42
44
|
# Default value. This value is unused.
|
43
45
|
TYPE_UNSPECIFIED = 0
|
@@ -62,6 +64,7 @@ module Google
|
|
62
64
|
end
|
63
65
|
|
64
66
|
# Supported outcomes for a configuration step.
|
67
|
+
# @deprecated This enum is deprecated and may be removed in the next major version update.
|
65
68
|
module Outcome
|
66
69
|
# Default value. This value is unused.
|
67
70
|
OUTCOME_UNSPECIFIED = 0
|
@@ -75,6 +78,7 @@ module Google
|
|
75
78
|
end
|
76
79
|
|
77
80
|
# Compliance data for an OS policy resource.
|
81
|
+
# @deprecated This message is deprecated and may be removed in the next major version update.
|
78
82
|
# @!attribute [rw] os_policy_resource_id
|
79
83
|
# @return [::String]
|
80
84
|
# The id of the OS policy resource.
|
@@ -93,6 +97,7 @@ module Google
|
|
93
97
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
94
98
|
|
95
99
|
# ExecResource specific output.
|
100
|
+
# @deprecated This message is deprecated and may be removed in the next major version update.
|
96
101
|
# @!attribute [rw] enforcement_output
|
97
102
|
# @return [::String]
|
98
103
|
# Output from Enforcement phase output file (if run).
|
@@ -104,6 +109,7 @@ module Google
|
|
104
109
|
end
|
105
110
|
|
106
111
|
# Supported OSPolicy compliance states.
|
112
|
+
# @deprecated This enum is deprecated and may be removed in the next major version update.
|
107
113
|
module OSPolicyComplianceState
|
108
114
|
# Default value. This value is unused.
|
109
115
|
OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED = 0
|
@@ -33,6 +33,7 @@ module Google
|
|
33
33
|
#
|
34
34
|
# For more information, see [View
|
35
35
|
# compliance](https://cloud.google.com/compute/docs/os-configuration-management/view-compliance).
|
36
|
+
# @deprecated This message is deprecated and may be removed in the next major version update.
|
36
37
|
# @!attribute [r] name
|
37
38
|
# @return [::String]
|
38
39
|
# Output only. The `InstanceOSPoliciesCompliance` API resource name.
|
@@ -80,6 +81,7 @@ module Google
|
|
80
81
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
81
82
|
|
82
83
|
# Compliance data for an OS policy
|
84
|
+
# @deprecated This message is deprecated and may be removed in the next major version update.
|
83
85
|
# @!attribute [rw] os_policy_id
|
84
86
|
# @return [::String]
|
85
87
|
# The OS policy id
|
@@ -105,6 +107,7 @@ module Google
|
|
105
107
|
|
106
108
|
# A request message for getting OS policies compliance data for the given
|
107
109
|
# Compute Engine VM instance.
|
110
|
+
# @deprecated This message is deprecated and may be removed in the next major version update.
|
108
111
|
# @!attribute [rw] name
|
109
112
|
# @return [::String]
|
110
113
|
# Required. API resource name for instance OS policies compliance resource.
|
@@ -123,6 +126,7 @@ module Google
|
|
123
126
|
|
124
127
|
# A request message for listing OS policies compliance data for all Compute
|
125
128
|
# Engine VMs in the given location.
|
129
|
+
# @deprecated This message is deprecated and may be removed in the next major version update.
|
126
130
|
# @!attribute [rw] parent
|
127
131
|
# @return [::String]
|
128
132
|
# Required. The parent resource name.
|
@@ -150,6 +154,7 @@ module Google
|
|
150
154
|
|
151
155
|
# A response message for listing OS policies compliance data for all Compute
|
152
156
|
# Engine VMs in the given location.
|
157
|
+
# @deprecated This message is deprecated and may be removed in the next major version update.
|
153
158
|
# @!attribute [rw] instance_os_policies_compliances
|
154
159
|
# @return [::Array<::Google::Cloud::OsConfig::V1alpha::InstanceOSPoliciesCompliance>]
|
155
160
|
# List of instance OS policies compliance objects.
|
@@ -570,6 +570,7 @@ module Google
|
|
570
570
|
# group within the OS policy is selected based on the `OSFilter` specified
|
571
571
|
# within the resource group.
|
572
572
|
# @!attribute [rw] os_filter
|
573
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
573
574
|
# @return [::Google::Cloud::OsConfig::V1alpha::OSPolicy::OSFilter]
|
574
575
|
# Deprecated. Use the `inventory_filters` field instead.
|
575
576
|
# Used to specify the OS filter for a resource group
|
@@ -135,6 +135,7 @@ module Google
|
|
135
135
|
# Target all VMs in the project. If true, no other criteria is
|
136
136
|
# permitted.
|
137
137
|
# @!attribute [rw] os_short_names
|
138
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
138
139
|
# @return [::Array<::String>]
|
139
140
|
# Deprecated. Use the `inventories` field instead.
|
140
141
|
# A VM is selected if it's OS short name matches with any of the
|
@@ -49,6 +49,7 @@ module Google
|
|
49
49
|
# Contains metadata as per the upstream feed of the operating system and
|
50
50
|
# NVD.
|
51
51
|
# @!attribute [rw] installed_inventory_item_ids
|
52
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
52
53
|
# @return [::Array<::String>]
|
53
54
|
# Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.
|
54
55
|
# This field displays the inventory items affected by this vulnerability.
|
@@ -56,6 +57,7 @@ module Google
|
|
56
57
|
# update, these values might not display in VM inventory. For some distros,
|
57
58
|
# this field may be empty.
|
58
59
|
# @!attribute [rw] available_inventory_item_ids
|
60
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
59
61
|
# @return [::Array<::String>]
|
60
62
|
# Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.
|
61
63
|
# If the vulnerability report was not updated after the VM inventory
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-os_config-v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.21.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.21.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
233
|
- !ruby/object:Gem::Version
|
234
234
|
version: '0'
|
235
235
|
requirements: []
|
236
|
-
rubygems_version: 3.
|
236
|
+
rubygems_version: 3.5.3
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: OS management tools that can be used for patch management, patch compliance,
|