google-cloud-config_service-v1 2.0.1 → 2.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 +4 -4
- data/lib/google/cloud/config/v1/config_pb.rb +14 -1
- data/lib/google/cloud/config/v1/config_services_pb.rb +8 -0
- data/lib/google/cloud/config_service/v1/config/client.rb +442 -4
- data/lib/google/cloud/config_service/v1/config/paths.rb +42 -0
- data/lib/google/cloud/config_service/v1/config/rest/client.rb +414 -4
- data/lib/google/cloud/config_service/v1/config/rest/service_stub.rb +244 -0
- data/lib/google/cloud/config_service/v1/version.rb +1 -1
- data/proto_docs/google/cloud/config/v1/config.rb +292 -11
- metadata +15 -33
@@ -993,6 +993,166 @@ module Google
|
|
993
993
|
end
|
994
994
|
end
|
995
995
|
|
996
|
+
##
|
997
|
+
# Baseline implementation for the list_resource_changes REST call
|
998
|
+
#
|
999
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::ListResourceChangesRequest]
|
1000
|
+
# A request object representing the call parameters. Required.
|
1001
|
+
# @param options [::Gapic::CallOptions]
|
1002
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1003
|
+
#
|
1004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1005
|
+
# @yieldparam result [::Google::Cloud::ConfigService::V1::ListResourceChangesResponse]
|
1006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1007
|
+
#
|
1008
|
+
# @return [::Google::Cloud::ConfigService::V1::ListResourceChangesResponse]
|
1009
|
+
# A result object deserialized from the server's reply
|
1010
|
+
def list_resource_changes request_pb, options = nil
|
1011
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1012
|
+
|
1013
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_resource_changes_request request_pb
|
1014
|
+
query_string_params = if query_string_params.any?
|
1015
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1016
|
+
else
|
1017
|
+
{}
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
response = @client_stub.make_http_request(
|
1021
|
+
verb,
|
1022
|
+
uri: uri,
|
1023
|
+
body: body || "",
|
1024
|
+
params: query_string_params,
|
1025
|
+
method_name: "list_resource_changes",
|
1026
|
+
options: options
|
1027
|
+
)
|
1028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1029
|
+
result = ::Google::Cloud::ConfigService::V1::ListResourceChangesResponse.decode_json response.body, ignore_unknown_fields: true
|
1030
|
+
catch :response do
|
1031
|
+
yield result, operation if block_given?
|
1032
|
+
result
|
1033
|
+
end
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
##
|
1037
|
+
# Baseline implementation for the get_resource_change REST call
|
1038
|
+
#
|
1039
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::GetResourceChangeRequest]
|
1040
|
+
# A request object representing the call parameters. Required.
|
1041
|
+
# @param options [::Gapic::CallOptions]
|
1042
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1043
|
+
#
|
1044
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1045
|
+
# @yieldparam result [::Google::Cloud::ConfigService::V1::ResourceChange]
|
1046
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1047
|
+
#
|
1048
|
+
# @return [::Google::Cloud::ConfigService::V1::ResourceChange]
|
1049
|
+
# A result object deserialized from the server's reply
|
1050
|
+
def get_resource_change request_pb, options = nil
|
1051
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1052
|
+
|
1053
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_resource_change_request request_pb
|
1054
|
+
query_string_params = if query_string_params.any?
|
1055
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1056
|
+
else
|
1057
|
+
{}
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
response = @client_stub.make_http_request(
|
1061
|
+
verb,
|
1062
|
+
uri: uri,
|
1063
|
+
body: body || "",
|
1064
|
+
params: query_string_params,
|
1065
|
+
method_name: "get_resource_change",
|
1066
|
+
options: options
|
1067
|
+
)
|
1068
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1069
|
+
result = ::Google::Cloud::ConfigService::V1::ResourceChange.decode_json response.body, ignore_unknown_fields: true
|
1070
|
+
catch :response do
|
1071
|
+
yield result, operation if block_given?
|
1072
|
+
result
|
1073
|
+
end
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
##
|
1077
|
+
# Baseline implementation for the list_resource_drifts REST call
|
1078
|
+
#
|
1079
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::ListResourceDriftsRequest]
|
1080
|
+
# A request object representing the call parameters. Required.
|
1081
|
+
# @param options [::Gapic::CallOptions]
|
1082
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1083
|
+
#
|
1084
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1085
|
+
# @yieldparam result [::Google::Cloud::ConfigService::V1::ListResourceDriftsResponse]
|
1086
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1087
|
+
#
|
1088
|
+
# @return [::Google::Cloud::ConfigService::V1::ListResourceDriftsResponse]
|
1089
|
+
# A result object deserialized from the server's reply
|
1090
|
+
def list_resource_drifts request_pb, options = nil
|
1091
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1092
|
+
|
1093
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_resource_drifts_request request_pb
|
1094
|
+
query_string_params = if query_string_params.any?
|
1095
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1096
|
+
else
|
1097
|
+
{}
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
response = @client_stub.make_http_request(
|
1101
|
+
verb,
|
1102
|
+
uri: uri,
|
1103
|
+
body: body || "",
|
1104
|
+
params: query_string_params,
|
1105
|
+
method_name: "list_resource_drifts",
|
1106
|
+
options: options
|
1107
|
+
)
|
1108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1109
|
+
result = ::Google::Cloud::ConfigService::V1::ListResourceDriftsResponse.decode_json response.body, ignore_unknown_fields: true
|
1110
|
+
catch :response do
|
1111
|
+
yield result, operation if block_given?
|
1112
|
+
result
|
1113
|
+
end
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
##
|
1117
|
+
# Baseline implementation for the get_resource_drift REST call
|
1118
|
+
#
|
1119
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::GetResourceDriftRequest]
|
1120
|
+
# A request object representing the call parameters. Required.
|
1121
|
+
# @param options [::Gapic::CallOptions]
|
1122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1123
|
+
#
|
1124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1125
|
+
# @yieldparam result [::Google::Cloud::ConfigService::V1::ResourceDrift]
|
1126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1127
|
+
#
|
1128
|
+
# @return [::Google::Cloud::ConfigService::V1::ResourceDrift]
|
1129
|
+
# A result object deserialized from the server's reply
|
1130
|
+
def get_resource_drift request_pb, options = nil
|
1131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1132
|
+
|
1133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_resource_drift_request request_pb
|
1134
|
+
query_string_params = if query_string_params.any?
|
1135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1136
|
+
else
|
1137
|
+
{}
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
response = @client_stub.make_http_request(
|
1141
|
+
verb,
|
1142
|
+
uri: uri,
|
1143
|
+
body: body || "",
|
1144
|
+
params: query_string_params,
|
1145
|
+
method_name: "get_resource_drift",
|
1146
|
+
options: options
|
1147
|
+
)
|
1148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1149
|
+
result = ::Google::Cloud::ConfigService::V1::ResourceDrift.decode_json response.body, ignore_unknown_fields: true
|
1150
|
+
catch :response do
|
1151
|
+
yield result, operation if block_given?
|
1152
|
+
result
|
1153
|
+
end
|
1154
|
+
end
|
1155
|
+
|
996
1156
|
##
|
997
1157
|
# @private
|
998
1158
|
#
|
@@ -1485,6 +1645,90 @@ module Google
|
|
1485
1645
|
)
|
1486
1646
|
transcoder.transcode request_pb
|
1487
1647
|
end
|
1648
|
+
|
1649
|
+
##
|
1650
|
+
# @private
|
1651
|
+
#
|
1652
|
+
# GRPC transcoding helper method for the list_resource_changes REST call
|
1653
|
+
#
|
1654
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::ListResourceChangesRequest]
|
1655
|
+
# A request object representing the call parameters. Required.
|
1656
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1657
|
+
# Uri, Body, Query string parameters
|
1658
|
+
def self.transcode_list_resource_changes_request request_pb
|
1659
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1660
|
+
.with_bindings(
|
1661
|
+
uri_method: :get,
|
1662
|
+
uri_template: "/v1/{parent}/resourceChanges",
|
1663
|
+
matches: [
|
1664
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/previews/[^/]+/?$}, false]
|
1665
|
+
]
|
1666
|
+
)
|
1667
|
+
transcoder.transcode request_pb
|
1668
|
+
end
|
1669
|
+
|
1670
|
+
##
|
1671
|
+
# @private
|
1672
|
+
#
|
1673
|
+
# GRPC transcoding helper method for the get_resource_change REST call
|
1674
|
+
#
|
1675
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::GetResourceChangeRequest]
|
1676
|
+
# A request object representing the call parameters. Required.
|
1677
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1678
|
+
# Uri, Body, Query string parameters
|
1679
|
+
def self.transcode_get_resource_change_request request_pb
|
1680
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1681
|
+
.with_bindings(
|
1682
|
+
uri_method: :get,
|
1683
|
+
uri_template: "/v1/{name}",
|
1684
|
+
matches: [
|
1685
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/previews/[^/]+/resourceChanges/[^/]+/?$}, false]
|
1686
|
+
]
|
1687
|
+
)
|
1688
|
+
transcoder.transcode request_pb
|
1689
|
+
end
|
1690
|
+
|
1691
|
+
##
|
1692
|
+
# @private
|
1693
|
+
#
|
1694
|
+
# GRPC transcoding helper method for the list_resource_drifts REST call
|
1695
|
+
#
|
1696
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::ListResourceDriftsRequest]
|
1697
|
+
# A request object representing the call parameters. Required.
|
1698
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1699
|
+
# Uri, Body, Query string parameters
|
1700
|
+
def self.transcode_list_resource_drifts_request request_pb
|
1701
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1702
|
+
.with_bindings(
|
1703
|
+
uri_method: :get,
|
1704
|
+
uri_template: "/v1/{parent}/resourceDrifts",
|
1705
|
+
matches: [
|
1706
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/previews/[^/]+/?$}, false]
|
1707
|
+
]
|
1708
|
+
)
|
1709
|
+
transcoder.transcode request_pb
|
1710
|
+
end
|
1711
|
+
|
1712
|
+
##
|
1713
|
+
# @private
|
1714
|
+
#
|
1715
|
+
# GRPC transcoding helper method for the get_resource_drift REST call
|
1716
|
+
#
|
1717
|
+
# @param request_pb [::Google::Cloud::ConfigService::V1::GetResourceDriftRequest]
|
1718
|
+
# A request object representing the call parameters. Required.
|
1719
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1720
|
+
# Uri, Body, Query string parameters
|
1721
|
+
def self.transcode_get_resource_drift_request request_pb
|
1722
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1723
|
+
.with_bindings(
|
1724
|
+
uri_method: :get,
|
1725
|
+
uri_template: "/v1/{name}",
|
1726
|
+
matches: [
|
1727
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/previews/[^/]+/resourceDrifts/[^/]+/?$}, false]
|
1728
|
+
]
|
1729
|
+
)
|
1730
|
+
transcoder.transcode request_pb
|
1731
|
+
end
|
1488
1732
|
end
|
1489
1733
|
end
|
1490
1734
|
end
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# as a root module.
|
30
30
|
# @!attribute [rw] name
|
31
31
|
# @return [::String]
|
32
|
-
# Resource name of the deployment.
|
32
|
+
# Identifier. Resource name of the deployment.
|
33
33
|
# Format: `projects/{project}/locations/{location}/deployments/{deployment}`
|
34
34
|
# @!attribute [r] create_time
|
35
35
|
# @return [::Google::Protobuf::Timestamp]
|
@@ -39,7 +39,7 @@ module Google
|
|
39
39
|
# Output only. Time when the deployment was last modified.
|
40
40
|
# @!attribute [rw] labels
|
41
41
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
42
|
-
# User-defined metadata for the deployment.
|
42
|
+
# Optional. User-defined metadata for the deployment.
|
43
43
|
# @!attribute [r] state
|
44
44
|
# @return [::Google::Cloud::ConfigService::V1::Deployment::State]
|
45
45
|
# Output only. Current state of the deployment.
|
@@ -248,7 +248,7 @@ module Google
|
|
248
248
|
# Note: The following fields are mutually exclusive: `git_source`, `gcs_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
249
249
|
# @!attribute [rw] input_values
|
250
250
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ConfigService::V1::TerraformVariable}]
|
251
|
-
# Input variable values for the Terraform blueprint.
|
251
|
+
# Optional. Input variable values for the Terraform blueprint.
|
252
252
|
class TerraformBlueprint
|
253
253
|
include ::Google::Protobuf::MessageExts
|
254
254
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -266,7 +266,7 @@ module Google
|
|
266
266
|
# A Terraform input variable.
|
267
267
|
# @!attribute [rw] input_value
|
268
268
|
# @return [::Google::Protobuf::Value]
|
269
|
-
# Input variable value.
|
269
|
+
# Optional. Input variable value.
|
270
270
|
class TerraformVariable
|
271
271
|
include ::Google::Protobuf::MessageExts
|
272
272
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -763,9 +763,10 @@ module Google
|
|
763
763
|
# @!attribute [rw] error_description
|
764
764
|
# @return [::String]
|
765
765
|
# A human-readable error description.
|
766
|
-
# @!attribute [
|
766
|
+
# @!attribute [r] error
|
767
767
|
# @return [::Google::Rpc::Status]
|
768
|
-
# Original error response from underlying Google API, if
|
768
|
+
# Output only. Original error response from underlying Google API, if
|
769
|
+
# available.
|
769
770
|
class TerraformError
|
770
771
|
include ::Google::Protobuf::MessageExts
|
771
772
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1233,7 +1234,7 @@ module Google
|
|
1233
1234
|
# @!attribute [rw] annotations
|
1234
1235
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
1235
1236
|
# Optional. Arbitrary key-value metadata storage e.g. to help client tools
|
1236
|
-
#
|
1237
|
+
# identify preview during automation. See
|
1237
1238
|
# https://google.aip.dev/148#annotations for details on format and size
|
1238
1239
|
# limitations.
|
1239
1240
|
class Preview
|
@@ -1571,14 +1572,14 @@ module Google
|
|
1571
1572
|
# 'projects/\\{project_id}/locations/\\{location}'.
|
1572
1573
|
# @!attribute [rw] page_size
|
1573
1574
|
# @return [::Integer]
|
1574
|
-
# Optional. When requesting a page of
|
1575
|
-
# of
|
1576
|
-
# maximum value is 1000.
|
1575
|
+
# Optional. When requesting a page of terraform versions, 'page_size'
|
1576
|
+
# specifies number of terraform versions to return. If unspecified, at most
|
1577
|
+
# 500 will be returned. The maximum value is 1000.
|
1577
1578
|
# @!attribute [rw] page_token
|
1578
1579
|
# @return [::String]
|
1579
1580
|
# Optional. Token returned by previous call to 'ListTerraformVersions' which
|
1580
1581
|
# specifies the position in the list from where to continue listing the
|
1581
|
-
#
|
1582
|
+
# terraform versions.
|
1582
1583
|
# @!attribute [rw] filter
|
1583
1584
|
# @return [::String]
|
1584
1585
|
# Optional. Lists the TerraformVersions that match the filter expression. A
|
@@ -1651,6 +1652,286 @@ module Google
|
|
1651
1652
|
end
|
1652
1653
|
end
|
1653
1654
|
|
1655
|
+
# Terraform info of a ResourceChange.
|
1656
|
+
# @!attribute [r] address
|
1657
|
+
# @return [::String]
|
1658
|
+
# Output only. TF resource address that uniquely identifies the resource.
|
1659
|
+
# @!attribute [r] type
|
1660
|
+
# @return [::String]
|
1661
|
+
# Output only. TF resource type.
|
1662
|
+
# @!attribute [r] resource_name
|
1663
|
+
# @return [::String]
|
1664
|
+
# Output only. TF resource name.
|
1665
|
+
# @!attribute [r] provider
|
1666
|
+
# @return [::String]
|
1667
|
+
# Output only. TF resource provider.
|
1668
|
+
# @!attribute [r] actions
|
1669
|
+
# @return [::Array<::String>]
|
1670
|
+
# Output only. TF resource actions.
|
1671
|
+
class ResourceChangeTerraformInfo
|
1672
|
+
include ::Google::Protobuf::MessageExts
|
1673
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1674
|
+
end
|
1675
|
+
|
1676
|
+
# A resource change represents a change to a resource in the state file.
|
1677
|
+
# @!attribute [rw] name
|
1678
|
+
# @return [::String]
|
1679
|
+
# Identifier. The name of the resource change.
|
1680
|
+
# Format:
|
1681
|
+
# 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}/resourceChanges/\\{resource_change}'.
|
1682
|
+
# @!attribute [r] terraform_info
|
1683
|
+
# @return [::Google::Cloud::ConfigService::V1::ResourceChangeTerraformInfo]
|
1684
|
+
# Output only. Terraform info of the resource change.
|
1685
|
+
# @!attribute [r] intent
|
1686
|
+
# @return [::Google::Cloud::ConfigService::V1::ResourceChange::Intent]
|
1687
|
+
# Output only. The intent of the resource change.
|
1688
|
+
# @!attribute [r] property_changes
|
1689
|
+
# @return [::Array<::Google::Cloud::ConfigService::V1::PropertyChange>]
|
1690
|
+
# Output only. The property changes of the resource change.
|
1691
|
+
class ResourceChange
|
1692
|
+
include ::Google::Protobuf::MessageExts
|
1693
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1694
|
+
|
1695
|
+
# Possible intent of the resource change.
|
1696
|
+
module Intent
|
1697
|
+
# The default value.
|
1698
|
+
INTENT_UNSPECIFIED = 0
|
1699
|
+
|
1700
|
+
# The resource will be created.
|
1701
|
+
CREATE = 1
|
1702
|
+
|
1703
|
+
# The resource will be updated.
|
1704
|
+
UPDATE = 2
|
1705
|
+
|
1706
|
+
# The resource will be deleted.
|
1707
|
+
DELETE = 3
|
1708
|
+
|
1709
|
+
# The resource will be recreated.
|
1710
|
+
RECREATE = 4
|
1711
|
+
|
1712
|
+
# The resource will be untouched.
|
1713
|
+
UNCHANGED = 5
|
1714
|
+
end
|
1715
|
+
end
|
1716
|
+
|
1717
|
+
# A property change represents a change to a property in the state file.
|
1718
|
+
# @!attribute [r] path
|
1719
|
+
# @return [::String]
|
1720
|
+
# Output only. The path of the property change.
|
1721
|
+
# @!attribute [r] before_sensitive_paths
|
1722
|
+
# @return [::Array<::String>]
|
1723
|
+
# Output only. The paths of sensitive fields in `before`. Paths are relative
|
1724
|
+
# to `path`.
|
1725
|
+
# @!attribute [r] before
|
1726
|
+
# @return [::Google::Protobuf::Value]
|
1727
|
+
# Output only. Representations of the object value before the actions.
|
1728
|
+
# @!attribute [r] after_sensitive_paths
|
1729
|
+
# @return [::Array<::String>]
|
1730
|
+
# Output only. The paths of sensitive fields in `after`. Paths are relative
|
1731
|
+
# to `path`.
|
1732
|
+
# @!attribute [r] after
|
1733
|
+
# @return [::Google::Protobuf::Value]
|
1734
|
+
# Output only. Representations of the object value after the actions.
|
1735
|
+
class PropertyChange
|
1736
|
+
include ::Google::Protobuf::MessageExts
|
1737
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1738
|
+
end
|
1739
|
+
|
1740
|
+
# The request message for the ListResourceChanges method.
|
1741
|
+
# @!attribute [rw] parent
|
1742
|
+
# @return [::String]
|
1743
|
+
# Required. The parent in whose context the ResourceChanges are listed. The
|
1744
|
+
# parent value is in the format:
|
1745
|
+
# 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}'.
|
1746
|
+
# @!attribute [rw] page_size
|
1747
|
+
# @return [::Integer]
|
1748
|
+
# Optional. When requesting a page of resource changes, 'page_size' specifies
|
1749
|
+
# number of resource changes to return. If unspecified, at most 500 will be
|
1750
|
+
# returned. The maximum value is 1000.
|
1751
|
+
# @!attribute [rw] page_token
|
1752
|
+
# @return [::String]
|
1753
|
+
# Optional. Token returned by previous call to 'ListResourceChanges' which
|
1754
|
+
# specifies the position in the list from where to continue listing the
|
1755
|
+
# resource changes.
|
1756
|
+
# @!attribute [rw] filter
|
1757
|
+
# @return [::String]
|
1758
|
+
# Optional. Lists the resource changes that match the filter expression. A
|
1759
|
+
# filter expression filters the resource changes listed in the response. The
|
1760
|
+
# expression must be of the form '\\{field} \\{operator} \\{value}' where
|
1761
|
+
# operators: '<', '>',
|
1762
|
+
# '<=',
|
1763
|
+
# '>=',
|
1764
|
+
# '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
|
1765
|
+
# roughly synonymous with equality). \\{field} can refer to a proto or JSON
|
1766
|
+
# field, or a synthetic field. Field names can be camelCase or snake_case.
|
1767
|
+
#
|
1768
|
+
# Examples:
|
1769
|
+
# - Filter by name:
|
1770
|
+
# name =
|
1771
|
+
# "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz
|
1772
|
+
# @!attribute [rw] order_by
|
1773
|
+
# @return [::String]
|
1774
|
+
# Optional. Field to use to sort the list.
|
1775
|
+
class ListResourceChangesRequest
|
1776
|
+
include ::Google::Protobuf::MessageExts
|
1777
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1778
|
+
end
|
1779
|
+
|
1780
|
+
# A response to a 'ListResourceChanges' call. Contains a list of
|
1781
|
+
# ResourceChanges.
|
1782
|
+
# @!attribute [rw] resource_changes
|
1783
|
+
# @return [::Array<::Google::Cloud::ConfigService::V1::ResourceChange>]
|
1784
|
+
# List of ResourceChanges.
|
1785
|
+
# @!attribute [rw] next_page_token
|
1786
|
+
# @return [::String]
|
1787
|
+
# A token to request the next page of resources from the
|
1788
|
+
# 'ListResourceChanges' method. The value of an empty string means that
|
1789
|
+
# there are no more resources to return.
|
1790
|
+
# @!attribute [rw] unreachable
|
1791
|
+
# @return [::Array<::String>]
|
1792
|
+
# Unreachable resources, if any.
|
1793
|
+
class ListResourceChangesResponse
|
1794
|
+
include ::Google::Protobuf::MessageExts
|
1795
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1796
|
+
end
|
1797
|
+
|
1798
|
+
# The request message for the GetResourceChange method.
|
1799
|
+
# @!attribute [rw] name
|
1800
|
+
# @return [::String]
|
1801
|
+
# Required. The name of the resource change to retrieve.
|
1802
|
+
# Format:
|
1803
|
+
# 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}/resourceChanges/\\{resource_change}'.
|
1804
|
+
class GetResourceChangeRequest
|
1805
|
+
include ::Google::Protobuf::MessageExts
|
1806
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1807
|
+
end
|
1808
|
+
|
1809
|
+
# Terraform info of a ResourceChange.
|
1810
|
+
# @!attribute [r] address
|
1811
|
+
# @return [::String]
|
1812
|
+
# Output only. The address of the drifted resource.
|
1813
|
+
# @!attribute [r] type
|
1814
|
+
# @return [::String]
|
1815
|
+
# Output only. The type of the drifted resource.
|
1816
|
+
# @!attribute [r] resource_name
|
1817
|
+
# @return [::String]
|
1818
|
+
# Output only. TF resource name.
|
1819
|
+
# @!attribute [r] provider
|
1820
|
+
# @return [::String]
|
1821
|
+
# Output only. The provider of the drifted resource.
|
1822
|
+
class ResourceDriftTerraformInfo
|
1823
|
+
include ::Google::Protobuf::MessageExts
|
1824
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1825
|
+
end
|
1826
|
+
|
1827
|
+
# A resource drift represents a drift to a resource in the state file.
|
1828
|
+
# @!attribute [rw] name
|
1829
|
+
# @return [::String]
|
1830
|
+
# Identifier. The name of the resource drift.
|
1831
|
+
# Format:
|
1832
|
+
# 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}/resourceDrifts/\\{resource_drift}'.
|
1833
|
+
# @!attribute [r] terraform_info
|
1834
|
+
# @return [::Google::Cloud::ConfigService::V1::ResourceDriftTerraformInfo]
|
1835
|
+
# Output only. Terraform info of the resource drift.
|
1836
|
+
# @!attribute [r] property_drifts
|
1837
|
+
# @return [::Array<::Google::Cloud::ConfigService::V1::PropertyDrift>]
|
1838
|
+
# Output only. The property drifts of the resource drift.
|
1839
|
+
class ResourceDrift
|
1840
|
+
include ::Google::Protobuf::MessageExts
|
1841
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1842
|
+
end
|
1843
|
+
|
1844
|
+
# A property drift represents a drift to a property in the state file.
|
1845
|
+
# @!attribute [r] path
|
1846
|
+
# @return [::String]
|
1847
|
+
# Output only. The path of the property drift.
|
1848
|
+
# @!attribute [r] before_sensitive_paths
|
1849
|
+
# @return [::Array<::String>]
|
1850
|
+
# Output only. The paths of sensitive fields in `before`. Paths are relative
|
1851
|
+
# to `path`.
|
1852
|
+
# @!attribute [r] before
|
1853
|
+
# @return [::Google::Protobuf::Value]
|
1854
|
+
# Output only. Representations of the object value before the actions.
|
1855
|
+
# @!attribute [r] after_sensitive_paths
|
1856
|
+
# @return [::Array<::String>]
|
1857
|
+
# Output only. The paths of sensitive fields in `after`. Paths are relative
|
1858
|
+
# to `path`.
|
1859
|
+
# @!attribute [r] after
|
1860
|
+
# @return [::Google::Protobuf::Value]
|
1861
|
+
# Output only. Representations of the object value after the actions.
|
1862
|
+
class PropertyDrift
|
1863
|
+
include ::Google::Protobuf::MessageExts
|
1864
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1865
|
+
end
|
1866
|
+
|
1867
|
+
# The request message for the ListResourceDrifts method.
|
1868
|
+
# @!attribute [rw] parent
|
1869
|
+
# @return [::String]
|
1870
|
+
# Required. The parent in whose context the ResourceDrifts are listed. The
|
1871
|
+
# parent value is in the format:
|
1872
|
+
# 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}'.
|
1873
|
+
# @!attribute [rw] page_size
|
1874
|
+
# @return [::Integer]
|
1875
|
+
# Optional. When requesting a page of resource drifts, 'page_size' specifies
|
1876
|
+
# number of resource drifts to return. If unspecified, at most 500 will be
|
1877
|
+
# returned. The maximum value is 1000.
|
1878
|
+
# @!attribute [rw] page_token
|
1879
|
+
# @return [::String]
|
1880
|
+
# Optional. Token returned by previous call to 'ListResourceDrifts' which
|
1881
|
+
# specifies the position in the list from where to continue listing the
|
1882
|
+
# resource drifts.
|
1883
|
+
# @!attribute [rw] filter
|
1884
|
+
# @return [::String]
|
1885
|
+
# Optional. Lists the resource drifts that match the filter expression. A
|
1886
|
+
# filter expression filters the resource drifts listed in the response. The
|
1887
|
+
# expression must be of the form '\\{field} \\{operator} \\{value}' where
|
1888
|
+
# operators: '<', '>',
|
1889
|
+
# '<=',
|
1890
|
+
# '>=',
|
1891
|
+
# '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
|
1892
|
+
# roughly synonymous with equality). \\{field} can refer to a proto or JSON
|
1893
|
+
# field, or a synthetic field. Field names can be camelCase or snake_case.
|
1894
|
+
#
|
1895
|
+
# Examples:
|
1896
|
+
# - Filter by name:
|
1897
|
+
# name =
|
1898
|
+
# "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz
|
1899
|
+
# @!attribute [rw] order_by
|
1900
|
+
# @return [::String]
|
1901
|
+
# Optional. Field to use to sort the list.
|
1902
|
+
class ListResourceDriftsRequest
|
1903
|
+
include ::Google::Protobuf::MessageExts
|
1904
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1905
|
+
end
|
1906
|
+
|
1907
|
+
# A response to a 'ListResourceDrifts' call. Contains a list of ResourceDrifts.
|
1908
|
+
# @!attribute [rw] resource_drifts
|
1909
|
+
# @return [::Array<::Google::Cloud::ConfigService::V1::ResourceDrift>]
|
1910
|
+
# List of ResourceDrifts.
|
1911
|
+
# @!attribute [rw] next_page_token
|
1912
|
+
# @return [::String]
|
1913
|
+
# A token to request the next page of resources from the
|
1914
|
+
# 'ListResourceDrifts' method. The value of an empty string means that
|
1915
|
+
# there are no more resources to return.
|
1916
|
+
# @!attribute [rw] unreachable
|
1917
|
+
# @return [::Array<::String>]
|
1918
|
+
# Unreachable resources, if any.
|
1919
|
+
class ListResourceDriftsResponse
|
1920
|
+
include ::Google::Protobuf::MessageExts
|
1921
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1922
|
+
end
|
1923
|
+
|
1924
|
+
# The request message for the GetResourceDrift method.
|
1925
|
+
# @!attribute [rw] name
|
1926
|
+
# @return [::String]
|
1927
|
+
# Required. The name of the resource drift to retrieve.
|
1928
|
+
# Format:
|
1929
|
+
# 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}/resourceDrifts/\\{resource_drift}'.
|
1930
|
+
class GetResourceDriftRequest
|
1931
|
+
include ::Google::Protobuf::MessageExts
|
1932
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1933
|
+
end
|
1934
|
+
|
1654
1935
|
# Enum values to control quota checks for resources in terraform
|
1655
1936
|
# configuration files.
|
1656
1937
|
module QuotaValidation
|