Skip to content

Commit c8c200f

Browse files
committed
Clarify localAsset and localArchive field descriptions
1 parent 5e6e4a1 commit c8c200f

File tree

8 files changed

+42
-42
lines changed

8 files changed

+42
-42
lines changed

Diff for: provider/cmd/pulumi-resource-command/schema.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -454,11 +454,11 @@
454454
},
455455
"localArchive": {
456456
"$ref": "pulumi.json#/Archive",
457-
"description": "The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set."
457+
"description": "An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set."
458458
},
459459
"localAsset": {
460460
"$ref": "pulumi.json#/Asset",
461-
"description": "The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set."
461+
"description": "An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set."
462462
},
463463
"remotePath": {
464464
"type": "string",
@@ -485,11 +485,11 @@
485485
},
486486
"localArchive": {
487487
"$ref": "pulumi.json#/Archive",
488-
"description": "The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set."
488+
"description": "An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set."
489489
},
490490
"localAsset": {
491491
"$ref": "pulumi.json#/Asset",
492-
"description": "The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set."
492+
"description": "An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set."
493493
},
494494
"remotePath": {
495495
"type": "string",

Diff for: provider/pkg/provider/remote/copy.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ type CopyInputs struct {
4040
func (c *CopyInputs) Annotate(a infer.Annotator) {
4141
a.Describe(&c.Connection, "The parameters with which to connect to the remote host.")
4242
a.Describe(&c.Triggers, "Trigger replacements on changes to this input.")
43-
a.Describe(&c.LocalAsset, "The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.")
44-
a.Describe(&c.LocalArchive, "The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.")
43+
a.Describe(&c.LocalAsset, "An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.")
44+
a.Describe(&c.LocalArchive, "An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.")
4545
a.Describe(&c.RemotePath, "The destination path in the remote host.")
4646
}
4747

Diff for: sdk/dotnet/Remote/Copy.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ public partial class Copy : global::Pulumi.CustomResource
2222
public Output<Outputs.Connection> Connection { get; private set; } = null!;
2323

2424
/// <summary>
25-
/// The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
25+
/// An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
2626
/// </summary>
2727
[Output("localArchive")]
2828
public Output<Archive?> LocalArchive { get; private set; } = null!;
2929

3030
/// <summary>
31-
/// The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
31+
/// An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
3232
/// </summary>
3333
[Output("localAsset")]
3434
public Output<AssetOrArchive?> LocalAsset { get; private set; } = null!;
@@ -111,13 +111,13 @@ public Input<Inputs.ConnectionArgs>? Connection
111111
}
112112

113113
/// <summary>
114-
/// The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
114+
/// An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
115115
/// </summary>
116116
[Input("localArchive")]
117117
public Input<Archive>? LocalArchive { get; set; }
118118

119119
/// <summary>
120-
/// The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
120+
/// An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
121121
/// </summary>
122122
[Input("localAsset")]
123123
public Input<AssetOrArchive>? LocalAsset { get; set; }

Diff for: sdk/go/command/remote/copy.go

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: sdk/java/src/main/java/com/pulumi/command/remote/Copy.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,28 @@ public Output<Connection> connection() {
3939
return this.connection;
4040
}
4141
/**
42-
* The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
42+
* An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
4343
*
4444
*/
4545
@Export(name="localArchive", refs={Archive.class}, tree="[0]")
4646
private Output</* @Nullable */ Archive> localArchive;
4747

4848
/**
49-
* @return The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
49+
* @return An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
5050
*
5151
*/
5252
public Output<Optional<Archive>> localArchive() {
5353
return Codegen.optional(this.localArchive);
5454
}
5555
/**
56-
* The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
56+
* An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
5757
*
5858
*/
5959
@Export(name="localAsset", refs={AssetOrArchive.class}, tree="[0]")
6060
private Output</* @Nullable */ AssetOrArchive> localAsset;
6161

6262
/**
63-
* @return The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
63+
* @return An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
6464
*
6565
*/
6666
public Output<Optional<AssetOrArchive>> localAsset() {

Diff for: sdk/java/src/main/java/com/pulumi/command/remote/CopyArgs.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,29 @@ public Output<ConnectionArgs> connection() {
3737
}
3838

3939
/**
40-
* The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
40+
* An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
4141
*
4242
*/
4343
@Import(name="localArchive")
4444
private @Nullable Output<Archive> localArchive;
4545

4646
/**
47-
* @return The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
47+
* @return An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
4848
*
4949
*/
5050
public Optional<Output<Archive>> localArchive() {
5151
return Optional.ofNullable(this.localArchive);
5252
}
5353

5454
/**
55-
* The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
55+
* An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
5656
*
5757
*/
5858
@Import(name="localAsset")
5959
private @Nullable Output<AssetOrArchive> localAsset;
6060

6161
/**
62-
* @return The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
62+
* @return An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
6363
*
6464
*/
6565
public Optional<Output<AssetOrArchive>> localAsset() {
@@ -146,7 +146,7 @@ public Builder connection(ConnectionArgs connection) {
146146
}
147147

148148
/**
149-
* @param localArchive The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
149+
* @param localArchive An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
150150
*
151151
* @return builder
152152
*
@@ -157,7 +157,7 @@ public Builder localArchive(@Nullable Output<Archive> localArchive) {
157157
}
158158

159159
/**
160-
* @param localArchive The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
160+
* @param localArchive An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
161161
*
162162
* @return builder
163163
*
@@ -167,7 +167,7 @@ public Builder localArchive(Archive localArchive) {
167167
}
168168

169169
/**
170-
* @param localAsset The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
170+
* @param localAsset An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
171171
*
172172
* @return builder
173173
*
@@ -178,7 +178,7 @@ public Builder localAsset(@Nullable Output<AssetOrArchive> localAsset) {
178178
}
179179

180180
/**
181-
* @param localAsset The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
181+
* @param localAsset An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
182182
*
183183
* @return builder
184184
*

Diff for: sdk/nodejs/remote/copy.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ export class Copy extends pulumi.CustomResource {
4242
*/
4343
public readonly connection!: pulumi.Output<outputs.remote.Connection>;
4444
/**
45-
* The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
45+
* An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
4646
*/
4747
public readonly localArchive!: pulumi.Output<pulumi.asset.Archive | undefined>;
4848
/**
49-
* The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
49+
* An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
5050
*/
5151
public readonly localAsset!: pulumi.Output<pulumi.asset.Asset | pulumi.asset.Archive | undefined>;
5252
/**
@@ -103,11 +103,11 @@ export interface CopyArgs {
103103
*/
104104
connection: pulumi.Input<inputs.remote.ConnectionArgs>;
105105
/**
106-
* The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
106+
* An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
107107
*/
108108
localArchive?: pulumi.Input<pulumi.asset.Archive>;
109109
/**
110-
* The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
110+
* An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
111111
*/
112112
localAsset?: pulumi.Input<pulumi.asset.Asset | pulumi.asset.Archive>;
113113
/**

Diff for: sdk/python/pulumi_command/remote/copy.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def __init__(__self__, *,
2525
The set of arguments for constructing a Copy resource.
2626
:param pulumi.Input['ConnectionArgs'] connection: The parameters with which to connect to the remote host.
2727
:param pulumi.Input[str] remote_path: The destination path in the remote host.
28-
:param pulumi.Input[pulumi.Archive] local_archive: The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
29-
:param pulumi.Input[Union[pulumi.Asset, pulumi.Archive]] local_asset: The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
28+
:param pulumi.Input[pulumi.Archive] local_archive: An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
29+
:param pulumi.Input[Union[pulumi.Asset, pulumi.Archive]] local_asset: An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
3030
:param pulumi.Input[Sequence[Any]] triggers: Trigger replacements on changes to this input.
3131
"""
3232
pulumi.set(__self__, "connection", connection)
@@ -66,7 +66,7 @@ def remote_path(self, value: pulumi.Input[str]):
6666
@pulumi.getter(name="localArchive")
6767
def local_archive(self) -> Optional[pulumi.Input[pulumi.Archive]]:
6868
"""
69-
The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
69+
An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
7070
"""
7171
return pulumi.get(self, "local_archive")
7272

@@ -78,7 +78,7 @@ def local_archive(self, value: Optional[pulumi.Input[pulumi.Archive]]):
7878
@pulumi.getter(name="localAsset")
7979
def local_asset(self) -> Optional[pulumi.Input[Union[pulumi.Asset, pulumi.Archive]]]:
8080
"""
81-
The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
81+
An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
8282
"""
8383
return pulumi.get(self, "local_asset")
8484

@@ -116,8 +116,8 @@ def __init__(__self__,
116116
:param str resource_name: The name of the resource.
117117
:param pulumi.ResourceOptions opts: Options for the resource.
118118
:param pulumi.Input[pulumi.InputType['ConnectionArgs']] connection: The parameters with which to connect to the remote host.
119-
:param pulumi.Input[pulumi.Archive] local_archive: The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
120-
:param pulumi.Input[Union[pulumi.Asset, pulumi.Archive]] local_asset: The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
119+
:param pulumi.Input[pulumi.Archive] local_archive: An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
120+
:param pulumi.Input[Union[pulumi.Asset, pulumi.Archive]] local_asset: An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
121121
:param pulumi.Input[str] remote_path: The destination path in the remote host.
122122
:param pulumi.Input[Sequence[Any]] triggers: Trigger replacements on changes to this input.
123123
"""
@@ -211,15 +211,15 @@ def connection(self) -> pulumi.Output['outputs.Connection']:
211211
@pulumi.getter(name="localArchive")
212212
def local_archive(self) -> pulumi.Output[Optional[pulumi.Archive]]:
213213
"""
214-
The path of the folder or archive to be copied. Only one of LocalAsset or LocalArchive can be set.
214+
An archive to upload. It must be a path based archive. Only one of LocalAsset or LocalArchive can be set.
215215
"""
216216
return pulumi.get(self, "local_archive")
217217

218218
@property
219219
@pulumi.getter(name="localAsset")
220220
def local_asset(self) -> pulumi.Output[Optional[Union[pulumi.Asset, pulumi.Archive]]]:
221221
"""
222-
The path of the file to be copied. Only one of LocalAsset or LocalArchive can be set.
222+
An asset to upload. It must be a path based asset. Only one of LocalAsset or LocalArchive can be set.
223223
"""
224224
return pulumi.get(self, "local_asset")
225225

0 commit comments

Comments
 (0)