google-cloud-config_service-v1 2.1.0 → 2.3.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.
@@ -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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ConfigService
23
23
  module V1
24
- VERSION = "2.1.0"
24
+ VERSION = "2.3.0"
25
25
  end
26
26
  end
27
27
  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.
@@ -128,6 +128,9 @@ module Google
128
128
  # identify deployments during automation. See
129
129
  # https://google.aip.dev/148#annotations for details on format and size
130
130
  # limitations.
131
+ # @!attribute [rw] provider_config
132
+ # @return [::Google::Cloud::ConfigService::V1::ProviderConfig]
133
+ # Optional. This field specifies the provider configurations.
131
134
  class Deployment
132
135
  include ::Google::Protobuf::MessageExts
133
136
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -248,7 +251,7 @@ module Google
248
251
  # 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
252
  # @!attribute [rw] input_values
250
253
  # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ConfigService::V1::TerraformVariable}]
251
- # Input variable values for the Terraform blueprint.
254
+ # Optional. Input variable values for the Terraform blueprint.
252
255
  class TerraformBlueprint
253
256
  include ::Google::Protobuf::MessageExts
254
257
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -266,7 +269,7 @@ module Google
266
269
  # A Terraform input variable.
267
270
  # @!attribute [rw] input_value
268
271
  # @return [::Google::Protobuf::Value]
269
- # Input variable value.
272
+ # Optional. Input variable value.
270
273
  class TerraformVariable
271
274
  include ::Google::Protobuf::MessageExts
272
275
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -694,6 +697,9 @@ module Google
694
697
  # Optional. Input to control quota checks for resources in terraform
695
698
  # configuration files. There are limited resources on which quota validation
696
699
  # applies.
700
+ # @!attribute [r] provider_config
701
+ # @return [::Google::Cloud::ConfigService::V1::ProviderConfig]
702
+ # Output only. This field specifies the provider configurations.
697
703
  class Revision
698
704
  include ::Google::Protobuf::MessageExts
699
705
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -763,9 +769,10 @@ module Google
763
769
  # @!attribute [rw] error_description
764
770
  # @return [::String]
765
771
  # A human-readable error description.
766
- # @!attribute [rw] error
772
+ # @!attribute [r] error
767
773
  # @return [::Google::Rpc::Status]
768
- # Original error response from underlying Google API, if available.
774
+ # Output only. Original error response from underlying Google API, if
775
+ # available.
769
776
  class TerraformError
770
777
  include ::Google::Protobuf::MessageExts
771
778
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1233,9 +1240,12 @@ module Google
1233
1240
  # @!attribute [rw] annotations
1234
1241
  # @return [::Google::Protobuf::Map{::String => ::String}]
1235
1242
  # Optional. Arbitrary key-value metadata storage e.g. to help client tools
1236
- # identifiy preview during automation. See
1243
+ # identify preview during automation. See
1237
1244
  # https://google.aip.dev/148#annotations for details on format and size
1238
1245
  # limitations.
1246
+ # @!attribute [rw] provider_config
1247
+ # @return [::Google::Cloud::ConfigService::V1::ProviderConfig]
1248
+ # Optional. This field specifies the provider configurations.
1239
1249
  class Preview
1240
1250
  include ::Google::Protobuf::MessageExts
1241
1251
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1571,14 +1581,14 @@ module Google
1571
1581
  # 'projects/\\{project_id}/locations/\\{location}'.
1572
1582
  # @!attribute [rw] page_size
1573
1583
  # @return [::Integer]
1574
- # Optional. When requesting a page of resources, 'page_size' specifies number
1575
- # of resources to return. If unspecified, at most 500 will be returned. The
1576
- # maximum value is 1000.
1584
+ # Optional. When requesting a page of terraform versions, 'page_size'
1585
+ # specifies number of terraform versions to return. If unspecified, at most
1586
+ # 500 will be returned. The maximum value is 1000.
1577
1587
  # @!attribute [rw] page_token
1578
1588
  # @return [::String]
1579
1589
  # Optional. Token returned by previous call to 'ListTerraformVersions' which
1580
1590
  # specifies the position in the list from where to continue listing the
1581
- # resources.
1591
+ # terraform versions.
1582
1592
  # @!attribute [rw] filter
1583
1593
  # @return [::String]
1584
1594
  # Optional. Lists the TerraformVersions that match the filter expression. A
@@ -1651,6 +1661,304 @@ module Google
1651
1661
  end
1652
1662
  end
1653
1663
 
1664
+ # Terraform info of a ResourceChange.
1665
+ # @!attribute [r] address
1666
+ # @return [::String]
1667
+ # Output only. TF resource address that uniquely identifies the resource.
1668
+ # @!attribute [r] type
1669
+ # @return [::String]
1670
+ # Output only. TF resource type.
1671
+ # @!attribute [r] resource_name
1672
+ # @return [::String]
1673
+ # Output only. TF resource name.
1674
+ # @!attribute [r] provider
1675
+ # @return [::String]
1676
+ # Output only. TF resource provider.
1677
+ # @!attribute [r] actions
1678
+ # @return [::Array<::String>]
1679
+ # Output only. TF resource actions.
1680
+ class ResourceChangeTerraformInfo
1681
+ include ::Google::Protobuf::MessageExts
1682
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1683
+ end
1684
+
1685
+ # A resource change represents a change to a resource in the state file.
1686
+ # @!attribute [rw] name
1687
+ # @return [::String]
1688
+ # Identifier. The name of the resource change.
1689
+ # Format:
1690
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}/resourceChanges/\\{resource_change}'.
1691
+ # @!attribute [r] terraform_info
1692
+ # @return [::Google::Cloud::ConfigService::V1::ResourceChangeTerraformInfo]
1693
+ # Output only. Terraform info of the resource change.
1694
+ # @!attribute [r] intent
1695
+ # @return [::Google::Cloud::ConfigService::V1::ResourceChange::Intent]
1696
+ # Output only. The intent of the resource change.
1697
+ # @!attribute [r] property_changes
1698
+ # @return [::Array<::Google::Cloud::ConfigService::V1::PropertyChange>]
1699
+ # Output only. The property changes of the resource change.
1700
+ class ResourceChange
1701
+ include ::Google::Protobuf::MessageExts
1702
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1703
+
1704
+ # Possible intent of the resource change.
1705
+ module Intent
1706
+ # The default value.
1707
+ INTENT_UNSPECIFIED = 0
1708
+
1709
+ # The resource will be created.
1710
+ CREATE = 1
1711
+
1712
+ # The resource will be updated.
1713
+ UPDATE = 2
1714
+
1715
+ # The resource will be deleted.
1716
+ DELETE = 3
1717
+
1718
+ # The resource will be recreated.
1719
+ RECREATE = 4
1720
+
1721
+ # The resource will be untouched.
1722
+ UNCHANGED = 5
1723
+ end
1724
+ end
1725
+
1726
+ # A property change represents a change to a property in the state file.
1727
+ # @!attribute [r] path
1728
+ # @return [::String]
1729
+ # Output only. The path of the property change.
1730
+ # @!attribute [r] before_sensitive_paths
1731
+ # @return [::Array<::String>]
1732
+ # Output only. The paths of sensitive fields in `before`. Paths are relative
1733
+ # to `path`.
1734
+ # @!attribute [r] before
1735
+ # @return [::Google::Protobuf::Value]
1736
+ # Output only. Representations of the object value before the actions.
1737
+ # @!attribute [r] after_sensitive_paths
1738
+ # @return [::Array<::String>]
1739
+ # Output only. The paths of sensitive fields in `after`. Paths are relative
1740
+ # to `path`.
1741
+ # @!attribute [r] after
1742
+ # @return [::Google::Protobuf::Value]
1743
+ # Output only. Representations of the object value after the actions.
1744
+ class PropertyChange
1745
+ include ::Google::Protobuf::MessageExts
1746
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1747
+ end
1748
+
1749
+ # The request message for the ListResourceChanges method.
1750
+ # @!attribute [rw] parent
1751
+ # @return [::String]
1752
+ # Required. The parent in whose context the ResourceChanges are listed. The
1753
+ # parent value is in the format:
1754
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}'.
1755
+ # @!attribute [rw] page_size
1756
+ # @return [::Integer]
1757
+ # Optional. When requesting a page of resource changes, 'page_size' specifies
1758
+ # number of resource changes to return. If unspecified, at most 500 will be
1759
+ # returned. The maximum value is 1000.
1760
+ # @!attribute [rw] page_token
1761
+ # @return [::String]
1762
+ # Optional. Token returned by previous call to 'ListResourceChanges' which
1763
+ # specifies the position in the list from where to continue listing the
1764
+ # resource changes.
1765
+ # @!attribute [rw] filter
1766
+ # @return [::String]
1767
+ # Optional. Lists the resource changes that match the filter expression. A
1768
+ # filter expression filters the resource changes listed in the response. The
1769
+ # expression must be of the form '\\{field} \\{operator} \\{value}' where
1770
+ # operators: '<', '>',
1771
+ # '<=',
1772
+ # '>=',
1773
+ # '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
1774
+ # roughly synonymous with equality). \\{field} can refer to a proto or JSON
1775
+ # field, or a synthetic field. Field names can be camelCase or snake_case.
1776
+ #
1777
+ # Examples:
1778
+ # - Filter by name:
1779
+ # name =
1780
+ # "projects/foo/locations/us-central1/previews/dep/resourceChanges/baz
1781
+ # @!attribute [rw] order_by
1782
+ # @return [::String]
1783
+ # Optional. Field to use to sort the list.
1784
+ class ListResourceChangesRequest
1785
+ include ::Google::Protobuf::MessageExts
1786
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1787
+ end
1788
+
1789
+ # A response to a 'ListResourceChanges' call. Contains a list of
1790
+ # ResourceChanges.
1791
+ # @!attribute [rw] resource_changes
1792
+ # @return [::Array<::Google::Cloud::ConfigService::V1::ResourceChange>]
1793
+ # List of ResourceChanges.
1794
+ # @!attribute [rw] next_page_token
1795
+ # @return [::String]
1796
+ # A token to request the next page of resources from the
1797
+ # 'ListResourceChanges' method. The value of an empty string means that
1798
+ # there are no more resources to return.
1799
+ # @!attribute [rw] unreachable
1800
+ # @return [::Array<::String>]
1801
+ # Unreachable resources, if any.
1802
+ class ListResourceChangesResponse
1803
+ include ::Google::Protobuf::MessageExts
1804
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1805
+ end
1806
+
1807
+ # The request message for the GetResourceChange method.
1808
+ # @!attribute [rw] name
1809
+ # @return [::String]
1810
+ # Required. The name of the resource change to retrieve.
1811
+ # Format:
1812
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}/resourceChanges/\\{resource_change}'.
1813
+ class GetResourceChangeRequest
1814
+ include ::Google::Protobuf::MessageExts
1815
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1816
+ end
1817
+
1818
+ # Terraform info of a ResourceChange.
1819
+ # @!attribute [r] address
1820
+ # @return [::String]
1821
+ # Output only. The address of the drifted resource.
1822
+ # @!attribute [r] type
1823
+ # @return [::String]
1824
+ # Output only. The type of the drifted resource.
1825
+ # @!attribute [r] resource_name
1826
+ # @return [::String]
1827
+ # Output only. TF resource name.
1828
+ # @!attribute [r] provider
1829
+ # @return [::String]
1830
+ # Output only. The provider of the drifted resource.
1831
+ class ResourceDriftTerraformInfo
1832
+ include ::Google::Protobuf::MessageExts
1833
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1834
+ end
1835
+
1836
+ # A resource drift represents a drift to a resource in the state file.
1837
+ # @!attribute [rw] name
1838
+ # @return [::String]
1839
+ # Identifier. The name of the resource drift.
1840
+ # Format:
1841
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}/resourceDrifts/\\{resource_drift}'.
1842
+ # @!attribute [r] terraform_info
1843
+ # @return [::Google::Cloud::ConfigService::V1::ResourceDriftTerraformInfo]
1844
+ # Output only. Terraform info of the resource drift.
1845
+ # @!attribute [r] property_drifts
1846
+ # @return [::Array<::Google::Cloud::ConfigService::V1::PropertyDrift>]
1847
+ # Output only. The property drifts of the resource drift.
1848
+ class ResourceDrift
1849
+ include ::Google::Protobuf::MessageExts
1850
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1851
+ end
1852
+
1853
+ # A property drift represents a drift to a property in the state file.
1854
+ # @!attribute [r] path
1855
+ # @return [::String]
1856
+ # Output only. The path of the property drift.
1857
+ # @!attribute [r] before_sensitive_paths
1858
+ # @return [::Array<::String>]
1859
+ # Output only. The paths of sensitive fields in `before`. Paths are relative
1860
+ # to `path`.
1861
+ # @!attribute [r] before
1862
+ # @return [::Google::Protobuf::Value]
1863
+ # Output only. Representations of the object value before the actions.
1864
+ # @!attribute [r] after_sensitive_paths
1865
+ # @return [::Array<::String>]
1866
+ # Output only. The paths of sensitive fields in `after`. Paths are relative
1867
+ # to `path`.
1868
+ # @!attribute [r] after
1869
+ # @return [::Google::Protobuf::Value]
1870
+ # Output only. Representations of the object value after the actions.
1871
+ class PropertyDrift
1872
+ include ::Google::Protobuf::MessageExts
1873
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1874
+ end
1875
+
1876
+ # The request message for the ListResourceDrifts method.
1877
+ # @!attribute [rw] parent
1878
+ # @return [::String]
1879
+ # Required. The parent in whose context the ResourceDrifts are listed. The
1880
+ # parent value is in the format:
1881
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}'.
1882
+ # @!attribute [rw] page_size
1883
+ # @return [::Integer]
1884
+ # Optional. When requesting a page of resource drifts, 'page_size' specifies
1885
+ # number of resource drifts to return. If unspecified, at most 500 will be
1886
+ # returned. The maximum value is 1000.
1887
+ # @!attribute [rw] page_token
1888
+ # @return [::String]
1889
+ # Optional. Token returned by previous call to 'ListResourceDrifts' which
1890
+ # specifies the position in the list from where to continue listing the
1891
+ # resource drifts.
1892
+ # @!attribute [rw] filter
1893
+ # @return [::String]
1894
+ # Optional. Lists the resource drifts that match the filter expression. A
1895
+ # filter expression filters the resource drifts listed in the response. The
1896
+ # expression must be of the form '\\{field} \\{operator} \\{value}' where
1897
+ # operators: '<', '>',
1898
+ # '<=',
1899
+ # '>=',
1900
+ # '!=', '=', ':' are supported (colon ':' represents a HAS operator which is
1901
+ # roughly synonymous with equality). \\{field} can refer to a proto or JSON
1902
+ # field, or a synthetic field. Field names can be camelCase or snake_case.
1903
+ #
1904
+ # Examples:
1905
+ # - Filter by name:
1906
+ # name =
1907
+ # "projects/foo/locations/us-central1/previews/dep/resourceDrifts/baz
1908
+ # @!attribute [rw] order_by
1909
+ # @return [::String]
1910
+ # Optional. Field to use to sort the list.
1911
+ class ListResourceDriftsRequest
1912
+ include ::Google::Protobuf::MessageExts
1913
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1914
+ end
1915
+
1916
+ # A response to a 'ListResourceDrifts' call. Contains a list of ResourceDrifts.
1917
+ # @!attribute [rw] resource_drifts
1918
+ # @return [::Array<::Google::Cloud::ConfigService::V1::ResourceDrift>]
1919
+ # List of ResourceDrifts.
1920
+ # @!attribute [rw] next_page_token
1921
+ # @return [::String]
1922
+ # A token to request the next page of resources from the
1923
+ # 'ListResourceDrifts' method. The value of an empty string means that
1924
+ # there are no more resources to return.
1925
+ # @!attribute [rw] unreachable
1926
+ # @return [::Array<::String>]
1927
+ # Unreachable resources, if any.
1928
+ class ListResourceDriftsResponse
1929
+ include ::Google::Protobuf::MessageExts
1930
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1931
+ end
1932
+
1933
+ # The request message for the GetResourceDrift method.
1934
+ # @!attribute [rw] name
1935
+ # @return [::String]
1936
+ # Required. The name of the resource drift to retrieve.
1937
+ # Format:
1938
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}/resourceDrifts/\\{resource_drift}'.
1939
+ class GetResourceDriftRequest
1940
+ include ::Google::Protobuf::MessageExts
1941
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1942
+ end
1943
+
1944
+ # ProviderConfig contains the provider configurations.
1945
+ # @!attribute [rw] source_type
1946
+ # @return [::Google::Cloud::ConfigService::V1::ProviderConfig::ProviderSource]
1947
+ # Optional. ProviderSource specifies the source type of the provider.
1948
+ class ProviderConfig
1949
+ include ::Google::Protobuf::MessageExts
1950
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1951
+
1952
+ # ProviderSource represents the source type of the provider.
1953
+ module ProviderSource
1954
+ # Unspecified source type, default to public sources.
1955
+ PROVIDER_SOURCE_UNSPECIFIED = 0
1956
+
1957
+ # Service maintained provider source type.
1958
+ SERVICE_MAINTAINED = 1
1959
+ end
1960
+ end
1961
+
1654
1962
  # Enum values to control quota checks for resources in terraform
1655
1963
  # configuration files.
1656
1964
  module QuotaValidation