Skip to content

Commit

Permalink
build: include IAMPolicy mixin
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 555373976

Source-Link: googleapis/googleapis@177b508

Source-Link: googleapis/googleapis-gen@7ccb4be
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQmFyZU1ldGFsU29sdXRpb24uVjIvLk93bEJvdC55YW1sIiwiaCI6IjdjY2I0YmU5YzE0ODFkNTcwYzBkNDlkNWI0NGM3MjI5ODA3MjQyYjQifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and hemanshv committed Aug 10, 2023
1 parent 5ef43e6 commit b2e2e45
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
using gax = Google.Api.Gax;
using gaxgrpc = Google.Api.Gax.Grpc;
using gagr = Google.Api.Gax.ResourceNames;
using gciv = Google.Cloud.Iam.V1;
using gcl = Google.Cloud.Location;
using lro = Google.LongRunning;
using proto = Google.Protobuf;
Expand Down Expand Up @@ -110,6 +111,7 @@ private BareMetalSolutionSettings(BareMetalSolutionSettings existing) : base(exi
RenameNetworkSettings = existing.RenameNetworkSettings;
ListOSImagesSettings = existing.ListOSImagesSettings;
LocationsSettings = existing.LocationsSettings;
IAMPolicySettings = existing.IAMPolicySettings;
OnCopy(existing);
}

Expand Down Expand Up @@ -947,6 +949,11 @@ private BareMetalSolutionSettings(BareMetalSolutionSettings existing) : base(exi
/// </summary>
public gcl::LocationsSettings LocationsSettings { get; set; } = gcl::LocationsSettings.GetDefault();

/// <summary>
/// The settings to use for the <see cref="gciv::IAMPolicyClient"/> associated with the client.
/// </summary>
public gciv::IAMPolicySettings IAMPolicySettings { get; set; } = gciv::IAMPolicySettings.GetDefault();

/// <summary>Creates a deep clone of this object, with all the same property values.</summary>
/// <returns>A deep clone of this <see cref="BareMetalSolutionSettings"/> object.</returns>
public BareMetalSolutionSettings Clone() => new BareMetalSolutionSettings(this);
Expand Down Expand Up @@ -1098,6 +1105,9 @@ internal static BareMetalSolutionClient Create(grpccore::CallInvoker callInvoker
/// <summary>The <see cref="gcl::LocationsClient"/> associated with this client.</summary>
public virtual gcl::LocationsClient LocationsClient => throw new sys::NotImplementedException();

/// <summary>The <see cref="gciv::IAMPolicyClient"/> associated with this client.</summary>
public virtual gciv::IAMPolicyClient IAMPolicyClient => throw new sys::NotImplementedException();

/// <summary>
/// List servers in a given project and location.
/// </summary>
Expand Down Expand Up @@ -6752,6 +6762,7 @@ public BareMetalSolutionClientImpl(BareMetalSolution.BareMetalSolutionClient grp
CreateNfsShareOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.CreateNfsShareOperationsSettings, logger);
DeleteNfsShareOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.DeleteNfsShareOperationsSettings, logger);
LocationsClient = new gcl::LocationsClientImpl(grpcClient.CreateLocationsClient(), effectiveSettings.LocationsSettings, logger);
IAMPolicyClient = new gciv::IAMPolicyClientImpl(grpcClient.CreateIAMPolicyClient(), effectiveSettings.IAMPolicySettings, logger);
_callListInstances = clientHelper.BuildApiCall<ListInstancesRequest, ListInstancesResponse>("ListInstances", grpcClient.ListInstancesAsync, grpcClient.ListInstances, effectiveSettings.ListInstancesSettings).WithGoogleRequestParam("parent", request => request.Parent);
Modify_ApiCall(ref _callListInstances);
Modify_ListInstancesApiCall(ref _callListInstances);
Expand Down Expand Up @@ -6985,6 +6996,9 @@ public BareMetalSolutionClientImpl(BareMetalSolution.BareMetalSolutionClient grp
/// <summary>The <see cref="gcl::LocationsClient"/> associated with this client.</summary>
public override gcl::LocationsClient LocationsClient { get; }

/// <summary>The <see cref="gciv::IAMPolicyClient"/> associated with this client.</summary>
public override gciv::IAMPolicyClient IAMPolicyClient { get; }

partial void Modify_ListInstancesRequest(ref ListInstancesRequest request, ref gaxgrpc::CallSettings settings);

partial void Modify_GetInstanceRequest(ref GetInstanceRequest request, ref gaxgrpc::CallSettings settings);
Expand Down Expand Up @@ -8345,6 +8359,16 @@ public partial class BareMetalSolutionClient
/// </returns>
public virtual gcl::Locations.LocationsClient CreateLocationsClient() =>
new gcl::Locations.LocationsClient(CallInvoker);

/// <summary>
/// Creates a new instance of <see cref="gciv::IAMPolicy.IAMPolicyClient"/> using the same call invoker as
/// this client.
/// </summary>
/// <returns>
/// A new <see cref="gciv::IAMPolicy.IAMPolicyClient"/> for the same target as this client.
/// </returns>
public virtual gciv::IAMPolicy.IAMPolicyClient CreateIAMPolicyClient() =>
new gciv::IAMPolicy.IAMPolicyClient(CallInvoker);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#pragma warning disable CS8981
using gaxgrpc = Google.Api.Gax.Grpc;
using gciv = Google.Cloud.Iam.V1;
using gcl = Google.Cloud.Location;
using lro = Google.LongRunning;
using proto = Google.Protobuf;
Expand Down Expand Up @@ -57,6 +58,9 @@ internal static class PackageApiMetadata
yield return SshKeyReflection.Descriptor;
yield return VolumeReflection.Descriptor;
yield return VolumeSnapshotReflection.Descriptor;
yield return gciv::IamPolicyReflection.Descriptor;
yield return gciv::OptionsReflection.Descriptor;
yield return gciv::PolicyReflection.Descriptor;
yield return gcl::LocationsReflection.Descriptor;
yield return lro::OperationsReflection.Descriptor;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#pragma warning disable CS8981
using gaxgrpc = Google.Api.Gax.Grpc;
using gcbv = Google.Cloud.BareMetalSolution.V2;
using gciv = Google.Cloud.Iam.V1;
using gcl = Google.Cloud.Location;
using lro = Google.LongRunning;
using proto = Google.Protobuf;
Expand Down

0 comments on commit b2e2e45

Please sign in to comment.