@@ -8153,6 +8153,189 @@ public DomainMappings domainMappings() {
81538153 */
81548154 public class DomainMappings {
81558155
8156+ /**
8157+ * Maps a domain to an application. A user must be authorized to administer a domain in order to map
8158+ * it to an application. For a list of available authorized domains, see
8159+ * AuthorizedDomains.ListAuthorizedDomains.
8160+ *
8161+ * Create a request for the method "domainMappings.create".
8162+ *
8163+ * This request holds the parameters needed by the appengine server. After setting any optional
8164+ * parameters, call the {@link Create#execute()} method to invoke the remote operation.
8165+ *
8166+ * @param projectsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
8167+ * @param locationsId Part of `parent`. See documentation of `projectsId`.
8168+ * @param applicationsId Part of `parent`. See documentation of `projectsId`.
8169+ * @param content the {@link com.google.api.services.appengine.v1.model.DomainMapping}
8170+ * @return the request
8171+ */
8172+ public Create create (java .lang .String projectsId , java .lang .String locationsId , java .lang .String applicationsId , com .google .api .services .appengine .v1 .model .DomainMapping content ) throws java .io .IOException {
8173+ Create result = new Create (projectsId , locationsId , applicationsId , content );
8174+ initialize (result );
8175+ return result ;
8176+ }
8177+
8178+ public class Create extends AppengineRequest <com .google .api .services .appengine .v1 .model .Operation > {
8179+
8180+ private static final String REST_PATH = "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/domainMappings" ;
8181+
8182+ /**
8183+ * Maps a domain to an application. A user must be authorized to administer a domain in order to
8184+ * map it to an application. For a list of available authorized domains, see
8185+ * AuthorizedDomains.ListAuthorizedDomains.
8186+ *
8187+ * Create a request for the method "domainMappings.create".
8188+ *
8189+ * This request holds the parameters needed by the the appengine server. After setting any
8190+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
8191+ * <p> {@link
8192+ * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
8193+ * be called to initialize this instance immediately after invoking the constructor. </p>
8194+ *
8195+ * @param projectsId Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
8196+ * @param locationsId Part of `parent`. See documentation of `projectsId`.
8197+ * @param applicationsId Part of `parent`. See documentation of `projectsId`.
8198+ * @param content the {@link com.google.api.services.appengine.v1.model.DomainMapping}
8199+ * @since 1.13
8200+ */
8201+ protected Create (java .lang .String projectsId , java .lang .String locationsId , java .lang .String applicationsId , com .google .api .services .appengine .v1 .model .DomainMapping content ) {
8202+ super (Appengine .this , "POST" , REST_PATH , content , com .google .api .services .appengine .v1 .model .Operation .class );
8203+ this .projectsId = com .google .api .client .util .Preconditions .checkNotNull (projectsId , "Required parameter projectsId must be specified." );
8204+ this .locationsId = com .google .api .client .util .Preconditions .checkNotNull (locationsId , "Required parameter locationsId must be specified." );
8205+ this .applicationsId = com .google .api .client .util .Preconditions .checkNotNull (applicationsId , "Required parameter applicationsId must be specified." );
8206+ }
8207+
8208+ @ Override
8209+ public Create set$Xgafv (java .lang .String $Xgafv ) {
8210+ return (Create ) super .set$Xgafv ($Xgafv );
8211+ }
8212+
8213+ @ Override
8214+ public Create setAccessToken (java .lang .String accessToken ) {
8215+ return (Create ) super .setAccessToken (accessToken );
8216+ }
8217+
8218+ @ Override
8219+ public Create setAlt (java .lang .String alt ) {
8220+ return (Create ) super .setAlt (alt );
8221+ }
8222+
8223+ @ Override
8224+ public Create setCallback (java .lang .String callback ) {
8225+ return (Create ) super .setCallback (callback );
8226+ }
8227+
8228+ @ Override
8229+ public Create setFields (java .lang .String fields ) {
8230+ return (Create ) super .setFields (fields );
8231+ }
8232+
8233+ @ Override
8234+ public Create setKey (java .lang .String key ) {
8235+ return (Create ) super .setKey (key );
8236+ }
8237+
8238+ @ Override
8239+ public Create setOauthToken (java .lang .String oauthToken ) {
8240+ return (Create ) super .setOauthToken (oauthToken );
8241+ }
8242+
8243+ @ Override
8244+ public Create setPrettyPrint (java .lang .Boolean prettyPrint ) {
8245+ return (Create ) super .setPrettyPrint (prettyPrint );
8246+ }
8247+
8248+ @ Override
8249+ public Create setQuotaUser (java .lang .String quotaUser ) {
8250+ return (Create ) super .setQuotaUser (quotaUser );
8251+ }
8252+
8253+ @ Override
8254+ public Create setUploadType (java .lang .String uploadType ) {
8255+ return (Create ) super .setUploadType (uploadType );
8256+ }
8257+
8258+ @ Override
8259+ public Create setUploadProtocol (java .lang .String uploadProtocol ) {
8260+ return (Create ) super .setUploadProtocol (uploadProtocol );
8261+ }
8262+
8263+ /** Part of `parent`. Name of the parent Application resource. Example: apps/myapp. */
8264+ @ com .google .api .client .util .Key
8265+ private java .lang .String projectsId ;
8266+
8267+ /** Part of `parent`. Name of the parent Application resource. Example: apps/myapp.
8268+ */
8269+ public java .lang .String getProjectsId () {
8270+ return projectsId ;
8271+ }
8272+
8273+ /** Part of `parent`. Name of the parent Application resource. Example: apps/myapp. */
8274+ public Create setProjectsId (java .lang .String projectsId ) {
8275+ this .projectsId = projectsId ;
8276+ return this ;
8277+ }
8278+
8279+ /** Part of `parent`. See documentation of `projectsId`. */
8280+ @ com .google .api .client .util .Key
8281+ private java .lang .String locationsId ;
8282+
8283+ /** Part of `parent`. See documentation of `projectsId`.
8284+ */
8285+ public java .lang .String getLocationsId () {
8286+ return locationsId ;
8287+ }
8288+
8289+ /** Part of `parent`. See documentation of `projectsId`. */
8290+ public Create setLocationsId (java .lang .String locationsId ) {
8291+ this .locationsId = locationsId ;
8292+ return this ;
8293+ }
8294+
8295+ /** Part of `parent`. See documentation of `projectsId`. */
8296+ @ com .google .api .client .util .Key
8297+ private java .lang .String applicationsId ;
8298+
8299+ /** Part of `parent`. See documentation of `projectsId`.
8300+ */
8301+ public java .lang .String getApplicationsId () {
8302+ return applicationsId ;
8303+ }
8304+
8305+ /** Part of `parent`. See documentation of `projectsId`. */
8306+ public Create setApplicationsId (java .lang .String applicationsId ) {
8307+ this .applicationsId = applicationsId ;
8308+ return this ;
8309+ }
8310+
8311+ /**
8312+ * Whether the domain creation should override any existing mappings for this domain. By
8313+ * default, overrides are rejected.
8314+ */
8315+ @ com .google .api .client .util .Key
8316+ private java .lang .String overrideStrategy ;
8317+
8318+ /** Whether the domain creation should override any existing mappings for this domain. By default,
8319+ overrides are rejected.
8320+ */
8321+ public java .lang .String getOverrideStrategy () {
8322+ return overrideStrategy ;
8323+ }
8324+
8325+ /**
8326+ * Whether the domain creation should override any existing mappings for this domain. By
8327+ * default, overrides are rejected.
8328+ */
8329+ public Create setOverrideStrategy (java .lang .String overrideStrategy ) {
8330+ this .overrideStrategy = overrideStrategy ;
8331+ return this ;
8332+ }
8333+
8334+ @ Override
8335+ public Create set (String parameterName , Object value ) {
8336+ return (Create ) super .set (parameterName , value );
8337+ }
8338+ }
81568339 /**
81578340 * Gets the specified domain mapping.
81588341 *
0 commit comments