Esempio n. 1
0
        protected override void ProcessRecord()
        {
            var body = new Data.LicenseAssignmentInsert()
            {
                UserId = this.UserId
            };

            if (ShouldProcess("Licensing", "New-GLicenseAssignment"))
            {
                WriteObject(licenseAssignments.Insert(body, ProductId, SkuId, StandardQueryParams: StandardQueryParams));
            }
        }
Esempio n. 2
0
            /// <summary>Assign License.</summary>
            /// <param name="LicenseAssignmentInsertBody">The body of the request.</param>
            /// <param name="ProductId">Name for product</param>
            /// <param name="SkuId">Name for sku</param>
            /// <param name="gShellServiceAccount">The optional email address the service account should impersonate.</param>
            public Google.Apis.Licensing.v1.Data.LicenseAssignment Insert(Google.Apis.Licensing.v1.Data.LicenseAssignmentInsert LicenseAssignmentInsertBody, string ProductId, string SkuId, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null)
            {
                var request = GetService().LicenseAssignments.Insert(LicenseAssignmentInsertBody, ProductId, SkuId);

                if (StandardQueryParams != null)
                {
                    request.Fields    = StandardQueryParams.fields;
                    request.QuotaUser = StandardQueryParams.quotaUser;
                    request.UserIp    = StandardQueryParams.userIp;
                }



                return(request.Execute());
            }
Esempio n. 3
0
 /// <summary>Assign License.</summary>
 /// <param name="LicenseAssignmentInsertBody">The body of the request.</param>
 /// <param name="ProductId">Name for product</param>
 /// <param name="SkuId">Name for sku</param>
 public Google.Apis.Licensing.v1.Data.LicenseAssignment Insert(Google.Apis.Licensing.v1.Data.LicenseAssignmentInsert LicenseAssignmentInsertBody, string ProductId, string SkuId, gShell.dotNet.Utilities.OAuth2.StandardQueryParameters StandardQueryParams = null)
 {
     return(mainBase.licenseAssignments.Insert(LicenseAssignmentInsertBody, ProductId, SkuId, StandardQueryParams));
 }