GoogleProvider class final
Concrete StackProvider for hashicorp/google ~> 7.0.
StackSynth.synth(...) reads source / versionConstraint to populate
the terraform.required_providers.google block, and configArgs to
populate the provider.google[] block.
All configuration fields are plain Dart types (not TfArg) — provider
blocks in Terraform JSON do not interpolate references to resources, so
there is no TfArgRef use case here. Pass literal strings only.
- Annotations
-
- @immutable
Constructors
- GoogleProvider({String? project, String? region, String? zone, String? providerAlias})
-
const
Properties
-
configArgs
→ Map<
String, Object?> -
Provider-specific config args (project, region, credentials, etc.) as
JSON-encodable map. The returned map is copied verbatim into the
provider.<providerName>block. Empty map for unparameterized providers.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- project → String?
-
Default GCP project ID.
final
- providerAlias → String?
-
Optional alias for multi-provider scenarios (e.g.
provider "google" { alias = "secondary" }). v0.0.x returns null = no alias.final - providerName → String
-
Short provider name, e.g.
'google'. Used as the JSON key underprovider.<providerName>.no setter - region → String?
-
Default GCP region (e.g.
us-central1).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
Provider registry source —
hashicorp/google.no setter - versionConstraint → String
-
Version constraint —
~> 7.0.no setter - zone → String?
-
Default GCP zone (e.g.
us-central1-a).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toTfJson(
) → Map< String, Object?> -
Backwards-compat shim for tests / earlier callers that invoked
toTfJson()directly. Returns the same map asconfigArgs.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited