/// <summary> /// Cancels and removes the preview currently associated with the deployment. /// Documentation https://developers.google.com/deploymentmanageralpha/alpha/reference/deployments/cancelPreview /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Deploymentmanageralpha service.</param> /// <param name="project">The project ID for this request.</param> /// <param name="deployment">The name of the deployment for this request.</param> /// <param name="body">A valid Deploymentmanageralpha alpha body.</param> /// <returns>OperationResponse</returns> public static Operation CancelPreview(DeploymentmanageralphaService service, string project, string deployment, DeploymentsCancelPreviewRequest body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (project == null) { throw new ArgumentNullException(project); } if (deployment == null) { throw new ArgumentNullException(deployment); } // Make the request. return(service.Deployments.CancelPreview(body, project, deployment).Execute()); } catch (Exception ex) { throw new Exception("Request Deployments.CancelPreview failed.", ex); } }
/// <summary> /// Lists all deployments for a given project. /// Documentation https://developers.google.com/deploymentmanageralpha/alpha/reference/deployments/list /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Deploymentmanageralpha service.</param> /// <param name="project">The project ID for this request.</param> /// <param name="optional">Optional paramaters.</param> /// <returns>DeploymentsListResponseResponse</returns> public static DeploymentsListResponse List(DeploymentmanageralphaService service, string project, DeploymentsListOptionalParms optional = null) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (project == null) { throw new ArgumentNullException(project); } // Building the initial request. var request = service.Deployments.List(project); // Applying optional parameters to the request. request = (DeploymentsResource.ListRequest)SampleHelpers.ApplyOptionalParms(request, optional); // Requesting data. return(request.Execute()); } catch (Exception ex) { throw new Exception("Request Deployments.List failed.", ex); } }
/// <summary> /// Returns permissions that a caller has on the specified resource. /// Documentation https://developers.google.com/deploymentmanageralpha/alpha/reference/deployments/testIamPermissions /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Deploymentmanageralpha service.</param> /// <param name="project">Project ID for this request.</param> /// <param name="resource">Name of the resource for this request.</param> /// <param name="body">A valid Deploymentmanageralpha alpha body.</param> /// <returns>TestPermissionsResponseResponse</returns> public static TestPermissionsResponse TestIamPermissions(DeploymentmanageralphaService service, string project, string resource, TestPermissionsRequest body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (project == null) { throw new ArgumentNullException(project); } if (resource == null) { throw new ArgumentNullException(resource); } // Make the request. return(service.Deployments.TestIamPermissions(body, project, resource).Execute()); } catch (Exception ex) { throw new Exception("Request Deployments.TestIamPermissions failed.", ex); } }
/// <summary> /// Gets the access control policy for a resource. May be empty if no such policy or resource exists. /// Documentation https://developers.google.com/deploymentmanageralpha/alpha/reference/deployments/getIamPolicy /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Deploymentmanageralpha service.</param> /// <param name="project">Project ID for this request.</param> /// <param name="resource">Name of the resource for this request.</param> /// <returns>PolicyResponse</returns> public static Policy GetIamPolicy(DeploymentmanageralphaService service, string project, string resource) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (project == null) { throw new ArgumentNullException(project); } if (resource == null) { throw new ArgumentNullException(resource); } // Make the request. return(service.Deployments.GetIamPolicy(project, resource).Execute()); } catch (Exception ex) { throw new Exception("Request Deployments.GetIamPolicy failed.", ex); } }
/// <summary> /// Gets information about a specific deployment. /// Documentation https://developers.google.com/deploymentmanageralpha/alpha/reference/deployments/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Deploymentmanageralpha service.</param> /// <param name="project">The project ID for this request.</param> /// <param name="deployment">The name of the deployment for this request.</param> /// <returns>DeploymentResponse</returns> public static Deployment Get(DeploymentmanageralphaService service, string project, string deployment) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (project == null) { throw new ArgumentNullException(project); } if (deployment == null) { throw new ArgumentNullException(deployment); } // Make the request. return(service.Deployments.Get(project, deployment).Execute()); } catch (Exception ex) { throw new Exception("Request Deployments.Get failed.", ex); } }
/// <summary> /// Gets information about a specific type provider. /// Documentation https://developers.google.com/deploymentmanageralpha/alpha/reference/typeProviders/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Deploymentmanageralpha service.</param> /// <param name="project">The project ID for this request.</param> /// <param name="typeProvider">The name of the type provider for this request.</param> /// <returns>TypeProviderResponse</returns> public static TypeProvider Get(DeploymentmanageralphaService service, string project, string typeProvider) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (project == null) { throw new ArgumentNullException(project); } if (typeProvider == null) { throw new ArgumentNullException(typeProvider); } // Make the request. return(service.TypeProviders.Get(project, typeProvider).Execute()); } catch (Exception ex) { throw new Exception("Request TypeProviders.Get failed.", ex); } }
/// <summary> /// Creates a type provider. /// Documentation https://developers.google.com/deploymentmanageralpha/alpha/reference/typeProviders/insert /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Deploymentmanageralpha service.</param> /// <param name="project">The project ID for this request.</param> /// <param name="body">A valid Deploymentmanageralpha alpha body.</param> /// <returns>OperationResponse</returns> public static Operation Insert(DeploymentmanageralphaService service, string project, TypeProvider body) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (body == null) { throw new ArgumentNullException("body"); } if (project == null) { throw new ArgumentNullException(project); } // Make the request. return(service.TypeProviders.Insert(body, project).Execute()); } catch (Exception ex) { throw new Exception("Request TypeProviders.Insert failed.", ex); } }
/// <summary> /// Gets information about a specific composite type. /// Documentation https://developers.google.com/deploymentmanageralpha/alpha/reference/compositeTypes/get /// Generation Note: This does not always build corectly. Google needs to standardise things I need to figuer out which ones are wrong. /// </summary> /// <param name="service">Authenticated Deploymentmanageralpha service.</param> /// <param name="project">The project ID for this request.</param> /// <param name="compositeType">The name of the composite type for this request.</param> /// <returns>CompositeTypeResponse</returns> public static CompositeType Get(DeploymentmanageralphaService service, string project, string compositeType) { try { // Initial validation. if (service == null) { throw new ArgumentNullException("service"); } if (project == null) { throw new ArgumentNullException(project); } if (compositeType == null) { throw new ArgumentNullException(compositeType); } // Make the request. return(service.CompositeTypes.Get(project, compositeType).Execute()); } catch (Exception ex) { throw new Exception("Request CompositeTypes.Get failed.", ex); } }