Skip to content

Commit

Permalink
Merge pull request #17 from hashicorp/upgrade-provider-project-96
Browse files Browse the repository at this point in the history
  • Loading branch information
team-tf-cdk authored May 24, 2022
2 parents ae7ae92 + 067032a commit f81585e
Show file tree
Hide file tree
Showing 34 changed files with 20,996 additions and 3,696 deletions.
6 changes: 3 additions & 3 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { CdktfProviderProject } = require('@cdktf/provider-project');
const { CdktfProviderProject } = require("@cdktf/provider-project");
const project = new CdktfProviderProject({
terraformProvider: "UpCloudLtd/upcloud@~> 2.4",
cdktfVersion: '^0.10.3',
cdktfVersion: "^0.11.0",
constructsVersion: "^10.0.0",
minNodeVersion: "14.17.0",
jsiiVersion: "^1.53.0",
Expand Down
20,809 changes: 17,423 additions & 3,386 deletions API.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions src/data-upcloud-hosts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import * as cdktf from 'cdktf';
// Configuration

export interface DataUpcloudHostsConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/d/hosts#id DataUpcloudHosts#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
}
export interface DataUpcloudHostsHosts {
}
Expand Down Expand Up @@ -117,6 +124,7 @@ export class DataUpcloudHosts extends cdktf.TerraformDataSource {
count: config.count,
lifecycle: config.lifecycle
});
this._id = config.id;
}

// ==========
Expand All @@ -130,16 +138,28 @@ export class DataUpcloudHosts extends cdktf.TerraformDataSource {
}

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// =========
// SYNTHESIS
// =========

protected synthesizeAttributes(): { [name: string]: any } {
return {
id: cdktf.stringToTerraform(this._id),
};
}
}
20 changes: 20 additions & 0 deletions src/data-upcloud-ip-addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import * as cdktf from 'cdktf';
// Configuration

export interface DataUpcloudIpAddressesConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/d/ip_addresses#id DataUpcloudIpAddresses#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
}
export interface DataUpcloudIpAddressesAddresses {
}
Expand Down Expand Up @@ -147,6 +154,7 @@ export class DataUpcloudIpAddresses extends cdktf.TerraformDataSource {
count: config.count,
lifecycle: config.lifecycle
});
this._id = config.id;
}

// ==========
Expand All @@ -160,16 +168,28 @@ export class DataUpcloudIpAddresses extends cdktf.TerraformDataSource {
}

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// =========
// SYNTHESIS
// =========

protected synthesizeAttributes(): { [name: string]: any } {
return {
id: cdktf.stringToTerraform(this._id),
};
}
}
20 changes: 20 additions & 0 deletions src/data-upcloud-networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ export interface DataUpcloudNetworksConfig extends cdktf.TerraformMetaArguments
*/
readonly filterName?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/d/networks#id DataUpcloudNetworks#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
/**
* If specified, this data source will return only networks from this zone
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/d/networks#zone DataUpcloudNetworks#zone}
Expand Down Expand Up @@ -305,6 +312,7 @@ export class DataUpcloudNetworks extends cdktf.TerraformDataSource {
lifecycle: config.lifecycle
});
this._filterName = config.filterName;
this._id = config.id;
this._zone = config.zone;
}

Expand All @@ -329,9 +337,20 @@ export class DataUpcloudNetworks extends cdktf.TerraformDataSource {
}

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// networks - computed: true, optional: false, required: false
private _networks = new DataUpcloudNetworksNetworksList(this, "networks", true);
Expand Down Expand Up @@ -362,6 +381,7 @@ export class DataUpcloudNetworks extends cdktf.TerraformDataSource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
filter_name: cdktf.stringToTerraform(this._filterName),
id: cdktf.stringToTerraform(this._id),
zone: cdktf.stringToTerraform(this._zone),
};
}
Expand Down
20 changes: 20 additions & 0 deletions src/data-upcloud-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ export interface DataUpcloudStorageConfig extends cdktf.TerraformMetaArguments {
*/
readonly accessType?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/d/storage#id DataUpcloudStorage#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
/**
* If more than one result is returned, use the most recent storage. This is only useful with private storages. Public storages might give unpredictable results.
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/d/storage#most_recent DataUpcloudStorage#most_recent}
Expand Down Expand Up @@ -80,6 +87,7 @@ export class DataUpcloudStorage extends cdktf.TerraformDataSource {
lifecycle: config.lifecycle
});
this._accessType = config.accessType;
this._id = config.id;
this._mostRecent = config.mostRecent;
this._name = config.name;
this._nameRegex = config.nameRegex;
Expand Down Expand Up @@ -108,9 +116,20 @@ export class DataUpcloudStorage extends cdktf.TerraformDataSource {
}

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// most_recent - computed: false, optional: true, required: false
private _mostRecent?: boolean | cdktf.IResolvable;
Expand Down Expand Up @@ -216,6 +235,7 @@ export class DataUpcloudStorage extends cdktf.TerraformDataSource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
access_type: cdktf.stringToTerraform(this._accessType),
id: cdktf.stringToTerraform(this._id),
most_recent: cdktf.booleanToTerraform(this._mostRecent),
name: cdktf.stringToTerraform(this._name),
name_regex: cdktf.stringToTerraform(this._nameRegex),
Expand Down
20 changes: 20 additions & 0 deletions src/data-upcloud-tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import * as cdktf from 'cdktf';
// Configuration

export interface DataUpcloudTagsConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/d/tags#id DataUpcloudTags#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
}
export interface DataUpcloudTagsTags {
}
Expand Down Expand Up @@ -117,16 +124,28 @@ export class DataUpcloudTags extends cdktf.TerraformDataSource {
count: config.count,
lifecycle: config.lifecycle
});
this._id = config.id;
}

// ==========
// ATTRIBUTES
// ==========

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// tags - computed: true, optional: false, required: false
private _tags = new DataUpcloudTagsTagsList(this, "tags", true);
Expand All @@ -140,6 +159,7 @@ export class DataUpcloudTags extends cdktf.TerraformDataSource {

protected synthesizeAttributes(): { [name: string]: any } {
return {
id: cdktf.stringToTerraform(this._id),
};
}
}
20 changes: 20 additions & 0 deletions src/data-upcloud-zone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import * as cdktf from 'cdktf';
// Configuration

export interface DataUpcloudZoneConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/upcloud/d/zone#id DataUpcloudZone#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
/**
* Unique lablel for the zone
*
Expand Down Expand Up @@ -49,6 +56,7 @@ export class DataUpcloudZone extends cdktf.TerraformDataSource {
count: config.count,
lifecycle: config.lifecycle
});
this._id = config.id;
this._name = config.name;
}

Expand All @@ -62,9 +70,20 @@ export class DataUpcloudZone extends cdktf.TerraformDataSource {
}

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// name - computed: false, optional: false, required: true
private _name?: string;
Expand All @@ -90,6 +109,7 @@ export class DataUpcloudZone extends cdktf.TerraformDataSource {

protected synthesizeAttributes(): { [name: string]: any } {
return {
id: cdktf.stringToTerraform(this._id),
name: cdktf.stringToTerraform(this._name),
};
}
Expand Down
Loading

0 comments on commit f81585e

Please sign in to comment.