Skip to content

Commit

Permalink
feat: added new resource references to fields in AnalyzeMoveRequest
Browse files Browse the repository at this point in the history
docs: updated comments
chore: removed backend configuration from service config

PiperOrigin-RevId: 590982722

Source-Link: googleapis/googleapis@da09f4c

Source-Link: googleapis/googleapis-gen@7dd789a
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQXNzZXQuVjEvLk93bEJvdC55YW1sIiwiaCI6IjdkZDc4OWEyY2FkNGQ1NDRmYmI1M2ExNWNlNTlkZWI0NjdmMzBiNmQifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Dec 14, 2023
1 parent a2362f1 commit 7a630af
Show file tree
Hide file tree
Showing 9 changed files with 626 additions and 528 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
namespace GoogleCSharpSnippets
{
// [START cloudasset_v1_generated_AssetService_AnalyzeMove_async]
using Google.Api.Gax;
using Google.Api.Gax.ResourceNames;
using Google.Cloud.Asset.V1;
using System.Threading.Tasks;

Expand All @@ -37,8 +39,8 @@ public async Task AnalyzeMoveRequestObjectAsync()
// Initialize request argument(s)
AnalyzeMoveRequest request = new AnalyzeMoveRequest
{
Resource = "",
DestinationParent = "",
ResourceAsProjectName = ProjectName.FromProject("[PROJECT]"),
DestinationParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
View = AnalyzeMoveRequest.Types.AnalysisView.Unspecified,
};
// Make the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
namespace GoogleCSharpSnippets
{
// [START cloudasset_v1_generated_AssetService_AnalyzeMove_sync]
using Google.Api.Gax;
using Google.Api.Gax.ResourceNames;
using Google.Cloud.Asset.V1;

public sealed partial class GeneratedAssetServiceClientSnippets
Expand All @@ -36,8 +38,8 @@ public void AnalyzeMoveRequestObject()
// Initialize request argument(s)
AnalyzeMoveRequest request = new AnalyzeMoveRequest
{
Resource = "",
DestinationParent = "",
ResourceAsProjectName = ProjectName.FromProject("[PROJECT]"),
DestinationParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
View = AnalyzeMoveRequest.Types.AnalysisView.Unspecified,
};
// Make the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2342,12 +2342,12 @@
"segments": [
{
"start": 20,
"end": 46,
"end": 48,
"type": "FULL"
},
{
"start": 34,
"end": 44,
"start": 36,
"end": 46,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -2391,12 +2391,12 @@
"segments": [
{
"start": 20,
"end": 47,
"end": 49,
"type": "FULL"
},
{
"start": 35,
"end": 45,
"start": 37,
"end": 47,
"type": "SHORT"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1290,8 +1290,8 @@ public void AnalyzeMoveRequestObject()
// Initialize request argument(s)
AnalyzeMoveRequest request = new AnalyzeMoveRequest
{
Resource = "",
DestinationParent = "",
ResourceAsProjectName = ProjectName.FromProject("[PROJECT]"),
DestinationParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
View = AnalyzeMoveRequest.Types.AnalysisView.Unspecified,
};
// Make the request
Expand All @@ -1309,8 +1309,8 @@ public async Task AnalyzeMoveRequestObjectAsync()
// Initialize request argument(s)
AnalyzeMoveRequest request = new AnalyzeMoveRequest
{
Resource = "",
DestinationParent = "",
ResourceAsProjectName = ProjectName.FromProject("[PROJECT]"),
DestinationParentAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
View = AnalyzeMoveRequest.Types.AnalysisView.Unspecified,
};
// Make the request
Expand Down
581 changes: 304 additions & 277 deletions apis/Google.Cloud.Asset.V1/Google.Cloud.Asset.V1/AssetService.g.cs

Large diffs are not rendered by default.

200 changes: 126 additions & 74 deletions apis/Google.Cloud.Asset.V1/Google.Cloud.Asset.V1/AssetServiceClient.g.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ public abstract partial class AssetServiceBase
///
/// This RPC only returns either resources of types supported by [searchable
/// asset
/// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types),
/// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types),
/// or IAM policies.
/// </summary>
/// <param name="request">The request received from the client.</param>
Expand Down Expand Up @@ -1985,7 +1985,7 @@ protected AssetServiceClient(ClientBaseConfiguration configuration) : base(confi
///
/// This RPC only returns either resources of types supported by [searchable
/// asset
/// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types),
/// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types),
/// or IAM policies.
/// </summary>
/// <param name="request">The request to send to the server.</param>
Expand Down Expand Up @@ -2016,7 +2016,7 @@ protected AssetServiceClient(ClientBaseConfiguration configuration) : base(confi
///
/// This RPC only returns either resources of types supported by [searchable
/// asset
/// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types),
/// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types),
/// or IAM policies.
/// </summary>
/// <param name="request">The request to send to the server.</param>
Expand Down Expand Up @@ -2045,7 +2045,7 @@ protected AssetServiceClient(ClientBaseConfiguration configuration) : base(confi
///
/// This RPC only returns either resources of types supported by [searchable
/// asset
/// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types),
/// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types),
/// or IAM policies.
/// </summary>
/// <param name="request">The request to send to the server.</param>
Expand Down Expand Up @@ -2076,7 +2076,7 @@ protected AssetServiceClient(ClientBaseConfiguration configuration) : base(confi
///
/// This RPC only returns either resources of types supported by [searchable
/// asset
/// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types),
/// types](https://cloud.google.com/asset-inventory/docs/supported-asset-types),
/// or IAM policies.
/// </summary>
/// <param name="request">The request to send to the server.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,27 @@ public partial class DeleteSavedQueryRequest
}
}

public partial class AnalyzeMoveRequest
{
/// <summary>
/// <see cref="gagr::ProjectName"/>-typed view over the <see cref="Resource"/> resource name property.
/// </summary>
public gagr::ProjectName ResourceAsProjectName
{
get => string.IsNullOrEmpty(Resource) ? null : gagr::ProjectName.Parse(Resource, allowUnparsed: true);
set => Resource = value?.ToString() ?? "";
}

/// <summary>
/// <see cref="gax::IResourceName"/>-typed view over the <see cref="DestinationParent"/> resource name property.
/// </summary>
public gax::IResourceName DestinationParentAsResourceName
{
get => string.IsNullOrEmpty(DestinationParent) ? null : gax::UnparsedResourceName.Parse(DestinationParent);
set => DestinationParent = value?.ToString() ?? "";
}
}

public partial class QueryAssetsRequest
{
/// <summary>
Expand Down
Loading

0 comments on commit 7a630af

Please sign in to comment.