Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
PreviewResult,
PropertyChange,
PropertyDrift,
ProviderConfig,
QuotaValidation,
Resource,
ResourceCAIInfo,
Expand Down Expand Up @@ -133,6 +134,7 @@
"PreviewResult",
"PropertyChange",
"PropertyDrift",
"ProviderConfig",
"Resource",
"ResourceCAIInfo",
"ResourceChange",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
PreviewResult,
PropertyChange,
PropertyDrift,
ProviderConfig,
QuotaValidation,
Resource,
ResourceCAIInfo,
Expand Down Expand Up @@ -132,6 +133,7 @@
"PreviewResult",
"PropertyChange",
"PropertyDrift",
"ProviderConfig",
"QuotaValidation",
"Resource",
"ResourceCAIInfo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
Type,
Union,
)
import uuid

from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
Union,
cast,
)
import uuid
import warnings

from google.api_core import client_options as client_options_lib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
PreviewResult,
PropertyChange,
PropertyDrift,
ProviderConfig,
QuotaValidation,
Resource,
ResourceCAIInfo,
Expand Down Expand Up @@ -124,6 +125,7 @@
"PreviewResult",
"PropertyChange",
"PropertyDrift",
"ProviderConfig",
"Resource",
"ResourceCAIInfo",
"ResourceChange",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"ListResourceDriftsRequest",
"ListResourceDriftsResponse",
"GetResourceDriftRequest",
"ProviderConfig",
},
)

Expand Down Expand Up @@ -238,6 +239,9 @@ class Deployment(proto.Message):
deployments during automation. See
https://google.aip.dev/148#annotations for
details on format and size limitations.
provider_config (google.cloud.config_v1.types.ProviderConfig):
Optional. This field specifies the provider
configurations.
"""

class State(proto.Enum):
Expand Down Expand Up @@ -443,6 +447,11 @@ class LockState(proto.Enum):
proto.STRING,
number=24,
)
provider_config: "ProviderConfig" = proto.Field(
proto.MESSAGE,
number=25,
message="ProviderConfig",
)


class TerraformBlueprint(proto.Message):
Expand Down Expand Up @@ -1161,6 +1170,9 @@ class Revision(proto.Message):
resources in terraform configuration files.
There are limited resources on which quota
validation applies.
provider_config (google.cloud.config_v1.types.ProviderConfig):
Output only. This field specifies the
provider configurations.
"""

class Action(proto.Enum):
Expand Down Expand Up @@ -1319,6 +1331,11 @@ class ErrorCode(proto.Enum):
number=20,
enum="QuotaValidation",
)
provider_config: "ProviderConfig" = proto.Field(
proto.MESSAGE,
number=21,
message="ProviderConfig",
)


class TerraformError(proto.Message):
Expand Down Expand Up @@ -2054,6 +2071,9 @@ class Preview(proto.Message):
preview during automation. See
https://google.aip.dev/148#annotations for
details on format and size limitations.
provider_config (google.cloud.config_v1.types.ProviderConfig):
Optional. This field specifies the provider
configurations.
"""

class State(proto.Enum):
Expand Down Expand Up @@ -2237,6 +2257,11 @@ class ErrorCode(proto.Enum):
proto.STRING,
number=20,
)
provider_config: "ProviderConfig" = proto.Field(
proto.MESSAGE,
number=21,
message="ProviderConfig",
)


class PreviewOperationMetadata(proto.Message):
Expand Down Expand Up @@ -3255,4 +3280,38 @@ class GetResourceDriftRequest(proto.Message):
)


class ProviderConfig(proto.Message):
r"""ProviderConfig contains the provider configurations.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
source_type (google.cloud.config_v1.types.ProviderConfig.ProviderSource):
Optional. ProviderSource specifies the source
type of the provider.

This field is a member of `oneof`_ ``_source_type``.
"""

class ProviderSource(proto.Enum):
r"""ProviderSource represents the source type of the provider.

Values:
PROVIDER_SOURCE_UNSPECIFIED (0):
Unspecified source type, default to public
sources.
SERVICE_MAINTAINED (1):
Service maintained provider source type.
"""
PROVIDER_SOURCE_UNSPECIFIED = 0
SERVICE_MAINTAINED = 1

source_type: ProviderSource = proto.Field(
proto.ENUM,
number=1,
optional=True,
enum=ProviderSource,
)


__all__ = tuple(sorted(__protobuf__.manifest))
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#
import os
import re

# try/except added for compatibility with python < 3.8
try:
Expand Down Expand Up @@ -18835,6 +18834,7 @@ def test_create_deployment_rest_call_success(request_type):
"tf_version": "tf_version_value",
"quota_validation": 1,
"annotations": {},
"provider_config": {"source_type": 1},
}
# The version of a generated dependency at test runtime may differ from the version used during generation.
# Delete any fields which are not present in the current runtime dependency
Expand Down Expand Up @@ -19078,6 +19078,7 @@ def test_update_deployment_rest_call_success(request_type):
"tf_version": "tf_version_value",
"quota_validation": 1,
"annotations": {},
"provider_config": {"source_type": 1},
}
# The version of a generated dependency at test runtime may differ from the version used during generation.
# Delete any fields which are not present in the current runtime dependency
Expand Down Expand Up @@ -20812,6 +20813,7 @@ def test_create_preview_rest_call_success(request_type):
"tf_version": "tf_version_value",
"tf_version_constraint": "tf_version_constraint_value",
"annotations": {},
"provider_config": {"source_type": 1},
}
# The version of a generated dependency at test runtime may differ from the version used during generation.
# Delete any fields which are not present in the current runtime dependency
Expand Down
Loading